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 | c6326f0 | 2003-05-08 22:13:36 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.57 for Wine 20030508. |
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 | c6326f0 | 2003-05-08 22:13:36 +0000 | [diff] [blame] | 269 | PACKAGE_VERSION='20030508' |
| 270 | PACKAGE_STRING='Wine 20030508' |
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 | 21ee329 | 2003-04-21 22:52:31 +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 WIN16_FILES WIN16_INSTALL LIBPTHREAD 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 AS ac_ct_AS LD ac_ct_LD AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP WINDRES ac_ct_WINDRES LN_S LN C2MAN LDCONFIG INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LINT LINTFLAGS DB2HTML DB2PDF DB2PS JPEGLIB EGREP GIFLIB XLIB XFILES OPENGLFILES GLU32FILES OPENGL_LIBS NASLIBS CURSESLIBS sane_devel SANELIBS SANEINCL ft_devel ft_devel2 FREETYPEINCL ARTSCCONFIG ARTSLIBS ARTSINCL ALSALIBS AUDIOIOLIBS EXTRACFLAGS DLLEXT DLLFLAGS DLLIBS LDDLLFLAGS LDSHARED LIBEXT IMPLIBEXT DLLTOOL ac_ct_DLLTOOL DLLWRAP ac_ct_DLLWRAP LDEXECFLAGS CROSSTEST CROSSCC CROSSWINDRES LDPATH CRTLIBS LDD ALLOCA LIBOBJS LTLIBOBJS' |
Alexandre Julliard | 117436e | 2003-05-01 00:39:29 +0000 | [diff] [blame] | 312 | ac_subst_files='MAKE_RULES MAKE_DLL_RULES MAKE_TEST_RULES MAKE_LIB_RULES MAKE_PROG_RULES' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 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 | c6326f0 | 2003-05-08 22:13:36 +0000 | [diff] [blame] | 780 | \`configure' configures Wine 20030508 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 | c6326f0 | 2003-05-08 22:13:36 +0000 | [diff] [blame] | 845 | short | recursive ) echo "Configuration of Wine 20030508:";; |
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 | 6a9cea9 | 2003-04-03 02:54:54 +0000 | [diff] [blame] | 861 | --with-nptl use glibc NPTL threading support |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 862 | --with-wine-tools=<dir> use Wine tools from directory <dir> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 863 | --with-x use the X Window System |
| 864 | |
| 865 | Some influential environment variables: |
| 866 | CC C compiler command |
| 867 | CFLAGS C compiler flags |
| 868 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 869 | nonstandard directory <lib dir> |
| 870 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 871 | headers in a nonstandard directory <include dir> |
| 872 | CPP C preprocessor |
| 873 | |
| 874 | Use these variables to override the choices made by `configure' or to help |
| 875 | it to find libraries and programs with nonstandard names/locations. |
| 876 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 877 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 878 | fi |
| 879 | |
| 880 | if test "$ac_init_help" = "recursive"; then |
| 881 | # If there are subdirs, report their specific --help. |
| 882 | ac_popdir=`pwd` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 883 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 884 | test -d $ac_dir || continue |
| 885 | ac_builddir=. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 886 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 887 | if test "$ac_dir" != .; then |
| 888 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 889 | # A "../" for each directory in $ac_dir_suffix. |
| 890 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 891 | else |
| 892 | ac_dir_suffix= ac_top_builddir= |
| 893 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 894 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 895 | case $srcdir in |
| 896 | .) # No --srcdir option. We are building in place. |
| 897 | ac_srcdir=. |
| 898 | if test -z "$ac_top_builddir"; then |
| 899 | ac_top_srcdir=. |
| 900 | else |
| 901 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 902 | fi ;; |
| 903 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 904 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 905 | ac_top_srcdir=$srcdir ;; |
| 906 | *) # Relative path. |
| 907 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 908 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 909 | esac |
| 910 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 911 | # absolute. |
| 912 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 913 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 914 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 915 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 916 | |
| 917 | cd $ac_dir |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 918 | # Check for guested configure; otherwise get Cygnus style configure. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 919 | if test -f $ac_srcdir/configure.gnu; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 920 | echo |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 921 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
| 922 | elif test -f $ac_srcdir/configure; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 923 | echo |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 924 | $SHELL $ac_srcdir/configure --help=recursive |
| 925 | elif test -f $ac_srcdir/configure.ac || |
| 926 | test -f $ac_srcdir/configure.in; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 927 | echo |
| 928 | $ac_configure --help |
| 929 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 930 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 931 | fi |
| 932 | cd $ac_popdir |
| 933 | done |
| 934 | fi |
| 935 | |
| 936 | test -n "$ac_init_help" && exit 0 |
| 937 | if $ac_init_version; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 938 | cat <<\_ACEOF |
Alexandre Julliard | c6326f0 | 2003-05-08 22:13:36 +0000 | [diff] [blame] | 939 | Wine configure 20030508 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 940 | generated by GNU Autoconf 2.57 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 941 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 942 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 943 | Free Software Foundation, Inc. |
| 944 | This configure script is free software; the Free Software Foundation |
| 945 | gives unlimited permission to copy, distribute and modify it. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 946 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 947 | exit 0 |
| 948 | fi |
| 949 | exec 5>config.log |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 950 | cat >&5 <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 951 | This file contains any messages produced by compilers while |
| 952 | running configure, to aid debugging if configure makes a mistake. |
| 953 | |
Alexandre Julliard | c6326f0 | 2003-05-08 22:13:36 +0000 | [diff] [blame] | 954 | It was created by Wine $as_me 20030508, which was |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 955 | generated by GNU Autoconf 2.57. Invocation command line was |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 956 | |
| 957 | $ $0 $@ |
| 958 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 959 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 960 | { |
| 961 | cat <<_ASUNAME |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 962 | ## --------- ## |
| 963 | ## Platform. ## |
| 964 | ## --------- ## |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 965 | |
| 966 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 967 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 968 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 969 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 970 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 971 | |
| 972 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 973 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 974 | |
| 975 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 976 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 977 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 978 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
| 979 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 980 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 981 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 982 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 983 | _ASUNAME |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 984 | |
| 985 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 986 | for as_dir in $PATH |
| 987 | do |
| 988 | IFS=$as_save_IFS |
| 989 | test -z "$as_dir" && as_dir=. |
| 990 | echo "PATH: $as_dir" |
| 991 | done |
| 992 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 993 | } >&5 |
| 994 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 995 | cat >&5 <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 996 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 997 | |
| 998 | ## ----------- ## |
| 999 | ## Core tests. ## |
| 1000 | ## ----------- ## |
| 1001 | |
| 1002 | _ACEOF |
| 1003 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1004 | |
| 1005 | # Keep a trace of the command line. |
| 1006 | # 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] | 1007 | # 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] | 1008 | # Also quote any args containing shell meta-characters. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1009 | # Make two passes to allow for proper duplicate-argument suppression. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1010 | ac_configure_args= |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1011 | ac_configure_args0= |
| 1012 | ac_configure_args1= |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1013 | ac_sep= |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1014 | ac_must_keep_next=false |
| 1015 | for ac_pass in 1 2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1016 | do |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1017 | for ac_arg |
| 1018 | do |
| 1019 | case $ac_arg in |
| 1020 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1021 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1022 | | -silent | --silent | --silen | --sile | --sil) |
| 1023 | continue ;; |
| 1024 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1025 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1026 | esac |
| 1027 | case $ac_pass in |
| 1028 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1029 | 2) |
| 1030 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1031 | if test $ac_must_keep_next = true; then |
| 1032 | ac_must_keep_next=false # Got value, back to normal. |
| 1033 | else |
| 1034 | case $ac_arg in |
| 1035 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1036 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1037 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1038 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1039 | case "$ac_configure_args0 " in |
| 1040 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1041 | esac |
| 1042 | ;; |
| 1043 | -* ) ac_must_keep_next=true ;; |
| 1044 | esac |
| 1045 | fi |
| 1046 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 1047 | # Get rid of the leading space. |
| 1048 | ac_sep=" " |
| 1049 | ;; |
| 1050 | esac |
| 1051 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1052 | done |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1053 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1054 | $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] | 1055 | |
| 1056 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1057 | # config.log. We remove comments because anyway the quotes in there |
| 1058 | # would cause problems or look ugly. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1059 | # WARNING: Be sure not to use single quotes in there, as some shells, |
| 1060 | # such as our DU 5.0 friend, will then `close' the trap. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1061 | trap 'exit_status=$? |
| 1062 | # Save into config.log some information that might help in debugging. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1063 | { |
| 1064 | echo |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1065 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1066 | cat <<\_ASBOX |
| 1067 | ## ---------------- ## |
| 1068 | ## Cache variables. ## |
| 1069 | ## ---------------- ## |
| 1070 | _ASBOX |
| 1071 | echo |
| 1072 | # The following way of writing the cache mishandles newlines in values, |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1073 | { |
| 1074 | (set) 2>&1 | |
| 1075 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 1076 | *ac_space=\ *) |
| 1077 | sed -n \ |
| 1078 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 1079 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
| 1080 | ;; |
| 1081 | *) |
| 1082 | sed -n \ |
| 1083 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 1084 | ;; |
| 1085 | esac; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1086 | } |
| 1087 | echo |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1088 | |
| 1089 | cat <<\_ASBOX |
| 1090 | ## ----------------- ## |
| 1091 | ## Output variables. ## |
| 1092 | ## ----------------- ## |
| 1093 | _ASBOX |
| 1094 | echo |
| 1095 | for ac_var in $ac_subst_vars |
| 1096 | do |
| 1097 | eval ac_val=$`echo $ac_var` |
| 1098 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1099 | done | sort |
| 1100 | echo |
| 1101 | |
| 1102 | if test -n "$ac_subst_files"; then |
| 1103 | cat <<\_ASBOX |
| 1104 | ## ------------- ## |
| 1105 | ## Output files. ## |
| 1106 | ## ------------- ## |
| 1107 | _ASBOX |
| 1108 | echo |
| 1109 | for ac_var in $ac_subst_files |
| 1110 | do |
| 1111 | eval ac_val=$`echo $ac_var` |
| 1112 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1113 | done | sort |
| 1114 | echo |
| 1115 | fi |
| 1116 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1117 | if test -s confdefs.h; then |
| 1118 | cat <<\_ASBOX |
| 1119 | ## ----------- ## |
| 1120 | ## confdefs.h. ## |
| 1121 | ## ----------- ## |
| 1122 | _ASBOX |
| 1123 | echo |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1124 | sed "/^$/d" confdefs.h | sort |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1125 | echo |
| 1126 | fi |
| 1127 | test "$ac_signal" != 0 && |
| 1128 | echo "$as_me: caught signal $ac_signal" |
| 1129 | echo "$as_me: exit $exit_status" |
| 1130 | } >&5 |
| 1131 | rm -f core core.* *.core && |
| 1132 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1133 | exit $exit_status |
| 1134 | ' 0 |
| 1135 | for ac_signal in 1 2 13 15; do |
| 1136 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1137 | done |
| 1138 | ac_signal=0 |
| 1139 | |
| 1140 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1141 | rm -rf conftest* confdefs.h |
| 1142 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 1143 | echo >confdefs.h |
| 1144 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1145 | # Predefined preprocessor variables. |
| 1146 | |
| 1147 | cat >>confdefs.h <<_ACEOF |
| 1148 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1149 | _ACEOF |
| 1150 | |
| 1151 | |
| 1152 | cat >>confdefs.h <<_ACEOF |
| 1153 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1154 | _ACEOF |
| 1155 | |
| 1156 | |
| 1157 | cat >>confdefs.h <<_ACEOF |
| 1158 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1159 | _ACEOF |
| 1160 | |
| 1161 | |
| 1162 | cat >>confdefs.h <<_ACEOF |
| 1163 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1164 | _ACEOF |
| 1165 | |
| 1166 | |
| 1167 | cat >>confdefs.h <<_ACEOF |
| 1168 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1169 | _ACEOF |
| 1170 | |
| 1171 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1172 | # 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] | 1173 | # Prefer explicitly selected file to automatically selected ones. |
| 1174 | if test -z "$CONFIG_SITE"; then |
| 1175 | if test "x$prefix" != xNONE; then |
| 1176 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 1177 | else |
| 1178 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1179 | fi |
| 1180 | fi |
| 1181 | for ac_site_file in $CONFIG_SITE; do |
| 1182 | if test -r "$ac_site_file"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1183 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1184 | echo "$as_me: loading site script $ac_site_file" >&6;} |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1185 | sed 's/^/| /' "$ac_site_file" >&5 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1186 | . "$ac_site_file" |
| 1187 | fi |
| 1188 | done |
| 1189 | |
| 1190 | if test -r "$cache_file"; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1191 | # Some versions of bash will fail to source /dev/null (special |
| 1192 | # files actually), so we avoid doing that. |
| 1193 | if test -f "$cache_file"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1194 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1195 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1196 | case $cache_file in |
| 1197 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 1198 | *) . ./$cache_file;; |
| 1199 | esac |
| 1200 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1201 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1202 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1203 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1204 | >$cache_file |
| 1205 | fi |
| 1206 | |
| 1207 | # Check that the precious variables saved in the cache have kept the same |
| 1208 | # value. |
| 1209 | ac_cache_corrupted=false |
| 1210 | for ac_var in `(set) 2>&1 | |
| 1211 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
| 1212 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1213 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1214 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 1215 | eval ac_new_val="\$ac_env_${ac_var}_value" |
| 1216 | case $ac_old_set,$ac_new_set in |
| 1217 | set,) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1218 | { 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] | 1219 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1220 | ac_cache_corrupted=: ;; |
| 1221 | ,set) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1222 | { 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] | 1223 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1224 | ac_cache_corrupted=: ;; |
| 1225 | ,);; |
| 1226 | *) |
| 1227 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1228 | { 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] | 1229 | 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] | 1230 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1231 | echo "$as_me: former value: $ac_old_val" >&2;} |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1232 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1233 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1234 | ac_cache_corrupted=: |
| 1235 | fi;; |
| 1236 | esac |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1237 | # Pass precious variables to config.status. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1238 | if test "$ac_new_set" = set; then |
| 1239 | case $ac_new_val in |
| 1240 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1241 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1242 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1243 | esac |
| 1244 | case " $ac_configure_args " in |
| 1245 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1246 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1247 | esac |
| 1248 | fi |
| 1249 | done |
| 1250 | if $ac_cache_corrupted; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1251 | { 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] | 1252 | 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] | 1253 | { { 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] | 1254 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1255 | { (exit 1); exit 1; }; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1256 | fi |
| 1257 | |
| 1258 | ac_ext=c |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1259 | ac_cpp='$CPP $CPPFLAGS' |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1260 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1261 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1262 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1263 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1264 | |
| 1265 | |
| 1266 | |
| 1267 | |
| 1268 | |
| 1269 | |
| 1270 | |
| 1271 | |
| 1272 | |
| 1273 | |
| 1274 | |
| 1275 | |
| 1276 | |
| 1277 | |
| 1278 | |
| 1279 | |
| 1280 | |
| 1281 | |
| 1282 | |
| 1283 | |
| 1284 | |
| 1285 | |
| 1286 | |
| 1287 | |
| 1288 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1289 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1290 | |
| 1291 | ac_config_headers="$ac_config_headers include/config.h" |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 1292 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1293 | ac_aux_dir= |
| 1294 | for ac_dir in tools $srcdir/tools; do |
| 1295 | if test -f $ac_dir/install-sh; then |
| 1296 | ac_aux_dir=$ac_dir |
| 1297 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1298 | break |
| 1299 | elif test -f $ac_dir/install.sh; then |
| 1300 | ac_aux_dir=$ac_dir |
| 1301 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1302 | break |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1303 | elif test -f $ac_dir/shtool; then |
| 1304 | ac_aux_dir=$ac_dir |
| 1305 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1306 | break |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1307 | fi |
| 1308 | done |
| 1309 | if test -z "$ac_aux_dir"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1310 | { { 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] | 1311 | echo "$as_me: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&2;} |
| 1312 | { (exit 1); exit 1; }; } |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1313 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1314 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 1315 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 1316 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 1317 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1318 | |
| 1319 | |
Alexandre Julliard | c728efc | 2002-10-02 02:34:09 +0000 | [diff] [blame] | 1320 | # Check whether --enable-win16 or --disable-win16 was given. |
| 1321 | if test "${enable_win16+set}" = set; then |
| 1322 | enableval="$enable_win16" |
| 1323 | |
| 1324 | fi; |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 1325 | # Check whether --enable-debug or --disable-debug was given. |
| 1326 | if test "${enable_debug+set}" = set; then |
| 1327 | enableval="$enable_debug" |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 1328 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1329 | fi; |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 1330 | # Check whether --enable-trace or --disable-trace was given. |
| 1331 | if test "${enable_trace+set}" = set; then |
| 1332 | enableval="$enable_trace" |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 1333 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1334 | fi; |
Alexandre Julliard | b807499 | 2002-11-21 21:51:24 +0000 | [diff] [blame] | 1335 | |
| 1336 | |
| 1337 | # Check whether --with-opengl or --without-opengl was given. |
| 1338 | if test "${with_opengl+set}" = set; then |
| 1339 | withval="$with_opengl" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1340 | |
| 1341 | fi; |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 1342 | |
Patrik Stridvall | 5e5ad53 | 2000-04-23 20:02:46 +0000 | [diff] [blame] | 1343 | # Check whether --with-curses or --without-curses was given. |
| 1344 | if test "${with_curses+set}" = set; then |
| 1345 | withval="$with_curses" |
Patrik Stridvall | 5e5ad53 | 2000-04-23 20:02:46 +0000 | [diff] [blame] | 1346 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1347 | fi; |
Patrik Stridvall | 5e5ad53 | 2000-04-23 20:02:46 +0000 | [diff] [blame] | 1348 | |
Alexandre Julliard | 6a9cea9 | 2003-04-03 02:54:54 +0000 | [diff] [blame] | 1349 | # Check whether --with-nptl or --without-nptl was given. |
| 1350 | if test "${with_nptl+set}" = set; then |
| 1351 | withval="$with_nptl" |
| 1352 | |
| 1353 | fi; |
| 1354 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 1355 | # Check whether --with-wine-tools or --without-wine-tools was given. |
| 1356 | if test "${with_wine_tools+set}" = set; then |
| 1357 | withval="$with_wine_tools" |
| 1358 | |
| 1359 | fi; |
| 1360 | |
Alexandre Julliard | c728efc | 2002-10-02 02:34:09 +0000 | [diff] [blame] | 1361 | WIN16_FILES="\$(WIN16_FILES)" |
| 1362 | |
| 1363 | WIN16_INSTALL="\$(WIN16_INSTALL)" |
| 1364 | |
| 1365 | if test "x$enable_win16" = "xno" |
| 1366 | then |
| 1367 | WIN16_FILES="" |
| 1368 | WIN16_INSTALL="" |
| 1369 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1370 | if test "x$enable_debug" = "xno" |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 1371 | then |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 1372 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1373 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1374 | #define NO_DEBUG_MSGS 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1375 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1376 | |
| 1377 | fi |
| 1378 | if test "x$enable_trace" = "xno" -o "x$enable_debug" = "xno" |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 1379 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1380 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1381 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1382 | #define NO_TRACE_MSGS 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1383 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1384 | |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 1385 | fi |
Alexandre Julliard | 6a9cea9 | 2003-04-03 02:54:54 +0000 | [diff] [blame] | 1386 | if test "x$with_nptl" = "xyes" |
| 1387 | then |
| 1388 | |
| 1389 | cat >>confdefs.h <<\_ACEOF |
| 1390 | #define HAVE_NPTL 1 |
| 1391 | _ACEOF |
| 1392 | |
| 1393 | LIBPTHREAD="-lpthread" |
| 1394 | |
| 1395 | fi |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 1396 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1397 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1398 | # Make sure we can run config.sub. |
| 1399 | $ac_config_sub sun4 >/dev/null 2>&1 || |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1400 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1401 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
| 1402 | { (exit 1); exit 1; }; } |
Alexandre Julliard | a0b2b1d | 1997-11-16 17:38:29 +0000 | [diff] [blame] | 1403 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1404 | echo "$as_me:$LINENO: checking build system type" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1405 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
| 1406 | if test "${ac_cv_build+set}" = set; then |
| 1407 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1408 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1409 | ac_cv_build_alias=$build_alias |
| 1410 | test -z "$ac_cv_build_alias" && |
| 1411 | ac_cv_build_alias=`$ac_config_guess` |
| 1412 | test -z "$ac_cv_build_alias" && |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1413 | { { 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] | 1414 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 1415 | { (exit 1); exit 1; }; } |
| 1416 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1417 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
| 1418 | 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] | 1419 | { (exit 1); exit 1; }; } |
| 1420 | |
| 1421 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1422 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1423 | echo "${ECHO_T}$ac_cv_build" >&6 |
| 1424 | build=$ac_cv_build |
| 1425 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1426 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1427 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1428 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1429 | |
| 1430 | echo "$as_me:$LINENO: checking host system type" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1431 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
| 1432 | if test "${ac_cv_host+set}" = set; then |
| 1433 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1434 | else |
| 1435 | ac_cv_host_alias=$host_alias |
| 1436 | test -z "$ac_cv_host_alias" && |
| 1437 | ac_cv_host_alias=$ac_cv_build_alias |
| 1438 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1439 | { { 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] | 1440 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
| 1441 | { (exit 1); exit 1; }; } |
| 1442 | |
| 1443 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1444 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1445 | echo "${ECHO_T}$ac_cv_host" >&6 |
| 1446 | host=$ac_cv_host |
| 1447 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1448 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1449 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1450 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1451 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1452 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 1453 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1454 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` |
| 1455 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
| 1456 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1457 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1458 | cat >conftest.make <<\_ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1459 | all: |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1460 | @echo 'ac_maketemp="$(MAKE)"' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1461 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1462 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1463 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1464 | if test -n "$ac_maketemp"; then |
| 1465 | eval ac_cv_prog_make_${ac_make}_set=yes |
| 1466 | else |
| 1467 | eval ac_cv_prog_make_${ac_make}_set=no |
| 1468 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1469 | rm -f conftest.make |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1470 | fi |
| 1471 | 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] | 1472 | echo "$as_me:$LINENO: result: yes" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1473 | echo "${ECHO_T}yes" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1474 | SET_MAKE= |
| 1475 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1476 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1477 | echo "${ECHO_T}no" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1478 | SET_MAKE="MAKE=${MAKE-make}" |
| 1479 | fi |
| 1480 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1481 | ac_ext=c |
| 1482 | ac_cpp='$CPP $CPPFLAGS' |
| 1483 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1484 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1485 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1486 | if test -n "$ac_tool_prefix"; then |
| 1487 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1488 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1489 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1490 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1491 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1492 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1493 | else |
| 1494 | if test -n "$CC"; then |
| 1495 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1496 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1497 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1498 | for as_dir in $PATH |
| 1499 | do |
| 1500 | IFS=$as_save_IFS |
| 1501 | test -z "$as_dir" && as_dir=. |
| 1502 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1503 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1504 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1505 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1506 | break 2 |
| 1507 | fi |
| 1508 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1509 | done |
| 1510 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1511 | fi |
| 1512 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1513 | CC=$ac_cv_prog_CC |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1514 | if test -n "$CC"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1515 | echo "$as_me:$LINENO: result: $CC" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1516 | echo "${ECHO_T}$CC" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1517 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1518 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1519 | echo "${ECHO_T}no" >&6 |
| 1520 | fi |
| 1521 | |
| 1522 | fi |
| 1523 | if test -z "$ac_cv_prog_CC"; then |
| 1524 | ac_ct_CC=$CC |
| 1525 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1526 | set dummy gcc; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1527 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1528 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1529 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1530 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1531 | else |
| 1532 | if test -n "$ac_ct_CC"; then |
| 1533 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1534 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1535 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1536 | for as_dir in $PATH |
| 1537 | do |
| 1538 | IFS=$as_save_IFS |
| 1539 | test -z "$as_dir" && as_dir=. |
| 1540 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1541 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1542 | ac_cv_prog_ac_ct_CC="gcc" |
| 1543 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1544 | break 2 |
| 1545 | fi |
| 1546 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1547 | done |
| 1548 | |
| 1549 | fi |
| 1550 | fi |
| 1551 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1552 | if test -n "$ac_ct_CC"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1553 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1554 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1555 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1556 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1557 | echo "${ECHO_T}no" >&6 |
| 1558 | fi |
| 1559 | |
| 1560 | CC=$ac_ct_CC |
| 1561 | else |
| 1562 | CC="$ac_cv_prog_CC" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1563 | fi |
| 1564 | |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1565 | if test -z "$CC"; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1566 | if test -n "$ac_tool_prefix"; then |
| 1567 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 1568 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1569 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1570 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1571 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1572 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1573 | else |
| 1574 | if test -n "$CC"; then |
| 1575 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1576 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1577 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1578 | for as_dir in $PATH |
| 1579 | do |
| 1580 | IFS=$as_save_IFS |
| 1581 | test -z "$as_dir" && as_dir=. |
| 1582 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1583 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1584 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 1585 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1586 | break 2 |
| 1587 | fi |
| 1588 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1589 | done |
| 1590 | |
| 1591 | fi |
| 1592 | fi |
| 1593 | CC=$ac_cv_prog_CC |
| 1594 | if test -n "$CC"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1595 | echo "$as_me:$LINENO: result: $CC" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1596 | echo "${ECHO_T}$CC" >&6 |
| 1597 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1598 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1599 | echo "${ECHO_T}no" >&6 |
| 1600 | fi |
| 1601 | |
| 1602 | fi |
| 1603 | if test -z "$ac_cv_prog_CC"; then |
| 1604 | ac_ct_CC=$CC |
| 1605 | # Extract the first word of "cc", so it can be a program name with args. |
| 1606 | set dummy cc; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1607 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1608 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1609 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1610 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1611 | else |
| 1612 | if test -n "$ac_ct_CC"; then |
| 1613 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1614 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1615 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1616 | for as_dir in $PATH |
| 1617 | do |
| 1618 | IFS=$as_save_IFS |
| 1619 | test -z "$as_dir" && as_dir=. |
| 1620 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1621 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1622 | ac_cv_prog_ac_ct_CC="cc" |
| 1623 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1624 | break 2 |
| 1625 | fi |
| 1626 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1627 | done |
| 1628 | |
| 1629 | fi |
| 1630 | fi |
| 1631 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1632 | if test -n "$ac_ct_CC"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1633 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1634 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1635 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1636 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1637 | echo "${ECHO_T}no" >&6 |
| 1638 | fi |
| 1639 | |
| 1640 | CC=$ac_ct_CC |
| 1641 | else |
| 1642 | CC="$ac_cv_prog_CC" |
| 1643 | fi |
| 1644 | |
| 1645 | fi |
| 1646 | if test -z "$CC"; then |
| 1647 | # Extract the first word of "cc", so it can be a program name with args. |
| 1648 | set dummy cc; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1649 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1650 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1651 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1652 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1653 | else |
| 1654 | if test -n "$CC"; then |
| 1655 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1656 | else |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1657 | ac_prog_rejected=no |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1658 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1659 | for as_dir in $PATH |
| 1660 | do |
| 1661 | IFS=$as_save_IFS |
| 1662 | test -z "$as_dir" && as_dir=. |
| 1663 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1664 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1665 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 1666 | ac_prog_rejected=yes |
| 1667 | continue |
| 1668 | fi |
| 1669 | ac_cv_prog_CC="cc" |
| 1670 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1671 | break 2 |
| 1672 | fi |
| 1673 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1674 | done |
| 1675 | |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1676 | if test $ac_prog_rejected = yes; then |
| 1677 | # We found a bogon in the path, so make sure we never use it. |
| 1678 | set dummy $ac_cv_prog_CC |
| 1679 | shift |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1680 | if test $# != 0; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1681 | # We chose a different compiler from the bogus one. |
| 1682 | # However, it has the same basename, so the bogon will be chosen |
| 1683 | # first if we set CC to just the basename; use the full file name. |
| 1684 | shift |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1685 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1686 | fi |
| 1687 | fi |
| 1688 | fi |
| 1689 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1690 | CC=$ac_cv_prog_CC |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1691 | if test -n "$CC"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1692 | echo "$as_me:$LINENO: result: $CC" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1693 | echo "${ECHO_T}$CC" >&6 |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1694 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1695 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1696 | echo "${ECHO_T}no" >&6 |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1697 | fi |
| 1698 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1699 | fi |
| 1700 | if test -z "$CC"; then |
| 1701 | if test -n "$ac_tool_prefix"; then |
| 1702 | for ac_prog in cl |
| 1703 | do |
| 1704 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 1705 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1706 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1707 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1708 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1709 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 1710 | else |
| 1711 | if test -n "$CC"; then |
| 1712 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1713 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1714 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1715 | for as_dir in $PATH |
| 1716 | do |
| 1717 | IFS=$as_save_IFS |
| 1718 | test -z "$as_dir" && as_dir=. |
| 1719 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1720 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1721 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 1722 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1723 | break 2 |
| 1724 | fi |
| 1725 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1726 | done |
| 1727 | |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 1728 | fi |
| 1729 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1730 | CC=$ac_cv_prog_CC |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 1731 | if test -n "$CC"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1732 | echo "$as_me:$LINENO: result: $CC" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1733 | echo "${ECHO_T}$CC" >&6 |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 1734 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1735 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1736 | echo "${ECHO_T}no" >&6 |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1737 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1738 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1739 | test -n "$CC" && break |
| 1740 | done |
| 1741 | fi |
| 1742 | if test -z "$CC"; then |
| 1743 | ac_ct_CC=$CC |
| 1744 | for ac_prog in cl |
| 1745 | do |
| 1746 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1747 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1748 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1749 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1750 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1751 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1752 | else |
| 1753 | if test -n "$ac_ct_CC"; then |
| 1754 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1755 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1756 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1757 | for as_dir in $PATH |
| 1758 | do |
| 1759 | IFS=$as_save_IFS |
| 1760 | test -z "$as_dir" && as_dir=. |
| 1761 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1762 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1763 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 1764 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1765 | break 2 |
| 1766 | fi |
| 1767 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1768 | done |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1769 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1770 | fi |
| 1771 | fi |
| 1772 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1773 | if test -n "$ac_ct_CC"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1774 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1775 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1776 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1777 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1778 | echo "${ECHO_T}no" >&6 |
| 1779 | fi |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1780 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1781 | test -n "$ac_ct_CC" && break |
| 1782 | done |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 1783 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1784 | CC=$ac_ct_CC |
| 1785 | fi |
| 1786 | |
| 1787 | fi |
| 1788 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1789 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1790 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 1791 | See \`config.log' for more details." >&5 |
| 1792 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 1793 | See \`config.log' for more details." >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1794 | { (exit 1); exit 1; }; } |
| 1795 | |
| 1796 | # Provide some information about the compiler. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1797 | echo "$as_me:$LINENO:" \ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1798 | "checking for C compiler version" >&5 |
| 1799 | ac_compiler=`set X $ac_compile; echo $2` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1800 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1801 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 1802 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1804 | (exit $ac_status); } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1805 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1806 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 1807 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1809 | (exit $ac_status); } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1810 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1811 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 1812 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1814 | (exit $ac_status); } |
| 1815 | |
| 1816 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1817 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1818 | /* confdefs.h. */ |
| 1819 | _ACEOF |
| 1820 | cat confdefs.h >>conftest.$ac_ext |
| 1821 | cat >>conftest.$ac_ext <<_ACEOF |
| 1822 | /* end confdefs.h. */ |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 1823 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1824 | int |
| 1825 | main () |
| 1826 | { |
| 1827 | |
| 1828 | ; |
| 1829 | return 0; |
| 1830 | } |
| 1831 | _ACEOF |
| 1832 | ac_clean_files_save=$ac_clean_files |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1833 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1834 | # Try to create an executable without -o first, disregard a.out. |
| 1835 | # It will help us diagnose broken compilers, and finding out an intuition |
| 1836 | # of exeext. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1837 | echo "$as_me:$LINENO: checking for C compiler default output" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1838 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 |
| 1839 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1840 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1841 | (eval $ac_link_default) 2>&5 |
| 1842 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1844 | (exit $ac_status); }; then |
| 1845 | # Find the output, starting from the most likely. This scheme is |
| 1846 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 1847 | # resort. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1848 | |
| 1849 | # Be careful to initialize this variable, since it used to be cached. |
| 1850 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 1851 | ac_cv_exeext= |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1852 | # b.out is created by i960 compilers. |
| 1853 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
| 1854 | do |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1855 | test -f "$ac_file" || continue |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1856 | case $ac_file in |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1857 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
| 1858 | ;; |
| 1859 | conftest.$ac_ext ) |
| 1860 | # This is the source file. |
| 1861 | ;; |
| 1862 | [ab].out ) |
| 1863 | # We found the default executable, but exeext='' is most |
| 1864 | # certainly right. |
| 1865 | break;; |
| 1866 | *.* ) |
| 1867 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1868 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
| 1869 | # but it would be cool to find out if it's true. Does anybody |
| 1870 | # maintain Libtool? --akim. |
| 1871 | export ac_cv_exeext |
| 1872 | break;; |
| 1873 | * ) |
| 1874 | break;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1875 | esac |
| 1876 | done |
| 1877 | else |
| 1878 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1879 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1880 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1881 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1882 | See \`config.log' for more details." >&5 |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1883 | echo "$as_me: error: C compiler cannot create executables |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1884 | See \`config.log' for more details." >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1885 | { (exit 77); exit 77; }; } |
| 1886 | fi |
| 1887 | |
| 1888 | ac_exeext=$ac_cv_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1889 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1890 | echo "${ECHO_T}$ac_file" >&6 |
| 1891 | |
| 1892 | # Check the compiler produces executables we can run. If not, either |
| 1893 | # the compiler is broken, or we cross compile. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1894 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1895 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| 1896 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 1897 | # If not cross compiling, check that we can run a simple program. |
| 1898 | if test "$cross_compiling" != yes; then |
| 1899 | if { ac_try='./$ac_file' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1900 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1901 | (eval $ac_try) 2>&5 |
| 1902 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1904 | (exit $ac_status); }; }; then |
| 1905 | cross_compiling=no |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 1906 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1907 | if test "$cross_compiling" = maybe; then |
| 1908 | cross_compiling=yes |
| 1909 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1910 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1911 | If you meant to cross compile, use \`--host'. |
| 1912 | See \`config.log' for more details." >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1913 | echo "$as_me: error: cannot run C compiled programs. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1914 | If you meant to cross compile, use \`--host'. |
| 1915 | See \`config.log' for more details." >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1916 | { (exit 1); exit 1; }; } |
| 1917 | fi |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 1918 | fi |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1919 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1920 | echo "$as_me:$LINENO: result: yes" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1921 | echo "${ECHO_T}yes" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1922 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1923 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1924 | ac_clean_files=$ac_clean_files_save |
| 1925 | # Check the compiler produces executables we can run. If not, either |
| 1926 | # the compiler is broken, or we cross compile. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1927 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1928 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1929 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1930 | echo "${ECHO_T}$cross_compiling" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1931 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1932 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 1933 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 1934 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1935 | (eval $ac_link) 2>&5 |
| 1936 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1938 | (exit $ac_status); }; then |
| 1939 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 1940 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 1941 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 1942 | # `rm'. |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1943 | for ac_file in conftest.exe conftest conftest.*; do |
| 1944 | test -f "$ac_file" || continue |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1945 | case $ac_file in |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1946 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1947 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1948 | export ac_cv_exeext |
| 1949 | break;; |
| 1950 | * ) break;; |
| 1951 | esac |
| 1952 | done |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1953 | else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1954 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 1955 | See \`config.log' for more details." >&5 |
| 1956 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 1957 | See \`config.log' for more details." >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1958 | { (exit 1); exit 1; }; } |
| 1959 | fi |
| 1960 | |
| 1961 | rm -f conftest$ac_cv_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1962 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1963 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 1964 | |
| 1965 | rm -f conftest.$ac_ext |
| 1966 | EXEEXT=$ac_cv_exeext |
| 1967 | ac_exeext=$EXEEXT |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1968 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 1969 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1970 | if test "${ac_cv_objext+set}" = set; then |
| 1971 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1972 | else |
| 1973 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1974 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1975 | /* confdefs.h. */ |
| 1976 | _ACEOF |
| 1977 | cat confdefs.h >>conftest.$ac_ext |
| 1978 | cat >>conftest.$ac_ext <<_ACEOF |
| 1979 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1980 | |
| 1981 | int |
| 1982 | main () |
| 1983 | { |
| 1984 | |
| 1985 | ; |
| 1986 | return 0; |
| 1987 | } |
| 1988 | _ACEOF |
| 1989 | rm -f conftest.o conftest.obj |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1990 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1991 | (eval $ac_compile) 2>&5 |
| 1992 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1994 | (exit $ac_status); }; then |
| 1995 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 1996 | case $ac_file in |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1997 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1998 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 1999 | break;; |
| 2000 | esac |
| 2001 | done |
| 2002 | else |
| 2003 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2004 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2005 | |
| 2006 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2007 | See \`config.log' for more details." >&5 |
| 2008 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2009 | See \`config.log' for more details." >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2010 | { (exit 1); exit 1; }; } |
| 2011 | fi |
| 2012 | |
| 2013 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2014 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2015 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2016 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 2017 | OBJEXT=$ac_cv_objext |
| 2018 | ac_objext=$OBJEXT |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2019 | 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] | 2020 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 2021 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2022 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2023 | else |
| 2024 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2025 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2026 | /* confdefs.h. */ |
| 2027 | _ACEOF |
| 2028 | cat confdefs.h >>conftest.$ac_ext |
| 2029 | cat >>conftest.$ac_ext <<_ACEOF |
| 2030 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2031 | |
| 2032 | int |
| 2033 | main () |
| 2034 | { |
| 2035 | #ifndef __GNUC__ |
| 2036 | choke me |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2037 | #endif |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 2038 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2039 | ; |
| 2040 | return 0; |
| 2041 | } |
| 2042 | _ACEOF |
| 2043 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2044 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2045 | (eval $ac_compile) 2>&5 |
| 2046 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2048 | (exit $ac_status); } && |
| 2049 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2050 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2051 | (eval $ac_try) 2>&5 |
| 2052 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2054 | (exit $ac_status); }; }; then |
| 2055 | ac_compiler_gnu=yes |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2056 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2057 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2058 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2059 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2060 | ac_compiler_gnu=no |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2061 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2062 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2063 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2064 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2065 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2066 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2067 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 2068 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2069 | ac_test_CFLAGS=${CFLAGS+set} |
| 2070 | ac_save_CFLAGS=$CFLAGS |
| 2071 | CFLAGS="-g" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2072 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2073 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 2074 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2075 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2076 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2077 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2078 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2079 | /* confdefs.h. */ |
| 2080 | _ACEOF |
| 2081 | cat confdefs.h >>conftest.$ac_ext |
| 2082 | cat >>conftest.$ac_ext <<_ACEOF |
| 2083 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2084 | |
| 2085 | int |
| 2086 | main () |
| 2087 | { |
| 2088 | |
| 2089 | ; |
| 2090 | return 0; |
| 2091 | } |
| 2092 | _ACEOF |
| 2093 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2094 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2095 | (eval $ac_compile) 2>&5 |
| 2096 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2098 | (exit $ac_status); } && |
| 2099 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2101 | (eval $ac_try) 2>&5 |
| 2102 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2104 | (exit $ac_status); }; }; then |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 2105 | ac_cv_prog_cc_g=yes |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2106 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2107 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2108 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2109 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2110 | ac_cv_prog_cc_g=no |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2111 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2112 | rm -f conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2113 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2114 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2115 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2116 | if test "$ac_test_CFLAGS" = set; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2117 | CFLAGS=$ac_save_CFLAGS |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2118 | elif test $ac_cv_prog_cc_g = yes; then |
| 2119 | if test "$GCC" = yes; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2120 | CFLAGS="-g -O2" |
| 2121 | else |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2122 | CFLAGS="-g" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2123 | fi |
| 2124 | else |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2125 | if test "$GCC" = yes; then |
| 2126 | CFLAGS="-O2" |
| 2127 | else |
| 2128 | CFLAGS= |
| 2129 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2130 | fi |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2131 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 2132 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 2133 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 2134 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2135 | else |
| 2136 | ac_cv_prog_cc_stdc=no |
| 2137 | ac_save_CC=$CC |
| 2138 | cat >conftest.$ac_ext <<_ACEOF |
| 2139 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2140 | /* confdefs.h. */ |
| 2141 | _ACEOF |
| 2142 | cat confdefs.h >>conftest.$ac_ext |
| 2143 | cat >>conftest.$ac_ext <<_ACEOF |
| 2144 | /* end confdefs.h. */ |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2145 | #include <stdarg.h> |
| 2146 | #include <stdio.h> |
| 2147 | #include <sys/types.h> |
| 2148 | #include <sys/stat.h> |
| 2149 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2150 | struct buf { int x; }; |
| 2151 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2152 | static char *e (p, i) |
| 2153 | char **p; |
| 2154 | int i; |
| 2155 | { |
| 2156 | return p[i]; |
| 2157 | } |
| 2158 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2159 | { |
| 2160 | char *s; |
| 2161 | va_list v; |
| 2162 | va_start (v,p); |
| 2163 | s = g (p, va_arg (v,int)); |
| 2164 | va_end (v); |
| 2165 | return s; |
| 2166 | } |
| 2167 | int test (int i, double x); |
| 2168 | struct s1 {int (*f) (int a);}; |
| 2169 | struct s2 {int (*f) (double a);}; |
| 2170 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2171 | int argc; |
| 2172 | char **argv; |
| 2173 | int |
| 2174 | main () |
| 2175 | { |
| 2176 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2177 | ; |
| 2178 | return 0; |
| 2179 | } |
| 2180 | _ACEOF |
| 2181 | # Don't try gcc -ansi; that turns off useful extensions and |
| 2182 | # breaks some systems' header files. |
| 2183 | # AIX -qlanglvl=ansi |
| 2184 | # Ultrix and OSF/1 -std1 |
| 2185 | # HP-UX 10.20 and later -Ae |
| 2186 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 2187 | # SVR4 -Xc -D__EXTENSIONS__ |
| 2188 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 2189 | do |
| 2190 | CC="$ac_save_CC $ac_arg" |
| 2191 | rm -f conftest.$ac_objext |
| 2192 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2193 | (eval $ac_compile) 2>&5 |
| 2194 | ac_status=$? |
| 2195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2196 | (exit $ac_status); } && |
| 2197 | { ac_try='test -s conftest.$ac_objext' |
| 2198 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2199 | (eval $ac_try) 2>&5 |
| 2200 | ac_status=$? |
| 2201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2202 | (exit $ac_status); }; }; then |
| 2203 | ac_cv_prog_cc_stdc=$ac_arg |
| 2204 | break |
| 2205 | else |
| 2206 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2207 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2208 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2209 | fi |
| 2210 | rm -f conftest.$ac_objext |
| 2211 | done |
| 2212 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 2213 | CC=$ac_save_CC |
| 2214 | |
| 2215 | fi |
| 2216 | |
| 2217 | case "x$ac_cv_prog_cc_stdc" in |
| 2218 | x|xno) |
| 2219 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 2220 | echo "${ECHO_T}none needed" >&6 ;; |
| 2221 | *) |
| 2222 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 2223 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 2224 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 2225 | esac |
| 2226 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2227 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2228 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2229 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2230 | # the declaration of exit, since it's the most demanding environment. |
| 2231 | cat >conftest.$ac_ext <<_ACEOF |
| 2232 | #ifndef __cplusplus |
| 2233 | choke me |
| 2234 | #endif |
| 2235 | _ACEOF |
| 2236 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2237 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2238 | (eval $ac_compile) 2>&5 |
| 2239 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2241 | (exit $ac_status); } && |
| 2242 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2243 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2244 | (eval $ac_try) 2>&5 |
| 2245 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2247 | (exit $ac_status); }; }; then |
| 2248 | for ac_declaration in \ |
| 2249 | ''\ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2250 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2251 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2252 | 'extern "C" void exit (int) throw ();' \ |
| 2253 | 'extern "C" void exit (int);' \ |
Juan Lang | 38fa5ad | 2003-05-13 03:32:20 +0000 | [diff] [blame] | 2254 | 'void exit (int);' \ |
| 2255 | '#include <stdlib.h>' |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2256 | do |
| 2257 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2258 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2259 | /* confdefs.h. */ |
| 2260 | _ACEOF |
| 2261 | cat confdefs.h >>conftest.$ac_ext |
| 2262 | cat >>conftest.$ac_ext <<_ACEOF |
| 2263 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2264 | #include <stdlib.h> |
| 2265 | $ac_declaration |
| 2266 | int |
| 2267 | main () |
| 2268 | { |
| 2269 | exit (42); |
| 2270 | ; |
| 2271 | return 0; |
| 2272 | } |
| 2273 | _ACEOF |
| 2274 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2275 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2276 | (eval $ac_compile) 2>&5 |
| 2277 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2279 | (exit $ac_status); } && |
| 2280 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2281 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2282 | (eval $ac_try) 2>&5 |
| 2283 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2285 | (exit $ac_status); }; }; then |
| 2286 | : |
| 2287 | else |
| 2288 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2289 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2290 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2291 | continue |
| 2292 | fi |
| 2293 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2294 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2295 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2296 | /* confdefs.h. */ |
| 2297 | _ACEOF |
| 2298 | cat confdefs.h >>conftest.$ac_ext |
| 2299 | cat >>conftest.$ac_ext <<_ACEOF |
| 2300 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2301 | $ac_declaration |
| 2302 | int |
| 2303 | main () |
| 2304 | { |
| 2305 | exit (42); |
| 2306 | ; |
| 2307 | return 0; |
| 2308 | } |
| 2309 | _ACEOF |
| 2310 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2311 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2312 | (eval $ac_compile) 2>&5 |
| 2313 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2315 | (exit $ac_status); } && |
| 2316 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2317 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2318 | (eval $ac_try) 2>&5 |
| 2319 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2321 | (exit $ac_status); }; }; then |
| 2322 | break |
| 2323 | else |
| 2324 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2325 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2326 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2327 | fi |
| 2328 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2329 | done |
| 2330 | rm -f conftest* |
| 2331 | if test -n "$ac_declaration"; then |
| 2332 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2333 | echo $ac_declaration >>confdefs.h |
| 2334 | echo '#endif' >>confdefs.h |
| 2335 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2336 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2337 | else |
| 2338 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2339 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2340 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2341 | fi |
| 2342 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2343 | ac_ext=c |
| 2344 | ac_cpp='$CPP $CPPFLAGS' |
| 2345 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2346 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2347 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2348 | |
| 2349 | ac_ext=c |
| 2350 | ac_cpp='$CPP $CPPFLAGS' |
| 2351 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2352 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2353 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2354 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2355 | 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] | 2356 | # On Suns, sometimes $CPP names a directory. |
| 2357 | if test -n "$CPP" && test -d "$CPP"; then |
| 2358 | CPP= |
| 2359 | fi |
| 2360 | if test -z "$CPP"; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2361 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 2362 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2363 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2364 | # Double quotes because CPP needs to be expanded |
| 2365 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 2366 | do |
| 2367 | ac_preproc_ok=false |
| 2368 | for ac_c_preproc_warn_flag in '' yes |
| 2369 | do |
| 2370 | # Use a header file that comes with gcc, so configuring glibc |
| 2371 | # with a fresh cross-compiler works. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2372 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2373 | # <limits.h> exists even on freestanding compilers. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2374 | # 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] | 2375 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2376 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2377 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2378 | /* confdefs.h. */ |
| 2379 | _ACEOF |
| 2380 | cat confdefs.h >>conftest.$ac_ext |
| 2381 | cat >>conftest.$ac_ext <<_ACEOF |
| 2382 | /* end confdefs.h. */ |
| 2383 | #ifdef __STDC__ |
| 2384 | # include <limits.h> |
| 2385 | #else |
| 2386 | # include <assert.h> |
| 2387 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2388 | Syntax error |
| 2389 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2390 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2391 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2392 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2393 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2394 | rm -f conftest.er1 |
| 2395 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2397 | (exit $ac_status); } >/dev/null; then |
| 2398 | if test -s conftest.err; then |
| 2399 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2400 | else |
| 2401 | ac_cpp_err= |
| 2402 | fi |
| 2403 | else |
| 2404 | ac_cpp_err=yes |
| 2405 | fi |
| 2406 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2407 | : |
| 2408 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2409 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2410 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2411 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2412 | # Broken: fails on valid input. |
| 2413 | continue |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2414 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2415 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2416 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2417 | # OK, works on sane cases. Now check whether non-existent headers |
| 2418 | # can be detected and how. |
| 2419 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2420 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2421 | /* confdefs.h. */ |
| 2422 | _ACEOF |
| 2423 | cat confdefs.h >>conftest.$ac_ext |
| 2424 | cat >>conftest.$ac_ext <<_ACEOF |
| 2425 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2426 | #include <ac_nonexistent.h> |
| 2427 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2428 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2429 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2430 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2431 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2432 | rm -f conftest.er1 |
| 2433 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2435 | (exit $ac_status); } >/dev/null; then |
| 2436 | if test -s conftest.err; then |
| 2437 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2438 | else |
| 2439 | ac_cpp_err= |
| 2440 | fi |
| 2441 | else |
| 2442 | ac_cpp_err=yes |
| 2443 | fi |
| 2444 | if test -z "$ac_cpp_err"; then |
| 2445 | # Broken: success on invalid input. |
| 2446 | continue |
| 2447 | else |
| 2448 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2449 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2450 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2451 | # Passes both tests. |
| 2452 | ac_preproc_ok=: |
| 2453 | break |
| 2454 | fi |
| 2455 | rm -f conftest.err conftest.$ac_ext |
| 2456 | |
| 2457 | done |
| 2458 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2459 | rm -f conftest.err conftest.$ac_ext |
| 2460 | if $ac_preproc_ok; then |
| 2461 | break |
| 2462 | fi |
| 2463 | |
| 2464 | done |
| 2465 | ac_cv_prog_CPP=$CPP |
| 2466 | |
| 2467 | fi |
| 2468 | CPP=$ac_cv_prog_CPP |
| 2469 | else |
| 2470 | ac_cv_prog_CPP=$CPP |
| 2471 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2472 | echo "$as_me:$LINENO: result: $CPP" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2473 | echo "${ECHO_T}$CPP" >&6 |
| 2474 | ac_preproc_ok=false |
| 2475 | for ac_c_preproc_warn_flag in '' yes |
| 2476 | do |
| 2477 | # Use a header file that comes with gcc, so configuring glibc |
| 2478 | # with a fresh cross-compiler works. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2479 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2480 | # <limits.h> exists even on freestanding compilers. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2481 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 2482 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2483 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2484 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2485 | /* confdefs.h. */ |
| 2486 | _ACEOF |
| 2487 | cat confdefs.h >>conftest.$ac_ext |
| 2488 | cat >>conftest.$ac_ext <<_ACEOF |
| 2489 | /* end confdefs.h. */ |
| 2490 | #ifdef __STDC__ |
| 2491 | # include <limits.h> |
| 2492 | #else |
| 2493 | # include <assert.h> |
| 2494 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2495 | Syntax error |
| 2496 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2497 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2498 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2499 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2500 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2501 | rm -f conftest.er1 |
| 2502 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2504 | (exit $ac_status); } >/dev/null; then |
| 2505 | if test -s conftest.err; then |
| 2506 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2507 | else |
| 2508 | ac_cpp_err= |
| 2509 | fi |
| 2510 | else |
| 2511 | ac_cpp_err=yes |
| 2512 | fi |
| 2513 | if test -z "$ac_cpp_err"; then |
| 2514 | : |
| 2515 | else |
| 2516 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2517 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2518 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2519 | # Broken: fails on valid input. |
| 2520 | continue |
| 2521 | fi |
| 2522 | rm -f conftest.err conftest.$ac_ext |
| 2523 | |
| 2524 | # OK, works on sane cases. Now check whether non-existent headers |
| 2525 | # can be detected and how. |
| 2526 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2527 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2528 | /* confdefs.h. */ |
| 2529 | _ACEOF |
| 2530 | cat confdefs.h >>conftest.$ac_ext |
| 2531 | cat >>conftest.$ac_ext <<_ACEOF |
| 2532 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2533 | #include <ac_nonexistent.h> |
| 2534 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2535 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2536 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2537 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2538 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2539 | rm -f conftest.er1 |
| 2540 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2542 | (exit $ac_status); } >/dev/null; then |
| 2543 | if test -s conftest.err; then |
| 2544 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2545 | else |
| 2546 | ac_cpp_err= |
| 2547 | fi |
| 2548 | else |
| 2549 | ac_cpp_err=yes |
| 2550 | fi |
| 2551 | if test -z "$ac_cpp_err"; then |
| 2552 | # Broken: success on invalid input. |
| 2553 | continue |
| 2554 | else |
| 2555 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2556 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2557 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2558 | # Passes both tests. |
| 2559 | ac_preproc_ok=: |
| 2560 | break |
| 2561 | fi |
| 2562 | rm -f conftest.err conftest.$ac_ext |
| 2563 | |
| 2564 | done |
| 2565 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2566 | rm -f conftest.err conftest.$ac_ext |
| 2567 | if $ac_preproc_ok; then |
| 2568 | : |
| 2569 | else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2570 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 2571 | See \`config.log' for more details." >&5 |
| 2572 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 2573 | See \`config.log' for more details." >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2574 | { (exit 1); exit 1; }; } |
| 2575 | fi |
| 2576 | |
| 2577 | ac_ext=c |
| 2578 | ac_cpp='$CPP $CPPFLAGS' |
| 2579 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2580 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2581 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2582 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2583 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 2584 | echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5 |
| 2585 | echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6 |
| 2586 | if test "${wine_cv_toolsdir+set}" = set; then |
| 2587 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2588 | else |
| 2589 | if test -z "$with_wine_tools"; then |
| 2590 | if test "$cross_compiling" = "yes"; then |
| 2591 | { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5 |
| 2592 | echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;} |
| 2593 | { (exit 1); exit 1; }; } |
| 2594 | else |
| 2595 | wine_cv_toolsdir="\$(TOPOBJDIR)" |
| 2596 | fi |
| 2597 | elif test -d "$with_wine_tools/tools/winebuild"; then |
| 2598 | case $with_wine_tools in |
| 2599 | /*) wine_cv_toolsdir="$with_wine_tools" ;; |
| 2600 | *) wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;; |
| 2601 | esac |
| 2602 | else |
| 2603 | { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5 |
| 2604 | echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;} |
| 2605 | { (exit 1); exit 1; }; } |
| 2606 | fi |
| 2607 | fi |
| 2608 | echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5 |
| 2609 | echo "${ECHO_T}$wine_cv_toolsdir" >&6 |
| 2610 | TOOLSDIR=$wine_cv_toolsdir |
| 2611 | |
| 2612 | |
| 2613 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2614 | |
| 2615 | echo "$as_me:$LINENO: checking for X" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2616 | echo $ECHO_N "checking for X... $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2617 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2618 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2619 | # Check whether --with-x or --without-x was given. |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 2620 | if test "${with_x+set}" = set; then |
| 2621 | withval="$with_x" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2622 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2623 | fi; |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2624 | # $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] | 2625 | if test "x$with_x" = xno; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2626 | # The user explicitly disabled X. |
| 2627 | have_x=disabled |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2628 | else |
| 2629 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2630 | # Both variables are already set. |
| 2631 | have_x=yes |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2632 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2633 | if test "${ac_cv_have_x+set}" = set; then |
| 2634 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2635 | else |
| 2636 | # 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] | 2637 | ac_x_includes=no ac_x_libraries=no |
| 2638 | rm -fr conftest.dir |
| 2639 | if mkdir conftest.dir; then |
| 2640 | cd conftest.dir |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2641 | # 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] | 2642 | cat >Imakefile <<'_ACEOF' |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2643 | acfindx: |
| 2644 | @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] | 2645 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2646 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2647 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 2648 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2649 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
| 2650 | for ac_extension in a so sl; do |
| 2651 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2652 | test -f $ac_im_libdir/libX11.$ac_extension; then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2653 | ac_im_usrlibdir=$ac_im_libdir; break |
| 2654 | fi |
| 2655 | done |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2656 | # Screen out bogus values from the imake configuration. They are |
| 2657 | # bogus both because they are the default anyway, and because |
| 2658 | # using them would break gcc on systems where it needs fixed includes. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2659 | case $ac_im_incroot in |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2660 | /usr/include) ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2661 | *) 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] | 2662 | esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2663 | case $ac_im_usrlibdir in |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2664 | /usr/lib | /lib) ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2665 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2666 | esac |
| 2667 | fi |
| 2668 | cd .. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2669 | rm -fr conftest.dir |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2670 | fi |
| 2671 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2672 | # Standard set of common directories for X headers. |
| 2673 | # Check X11 before X11Rn because it is often a symlink to the current release. |
| 2674 | ac_x_header_dirs=' |
| 2675 | /usr/X11/include |
| 2676 | /usr/X11R6/include |
| 2677 | /usr/X11R5/include |
| 2678 | /usr/X11R4/include |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2679 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2680 | /usr/include/X11 |
| 2681 | /usr/include/X11R6 |
| 2682 | /usr/include/X11R5 |
| 2683 | /usr/include/X11R4 |
| 2684 | |
| 2685 | /usr/local/X11/include |
| 2686 | /usr/local/X11R6/include |
| 2687 | /usr/local/X11R5/include |
| 2688 | /usr/local/X11R4/include |
| 2689 | |
| 2690 | /usr/local/include/X11 |
| 2691 | /usr/local/include/X11R6 |
| 2692 | /usr/local/include/X11R5 |
| 2693 | /usr/local/include/X11R4 |
| 2694 | |
| 2695 | /usr/X386/include |
| 2696 | /usr/x386/include |
| 2697 | /usr/XFree86/include/X11 |
| 2698 | |
| 2699 | /usr/include |
| 2700 | /usr/local/include |
| 2701 | /usr/unsupported/include |
| 2702 | /usr/athena/include |
| 2703 | /usr/local/x11r5/include |
| 2704 | /usr/lpp/Xamples/include |
| 2705 | |
| 2706 | /usr/openwin/include |
| 2707 | /usr/openwin/share/include' |
| 2708 | |
| 2709 | if test "$ac_x_includes" = no; then |
| 2710 | # Guess where to find include files, by looking for Intrinsic.h. |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2711 | # First, try using that file with no special directory specified. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2712 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2713 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2714 | /* confdefs.h. */ |
| 2715 | _ACEOF |
| 2716 | cat confdefs.h >>conftest.$ac_ext |
| 2717 | cat >>conftest.$ac_ext <<_ACEOF |
| 2718 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2719 | #include <X11/Intrinsic.h> |
| 2720 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2721 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2722 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2723 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2724 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2725 | rm -f conftest.er1 |
| 2726 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2728 | (exit $ac_status); } >/dev/null; then |
| 2729 | if test -s conftest.err; then |
| 2730 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2731 | else |
| 2732 | ac_cpp_err= |
| 2733 | fi |
| 2734 | else |
| 2735 | ac_cpp_err=yes |
| 2736 | fi |
| 2737 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2738 | # We can compile using X headers with no special include directory. |
| 2739 | ac_x_includes= |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2740 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2741 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2742 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2743 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2744 | for ac_dir in $ac_x_header_dirs; do |
| 2745 | if test -r "$ac_dir/X11/Intrinsic.h"; then |
| 2746 | ac_x_includes=$ac_dir |
| 2747 | break |
| 2748 | fi |
| 2749 | done |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2750 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2751 | rm -f conftest.err conftest.$ac_ext |
| 2752 | fi # $ac_x_includes = no |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2753 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2754 | if test "$ac_x_libraries" = no; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2755 | # Check for the libraries. |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2756 | # See if we find them without any special options. |
| 2757 | # Don't add to $LIBS permanently. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2758 | ac_save_LIBS=$LIBS |
| 2759 | LIBS="-lXt $LIBS" |
| 2760 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2761 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2762 | /* confdefs.h. */ |
| 2763 | _ACEOF |
| 2764 | cat confdefs.h >>conftest.$ac_ext |
| 2765 | cat >>conftest.$ac_ext <<_ACEOF |
| 2766 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2767 | #include <X11/Intrinsic.h> |
| 2768 | int |
| 2769 | main () |
| 2770 | { |
| 2771 | XtMalloc (0) |
| 2772 | ; |
| 2773 | return 0; |
| 2774 | } |
| 2775 | _ACEOF |
| 2776 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2777 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2778 | (eval $ac_link) 2>&5 |
| 2779 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2781 | (exit $ac_status); } && |
| 2782 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2783 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2784 | (eval $ac_try) 2>&5 |
| 2785 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2787 | (exit $ac_status); }; }; then |
| 2788 | LIBS=$ac_save_LIBS |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2789 | # We can link X programs with no special library path. |
| 2790 | ac_x_libraries= |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2791 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2792 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2793 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2794 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2795 | LIBS=$ac_save_LIBS |
| 2796 | 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] | 2797 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2798 | # 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] | 2799 | for ac_extension in a so sl; do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2800 | if test -r $ac_dir/libXt.$ac_extension; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2801 | ac_x_libraries=$ac_dir |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2802 | break 2 |
| 2803 | fi |
| 2804 | done |
| 2805 | done |
| 2806 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2807 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 2808 | fi # $ac_x_libraries = no |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2809 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2810 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2811 | # Didn't find X anywhere. Cache the known absence of X. |
| 2812 | ac_cv_have_x="have_x=no" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2813 | else |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2814 | # Record where we found X for the cache. |
| 2815 | ac_cv_have_x="have_x=yes \ |
| 2816 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2817 | fi |
| 2818 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2819 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2820 | fi |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2821 | eval "$ac_cv_have_x" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2822 | fi # $with_x != no |
| 2823 | |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2824 | if test "$have_x" != yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2825 | echo "$as_me:$LINENO: result: $have_x" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2826 | echo "${ECHO_T}$have_x" >&6 |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2827 | no_x=yes |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2828 | else |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2829 | # 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] | 2830 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
| 2831 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2832 | # Update the cache value to reflect the command line values. |
| 2833 | ac_cv_have_x="have_x=yes \ |
| 2834 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2835 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2836 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2837 | fi |
| 2838 | |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2839 | if test "$no_x" = yes; then |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2840 | # 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] | 2841 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2842 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2843 | #define X_DISPLAY_MISSING 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2844 | _ACEOF |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2845 | |
| 2846 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2847 | else |
| 2848 | if test -n "$x_includes"; then |
| 2849 | X_CFLAGS="$X_CFLAGS -I$x_includes" |
| 2850 | fi |
| 2851 | |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2852 | # It would also be nice to do this for all -L options, not just this one. |
| 2853 | if test -n "$x_libraries"; then |
| 2854 | X_LIBS="$X_LIBS -L$x_libraries" |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2855 | # For Solaris; some versions of Sun CC require a space after -R and |
| 2856 | # others require no space. Words are not sufficient . . . . |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2857 | case `(uname -sr) 2>/dev/null` in |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2858 | "SunOS 5"*) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2859 | 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] | 2860 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 |
| 2861 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" |
| 2862 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2863 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2864 | /* confdefs.h. */ |
| 2865 | _ACEOF |
| 2866 | cat confdefs.h >>conftest.$ac_ext |
| 2867 | cat >>conftest.$ac_ext <<_ACEOF |
| 2868 | /* end confdefs.h. */ |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2869 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2870 | int |
| 2871 | main () |
| 2872 | { |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2873 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2874 | ; |
| 2875 | return 0; |
| 2876 | } |
| 2877 | _ACEOF |
| 2878 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2879 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2880 | (eval $ac_link) 2>&5 |
| 2881 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2883 | (exit $ac_status); } && |
| 2884 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2885 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2886 | (eval $ac_try) 2>&5 |
| 2887 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2889 | (exit $ac_status); }; }; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2890 | ac_R_nospace=yes |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2891 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2892 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2893 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2894 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2895 | ac_R_nospace=no |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2896 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2897 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2898 | if test $ac_R_nospace = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2899 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2900 | echo "${ECHO_T}no" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2901 | X_LIBS="$X_LIBS -R$x_libraries" |
| 2902 | else |
| 2903 | LIBS="$ac_xsave_LIBS -R $x_libraries" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2904 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2905 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2906 | /* confdefs.h. */ |
| 2907 | _ACEOF |
| 2908 | cat confdefs.h >>conftest.$ac_ext |
| 2909 | cat >>conftest.$ac_ext <<_ACEOF |
| 2910 | /* end confdefs.h. */ |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2911 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2912 | int |
| 2913 | main () |
| 2914 | { |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2915 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2916 | ; |
| 2917 | return 0; |
| 2918 | } |
| 2919 | _ACEOF |
| 2920 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2921 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2922 | (eval $ac_link) 2>&5 |
| 2923 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2925 | (exit $ac_status); } && |
| 2926 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2927 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2928 | (eval $ac_try) 2>&5 |
| 2929 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2931 | (exit $ac_status); }; }; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2932 | ac_R_space=yes |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2933 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2934 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2935 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2936 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2937 | ac_R_space=no |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2938 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2939 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2940 | if test $ac_R_space = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2941 | echo "$as_me:$LINENO: result: yes" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2942 | echo "${ECHO_T}yes" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2943 | X_LIBS="$X_LIBS -R $x_libraries" |
| 2944 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2945 | echo "$as_me:$LINENO: result: neither works" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2946 | echo "${ECHO_T}neither works" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2947 | fi |
| 2948 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2949 | LIBS=$ac_xsave_LIBS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2950 | esac |
| 2951 | fi |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2952 | |
| 2953 | # Check for system-dependent libraries X programs must link with. |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2954 | # Do this before checking for the system-independent R6 libraries |
| 2955 | # (-lICE), since we may need -lsocket or whatever for X linking. |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2956 | |
| 2957 | if test "$ISC" = yes; then |
| 2958 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" |
| 2959 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2960 | # Martyn Johnson says this is needed for Ultrix, if the X |
| 2961 | # libraries were built with DECnet support. And Karl Berry says |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2962 | # the Alpha needs dnet_stub (dnet does not exist). |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2963 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
| 2964 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2965 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2966 | /* confdefs.h. */ |
| 2967 | _ACEOF |
| 2968 | cat confdefs.h >>conftest.$ac_ext |
| 2969 | cat >>conftest.$ac_ext <<_ACEOF |
| 2970 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2971 | |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 2972 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2973 | #ifdef __cplusplus |
| 2974 | extern "C" |
| 2975 | #endif |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 2976 | /* 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] | 2977 | builtin and then its argument prototype would still apply. */ |
| 2978 | char XOpenDisplay (); |
| 2979 | int |
| 2980 | main () |
| 2981 | { |
| 2982 | XOpenDisplay (); |
| 2983 | ; |
| 2984 | return 0; |
| 2985 | } |
| 2986 | _ACEOF |
| 2987 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2988 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2989 | (eval $ac_link) 2>&5 |
| 2990 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2992 | (exit $ac_status); } && |
| 2993 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2994 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2995 | (eval $ac_try) 2>&5 |
| 2996 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2998 | (exit $ac_status); }; }; then |
| 2999 | : |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3000 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3001 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3002 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3003 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3004 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3005 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 |
| 3006 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then |
| 3007 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3008 | else |
| 3009 | ac_check_lib_save_LIBS=$LIBS |
| 3010 | LIBS="-ldnet $LIBS" |
| 3011 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3012 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3013 | /* confdefs.h. */ |
| 3014 | _ACEOF |
| 3015 | cat confdefs.h >>conftest.$ac_ext |
| 3016 | cat >>conftest.$ac_ext <<_ACEOF |
| 3017 | /* end confdefs.h. */ |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3018 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3019 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3020 | #ifdef __cplusplus |
| 3021 | extern "C" |
| 3022 | #endif |
| 3023 | /* We use char because int might match the return type of a gcc2 |
| 3024 | builtin and then its argument prototype would still apply. */ |
| 3025 | char dnet_ntoa (); |
| 3026 | int |
| 3027 | main () |
| 3028 | { |
| 3029 | dnet_ntoa (); |
| 3030 | ; |
| 3031 | return 0; |
| 3032 | } |
| 3033 | _ACEOF |
| 3034 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3035 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3036 | (eval $ac_link) 2>&5 |
| 3037 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3039 | (exit $ac_status); } && |
| 3040 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3041 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3042 | (eval $ac_try) 2>&5 |
| 3043 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3045 | (exit $ac_status); }; }; then |
| 3046 | ac_cv_lib_dnet_dnet_ntoa=yes |
| 3047 | else |
| 3048 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3049 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3050 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3051 | ac_cv_lib_dnet_dnet_ntoa=no |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3052 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3053 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3054 | LIBS=$ac_check_lib_save_LIBS |
| 3055 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3056 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3057 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 |
| 3058 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3059 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3060 | fi |
| 3061 | |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 3062 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3063 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3064 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 |
| 3065 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then |
| 3066 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3067 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3068 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3069 | LIBS="-ldnet_stub $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3070 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3071 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3072 | /* confdefs.h. */ |
| 3073 | _ACEOF |
| 3074 | cat confdefs.h >>conftest.$ac_ext |
| 3075 | cat >>conftest.$ac_ext <<_ACEOF |
| 3076 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3077 | |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 3078 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3079 | #ifdef __cplusplus |
| 3080 | extern "C" |
| 3081 | #endif |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 3082 | /* 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] | 3083 | builtin and then its argument prototype would still apply. */ |
| 3084 | char dnet_ntoa (); |
| 3085 | int |
| 3086 | main () |
| 3087 | { |
| 3088 | dnet_ntoa (); |
| 3089 | ; |
| 3090 | return 0; |
| 3091 | } |
| 3092 | _ACEOF |
| 3093 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3094 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3095 | (eval $ac_link) 2>&5 |
| 3096 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3098 | (exit $ac_status); } && |
| 3099 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3101 | (eval $ac_try) 2>&5 |
| 3102 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3104 | (exit $ac_status); }; }; then |
| 3105 | ac_cv_lib_dnet_stub_dnet_ntoa=yes |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3106 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3107 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3108 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3109 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3110 | ac_cv_lib_dnet_stub_dnet_ntoa=no |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3111 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3112 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3113 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3114 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3115 | 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] | 3116 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 |
| 3117 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3118 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3119 | fi |
| 3120 | |
| 3121 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3122 | fi |
| 3123 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3124 | LIBS="$ac_xsave_LIBS" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3125 | |
| 3126 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
| 3127 | # to get the SysV transport functions. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3128 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3129 | # needs -lnsl. |
| 3130 | # The nsl library prevents programs from opening the X display |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3131 | # on Irix 5.2, according to T.E. Dickey. |
| 3132 | # The functions gethostbyname, getservbyname, and inet_addr are |
| 3133 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3134 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3135 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 |
| 3136 | if test "${ac_cv_func_gethostbyname+set}" = set; then |
| 3137 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3138 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3139 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3140 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3141 | /* confdefs.h. */ |
| 3142 | _ACEOF |
| 3143 | cat confdefs.h >>conftest.$ac_ext |
| 3144 | cat >>conftest.$ac_ext <<_ACEOF |
| 3145 | /* end confdefs.h. */ |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3146 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3147 | which can conflict with char gethostbyname (); below. |
| 3148 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3149 | <limits.h> exists even on freestanding compilers. */ |
| 3150 | #ifdef __STDC__ |
| 3151 | # include <limits.h> |
| 3152 | #else |
| 3153 | # include <assert.h> |
| 3154 | #endif |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3155 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3156 | #ifdef __cplusplus |
| 3157 | extern "C" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3158 | { |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3159 | #endif |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3160 | /* 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] | 3161 | builtin and then its argument prototype would still apply. */ |
| 3162 | char gethostbyname (); |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3163 | /* The GNU C library defines this for functions which it implements |
| 3164 | to always fail with ENOSYS. Some functions are actually named |
| 3165 | something starting with __ and the normal name is an alias. */ |
| 3166 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) |
| 3167 | choke me |
| 3168 | #else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3169 | char (*f) () = gethostbyname; |
| 3170 | #endif |
| 3171 | #ifdef __cplusplus |
| 3172 | } |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3173 | #endif |
| 3174 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3175 | int |
| 3176 | main () |
| 3177 | { |
| 3178 | return f != gethostbyname; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3179 | ; |
| 3180 | return 0; |
| 3181 | } |
| 3182 | _ACEOF |
| 3183 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3184 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3185 | (eval $ac_link) 2>&5 |
| 3186 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3188 | (exit $ac_status); } && |
| 3189 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3190 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3191 | (eval $ac_try) 2>&5 |
| 3192 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3194 | (exit $ac_status); }; }; then |
| 3195 | ac_cv_func_gethostbyname=yes |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3196 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3197 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3198 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3199 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3200 | ac_cv_func_gethostbyname=no |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3201 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3202 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3203 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3204 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3205 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3206 | |
| 3207 | if test $ac_cv_func_gethostbyname = no; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3208 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3209 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 |
| 3210 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
| 3211 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3212 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3213 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3214 | LIBS="-lnsl $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3215 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3216 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3217 | /* confdefs.h. */ |
| 3218 | _ACEOF |
| 3219 | cat confdefs.h >>conftest.$ac_ext |
| 3220 | cat >>conftest.$ac_ext <<_ACEOF |
| 3221 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3222 | |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 3223 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3224 | #ifdef __cplusplus |
| 3225 | extern "C" |
| 3226 | #endif |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 3227 | /* 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] | 3228 | builtin and then its argument prototype would still apply. */ |
| 3229 | char gethostbyname (); |
| 3230 | int |
| 3231 | main () |
| 3232 | { |
| 3233 | gethostbyname (); |
| 3234 | ; |
| 3235 | return 0; |
| 3236 | } |
| 3237 | _ACEOF |
| 3238 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3239 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3240 | (eval $ac_link) 2>&5 |
| 3241 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3243 | (exit $ac_status); } && |
| 3244 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3245 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3246 | (eval $ac_try) 2>&5 |
| 3247 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3249 | (exit $ac_status); }; }; then |
| 3250 | ac_cv_lib_nsl_gethostbyname=yes |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3251 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3252 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3253 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3254 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3255 | ac_cv_lib_nsl_gethostbyname=no |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3256 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3257 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3258 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3259 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3260 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3261 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 |
| 3262 | if test $ac_cv_lib_nsl_gethostbyname = yes; then |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3263 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3264 | fi |
| 3265 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3266 | if test $ac_cv_lib_nsl_gethostbyname = no; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3267 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3268 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 |
| 3269 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then |
| 3270 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3271 | else |
| 3272 | ac_check_lib_save_LIBS=$LIBS |
| 3273 | LIBS="-lbsd $LIBS" |
| 3274 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3275 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3276 | /* confdefs.h. */ |
| 3277 | _ACEOF |
| 3278 | cat confdefs.h >>conftest.$ac_ext |
| 3279 | cat >>conftest.$ac_ext <<_ACEOF |
| 3280 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3281 | |
| 3282 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3283 | #ifdef __cplusplus |
| 3284 | extern "C" |
| 3285 | #endif |
| 3286 | /* We use char because int might match the return type of a gcc2 |
| 3287 | builtin and then its argument prototype would still apply. */ |
| 3288 | char gethostbyname (); |
| 3289 | int |
| 3290 | main () |
| 3291 | { |
| 3292 | gethostbyname (); |
| 3293 | ; |
| 3294 | return 0; |
| 3295 | } |
| 3296 | _ACEOF |
| 3297 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3298 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3299 | (eval $ac_link) 2>&5 |
| 3300 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3302 | (exit $ac_status); } && |
| 3303 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3304 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3305 | (eval $ac_try) 2>&5 |
| 3306 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3308 | (exit $ac_status); }; }; then |
| 3309 | ac_cv_lib_bsd_gethostbyname=yes |
| 3310 | else |
| 3311 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3312 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3313 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3314 | ac_cv_lib_bsd_gethostbyname=no |
| 3315 | fi |
| 3316 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3317 | LIBS=$ac_check_lib_save_LIBS |
| 3318 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3319 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3320 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 |
| 3321 | if test $ac_cv_lib_bsd_gethostbyname = yes; then |
| 3322 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" |
| 3323 | fi |
| 3324 | |
| 3325 | fi |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3326 | fi |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3327 | |
| 3328 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3329 | # socket/setsockopt and other routines are undefined under SCO ODT |
| 3330 | # 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] | 3331 | # on later versions), says Simon Leinen: it contains gethostby* |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3332 | # variants that don't use the name server (or something). -lsocket |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3333 | # must be given before -lnsl if both are needed. We assume that |
| 3334 | # if connect needs -lnsl, so does gethostbyname. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3335 | echo "$as_me:$LINENO: checking for connect" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3336 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 |
| 3337 | if test "${ac_cv_func_connect+set}" = set; then |
| 3338 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3339 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3340 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3341 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3342 | /* confdefs.h. */ |
| 3343 | _ACEOF |
| 3344 | cat confdefs.h >>conftest.$ac_ext |
| 3345 | cat >>conftest.$ac_ext <<_ACEOF |
| 3346 | /* end confdefs.h. */ |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3347 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3348 | which can conflict with char connect (); below. |
| 3349 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3350 | <limits.h> exists even on freestanding compilers. */ |
| 3351 | #ifdef __STDC__ |
| 3352 | # include <limits.h> |
| 3353 | #else |
| 3354 | # include <assert.h> |
| 3355 | #endif |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3356 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3357 | #ifdef __cplusplus |
| 3358 | extern "C" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3359 | { |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3360 | #endif |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3361 | /* 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] | 3362 | builtin and then its argument prototype would still apply. */ |
| 3363 | char connect (); |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3364 | /* The GNU C library defines this for functions which it implements |
| 3365 | to always fail with ENOSYS. Some functions are actually named |
| 3366 | something starting with __ and the normal name is an alias. */ |
| 3367 | #if defined (__stub_connect) || defined (__stub___connect) |
| 3368 | choke me |
| 3369 | #else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3370 | char (*f) () = connect; |
| 3371 | #endif |
| 3372 | #ifdef __cplusplus |
| 3373 | } |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3374 | #endif |
| 3375 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3376 | int |
| 3377 | main () |
| 3378 | { |
| 3379 | return f != connect; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3380 | ; |
| 3381 | return 0; |
| 3382 | } |
| 3383 | _ACEOF |
| 3384 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3385 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3386 | (eval $ac_link) 2>&5 |
| 3387 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3389 | (exit $ac_status); } && |
| 3390 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3391 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3392 | (eval $ac_try) 2>&5 |
| 3393 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3395 | (exit $ac_status); }; }; then |
| 3396 | ac_cv_func_connect=yes |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3397 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3398 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3399 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3400 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3401 | ac_cv_func_connect=no |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3402 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3403 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3404 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3405 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3406 | echo "${ECHO_T}$ac_cv_func_connect" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3407 | |
| 3408 | if test $ac_cv_func_connect = no; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3409 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3410 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 |
| 3411 | if test "${ac_cv_lib_socket_connect+set}" = set; then |
| 3412 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3413 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3414 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3415 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3416 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3417 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3418 | /* confdefs.h. */ |
| 3419 | _ACEOF |
| 3420 | cat confdefs.h >>conftest.$ac_ext |
| 3421 | cat >>conftest.$ac_ext <<_ACEOF |
| 3422 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3423 | |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 3424 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3425 | #ifdef __cplusplus |
| 3426 | extern "C" |
| 3427 | #endif |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 3428 | /* 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] | 3429 | builtin and then its argument prototype would still apply. */ |
| 3430 | char connect (); |
| 3431 | int |
| 3432 | main () |
| 3433 | { |
| 3434 | connect (); |
| 3435 | ; |
| 3436 | return 0; |
| 3437 | } |
| 3438 | _ACEOF |
| 3439 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3440 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3441 | (eval $ac_link) 2>&5 |
| 3442 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3444 | (exit $ac_status); } && |
| 3445 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3446 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3447 | (eval $ac_try) 2>&5 |
| 3448 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3450 | (exit $ac_status); }; }; then |
| 3451 | ac_cv_lib_socket_connect=yes |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3452 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3453 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3454 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3455 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3456 | ac_cv_lib_socket_connect=no |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3457 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3458 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3459 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3460 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3461 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3462 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 |
| 3463 | if test $ac_cv_lib_socket_connect = yes; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3464 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3465 | fi |
| 3466 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3467 | fi |
| 3468 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3469 | # Guillermo Gomez says -lposix is necessary on A/UX. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3470 | echo "$as_me:$LINENO: checking for remove" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3471 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 |
| 3472 | if test "${ac_cv_func_remove+set}" = set; then |
| 3473 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3474 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3475 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3476 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3477 | /* confdefs.h. */ |
| 3478 | _ACEOF |
| 3479 | cat confdefs.h >>conftest.$ac_ext |
| 3480 | cat >>conftest.$ac_ext <<_ACEOF |
| 3481 | /* end confdefs.h. */ |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3482 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3483 | which can conflict with char remove (); below. |
| 3484 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3485 | <limits.h> exists even on freestanding compilers. */ |
| 3486 | #ifdef __STDC__ |
| 3487 | # include <limits.h> |
| 3488 | #else |
| 3489 | # include <assert.h> |
| 3490 | #endif |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3491 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3492 | #ifdef __cplusplus |
| 3493 | extern "C" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3494 | { |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3495 | #endif |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3496 | /* 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] | 3497 | builtin and then its argument prototype would still apply. */ |
| 3498 | char remove (); |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3499 | /* The GNU C library defines this for functions which it implements |
| 3500 | to always fail with ENOSYS. Some functions are actually named |
| 3501 | something starting with __ and the normal name is an alias. */ |
| 3502 | #if defined (__stub_remove) || defined (__stub___remove) |
| 3503 | choke me |
| 3504 | #else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3505 | char (*f) () = remove; |
| 3506 | #endif |
| 3507 | #ifdef __cplusplus |
| 3508 | } |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3509 | #endif |
| 3510 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3511 | int |
| 3512 | main () |
| 3513 | { |
| 3514 | return f != remove; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3515 | ; |
| 3516 | return 0; |
| 3517 | } |
| 3518 | _ACEOF |
| 3519 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3520 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3521 | (eval $ac_link) 2>&5 |
| 3522 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3524 | (exit $ac_status); } && |
| 3525 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3527 | (eval $ac_try) 2>&5 |
| 3528 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3530 | (exit $ac_status); }; }; then |
| 3531 | ac_cv_func_remove=yes |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3532 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3533 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3534 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3535 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3536 | ac_cv_func_remove=no |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3537 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3538 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3539 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3540 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3541 | echo "${ECHO_T}$ac_cv_func_remove" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3542 | |
| 3543 | if test $ac_cv_func_remove = no; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3544 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3545 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 |
| 3546 | if test "${ac_cv_lib_posix_remove+set}" = set; then |
| 3547 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 3548 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3549 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3550 | LIBS="-lposix $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3551 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3552 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3553 | /* confdefs.h. */ |
| 3554 | _ACEOF |
| 3555 | cat confdefs.h >>conftest.$ac_ext |
| 3556 | cat >>conftest.$ac_ext <<_ACEOF |
| 3557 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3558 | |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 3559 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3560 | #ifdef __cplusplus |
| 3561 | extern "C" |
| 3562 | #endif |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 3563 | /* 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] | 3564 | builtin and then its argument prototype would still apply. */ |
| 3565 | char remove (); |
| 3566 | int |
| 3567 | main () |
| 3568 | { |
| 3569 | remove (); |
| 3570 | ; |
| 3571 | return 0; |
| 3572 | } |
| 3573 | _ACEOF |
| 3574 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3575 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3576 | (eval $ac_link) 2>&5 |
| 3577 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3579 | (exit $ac_status); } && |
| 3580 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3581 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3582 | (eval $ac_try) 2>&5 |
| 3583 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3585 | (exit $ac_status); }; }; then |
| 3586 | ac_cv_lib_posix_remove=yes |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 3587 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3588 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3589 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3590 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3591 | ac_cv_lib_posix_remove=no |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 3592 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3593 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3594 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 3595 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3596 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3597 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 |
| 3598 | if test $ac_cv_lib_posix_remove = yes; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3599 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 3600 | fi |
| 3601 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3602 | fi |
| 3603 | |
| 3604 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3605 | echo "$as_me:$LINENO: checking for shmat" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3606 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 |
| 3607 | if test "${ac_cv_func_shmat+set}" = set; then |
| 3608 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3609 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3610 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3611 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3612 | /* confdefs.h. */ |
| 3613 | _ACEOF |
| 3614 | cat confdefs.h >>conftest.$ac_ext |
| 3615 | cat >>conftest.$ac_ext <<_ACEOF |
| 3616 | /* end confdefs.h. */ |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3617 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3618 | which can conflict with char shmat (); below. |
| 3619 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3620 | <limits.h> exists even on freestanding compilers. */ |
| 3621 | #ifdef __STDC__ |
| 3622 | # include <limits.h> |
| 3623 | #else |
| 3624 | # include <assert.h> |
| 3625 | #endif |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3626 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3627 | #ifdef __cplusplus |
| 3628 | extern "C" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3629 | { |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3630 | #endif |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3631 | /* 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] | 3632 | builtin and then its argument prototype would still apply. */ |
| 3633 | char shmat (); |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3634 | /* The GNU C library defines this for functions which it implements |
| 3635 | to always fail with ENOSYS. Some functions are actually named |
| 3636 | something starting with __ and the normal name is an alias. */ |
| 3637 | #if defined (__stub_shmat) || defined (__stub___shmat) |
| 3638 | choke me |
| 3639 | #else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3640 | char (*f) () = shmat; |
| 3641 | #endif |
| 3642 | #ifdef __cplusplus |
| 3643 | } |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3644 | #endif |
| 3645 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3646 | int |
| 3647 | main () |
| 3648 | { |
| 3649 | return f != shmat; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3650 | ; |
| 3651 | return 0; |
| 3652 | } |
| 3653 | _ACEOF |
| 3654 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3655 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3656 | (eval $ac_link) 2>&5 |
| 3657 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3659 | (exit $ac_status); } && |
| 3660 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3661 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3662 | (eval $ac_try) 2>&5 |
| 3663 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3665 | (exit $ac_status); }; }; then |
| 3666 | ac_cv_func_shmat=yes |
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 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3669 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3670 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3671 | ac_cv_func_shmat=no |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3672 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3673 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3674 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3675 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3676 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3677 | |
| 3678 | if test $ac_cv_func_shmat = no; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3679 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3680 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 |
| 3681 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then |
| 3682 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3683 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3684 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3685 | LIBS="-lipc $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3686 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3687 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3688 | /* confdefs.h. */ |
| 3689 | _ACEOF |
| 3690 | cat confdefs.h >>conftest.$ac_ext |
| 3691 | cat >>conftest.$ac_ext <<_ACEOF |
| 3692 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3693 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3694 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3695 | #ifdef __cplusplus |
| 3696 | extern "C" |
| 3697 | #endif |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3698 | /* 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] | 3699 | builtin and then its argument prototype would still apply. */ |
| 3700 | char shmat (); |
| 3701 | int |
| 3702 | main () |
| 3703 | { |
| 3704 | shmat (); |
| 3705 | ; |
| 3706 | return 0; |
| 3707 | } |
| 3708 | _ACEOF |
| 3709 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3710 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3711 | (eval $ac_link) 2>&5 |
| 3712 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3714 | (exit $ac_status); } && |
| 3715 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3717 | (eval $ac_try) 2>&5 |
| 3718 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3720 | (exit $ac_status); }; }; then |
| 3721 | ac_cv_lib_ipc_shmat=yes |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3722 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3723 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3724 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3725 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3726 | ac_cv_lib_ipc_shmat=no |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3727 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3728 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3729 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3730 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3731 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3732 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 |
| 3733 | if test $ac_cv_lib_ipc_shmat = yes; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3734 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3735 | fi |
| 3736 | |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3737 | fi |
| 3738 | fi |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3739 | |
| 3740 | # Check for libraries that X11R6 Xt/Xaw programs need. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3741 | ac_save_LDFLAGS=$LDFLAGS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3742 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
| 3743 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to |
| 3744 | # check for ICE first), but we must link in the order -lSM -lICE or |
| 3745 | # we get undefined symbols. So assume we have SM if we have ICE. |
| 3746 | # These have to be linked with before -lX11, unlike the other |
| 3747 | # libraries we check for below, so use a different variable. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3748 | # John Interrante, Karl Berry |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3749 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3750 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 |
| 3751 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then |
| 3752 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3753 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3754 | ac_check_lib_save_LIBS=$LIBS |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 3755 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3756 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3757 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3758 | /* confdefs.h. */ |
| 3759 | _ACEOF |
| 3760 | cat confdefs.h >>conftest.$ac_ext |
| 3761 | cat >>conftest.$ac_ext <<_ACEOF |
| 3762 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3763 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3764 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3765 | #ifdef __cplusplus |
| 3766 | extern "C" |
| 3767 | #endif |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3768 | /* 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] | 3769 | builtin and then its argument prototype would still apply. */ |
| 3770 | char IceConnectionNumber (); |
| 3771 | int |
| 3772 | main () |
| 3773 | { |
| 3774 | IceConnectionNumber (); |
| 3775 | ; |
| 3776 | return 0; |
| 3777 | } |
| 3778 | _ACEOF |
| 3779 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3780 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3781 | (eval $ac_link) 2>&5 |
| 3782 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3784 | (exit $ac_status); } && |
| 3785 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3786 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3787 | (eval $ac_try) 2>&5 |
| 3788 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3790 | (exit $ac_status); }; }; then |
| 3791 | ac_cv_lib_ICE_IceConnectionNumber=yes |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3792 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3793 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3794 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3795 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3796 | ac_cv_lib_ICE_IceConnectionNumber=no |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3797 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3798 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3799 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3800 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3801 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3802 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 |
| 3803 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3804 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3805 | fi |
| 3806 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3807 | LDFLAGS=$ac_save_LDFLAGS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3808 | |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3809 | fi |
| 3810 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3811 | for ac_prog in 'bison -y' byacc |
| 3812 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3813 | # 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] | 3814 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3815 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3816 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3817 | if test "${ac_cv_prog_YACC+set}" = set; then |
| 3818 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3819 | else |
| 3820 | if test -n "$YACC"; then |
| 3821 | ac_cv_prog_YACC="$YACC" # Let the user override the test. |
| 3822 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3823 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3824 | for as_dir in $PATH |
| 3825 | do |
| 3826 | IFS=$as_save_IFS |
| 3827 | test -z "$as_dir" && as_dir=. |
| 3828 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3829 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3830 | ac_cv_prog_YACC="$ac_prog" |
| 3831 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3832 | break 2 |
| 3833 | fi |
| 3834 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3835 | done |
| 3836 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3837 | fi |
| 3838 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3839 | YACC=$ac_cv_prog_YACC |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3840 | if test -n "$YACC"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3841 | echo "$as_me:$LINENO: result: $YACC" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3842 | echo "${ECHO_T}$YACC" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3843 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3844 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3845 | echo "${ECHO_T}no" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3846 | fi |
| 3847 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3848 | test -n "$YACC" && break |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3849 | done |
| 3850 | test -n "$YACC" || YACC="yacc" |
| 3851 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3852 | for ac_prog in flex lex |
| 3853 | do |
| 3854 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3855 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3856 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3857 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3858 | if test "${ac_cv_prog_LEX+set}" = set; then |
| 3859 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3860 | else |
| 3861 | if test -n "$LEX"; then |
| 3862 | ac_cv_prog_LEX="$LEX" # Let the user override the test. |
| 3863 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3864 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3865 | for as_dir in $PATH |
| 3866 | do |
| 3867 | IFS=$as_save_IFS |
| 3868 | test -z "$as_dir" && as_dir=. |
| 3869 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3870 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3871 | ac_cv_prog_LEX="$ac_prog" |
| 3872 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3873 | break 2 |
| 3874 | fi |
| 3875 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3876 | done |
| 3877 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3878 | fi |
| 3879 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3880 | LEX=$ac_cv_prog_LEX |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3881 | if test -n "$LEX"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3882 | echo "$as_me:$LINENO: result: $LEX" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3883 | echo "${ECHO_T}$LEX" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3884 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3885 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3886 | echo "${ECHO_T}no" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3887 | fi |
| 3888 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3889 | test -n "$LEX" && break |
| 3890 | done |
| 3891 | test -n "$LEX" || LEX=":" |
| 3892 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3893 | if test -z "$LEXLIB" |
| 3894 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3895 | echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3896 | echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6 |
| 3897 | if test "${ac_cv_lib_fl_yywrap+set}" = set; then |
| 3898 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3899 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3900 | ac_check_lib_save_LIBS=$LIBS |
| 3901 | LIBS="-lfl $LIBS" |
| 3902 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3903 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3904 | /* confdefs.h. */ |
| 3905 | _ACEOF |
| 3906 | cat confdefs.h >>conftest.$ac_ext |
| 3907 | cat >>conftest.$ac_ext <<_ACEOF |
| 3908 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3909 | |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 3910 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3911 | #ifdef __cplusplus |
| 3912 | extern "C" |
| 3913 | #endif |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 3914 | /* 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] | 3915 | builtin and then its argument prototype would still apply. */ |
| 3916 | char yywrap (); |
| 3917 | int |
| 3918 | main () |
| 3919 | { |
| 3920 | yywrap (); |
| 3921 | ; |
| 3922 | return 0; |
| 3923 | } |
| 3924 | _ACEOF |
| 3925 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3926 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3927 | (eval $ac_link) 2>&5 |
| 3928 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3930 | (exit $ac_status); } && |
| 3931 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3932 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3933 | (eval $ac_try) 2>&5 |
| 3934 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3936 | (exit $ac_status); }; }; then |
| 3937 | ac_cv_lib_fl_yywrap=yes |
| 3938 | else |
| 3939 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3940 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3941 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3942 | ac_cv_lib_fl_yywrap=no |
| 3943 | fi |
| 3944 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3945 | LIBS=$ac_check_lib_save_LIBS |
| 3946 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3947 | echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3948 | echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6 |
| 3949 | if test $ac_cv_lib_fl_yywrap = yes; then |
| 3950 | LEXLIB="-lfl" |
| 3951 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3952 | echo "$as_me:$LINENO: checking for yywrap in -ll" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3953 | echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6 |
| 3954 | if test "${ac_cv_lib_l_yywrap+set}" = set; then |
| 3955 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3956 | else |
| 3957 | ac_check_lib_save_LIBS=$LIBS |
| 3958 | LIBS="-ll $LIBS" |
| 3959 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3960 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3961 | /* confdefs.h. */ |
| 3962 | _ACEOF |
| 3963 | cat confdefs.h >>conftest.$ac_ext |
| 3964 | cat >>conftest.$ac_ext <<_ACEOF |
| 3965 | /* end confdefs.h. */ |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3966 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3967 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3968 | #ifdef __cplusplus |
| 3969 | extern "C" |
| 3970 | #endif |
| 3971 | /* We use char because int might match the return type of a gcc2 |
| 3972 | builtin and then its argument prototype would still apply. */ |
| 3973 | char yywrap (); |
| 3974 | int |
| 3975 | main () |
| 3976 | { |
| 3977 | yywrap (); |
| 3978 | ; |
| 3979 | return 0; |
| 3980 | } |
| 3981 | _ACEOF |
| 3982 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3983 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3984 | (eval $ac_link) 2>&5 |
| 3985 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3987 | (exit $ac_status); } && |
| 3988 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3989 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3990 | (eval $ac_try) 2>&5 |
| 3991 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3993 | (exit $ac_status); }; }; then |
| 3994 | ac_cv_lib_l_yywrap=yes |
| 3995 | else |
| 3996 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3997 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3998 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3999 | ac_cv_lib_l_yywrap=no |
| 4000 | fi |
| 4001 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4002 | LIBS=$ac_check_lib_save_LIBS |
| 4003 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4004 | echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4005 | echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6 |
| 4006 | if test $ac_cv_lib_l_yywrap = yes; then |
| 4007 | LEXLIB="-ll" |
| 4008 | fi |
| 4009 | |
| 4010 | fi |
| 4011 | |
| 4012 | fi |
| 4013 | |
| 4014 | if test "x$LEX" != "x:"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4015 | echo "$as_me:$LINENO: checking lex output file root" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4016 | echo $ECHO_N "checking lex output file root... $ECHO_C" >&6 |
| 4017 | if test "${ac_cv_prog_lex_root+set}" = set; then |
| 4018 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4019 | else |
| 4020 | # The minimal lex program is just a single line: %%. But some broken lexes |
| 4021 | # (Solaris, I think it was) want two %% lines, so accommodate them. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4022 | cat >conftest.l <<_ACEOF |
| 4023 | %% |
| 4024 | %% |
| 4025 | _ACEOF |
| 4026 | { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5 |
| 4027 | (eval $LEX conftest.l) 2>&5 |
| 4028 | ac_status=$? |
| 4029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4030 | (exit $ac_status); } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4031 | if test -f lex.yy.c; then |
| 4032 | ac_cv_prog_lex_root=lex.yy |
| 4033 | elif test -f lexyy.c; then |
| 4034 | ac_cv_prog_lex_root=lexyy |
| 4035 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4036 | { { 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] | 4037 | echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} |
| 4038 | { (exit 1); exit 1; }; } |
| 4039 | fi |
| 4040 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4041 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4042 | echo "${ECHO_T}$ac_cv_prog_lex_root" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4043 | rm -f conftest.l |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4044 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root |
| 4045 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4046 | echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4047 | echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6 |
| 4048 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then |
| 4049 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4050 | else |
| 4051 | # POSIX says lex can declare yytext either as a pointer or an array; the |
| 4052 | # default is implementation-dependent. Figure out which it is, since |
| 4053 | # not all implementations provide the %pointer and %array declarations. |
| 4054 | ac_cv_prog_lex_yytext_pointer=no |
| 4055 | echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c |
| 4056 | ac_save_LIBS=$LIBS |
| 4057 | LIBS="$LIBS $LEXLIB" |
| 4058 | cat >conftest.$ac_ext <<_ACEOF |
| 4059 | `cat $LEX_OUTPUT_ROOT.c` |
| 4060 | _ACEOF |
| 4061 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4062 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4063 | (eval $ac_link) 2>&5 |
| 4064 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4066 | (exit $ac_status); } && |
| 4067 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4068 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4069 | (eval $ac_try) 2>&5 |
| 4070 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4072 | (exit $ac_status); }; }; then |
| 4073 | ac_cv_prog_lex_yytext_pointer=yes |
| 4074 | else |
| 4075 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4076 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4077 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4078 | fi |
| 4079 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4080 | LIBS=$ac_save_LIBS |
| 4081 | rm -f "${LEX_OUTPUT_ROOT}.c" |
| 4082 | |
| 4083 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4084 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4085 | echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6 |
| 4086 | if test $ac_cv_prog_lex_yytext_pointer = yes; then |
| 4087 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4088 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4089 | #define YYTEXT_POINTER 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4090 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4091 | |
| 4092 | fi |
| 4093 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4094 | fi |
Marcus Meissner | 5c5a621 | 2002-01-22 18:28:25 +0000 | [diff] [blame] | 4095 | |
| 4096 | for ac_prog in $YACC bison yacc |
| 4097 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4098 | # 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] | 4099 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4100 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4101 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4102 | if test "${ac_cv_prog_XYACC+set}" = set; then |
| 4103 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | 5c5a621 | 2002-01-22 18:28:25 +0000 | [diff] [blame] | 4104 | else |
| 4105 | if test -n "$XYACC"; then |
| 4106 | ac_cv_prog_XYACC="$XYACC" # Let the user override the test. |
| 4107 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4108 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4109 | for as_dir in $PATH |
| 4110 | do |
| 4111 | IFS=$as_save_IFS |
| 4112 | test -z "$as_dir" && as_dir=. |
| 4113 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4114 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4115 | ac_cv_prog_XYACC="$ac_prog" |
| 4116 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4117 | break 2 |
| 4118 | fi |
| 4119 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4120 | done |
| 4121 | |
Marcus Meissner | 5c5a621 | 2002-01-22 18:28:25 +0000 | [diff] [blame] | 4122 | fi |
| 4123 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4124 | XYACC=$ac_cv_prog_XYACC |
Marcus Meissner | 5c5a621 | 2002-01-22 18:28:25 +0000 | [diff] [blame] | 4125 | if test -n "$XYACC"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4126 | echo "$as_me:$LINENO: result: $XYACC" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4127 | echo "${ECHO_T}$XYACC" >&6 |
Marcus Meissner | 5c5a621 | 2002-01-22 18:28:25 +0000 | [diff] [blame] | 4128 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4129 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4130 | echo "${ECHO_T}no" >&6 |
Marcus Meissner | 5c5a621 | 2002-01-22 18:28:25 +0000 | [diff] [blame] | 4131 | fi |
| 4132 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4133 | test -n "$XYACC" && break |
Marcus Meissner | 5c5a621 | 2002-01-22 18:28:25 +0000 | [diff] [blame] | 4134 | done |
| 4135 | test -n "$XYACC" || XYACC="none" |
| 4136 | |
| 4137 | if test "$XYACC" = "none" |
| 4138 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4139 | { { 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] | 4140 | echo "$as_me: error: no suitable bison/yacc found. Please install the 'bison' package." >&2;} |
| 4141 | { (exit 1); exit 1; }; } |
Marcus Meissner | 5c5a621 | 2002-01-22 18:28:25 +0000 | [diff] [blame] | 4142 | fi |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 4143 | for ac_prog in $LEX flex lex |
| 4144 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4145 | # 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] | 4146 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4147 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4148 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4149 | if test "${ac_cv_prog_XLEX+set}" = set; then |
| 4150 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 4151 | else |
| 4152 | if test -n "$XLEX"; then |
| 4153 | ac_cv_prog_XLEX="$XLEX" # Let the user override the test. |
| 4154 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4155 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4156 | for as_dir in $PATH |
| 4157 | do |
| 4158 | IFS=$as_save_IFS |
| 4159 | test -z "$as_dir" && as_dir=. |
| 4160 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4161 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4162 | ac_cv_prog_XLEX="$ac_prog" |
| 4163 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4164 | break 2 |
| 4165 | fi |
| 4166 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4167 | done |
| 4168 | |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 4169 | fi |
| 4170 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4171 | XLEX=$ac_cv_prog_XLEX |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 4172 | if test -n "$XLEX"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4173 | echo "$as_me:$LINENO: result: $XLEX" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4174 | echo "${ECHO_T}$XLEX" >&6 |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 4175 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4176 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4177 | echo "${ECHO_T}no" >&6 |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 4178 | fi |
| 4179 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4180 | test -n "$XLEX" && break |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 4181 | done |
| 4182 | test -n "$XLEX" || XLEX="none" |
| 4183 | |
| 4184 | if test "$XLEX" = "none" |
| 4185 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4186 | { { 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] | 4187 | echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;} |
| 4188 | { (exit 1); exit 1; }; } |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 4189 | fi |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4190 | |
| 4191 | if test -n "$ac_tool_prefix"; then |
Alexandre Julliard | c80c290 | 2003-05-06 18:41:52 +0000 | [diff] [blame] | 4192 | for ac_prog in gas as |
| 4193 | do |
| 4194 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 4195 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 4196 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4197 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4198 | if test "${ac_cv_prog_AS+set}" = set; then |
| 4199 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4200 | else |
| 4201 | if test -n "$AS"; then |
| 4202 | ac_cv_prog_AS="$AS" # Let the user override the test. |
| 4203 | else |
| 4204 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4205 | for as_dir in $PATH |
| 4206 | do |
| 4207 | IFS=$as_save_IFS |
| 4208 | test -z "$as_dir" && as_dir=. |
| 4209 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4210 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Alexandre Julliard | c80c290 | 2003-05-06 18:41:52 +0000 | [diff] [blame] | 4211 | ac_cv_prog_AS="$ac_tool_prefix$ac_prog" |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 4212 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4213 | break 2 |
| 4214 | fi |
| 4215 | done |
| 4216 | done |
| 4217 | |
| 4218 | fi |
| 4219 | fi |
| 4220 | AS=$ac_cv_prog_AS |
| 4221 | if test -n "$AS"; then |
| 4222 | echo "$as_me:$LINENO: result: $AS" >&5 |
| 4223 | echo "${ECHO_T}$AS" >&6 |
| 4224 | else |
| 4225 | echo "$as_me:$LINENO: result: no" >&5 |
| 4226 | echo "${ECHO_T}no" >&6 |
| 4227 | fi |
| 4228 | |
Alexandre Julliard | c80c290 | 2003-05-06 18:41:52 +0000 | [diff] [blame] | 4229 | test -n "$AS" && break |
| 4230 | done |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 4231 | fi |
Alexandre Julliard | c80c290 | 2003-05-06 18:41:52 +0000 | [diff] [blame] | 4232 | if test -z "$AS"; then |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 4233 | ac_ct_AS=$AS |
Alexandre Julliard | c80c290 | 2003-05-06 18:41:52 +0000 | [diff] [blame] | 4234 | for ac_prog in gas as |
| 4235 | do |
| 4236 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4237 | set dummy $ac_prog; ac_word=$2 |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 4238 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4239 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4240 | if test "${ac_cv_prog_ac_ct_AS+set}" = set; then |
| 4241 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4242 | else |
| 4243 | if test -n "$ac_ct_AS"; then |
| 4244 | ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. |
| 4245 | else |
| 4246 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4247 | for as_dir in $PATH |
| 4248 | do |
| 4249 | IFS=$as_save_IFS |
| 4250 | test -z "$as_dir" && as_dir=. |
| 4251 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4252 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Alexandre Julliard | c80c290 | 2003-05-06 18:41:52 +0000 | [diff] [blame] | 4253 | ac_cv_prog_ac_ct_AS="$ac_prog" |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 4254 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4255 | break 2 |
| 4256 | fi |
| 4257 | done |
| 4258 | done |
| 4259 | |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 4260 | fi |
| 4261 | fi |
| 4262 | ac_ct_AS=$ac_cv_prog_ac_ct_AS |
| 4263 | if test -n "$ac_ct_AS"; then |
| 4264 | echo "$as_me:$LINENO: result: $ac_ct_AS" >&5 |
| 4265 | echo "${ECHO_T}$ac_ct_AS" >&6 |
| 4266 | else |
| 4267 | echo "$as_me:$LINENO: result: no" >&5 |
| 4268 | echo "${ECHO_T}no" >&6 |
| 4269 | fi |
| 4270 | |
Alexandre Julliard | c80c290 | 2003-05-06 18:41:52 +0000 | [diff] [blame] | 4271 | test -n "$ac_ct_AS" && break |
| 4272 | done |
| 4273 | test -n "$ac_ct_AS" || ac_ct_AS="as" |
| 4274 | |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 4275 | AS=$ac_ct_AS |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 4276 | fi |
| 4277 | |
| 4278 | if test -n "$ac_tool_prefix"; then |
Alexandre Julliard | eb5f89c | 2002-05-24 21:22:10 +0000 | [diff] [blame] | 4279 | # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args. |
| 4280 | set dummy ${ac_tool_prefix}ld; ac_word=$2 |
| 4281 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4282 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4283 | if test "${ac_cv_prog_LD+set}" = set; then |
| 4284 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4285 | else |
| 4286 | if test -n "$LD"; then |
| 4287 | ac_cv_prog_LD="$LD" # Let the user override the test. |
| 4288 | else |
| 4289 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4290 | for as_dir in $PATH |
| 4291 | do |
| 4292 | IFS=$as_save_IFS |
| 4293 | test -z "$as_dir" && as_dir=. |
| 4294 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4295 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4296 | ac_cv_prog_LD="${ac_tool_prefix}ld" |
| 4297 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4298 | break 2 |
| 4299 | fi |
| 4300 | done |
| 4301 | done |
| 4302 | |
| 4303 | fi |
| 4304 | fi |
| 4305 | LD=$ac_cv_prog_LD |
| 4306 | if test -n "$LD"; then |
| 4307 | echo "$as_me:$LINENO: result: $LD" >&5 |
| 4308 | echo "${ECHO_T}$LD" >&6 |
| 4309 | else |
| 4310 | echo "$as_me:$LINENO: result: no" >&5 |
| 4311 | echo "${ECHO_T}no" >&6 |
| 4312 | fi |
| 4313 | |
| 4314 | fi |
| 4315 | if test -z "$ac_cv_prog_LD"; then |
| 4316 | ac_ct_LD=$LD |
| 4317 | # Extract the first word of "ld", so it can be a program name with args. |
| 4318 | set dummy ld; ac_word=$2 |
| 4319 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4320 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4321 | if test "${ac_cv_prog_ac_ct_LD+set}" = set; then |
| 4322 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4323 | else |
| 4324 | if test -n "$ac_ct_LD"; then |
| 4325 | ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test. |
| 4326 | else |
| 4327 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4328 | for as_dir in $PATH |
| 4329 | do |
| 4330 | IFS=$as_save_IFS |
| 4331 | test -z "$as_dir" && as_dir=. |
| 4332 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4333 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4334 | ac_cv_prog_ac_ct_LD="ld" |
| 4335 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4336 | break 2 |
| 4337 | fi |
| 4338 | done |
| 4339 | done |
| 4340 | |
| 4341 | test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld" |
| 4342 | fi |
| 4343 | fi |
| 4344 | ac_ct_LD=$ac_cv_prog_ac_ct_LD |
| 4345 | if test -n "$ac_ct_LD"; then |
| 4346 | echo "$as_me:$LINENO: result: $ac_ct_LD" >&5 |
| 4347 | echo "${ECHO_T}$ac_ct_LD" >&6 |
| 4348 | else |
| 4349 | echo "$as_me:$LINENO: result: no" >&5 |
| 4350 | echo "${ECHO_T}no" >&6 |
| 4351 | fi |
| 4352 | |
| 4353 | LD=$ac_ct_LD |
| 4354 | else |
| 4355 | LD="$ac_cv_prog_LD" |
| 4356 | fi |
| 4357 | |
| 4358 | if test -n "$ac_tool_prefix"; then |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4359 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 4360 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
| 4361 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4362 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4363 | if test "${ac_cv_prog_AR+set}" = set; then |
| 4364 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4365 | else |
| 4366 | if test -n "$AR"; then |
| 4367 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 4368 | else |
| 4369 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4370 | for as_dir in $PATH |
| 4371 | do |
| 4372 | IFS=$as_save_IFS |
| 4373 | test -z "$as_dir" && as_dir=. |
| 4374 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4375 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4376 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 4377 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4378 | break 2 |
| 4379 | fi |
| 4380 | done |
| 4381 | done |
| 4382 | |
| 4383 | fi |
| 4384 | fi |
| 4385 | AR=$ac_cv_prog_AR |
| 4386 | if test -n "$AR"; then |
| 4387 | echo "$as_me:$LINENO: result: $AR" >&5 |
| 4388 | echo "${ECHO_T}$AR" >&6 |
| 4389 | else |
| 4390 | echo "$as_me:$LINENO: result: no" >&5 |
| 4391 | echo "${ECHO_T}no" >&6 |
| 4392 | fi |
| 4393 | |
| 4394 | fi |
| 4395 | if test -z "$ac_cv_prog_AR"; then |
| 4396 | ac_ct_AR=$AR |
| 4397 | # Extract the first word of "ar", so it can be a program name with args. |
| 4398 | set dummy ar; ac_word=$2 |
| 4399 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4400 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4401 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 4402 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4403 | else |
| 4404 | if test -n "$ac_ct_AR"; then |
| 4405 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 4406 | else |
| 4407 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4408 | for as_dir in $PATH |
| 4409 | do |
| 4410 | IFS=$as_save_IFS |
| 4411 | test -z "$as_dir" && as_dir=. |
| 4412 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4413 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4414 | ac_cv_prog_ac_ct_AR="ar" |
| 4415 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4416 | break 2 |
| 4417 | fi |
| 4418 | done |
| 4419 | done |
| 4420 | |
| 4421 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar" |
| 4422 | fi |
| 4423 | fi |
| 4424 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 4425 | if test -n "$ac_ct_AR"; then |
| 4426 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 4427 | echo "${ECHO_T}$ac_ct_AR" >&6 |
| 4428 | else |
| 4429 | echo "$as_me:$LINENO: result: no" >&5 |
| 4430 | echo "${ECHO_T}no" >&6 |
| 4431 | fi |
| 4432 | |
| 4433 | AR=$ac_ct_AR |
| 4434 | else |
| 4435 | AR="$ac_cv_prog_AR" |
| 4436 | fi |
| 4437 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4438 | if test -n "$ac_tool_prefix"; then |
| 4439 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 4440 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4441 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4442 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4443 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 4444 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4445 | else |
| 4446 | if test -n "$RANLIB"; then |
| 4447 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 4448 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4449 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4450 | for as_dir in $PATH |
| 4451 | do |
| 4452 | IFS=$as_save_IFS |
| 4453 | test -z "$as_dir" && as_dir=. |
| 4454 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4455 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4456 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 4457 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4458 | break 2 |
| 4459 | fi |
| 4460 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4461 | done |
| 4462 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4463 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4464 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4465 | RANLIB=$ac_cv_prog_RANLIB |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4466 | if test -n "$RANLIB"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4467 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4468 | echo "${ECHO_T}$RANLIB" >&6 |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4469 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4470 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4471 | echo "${ECHO_T}no" >&6 |
| 4472 | fi |
| 4473 | |
| 4474 | fi |
| 4475 | if test -z "$ac_cv_prog_RANLIB"; then |
| 4476 | ac_ct_RANLIB=$RANLIB |
| 4477 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 4478 | set dummy ranlib; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4479 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4480 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4481 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 4482 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4483 | else |
| 4484 | if test -n "$ac_ct_RANLIB"; then |
| 4485 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 4486 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4487 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4488 | for as_dir in $PATH |
| 4489 | do |
| 4490 | IFS=$as_save_IFS |
| 4491 | test -z "$as_dir" && as_dir=. |
| 4492 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4493 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4494 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 4495 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4496 | break 2 |
| 4497 | fi |
| 4498 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4499 | done |
| 4500 | |
| 4501 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 4502 | fi |
| 4503 | fi |
| 4504 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 4505 | if test -n "$ac_ct_RANLIB"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4506 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4507 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 4508 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4509 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4510 | echo "${ECHO_T}no" >&6 |
| 4511 | fi |
| 4512 | |
| 4513 | RANLIB=$ac_ct_RANLIB |
| 4514 | else |
| 4515 | RANLIB="$ac_cv_prog_RANLIB" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4516 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4517 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4518 | if test -n "$ac_tool_prefix"; then |
| 4519 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 4520 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 4521 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4522 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4523 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 4524 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4525 | else |
| 4526 | if test -n "$STRIP"; then |
| 4527 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 4528 | else |
| 4529 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4530 | for as_dir in $PATH |
| 4531 | do |
| 4532 | IFS=$as_save_IFS |
| 4533 | test -z "$as_dir" && as_dir=. |
| 4534 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4535 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4536 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 4537 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4538 | break 2 |
| 4539 | fi |
| 4540 | done |
| 4541 | done |
| 4542 | |
| 4543 | fi |
| 4544 | fi |
| 4545 | STRIP=$ac_cv_prog_STRIP |
| 4546 | if test -n "$STRIP"; then |
| 4547 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 4548 | echo "${ECHO_T}$STRIP" >&6 |
| 4549 | else |
| 4550 | echo "$as_me:$LINENO: result: no" >&5 |
| 4551 | echo "${ECHO_T}no" >&6 |
| 4552 | fi |
| 4553 | |
| 4554 | fi |
| 4555 | if test -z "$ac_cv_prog_STRIP"; then |
| 4556 | ac_ct_STRIP=$STRIP |
| 4557 | # Extract the first word of "strip", so it can be a program name with args. |
| 4558 | set dummy strip; ac_word=$2 |
| 4559 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4560 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4561 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 4562 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4563 | else |
| 4564 | if test -n "$ac_ct_STRIP"; then |
| 4565 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 4566 | else |
| 4567 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4568 | for as_dir in $PATH |
| 4569 | do |
| 4570 | IFS=$as_save_IFS |
| 4571 | test -z "$as_dir" && as_dir=. |
| 4572 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4573 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4574 | ac_cv_prog_ac_ct_STRIP="strip" |
| 4575 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4576 | break 2 |
| 4577 | fi |
| 4578 | done |
| 4579 | done |
| 4580 | |
| 4581 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="strip" |
| 4582 | fi |
| 4583 | fi |
| 4584 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 4585 | if test -n "$ac_ct_STRIP"; then |
| 4586 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 4587 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
| 4588 | else |
| 4589 | echo "$as_me:$LINENO: result: no" >&5 |
| 4590 | echo "${ECHO_T}no" >&6 |
| 4591 | fi |
| 4592 | |
| 4593 | STRIP=$ac_ct_STRIP |
| 4594 | else |
| 4595 | STRIP="$ac_cv_prog_STRIP" |
| 4596 | fi |
| 4597 | |
| 4598 | if test -n "$ac_tool_prefix"; then |
| 4599 | # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. |
| 4600 | set dummy ${ac_tool_prefix}windres; ac_word=$2 |
| 4601 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4602 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4603 | if test "${ac_cv_prog_WINDRES+set}" = set; then |
| 4604 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4605 | else |
| 4606 | if test -n "$WINDRES"; then |
| 4607 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. |
| 4608 | else |
| 4609 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4610 | for as_dir in $PATH |
| 4611 | do |
| 4612 | IFS=$as_save_IFS |
| 4613 | test -z "$as_dir" && as_dir=. |
| 4614 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4615 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4616 | ac_cv_prog_WINDRES="${ac_tool_prefix}windres" |
| 4617 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4618 | break 2 |
| 4619 | fi |
| 4620 | done |
| 4621 | done |
| 4622 | |
| 4623 | fi |
| 4624 | fi |
| 4625 | WINDRES=$ac_cv_prog_WINDRES |
| 4626 | if test -n "$WINDRES"; then |
| 4627 | echo "$as_me:$LINENO: result: $WINDRES" >&5 |
| 4628 | echo "${ECHO_T}$WINDRES" >&6 |
| 4629 | else |
| 4630 | echo "$as_me:$LINENO: result: no" >&5 |
| 4631 | echo "${ECHO_T}no" >&6 |
| 4632 | fi |
| 4633 | |
| 4634 | fi |
| 4635 | if test -z "$ac_cv_prog_WINDRES"; then |
| 4636 | ac_ct_WINDRES=$WINDRES |
| 4637 | # Extract the first word of "windres", so it can be a program name with args. |
| 4638 | set dummy windres; ac_word=$2 |
| 4639 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4640 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4641 | if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then |
| 4642 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4643 | else |
| 4644 | if test -n "$ac_ct_WINDRES"; then |
| 4645 | ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. |
| 4646 | else |
| 4647 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4648 | for as_dir in $PATH |
| 4649 | do |
| 4650 | IFS=$as_save_IFS |
| 4651 | test -z "$as_dir" && as_dir=. |
| 4652 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4653 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4654 | ac_cv_prog_ac_ct_WINDRES="windres" |
| 4655 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4656 | break 2 |
| 4657 | fi |
| 4658 | done |
| 4659 | done |
| 4660 | |
| 4661 | test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES="false" |
| 4662 | fi |
| 4663 | fi |
| 4664 | ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES |
| 4665 | if test -n "$ac_ct_WINDRES"; then |
| 4666 | echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5 |
| 4667 | echo "${ECHO_T}$ac_ct_WINDRES" >&6 |
| 4668 | else |
| 4669 | echo "$as_me:$LINENO: result: no" >&5 |
| 4670 | echo "${ECHO_T}no" >&6 |
| 4671 | fi |
| 4672 | |
| 4673 | WINDRES=$ac_ct_WINDRES |
| 4674 | else |
| 4675 | WINDRES="$ac_cv_prog_WINDRES" |
| 4676 | fi |
| 4677 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4678 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4679 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
| 4680 | LN_S=$as_ln_s |
| 4681 | if test "$LN_S" = "ln -s"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4682 | echo "$as_me:$LINENO: result: yes" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4683 | echo "${ECHO_T}yes" >&6 |
Alexandre Julliard | 641ee76 | 1997-08-04 16:34:36 +0000 | [diff] [blame] | 4684 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4685 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4686 | echo "${ECHO_T}no, using $LN_S" >&6 |
Alexandre Julliard | 641ee76 | 1997-08-04 16:34:36 +0000 | [diff] [blame] | 4687 | fi |
| 4688 | |
Alexandre Julliard | df234a9 | 2002-05-22 02:10:39 +0000 | [diff] [blame] | 4689 | echo "$as_me:$LINENO: checking whether ln works" >&5 |
| 4690 | echo $ECHO_N "checking whether ln works... $ECHO_C" >&6 |
| 4691 | rm -f conf$$ conf$$.file |
| 4692 | echo >conf$$.file |
| 4693 | if ln conf$$.file conf$$ 2>/dev/null; then |
| 4694 | LN=ln |
| 4695 | |
| 4696 | echo "$as_me:$LINENO: result: yes" >&5 |
| 4697 | echo "${ECHO_T}yes" >&6 |
| 4698 | else |
| 4699 | LN="cp -p" |
| 4700 | |
| 4701 | echo "$as_me:$LINENO: result: no, using $LN" >&5 |
| 4702 | echo "${ECHO_T}no, using $LN" >&6 |
| 4703 | fi |
| 4704 | rm -f conf$$ conf$$.file |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 4705 | # Extract the first word of "c2man", so it can be a program name with args. |
| 4706 | set dummy c2man; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4707 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4708 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4709 | if test "${ac_cv_prog_C2MAN+set}" = set; then |
| 4710 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 4711 | else |
| 4712 | if test -n "$C2MAN"; then |
| 4713 | ac_cv_prog_C2MAN="$C2MAN" # Let the user override the test. |
| 4714 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4715 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4716 | for as_dir in $PATH |
| 4717 | do |
| 4718 | IFS=$as_save_IFS |
| 4719 | test -z "$as_dir" && as_dir=. |
| 4720 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4721 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4722 | ac_cv_prog_C2MAN="c2man" |
| 4723 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4724 | break 2 |
| 4725 | fi |
| 4726 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4727 | done |
| 4728 | |
Mike McCormack | e0df32f | 2000-08-11 21:15:21 +0000 | [diff] [blame] | 4729 | 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] | 4730 | fi |
| 4731 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4732 | C2MAN=$ac_cv_prog_C2MAN |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 4733 | if test -n "$C2MAN"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4734 | echo "$as_me:$LINENO: result: $C2MAN" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4735 | echo "${ECHO_T}$C2MAN" >&6 |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 4736 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4737 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4738 | echo "${ECHO_T}no" >&6 |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 4739 | fi |
| 4740 | |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 4741 | # Extract the first word of "ldconfig", so it can be a program name with args. |
| 4742 | set dummy ldconfig; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4743 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4744 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4745 | if test "${ac_cv_path_LDCONFIG+set}" = set; then |
| 4746 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 4747 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4748 | case $LDCONFIG in |
| 4749 | [\\/]* | ?:[\\/]*) |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 4750 | ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path. |
| 4751 | ;; |
| 4752 | *) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4753 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Bill Medland | 91372b3 | 2002-04-20 21:00:42 +0000 | [diff] [blame] | 4754 | for as_dir in /sbin /usr/sbin $PATH |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4755 | do |
| 4756 | IFS=$as_save_IFS |
| 4757 | test -z "$as_dir" && as_dir=. |
| 4758 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4759 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4760 | ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 4761 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4762 | break 2 |
| 4763 | fi |
| 4764 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4765 | done |
| 4766 | |
Alexandre Julliard | 318f4ce | 2000-01-31 05:02:49 +0000 | [diff] [blame] | 4767 | test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true" |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 4768 | ;; |
| 4769 | esac |
| 4770 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4771 | LDCONFIG=$ac_cv_path_LDCONFIG |
| 4772 | |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 4773 | if test -n "$LDCONFIG"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4774 | echo "$as_me:$LINENO: result: $LDCONFIG" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4775 | echo "${ECHO_T}$LDCONFIG" >&6 |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 4776 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4777 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4778 | echo "${ECHO_T}no" >&6 |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 4779 | fi |
| 4780 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4781 | # Find a good install program. We prefer a C program (faster), |
| 4782 | # so one script is as good as another. But avoid the broken or |
| 4783 | # incompatible versions: |
| 4784 | # SysV /etc/install, /usr/sbin/install |
| 4785 | # SunOS /usr/etc/install |
| 4786 | # IRIX /sbin/install |
| 4787 | # AIX /bin/install |
| 4788 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 4789 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 4790 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 4791 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 4792 | # ./install, which can be erroneously created by make from ./install.sh. |
| 4793 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 4794 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
| 4795 | if test -z "$INSTALL"; then |
| 4796 | if test "${ac_cv_path_install+set}" = set; then |
| 4797 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4798 | else |
| 4799 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4800 | for as_dir in $PATH |
| 4801 | do |
| 4802 | IFS=$as_save_IFS |
| 4803 | test -z "$as_dir" && as_dir=. |
| 4804 | # Account for people who put trailing slashes in PATH elements. |
| 4805 | case $as_dir/ in |
| 4806 | ./ | .// | /cC/* | \ |
| 4807 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 4808 | /usr/ucb/* ) ;; |
| 4809 | *) |
| 4810 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 4811 | # Don't use installbsd from OSF since it installs stuff as root |
| 4812 | # by default. |
| 4813 | for ac_prog in ginstall scoinst install; do |
| 4814 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4815 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 4816 | if test $ac_prog = install && |
| 4817 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4818 | # AIX install. It has an incompatible calling convention. |
| 4819 | : |
| 4820 | elif test $ac_prog = install && |
| 4821 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4822 | # program-specific install script used by HP pwplus--don't use. |
| 4823 | : |
| 4824 | else |
| 4825 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 4826 | break 3 |
| 4827 | fi |
| 4828 | fi |
| 4829 | done |
| 4830 | done |
| 4831 | ;; |
| 4832 | esac |
| 4833 | done |
| 4834 | |
| 4835 | |
| 4836 | fi |
| 4837 | if test "${ac_cv_path_install+set}" = set; then |
| 4838 | INSTALL=$ac_cv_path_install |
| 4839 | else |
| 4840 | # As a last resort, use the slow shell script. We don't cache a |
| 4841 | # path for INSTALL within a source directory, because that will |
| 4842 | # break other packages using the cache if that directory is |
| 4843 | # removed, or if the path is relative. |
| 4844 | INSTALL=$ac_install_sh |
| 4845 | fi |
| 4846 | fi |
| 4847 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 4848 | echo "${ECHO_T}$INSTALL" >&6 |
| 4849 | |
| 4850 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 4851 | # It thinks the first close brace ends the variable substitution. |
| 4852 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 4853 | |
| 4854 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 4855 | |
| 4856 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 4857 | |
| 4858 | case "$INSTALL" in |
Alexandre Julliard | 8418d8f | 2002-12-24 02:39:47 +0000 | [diff] [blame] | 4859 | [\\/$]* | ?:[\\/]* ) ;; |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4860 | *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;; |
| 4861 | esac |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4862 | |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 4863 | for ac_prog in lclint lint |
| 4864 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4865 | # 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] | 4866 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4867 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4868 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4869 | if test "${ac_cv_prog_LINT+set}" = set; then |
| 4870 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 4871 | else |
| 4872 | if test -n "$LINT"; then |
| 4873 | ac_cv_prog_LINT="$LINT" # Let the user override the test. |
| 4874 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4875 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4876 | for as_dir in $PATH |
| 4877 | do |
| 4878 | IFS=$as_save_IFS |
| 4879 | test -z "$as_dir" && as_dir=. |
| 4880 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4881 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4882 | ac_cv_prog_LINT="$ac_prog" |
| 4883 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4884 | break 2 |
| 4885 | fi |
| 4886 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4887 | done |
| 4888 | |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 4889 | fi |
| 4890 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4891 | LINT=$ac_cv_prog_LINT |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 4892 | if test -n "$LINT"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4893 | echo "$as_me:$LINENO: result: $LINT" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4894 | echo "${ECHO_T}$LINT" >&6 |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 4895 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4896 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4897 | echo "${ECHO_T}no" >&6 |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 4898 | fi |
| 4899 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4900 | test -n "$LINT" && break |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 4901 | done |
| 4902 | |
| 4903 | if test "$LINT" = "lint" |
| 4904 | then |
| 4905 | LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4" |
| 4906 | fi |
| 4907 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4908 | |
| 4909 | |
Vincent Béron | 1d8cb6e | 2002-11-23 01:20:02 +0000 | [diff] [blame] | 4910 | for ac_prog in docbook2html db2html |
| 4911 | do |
| 4912 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4913 | set dummy $ac_prog; ac_word=$2 |
| 4914 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4915 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4916 | if test "${ac_cv_prog_DB2HTML+set}" = set; then |
| 4917 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4918 | else |
| 4919 | if test -n "$DB2HTML"; then |
| 4920 | ac_cv_prog_DB2HTML="$DB2HTML" # Let the user override the test. |
| 4921 | else |
| 4922 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4923 | for as_dir in $PATH |
| 4924 | do |
| 4925 | IFS=$as_save_IFS |
| 4926 | test -z "$as_dir" && as_dir=. |
| 4927 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4928 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4929 | ac_cv_prog_DB2HTML="$ac_prog" |
| 4930 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4931 | break 2 |
| 4932 | fi |
| 4933 | done |
| 4934 | done |
| 4935 | |
| 4936 | fi |
| 4937 | fi |
| 4938 | DB2HTML=$ac_cv_prog_DB2HTML |
| 4939 | if test -n "$DB2HTML"; then |
| 4940 | echo "$as_me:$LINENO: result: $DB2HTML" >&5 |
| 4941 | echo "${ECHO_T}$DB2HTML" >&6 |
| 4942 | else |
| 4943 | echo "$as_me:$LINENO: result: no" >&5 |
| 4944 | echo "${ECHO_T}no" >&6 |
| 4945 | fi |
| 4946 | |
| 4947 | test -n "$DB2HTML" && break |
| 4948 | done |
| 4949 | test -n "$DB2HTML" || DB2HTML="false" |
| 4950 | |
| 4951 | |
| 4952 | |
| 4953 | for ac_prog in docbook2pdf db2pdf |
| 4954 | do |
| 4955 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4956 | set dummy $ac_prog; ac_word=$2 |
| 4957 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4958 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4959 | if test "${ac_cv_prog_DB2PDF+set}" = set; then |
| 4960 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4961 | else |
| 4962 | if test -n "$DB2PDF"; then |
| 4963 | ac_cv_prog_DB2PDF="$DB2PDF" # Let the user override the test. |
| 4964 | else |
| 4965 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4966 | for as_dir in $PATH |
| 4967 | do |
| 4968 | IFS=$as_save_IFS |
| 4969 | test -z "$as_dir" && as_dir=. |
| 4970 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4971 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4972 | ac_cv_prog_DB2PDF="$ac_prog" |
| 4973 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4974 | break 2 |
| 4975 | fi |
| 4976 | done |
| 4977 | done |
| 4978 | |
| 4979 | fi |
| 4980 | fi |
| 4981 | DB2PDF=$ac_cv_prog_DB2PDF |
| 4982 | if test -n "$DB2PDF"; then |
| 4983 | echo "$as_me:$LINENO: result: $DB2PDF" >&5 |
| 4984 | echo "${ECHO_T}$DB2PDF" >&6 |
| 4985 | else |
| 4986 | echo "$as_me:$LINENO: result: no" >&5 |
| 4987 | echo "${ECHO_T}no" >&6 |
| 4988 | fi |
| 4989 | |
| 4990 | test -n "$DB2PDF" && break |
| 4991 | done |
| 4992 | test -n "$DB2PDF" || DB2PDF="false" |
| 4993 | |
| 4994 | |
| 4995 | |
| 4996 | for ac_prog in docbook2ps db2ps |
| 4997 | do |
| 4998 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4999 | set dummy $ac_prog; ac_word=$2 |
| 5000 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5001 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5002 | if test "${ac_cv_prog_DB2PS+set}" = set; then |
| 5003 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5004 | else |
| 5005 | if test -n "$DB2PS"; then |
| 5006 | ac_cv_prog_DB2PS="$DB2PS" # Let the user override the test. |
| 5007 | else |
| 5008 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5009 | for as_dir in $PATH |
| 5010 | do |
| 5011 | IFS=$as_save_IFS |
| 5012 | test -z "$as_dir" && as_dir=. |
| 5013 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5014 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5015 | ac_cv_prog_DB2PS="$ac_prog" |
| 5016 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5017 | break 2 |
| 5018 | fi |
| 5019 | done |
| 5020 | done |
| 5021 | |
| 5022 | fi |
| 5023 | fi |
| 5024 | DB2PS=$ac_cv_prog_DB2PS |
| 5025 | if test -n "$DB2PS"; then |
| 5026 | echo "$as_me:$LINENO: result: $DB2PS" >&5 |
| 5027 | echo "${ECHO_T}$DB2PS" >&6 |
| 5028 | else |
| 5029 | echo "$as_me:$LINENO: result: no" >&5 |
| 5030 | echo "${ECHO_T}no" >&6 |
| 5031 | fi |
| 5032 | |
| 5033 | test -n "$DB2PS" && break |
| 5034 | done |
| 5035 | test -n "$DB2PS" || DB2PS="false" |
| 5036 | |
| 5037 | |
| 5038 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5039 | |
| 5040 | |
| 5041 | echo "$as_me:$LINENO: checking for sqrt in -lm" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5042 | echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6 |
| 5043 | if test "${ac_cv_lib_m_sqrt+set}" = set; then |
| 5044 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Dimitrie O. Paun | 79e44ab | 2000-12-05 04:13:36 +0000 | [diff] [blame] | 5045 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5046 | ac_check_lib_save_LIBS=$LIBS |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 5047 | LIBS="-lm $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5048 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5049 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5050 | /* confdefs.h. */ |
| 5051 | _ACEOF |
| 5052 | cat confdefs.h >>conftest.$ac_ext |
| 5053 | cat >>conftest.$ac_ext <<_ACEOF |
| 5054 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5055 | |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 5056 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5057 | #ifdef __cplusplus |
| 5058 | extern "C" |
| 5059 | #endif |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 5060 | /* 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] | 5061 | builtin and then its argument prototype would still apply. */ |
| 5062 | char sqrt (); |
| 5063 | int |
| 5064 | main () |
| 5065 | { |
| 5066 | sqrt (); |
| 5067 | ; |
| 5068 | return 0; |
| 5069 | } |
| 5070 | _ACEOF |
| 5071 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5072 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5073 | (eval $ac_link) 2>&5 |
| 5074 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5076 | (exit $ac_status); } && |
| 5077 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5078 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5079 | (eval $ac_try) 2>&5 |
| 5080 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5082 | (exit $ac_status); }; }; then |
| 5083 | ac_cv_lib_m_sqrt=yes |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 5084 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5085 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5086 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5087 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5088 | ac_cv_lib_m_sqrt=no |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 5089 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5090 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5091 | LIBS=$ac_check_lib_save_LIBS |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 5092 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5093 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5094 | echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6 |
| 5095 | if test $ac_cv_lib_m_sqrt = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5096 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5097 | #define HAVE_LIBM 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5098 | _ACEOF |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 5099 | |
| 5100 | LIBS="-lm $LIBS" |
| 5101 | |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 5102 | fi |
| 5103 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5104 | |
| 5105 | echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5106 | echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6 |
| 5107 | if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then |
| 5108 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 5109 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5110 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 5111 | LIBS="-li386 $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5112 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5113 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5114 | /* confdefs.h. */ |
| 5115 | _ACEOF |
| 5116 | cat confdefs.h >>conftest.$ac_ext |
| 5117 | cat >>conftest.$ac_ext <<_ACEOF |
| 5118 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5119 | |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 5120 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5121 | #ifdef __cplusplus |
| 5122 | extern "C" |
| 5123 | #endif |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 5124 | /* 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] | 5125 | builtin and then its argument prototype would still apply. */ |
| 5126 | char i386_set_ldt (); |
| 5127 | int |
| 5128 | main () |
| 5129 | { |
| 5130 | i386_set_ldt (); |
| 5131 | ; |
| 5132 | return 0; |
| 5133 | } |
| 5134 | _ACEOF |
| 5135 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5136 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5137 | (eval $ac_link) 2>&5 |
| 5138 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5140 | (exit $ac_status); } && |
| 5141 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5142 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5143 | (eval $ac_try) 2>&5 |
| 5144 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5146 | (exit $ac_status); }; }; then |
| 5147 | ac_cv_lib_i386_i386_set_ldt=yes |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 5148 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5149 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5150 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5151 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5152 | ac_cv_lib_i386_i386_set_ldt=no |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 5153 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5154 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5155 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 5156 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5157 | 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] | 5158 | echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6 |
| 5159 | if test $ac_cv_lib_i386_i386_set_ldt = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5160 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5161 | #define HAVE_LIBI386 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5162 | _ACEOF |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 5163 | |
| 5164 | LIBS="-li386 $LIBS" |
| 5165 | |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 5166 | fi |
| 5167 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5168 | |
| 5169 | echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5170 | echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6 |
| 5171 | if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then |
| 5172 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 5173 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5174 | ac_check_lib_save_LIBS=$LIBS |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 5175 | LIBS="-lossaudio $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5176 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5177 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5178 | /* confdefs.h. */ |
| 5179 | _ACEOF |
| 5180 | cat confdefs.h >>conftest.$ac_ext |
| 5181 | cat >>conftest.$ac_ext <<_ACEOF |
| 5182 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5183 | |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 5184 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5185 | #ifdef __cplusplus |
| 5186 | extern "C" |
| 5187 | #endif |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 5188 | /* 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] | 5189 | builtin and then its argument prototype would still apply. */ |
| 5190 | char _oss_ioctl (); |
| 5191 | int |
| 5192 | main () |
| 5193 | { |
| 5194 | _oss_ioctl (); |
| 5195 | ; |
| 5196 | return 0; |
| 5197 | } |
| 5198 | _ACEOF |
| 5199 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5200 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5201 | (eval $ac_link) 2>&5 |
| 5202 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5204 | (exit $ac_status); } && |
| 5205 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5206 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5207 | (eval $ac_try) 2>&5 |
| 5208 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5210 | (exit $ac_status); }; }; then |
| 5211 | ac_cv_lib_ossaudio__oss_ioctl=yes |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 5212 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5213 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5214 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5215 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5216 | ac_cv_lib_ossaudio__oss_ioctl=no |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 5217 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5218 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5219 | LIBS=$ac_check_lib_save_LIBS |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 5220 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5221 | echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5222 | echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6 |
| 5223 | if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5224 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5225 | #define HAVE_LIBOSSAUDIO 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5226 | _ACEOF |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 5227 | |
| 5228 | LIBS="-lossaudio $LIBS" |
| 5229 | |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 5230 | fi |
| 5231 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5232 | |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 5233 | for ac_func in iswalnum |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5234 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5235 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5236 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5237 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 5238 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 5239 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5240 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5241 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5242 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5243 | /* confdefs.h. */ |
| 5244 | _ACEOF |
| 5245 | cat confdefs.h >>conftest.$ac_ext |
| 5246 | cat >>conftest.$ac_ext <<_ACEOF |
| 5247 | /* end confdefs.h. */ |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5248 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5249 | which can conflict with char $ac_func (); below. |
| 5250 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5251 | <limits.h> exists even on freestanding compilers. */ |
| 5252 | #ifdef __STDC__ |
| 5253 | # include <limits.h> |
| 5254 | #else |
| 5255 | # include <assert.h> |
| 5256 | #endif |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5257 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5258 | #ifdef __cplusplus |
| 5259 | extern "C" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5260 | { |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5261 | #endif |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5262 | /* 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] | 5263 | builtin and then its argument prototype would still apply. */ |
| 5264 | char $ac_func (); |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5265 | /* The GNU C library defines this for functions which it implements |
| 5266 | to always fail with ENOSYS. Some functions are actually named |
| 5267 | something starting with __ and the normal name is an alias. */ |
| 5268 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 5269 | choke me |
| 5270 | #else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5271 | char (*f) () = $ac_func; |
| 5272 | #endif |
| 5273 | #ifdef __cplusplus |
| 5274 | } |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5275 | #endif |
| 5276 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5277 | int |
| 5278 | main () |
| 5279 | { |
| 5280 | return f != $ac_func; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5281 | ; |
| 5282 | return 0; |
| 5283 | } |
| 5284 | _ACEOF |
| 5285 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5286 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5287 | (eval $ac_link) 2>&5 |
| 5288 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5290 | (exit $ac_status); } && |
| 5291 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5292 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5293 | (eval $ac_try) 2>&5 |
| 5294 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5296 | (exit $ac_status); }; }; then |
| 5297 | eval "$as_ac_var=yes" |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 5298 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5299 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5300 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5301 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5302 | eval "$as_ac_var=no" |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 5303 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5304 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 5305 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5306 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5307 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 5308 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5309 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5310 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5311 | _ACEOF |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 5312 | |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 5313 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5314 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5315 | echo "$as_me:$LINENO: checking for iswalnum in -lw" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5316 | echo $ECHO_N "checking for iswalnum in -lw... $ECHO_C" >&6 |
| 5317 | if test "${ac_cv_lib_w_iswalnum+set}" = set; then |
| 5318 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 5319 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5320 | ac_check_lib_save_LIBS=$LIBS |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 5321 | LIBS="-lw $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5322 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5323 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5324 | /* confdefs.h. */ |
| 5325 | _ACEOF |
| 5326 | cat confdefs.h >>conftest.$ac_ext |
| 5327 | cat >>conftest.$ac_ext <<_ACEOF |
| 5328 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5329 | |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 5330 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5331 | #ifdef __cplusplus |
| 5332 | extern "C" |
| 5333 | #endif |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 5334 | /* 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] | 5335 | builtin and then its argument prototype would still apply. */ |
| 5336 | char iswalnum (); |
| 5337 | int |
| 5338 | main () |
| 5339 | { |
| 5340 | iswalnum (); |
| 5341 | ; |
| 5342 | return 0; |
| 5343 | } |
| 5344 | _ACEOF |
| 5345 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5346 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5347 | (eval $ac_link) 2>&5 |
| 5348 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5350 | (exit $ac_status); } && |
| 5351 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5352 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5353 | (eval $ac_try) 2>&5 |
| 5354 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5356 | (exit $ac_status); }; }; then |
| 5357 | ac_cv_lib_w_iswalnum=yes |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 5358 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5359 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5360 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5361 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5362 | ac_cv_lib_w_iswalnum=no |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 5363 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5364 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5365 | LIBS=$ac_check_lib_save_LIBS |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 5366 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5367 | echo "$as_me:$LINENO: result: $ac_cv_lib_w_iswalnum" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5368 | echo "${ECHO_T}$ac_cv_lib_w_iswalnum" >&6 |
| 5369 | if test $ac_cv_lib_w_iswalnum = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5370 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5371 | #define HAVE_LIBW 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5372 | _ACEOF |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 5373 | |
| 5374 | LIBS="-lw $LIBS" |
| 5375 | |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 5376 | fi |
| 5377 | |
| 5378 | fi |
| 5379 | done |
| 5380 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5381 | |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 5382 | for ac_func in gethostbyname |
| 5383 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5384 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5385 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5386 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 5387 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 5388 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 5389 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5390 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5391 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5392 | /* confdefs.h. */ |
| 5393 | _ACEOF |
| 5394 | cat confdefs.h >>conftest.$ac_ext |
| 5395 | cat >>conftest.$ac_ext <<_ACEOF |
| 5396 | /* end confdefs.h. */ |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 5397 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5398 | which can conflict with char $ac_func (); below. |
| 5399 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5400 | <limits.h> exists even on freestanding compilers. */ |
| 5401 | #ifdef __STDC__ |
| 5402 | # include <limits.h> |
| 5403 | #else |
| 5404 | # include <assert.h> |
| 5405 | #endif |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 5406 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5407 | #ifdef __cplusplus |
| 5408 | extern "C" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5409 | { |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5410 | #endif |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 5411 | /* 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] | 5412 | builtin and then its argument prototype would still apply. */ |
| 5413 | char $ac_func (); |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 5414 | /* The GNU C library defines this for functions which it implements |
| 5415 | to always fail with ENOSYS. Some functions are actually named |
| 5416 | something starting with __ and the normal name is an alias. */ |
| 5417 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 5418 | choke me |
| 5419 | #else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5420 | char (*f) () = $ac_func; |
| 5421 | #endif |
| 5422 | #ifdef __cplusplus |
| 5423 | } |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 5424 | #endif |
| 5425 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5426 | int |
| 5427 | main () |
| 5428 | { |
| 5429 | return f != $ac_func; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5430 | ; |
| 5431 | return 0; |
| 5432 | } |
| 5433 | _ACEOF |
| 5434 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5435 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5436 | (eval $ac_link) 2>&5 |
| 5437 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5439 | (exit $ac_status); } && |
| 5440 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5441 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5442 | (eval $ac_try) 2>&5 |
| 5443 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5445 | (exit $ac_status); }; }; then |
| 5446 | eval "$as_ac_var=yes" |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5447 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5448 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5449 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5450 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5451 | eval "$as_ac_var=no" |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5452 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5453 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5454 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5455 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5456 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 5457 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5458 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5459 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5460 | _ACEOF |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5461 | |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5462 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5463 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5464 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5465 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 |
| 5466 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
| 5467 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5468 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5469 | ac_check_lib_save_LIBS=$LIBS |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 5470 | LIBS="-lnsl $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5471 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5472 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5473 | /* confdefs.h. */ |
| 5474 | _ACEOF |
| 5475 | cat confdefs.h >>conftest.$ac_ext |
| 5476 | cat >>conftest.$ac_ext <<_ACEOF |
| 5477 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5478 | |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5479 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5480 | #ifdef __cplusplus |
| 5481 | extern "C" |
| 5482 | #endif |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5483 | /* 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] | 5484 | builtin and then its argument prototype would still apply. */ |
| 5485 | char gethostbyname (); |
| 5486 | int |
| 5487 | main () |
| 5488 | { |
| 5489 | gethostbyname (); |
| 5490 | ; |
| 5491 | return 0; |
| 5492 | } |
| 5493 | _ACEOF |
| 5494 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5495 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5496 | (eval $ac_link) 2>&5 |
| 5497 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5499 | (exit $ac_status); } && |
| 5500 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5501 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5502 | (eval $ac_try) 2>&5 |
| 5503 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5505 | (exit $ac_status); }; }; then |
| 5506 | ac_cv_lib_nsl_gethostbyname=yes |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5507 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5508 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5509 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5510 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5511 | ac_cv_lib_nsl_gethostbyname=no |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5512 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5513 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5514 | LIBS=$ac_check_lib_save_LIBS |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5515 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5516 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5517 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 |
| 5518 | if test $ac_cv_lib_nsl_gethostbyname = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5519 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5520 | #define HAVE_LIBNSL 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5521 | _ACEOF |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 5522 | |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 5523 | LIBS="-lnsl $LIBS" |
| 5524 | |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 5525 | fi |
| 5526 | |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5527 | fi |
Marcus Meissner | f070fda | 1999-04-24 12:02:14 +0000 | [diff] [blame] | 5528 | done |
| 5529 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5530 | |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5531 | for ac_func in connect |
| 5532 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5533 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5534 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5535 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 5536 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 5537 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5538 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5539 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5540 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5541 | /* confdefs.h. */ |
| 5542 | _ACEOF |
| 5543 | cat confdefs.h >>conftest.$ac_ext |
| 5544 | cat >>conftest.$ac_ext <<_ACEOF |
| 5545 | /* end confdefs.h. */ |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5546 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5547 | which can conflict with char $ac_func (); below. |
| 5548 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5549 | <limits.h> exists even on freestanding compilers. */ |
| 5550 | #ifdef __STDC__ |
| 5551 | # include <limits.h> |
| 5552 | #else |
| 5553 | # include <assert.h> |
| 5554 | #endif |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5555 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5556 | #ifdef __cplusplus |
| 5557 | extern "C" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5558 | { |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5559 | #endif |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5560 | /* 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] | 5561 | builtin and then its argument prototype would still apply. */ |
| 5562 | char $ac_func (); |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5563 | /* The GNU C library defines this for functions which it implements |
| 5564 | to always fail with ENOSYS. Some functions are actually named |
| 5565 | something starting with __ and the normal name is an alias. */ |
| 5566 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 5567 | choke me |
| 5568 | #else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5569 | char (*f) () = $ac_func; |
| 5570 | #endif |
| 5571 | #ifdef __cplusplus |
| 5572 | } |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5573 | #endif |
| 5574 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5575 | int |
| 5576 | main () |
| 5577 | { |
| 5578 | return f != $ac_func; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5579 | ; |
| 5580 | return 0; |
| 5581 | } |
| 5582 | _ACEOF |
| 5583 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5584 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5585 | (eval $ac_link) 2>&5 |
| 5586 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5588 | (exit $ac_status); } && |
| 5589 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5591 | (eval $ac_try) 2>&5 |
| 5592 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5594 | (exit $ac_status); }; }; then |
| 5595 | eval "$as_ac_var=yes" |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5596 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5597 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5598 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5599 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5600 | eval "$as_ac_var=no" |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5601 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5602 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5603 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5604 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5605 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 5606 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5607 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5608 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5609 | _ACEOF |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5610 | |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5611 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5612 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5613 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5614 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 |
| 5615 | if test "${ac_cv_lib_socket_connect+set}" = set; then |
| 5616 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5617 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5618 | ac_check_lib_save_LIBS=$LIBS |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5619 | LIBS="-lsocket $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5620 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5621 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5622 | /* confdefs.h. */ |
| 5623 | _ACEOF |
| 5624 | cat confdefs.h >>conftest.$ac_ext |
| 5625 | cat >>conftest.$ac_ext <<_ACEOF |
| 5626 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5627 | |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5628 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5629 | #ifdef __cplusplus |
| 5630 | extern "C" |
| 5631 | #endif |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5632 | /* 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] | 5633 | builtin and then its argument prototype would still apply. */ |
| 5634 | char connect (); |
| 5635 | int |
| 5636 | main () |
| 5637 | { |
| 5638 | connect (); |
| 5639 | ; |
| 5640 | return 0; |
| 5641 | } |
| 5642 | _ACEOF |
| 5643 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5644 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5645 | (eval $ac_link) 2>&5 |
| 5646 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5648 | (exit $ac_status); } && |
| 5649 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5650 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5651 | (eval $ac_try) 2>&5 |
| 5652 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5654 | (exit $ac_status); }; }; then |
| 5655 | ac_cv_lib_socket_connect=yes |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5656 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5657 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5658 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5659 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5660 | ac_cv_lib_socket_connect=no |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5661 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5662 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5663 | LIBS=$ac_check_lib_save_LIBS |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5664 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5665 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5666 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 |
| 5667 | if test $ac_cv_lib_socket_connect = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5668 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5669 | #define HAVE_LIBSOCKET 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5670 | _ACEOF |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5671 | |
| 5672 | LIBS="-lsocket $LIBS" |
| 5673 | |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5674 | fi |
| 5675 | |
| 5676 | fi |
Marcus Meissner | f070fda | 1999-04-24 12:02:14 +0000 | [diff] [blame] | 5677 | done |
| 5678 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5679 | |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 5680 | for ac_func in inet_aton |
| 5681 | do |
| 5682 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5683 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 5684 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 5685 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 5686 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5687 | else |
| 5688 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5689 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5690 | /* confdefs.h. */ |
| 5691 | _ACEOF |
| 5692 | cat confdefs.h >>conftest.$ac_ext |
| 5693 | cat >>conftest.$ac_ext <<_ACEOF |
| 5694 | /* end confdefs.h. */ |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 5695 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5696 | which can conflict with char $ac_func (); below. |
| 5697 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5698 | <limits.h> exists even on freestanding compilers. */ |
| 5699 | #ifdef __STDC__ |
| 5700 | # include <limits.h> |
| 5701 | #else |
| 5702 | # include <assert.h> |
| 5703 | #endif |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 5704 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5705 | #ifdef __cplusplus |
| 5706 | extern "C" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5707 | { |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 5708 | #endif |
| 5709 | /* We use char because int might match the return type of a gcc2 |
| 5710 | builtin and then its argument prototype would still apply. */ |
| 5711 | char $ac_func (); |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 5712 | /* The GNU C library defines this for functions which it implements |
| 5713 | to always fail with ENOSYS. Some functions are actually named |
| 5714 | something starting with __ and the normal name is an alias. */ |
| 5715 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 5716 | choke me |
| 5717 | #else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5718 | char (*f) () = $ac_func; |
| 5719 | #endif |
| 5720 | #ifdef __cplusplus |
| 5721 | } |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 5722 | #endif |
| 5723 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5724 | int |
| 5725 | main () |
| 5726 | { |
| 5727 | return f != $ac_func; |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 5728 | ; |
| 5729 | return 0; |
| 5730 | } |
| 5731 | _ACEOF |
| 5732 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5733 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 5734 | (eval $ac_link) 2>&5 |
| 5735 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 5737 | (exit $ac_status); } && |
| 5738 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 5740 | (eval $ac_try) 2>&5 |
| 5741 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 5743 | (exit $ac_status); }; }; then |
| 5744 | eval "$as_ac_var=yes" |
| 5745 | else |
| 5746 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5747 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5748 | |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 5749 | eval "$as_ac_var=no" |
| 5750 | fi |
| 5751 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5752 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5753 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 5754 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 5755 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5756 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 5757 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5758 | _ACEOF |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 5759 | |
| 5760 | else |
| 5761 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5762 | echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5 |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 5763 | echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6 |
| 5764 | if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then |
| 5765 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5766 | else |
| 5767 | ac_check_lib_save_LIBS=$LIBS |
| 5768 | LIBS="-lresolv $LIBS" |
| 5769 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5770 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5771 | /* confdefs.h. */ |
| 5772 | _ACEOF |
| 5773 | cat confdefs.h >>conftest.$ac_ext |
| 5774 | cat >>conftest.$ac_ext <<_ACEOF |
| 5775 | /* end confdefs.h. */ |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 5776 | |
| 5777 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5778 | #ifdef __cplusplus |
| 5779 | extern "C" |
| 5780 | #endif |
| 5781 | /* We use char because int might match the return type of a gcc2 |
| 5782 | builtin and then its argument prototype would still apply. */ |
| 5783 | char inet_aton (); |
| 5784 | int |
| 5785 | main () |
| 5786 | { |
| 5787 | inet_aton (); |
| 5788 | ; |
| 5789 | return 0; |
| 5790 | } |
| 5791 | _ACEOF |
| 5792 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5793 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 5794 | (eval $ac_link) 2>&5 |
| 5795 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 5797 | (exit $ac_status); } && |
| 5798 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5799 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 5800 | (eval $ac_try) 2>&5 |
| 5801 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 5803 | (exit $ac_status); }; }; then |
| 5804 | ac_cv_lib_resolv_inet_aton=yes |
| 5805 | else |
| 5806 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5807 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5808 | |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 5809 | ac_cv_lib_resolv_inet_aton=no |
| 5810 | fi |
| 5811 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5812 | LIBS=$ac_check_lib_save_LIBS |
| 5813 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5814 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5 |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 5815 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6 |
| 5816 | if test $ac_cv_lib_resolv_inet_aton = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5817 | cat >>confdefs.h <<_ACEOF |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 5818 | #define HAVE_LIBRESOLV 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5819 | _ACEOF |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 5820 | |
| 5821 | LIBS="-lresolv $LIBS" |
| 5822 | |
| 5823 | fi |
| 5824 | |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 5825 | fi |
| 5826 | done |
| 5827 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5828 | |
| 5829 | echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5830 | echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6 |
| 5831 | if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then |
| 5832 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 5833 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5834 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 5835 | LIBS="-lxpg4 $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5836 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5837 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5838 | /* confdefs.h. */ |
| 5839 | _ACEOF |
| 5840 | cat confdefs.h >>conftest.$ac_ext |
| 5841 | cat >>conftest.$ac_ext <<_ACEOF |
| 5842 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5843 | |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 5844 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5845 | #ifdef __cplusplus |
| 5846 | extern "C" |
| 5847 | #endif |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 5848 | /* 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] | 5849 | builtin and then its argument prototype would still apply. */ |
| 5850 | char _xpg4_setrunelocale (); |
| 5851 | int |
| 5852 | main () |
| 5853 | { |
| 5854 | _xpg4_setrunelocale (); |
| 5855 | ; |
| 5856 | return 0; |
| 5857 | } |
| 5858 | _ACEOF |
| 5859 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5860 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5861 | (eval $ac_link) 2>&5 |
| 5862 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5864 | (exit $ac_status); } && |
| 5865 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5866 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5867 | (eval $ac_try) 2>&5 |
| 5868 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5870 | (exit $ac_status); }; }; then |
| 5871 | ac_cv_lib_xpg4__xpg4_setrunelocale=yes |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 5872 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5873 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5874 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5875 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5876 | ac_cv_lib_xpg4__xpg4_setrunelocale=no |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 5877 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5878 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5879 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 5880 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5881 | echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5882 | echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6 |
| 5883 | if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5884 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5885 | #define HAVE_LIBXPG4 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5886 | _ACEOF |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 5887 | |
| 5888 | LIBS="-lxpg4 $LIBS" |
| 5889 | |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 5890 | fi |
| 5891 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5892 | |
| 5893 | echo "$as_me:$LINENO: checking for mmap in -lmmap" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5894 | echo $ECHO_N "checking for mmap in -lmmap... $ECHO_C" >&6 |
| 5895 | if test "${ac_cv_lib_mmap_mmap+set}" = set; then |
| 5896 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 5897 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5898 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 5899 | LIBS="-lmmap $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5900 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5901 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5902 | /* confdefs.h. */ |
| 5903 | _ACEOF |
| 5904 | cat confdefs.h >>conftest.$ac_ext |
| 5905 | cat >>conftest.$ac_ext <<_ACEOF |
| 5906 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5907 | |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 5908 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5909 | #ifdef __cplusplus |
| 5910 | extern "C" |
| 5911 | #endif |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 5912 | /* 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] | 5913 | builtin and then its argument prototype would still apply. */ |
| 5914 | char mmap (); |
| 5915 | int |
| 5916 | main () |
| 5917 | { |
| 5918 | mmap (); |
| 5919 | ; |
| 5920 | return 0; |
| 5921 | } |
| 5922 | _ACEOF |
| 5923 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5924 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5925 | (eval $ac_link) 2>&5 |
| 5926 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5928 | (exit $ac_status); } && |
| 5929 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5930 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5931 | (eval $ac_try) 2>&5 |
| 5932 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5934 | (exit $ac_status); }; }; then |
| 5935 | ac_cv_lib_mmap_mmap=yes |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 5936 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5937 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5938 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5939 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5940 | ac_cv_lib_mmap_mmap=no |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 5941 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5942 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5943 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 5944 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5945 | echo "$as_me:$LINENO: result: $ac_cv_lib_mmap_mmap" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5946 | echo "${ECHO_T}$ac_cv_lib_mmap_mmap" >&6 |
| 5947 | if test $ac_cv_lib_mmap_mmap = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5948 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5949 | #define HAVE_LIBMMAP 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5950 | _ACEOF |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 5951 | |
| 5952 | LIBS="-lmmap $LIBS" |
| 5953 | |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 5954 | fi |
| 5955 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5956 | |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 5957 | JPEGLIB="" |
Alexandre Julliard | 562089b | 2001-12-31 22:28:35 +0000 | [diff] [blame] | 5958 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 5959 | echo "$as_me:$LINENO: checking for egrep" >&5 |
| 5960 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
| 5961 | if test "${ac_cv_prog_egrep+set}" = set; then |
| 5962 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5963 | else |
| 5964 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
| 5965 | then ac_cv_prog_egrep='grep -E' |
| 5966 | else ac_cv_prog_egrep='egrep' |
| 5967 | fi |
| 5968 | fi |
| 5969 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
| 5970 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
| 5971 | EGREP=$ac_cv_prog_egrep |
| 5972 | |
| 5973 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5974 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 5975 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 5976 | if test "${ac_cv_header_stdc+set}" = set; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5977 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 5978 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5979 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5980 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5981 | /* confdefs.h. */ |
| 5982 | _ACEOF |
| 5983 | cat confdefs.h >>conftest.$ac_ext |
| 5984 | cat >>conftest.$ac_ext <<_ACEOF |
| 5985 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5986 | #include <stdlib.h> |
| 5987 | #include <stdarg.h> |
| 5988 | #include <string.h> |
| 5989 | #include <float.h> |
| 5990 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5991 | int |
| 5992 | main () |
| 5993 | { |
| 5994 | |
| 5995 | ; |
| 5996 | return 0; |
| 5997 | } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5998 | _ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5999 | rm -f conftest.$ac_objext |
| 6000 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6001 | (eval $ac_compile) 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6002 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6004 | (exit $ac_status); } && |
| 6005 | { ac_try='test -s conftest.$ac_objext' |
| 6006 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6007 | (eval $ac_try) 2>&5 |
| 6008 | ac_status=$? |
| 6009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6010 | (exit $ac_status); }; }; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6011 | ac_cv_header_stdc=yes |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6012 | else |
| 6013 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6014 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6015 | |
| 6016 | ac_cv_header_stdc=no |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 6017 | fi |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6018 | rm -f conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6019 | |
| 6020 | if test $ac_cv_header_stdc = yes; then |
| 6021 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 6022 | cat >conftest.$ac_ext <<_ACEOF |
| 6023 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6024 | /* confdefs.h. */ |
| 6025 | _ACEOF |
| 6026 | cat confdefs.h >>conftest.$ac_ext |
| 6027 | cat >>conftest.$ac_ext <<_ACEOF |
| 6028 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6029 | #include <string.h> |
| 6030 | |
| 6031 | _ACEOF |
| 6032 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 6033 | $EGREP "memchr" >/dev/null 2>&1; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6034 | : |
| 6035 | else |
| 6036 | ac_cv_header_stdc=no |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 6037 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6038 | rm -f conftest* |
| 6039 | |
| 6040 | fi |
| 6041 | |
| 6042 | if test $ac_cv_header_stdc = yes; then |
| 6043 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 6044 | cat >conftest.$ac_ext <<_ACEOF |
| 6045 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6046 | /* confdefs.h. */ |
| 6047 | _ACEOF |
| 6048 | cat confdefs.h >>conftest.$ac_ext |
| 6049 | cat >>conftest.$ac_ext <<_ACEOF |
| 6050 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6051 | #include <stdlib.h> |
| 6052 | |
| 6053 | _ACEOF |
| 6054 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 6055 | $EGREP "free" >/dev/null 2>&1; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6056 | : |
| 6057 | else |
| 6058 | ac_cv_header_stdc=no |
| 6059 | fi |
| 6060 | rm -f conftest* |
| 6061 | |
| 6062 | fi |
| 6063 | |
| 6064 | if test $ac_cv_header_stdc = yes; then |
| 6065 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 6066 | if test "$cross_compiling" = yes; then |
| 6067 | : |
| 6068 | else |
| 6069 | cat >conftest.$ac_ext <<_ACEOF |
| 6070 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6071 | /* confdefs.h. */ |
| 6072 | _ACEOF |
| 6073 | cat confdefs.h >>conftest.$ac_ext |
| 6074 | cat >>conftest.$ac_ext <<_ACEOF |
| 6075 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6076 | #include <ctype.h> |
| 6077 | #if ((' ' & 0x0FF) == 0x020) |
| 6078 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 6079 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 6080 | #else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6081 | # define ISLOWER(c) \ |
| 6082 | (('a' <= (c) && (c) <= 'i') \ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6083 | || ('j' <= (c) && (c) <= 'r') \ |
| 6084 | || ('s' <= (c) && (c) <= 'z')) |
| 6085 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 6086 | #endif |
| 6087 | |
| 6088 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 6089 | int |
| 6090 | main () |
| 6091 | { |
| 6092 | int i; |
| 6093 | for (i = 0; i < 256; i++) |
| 6094 | if (XOR (islower (i), ISLOWER (i)) |
| 6095 | || toupper (i) != TOUPPER (i)) |
| 6096 | exit(2); |
| 6097 | exit (0); |
| 6098 | } |
| 6099 | _ACEOF |
| 6100 | rm -f conftest$ac_exeext |
| 6101 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6102 | (eval $ac_link) 2>&5 |
| 6103 | ac_status=$? |
| 6104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6105 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6107 | (eval $ac_try) 2>&5 |
| 6108 | ac_status=$? |
| 6109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6110 | (exit $ac_status); }; }; then |
| 6111 | : |
| 6112 | else |
| 6113 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6114 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6115 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6116 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6117 | ( exit $ac_status ) |
| 6118 | ac_cv_header_stdc=no |
| 6119 | fi |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 6120 | 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] | 6121 | fi |
| 6122 | fi |
| 6123 | fi |
| 6124 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 6125 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 6126 | if test $ac_cv_header_stdc = yes; then |
| 6127 | |
| 6128 | cat >>confdefs.h <<\_ACEOF |
| 6129 | #define STDC_HEADERS 1 |
| 6130 | _ACEOF |
| 6131 | |
| 6132 | fi |
| 6133 | |
| 6134 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 6135 | |
| 6136 | |
| 6137 | |
| 6138 | |
| 6139 | |
| 6140 | |
| 6141 | |
| 6142 | |
| 6143 | |
| 6144 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 6145 | inttypes.h stdint.h unistd.h |
| 6146 | do |
| 6147 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6148 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6149 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 6150 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6151 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6152 | else |
| 6153 | cat >conftest.$ac_ext <<_ACEOF |
| 6154 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6155 | /* confdefs.h. */ |
| 6156 | _ACEOF |
| 6157 | cat confdefs.h >>conftest.$ac_ext |
| 6158 | cat >>conftest.$ac_ext <<_ACEOF |
| 6159 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6160 | $ac_includes_default |
| 6161 | |
| 6162 | #include <$ac_header> |
| 6163 | _ACEOF |
| 6164 | rm -f conftest.$ac_objext |
| 6165 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6166 | (eval $ac_compile) 2>&5 |
| 6167 | ac_status=$? |
| 6168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6169 | (exit $ac_status); } && |
| 6170 | { ac_try='test -s conftest.$ac_objext' |
| 6171 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6172 | (eval $ac_try) 2>&5 |
| 6173 | ac_status=$? |
| 6174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6175 | (exit $ac_status); }; }; then |
| 6176 | eval "$as_ac_Header=yes" |
| 6177 | else |
| 6178 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6179 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6180 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6181 | eval "$as_ac_Header=no" |
| 6182 | fi |
| 6183 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6184 | fi |
| 6185 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6186 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 6187 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6188 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6189 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6190 | _ACEOF |
| 6191 | |
| 6192 | fi |
| 6193 | |
| 6194 | done |
| 6195 | |
| 6196 | |
| 6197 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6198 | for ac_header in jpeglib.h |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 6199 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6200 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6201 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6202 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6203 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 6204 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6205 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6206 | fi |
| 6207 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 6208 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 6209 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6210 | # Is the header compilable? |
| 6211 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 6212 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 6213 | cat >conftest.$ac_ext <<_ACEOF |
| 6214 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6215 | /* confdefs.h. */ |
| 6216 | _ACEOF |
| 6217 | cat confdefs.h >>conftest.$ac_ext |
| 6218 | cat >>conftest.$ac_ext <<_ACEOF |
| 6219 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6220 | $ac_includes_default |
| 6221 | #include <$ac_header> |
| 6222 | _ACEOF |
| 6223 | rm -f conftest.$ac_objext |
| 6224 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6225 | (eval $ac_compile) 2>&5 |
| 6226 | ac_status=$? |
| 6227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6228 | (exit $ac_status); } && |
| 6229 | { ac_try='test -s conftest.$ac_objext' |
| 6230 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6231 | (eval $ac_try) 2>&5 |
| 6232 | ac_status=$? |
| 6233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6234 | (exit $ac_status); }; }; then |
| 6235 | ac_header_compiler=yes |
| 6236 | else |
| 6237 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6238 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6239 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6240 | ac_header_compiler=no |
| 6241 | fi |
| 6242 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6243 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6244 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 6245 | |
| 6246 | # Is the header present? |
| 6247 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 6248 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 6249 | cat >conftest.$ac_ext <<_ACEOF |
| 6250 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6251 | /* confdefs.h. */ |
| 6252 | _ACEOF |
| 6253 | cat confdefs.h >>conftest.$ac_ext |
| 6254 | cat >>conftest.$ac_ext <<_ACEOF |
| 6255 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6256 | #include <$ac_header> |
| 6257 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6258 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6259 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 6260 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 6261 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6262 | rm -f conftest.er1 |
| 6263 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6265 | (exit $ac_status); } >/dev/null; then |
| 6266 | if test -s conftest.err; then |
| 6267 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 6268 | else |
| 6269 | ac_cpp_err= |
| 6270 | fi |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 6271 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6272 | ac_cpp_err=yes |
| 6273 | fi |
| 6274 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6275 | ac_header_preproc=yes |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6276 | else |
| 6277 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6278 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6279 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6280 | ac_header_preproc=no |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 6281 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6282 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6283 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6284 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 6285 | |
| 6286 | # So? What about this header? |
| 6287 | case $ac_header_compiler:$ac_header_preproc in |
| 6288 | yes:no ) |
| 6289 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6290 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6291 | { 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] | 6292 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 6293 | ( |
| 6294 | cat <<\_ASBOX |
| 6295 | ## ------------------------------------ ## |
| 6296 | ## Report this to bug-autoconf@gnu.org. ## |
| 6297 | ## ------------------------------------ ## |
| 6298 | _ASBOX |
| 6299 | ) | |
| 6300 | sed "s/^/$as_me: WARNING: /" >&2 |
| 6301 | ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6302 | no:yes ) |
| 6303 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 6304 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 6305 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 6306 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 6307 | { 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] | 6308 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 6309 | ( |
| 6310 | cat <<\_ASBOX |
| 6311 | ## ------------------------------------ ## |
| 6312 | ## Report this to bug-autoconf@gnu.org. ## |
| 6313 | ## ------------------------------------ ## |
| 6314 | _ASBOX |
| 6315 | ) | |
| 6316 | sed "s/^/$as_me: WARNING: /" >&2 |
| 6317 | ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6318 | esac |
| 6319 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6320 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 6321 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6322 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6323 | else |
| 6324 | eval "$as_ac_Header=$ac_header_preproc" |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 6325 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6326 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6327 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6328 | |
| 6329 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6330 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6331 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6332 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6333 | _ACEOF |
| 6334 | echo "$as_me:$LINENO: checking for jpeg_start_decompress in -ljpeg" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6335 | echo $ECHO_N "checking for jpeg_start_decompress in -ljpeg... $ECHO_C" >&6 |
| 6336 | if test "${ac_cv_lib_jpeg_jpeg_start_decompress+set}" = set; then |
| 6337 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 6338 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6339 | ac_check_lib_save_LIBS=$LIBS |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 6340 | LIBS="-ljpeg $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6341 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6342 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6343 | /* confdefs.h. */ |
| 6344 | _ACEOF |
| 6345 | cat confdefs.h >>conftest.$ac_ext |
| 6346 | cat >>conftest.$ac_ext <<_ACEOF |
| 6347 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6348 | |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 6349 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6350 | #ifdef __cplusplus |
| 6351 | extern "C" |
| 6352 | #endif |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 6353 | /* 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] | 6354 | builtin and then its argument prototype would still apply. */ |
| 6355 | char jpeg_start_decompress (); |
| 6356 | int |
| 6357 | main () |
| 6358 | { |
| 6359 | jpeg_start_decompress (); |
| 6360 | ; |
| 6361 | return 0; |
| 6362 | } |
| 6363 | _ACEOF |
| 6364 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6365 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6366 | (eval $ac_link) 2>&5 |
| 6367 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6369 | (exit $ac_status); } && |
| 6370 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6371 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6372 | (eval $ac_try) 2>&5 |
| 6373 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6375 | (exit $ac_status); }; }; then |
| 6376 | ac_cv_lib_jpeg_jpeg_start_decompress=yes |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 6377 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6378 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6379 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6380 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6381 | ac_cv_lib_jpeg_jpeg_start_decompress=no |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 6382 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6383 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6384 | LIBS=$ac_check_lib_save_LIBS |
| 6385 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6386 | 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] | 6387 | echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_start_decompress" >&6 |
| 6388 | if test $ac_cv_lib_jpeg_jpeg_start_decompress = yes; then |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 6389 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6390 | cat >>confdefs.h <<\_ACEOF |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 6391 | #define HAVE_LIBJPEG 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6392 | _ACEOF |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 6393 | |
| 6394 | JPEGLIB="-ljpeg" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6395 | |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 6396 | fi |
| 6397 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6398 | |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 6399 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6400 | |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 6401 | done |
| 6402 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6403 | |
Marcus Meissner | 728bedc | 2003-01-09 06:04:33 +0000 | [diff] [blame] | 6404 | GIFLIB="" |
| 6405 | |
| 6406 | |
| 6407 | for ac_header in gif_lib.h |
| 6408 | do |
| 6409 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6410 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6411 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6412 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 6413 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6414 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6415 | fi |
| 6416 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 6417 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 6418 | else |
| 6419 | # Is the header compilable? |
| 6420 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 6421 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 6422 | cat >conftest.$ac_ext <<_ACEOF |
| 6423 | #line $LINENO "configure" |
| 6424 | /* confdefs.h. */ |
| 6425 | _ACEOF |
| 6426 | cat confdefs.h >>conftest.$ac_ext |
| 6427 | cat >>conftest.$ac_ext <<_ACEOF |
| 6428 | /* end confdefs.h. */ |
| 6429 | $ac_includes_default |
| 6430 | #include <$ac_header> |
| 6431 | _ACEOF |
| 6432 | rm -f conftest.$ac_objext |
| 6433 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6434 | (eval $ac_compile) 2>&5 |
| 6435 | ac_status=$? |
| 6436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6437 | (exit $ac_status); } && |
| 6438 | { ac_try='test -s conftest.$ac_objext' |
| 6439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6440 | (eval $ac_try) 2>&5 |
| 6441 | ac_status=$? |
| 6442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6443 | (exit $ac_status); }; }; then |
| 6444 | ac_header_compiler=yes |
| 6445 | else |
| 6446 | echo "$as_me: failed program was:" >&5 |
| 6447 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6448 | |
| 6449 | ac_header_compiler=no |
| 6450 | fi |
| 6451 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6452 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6453 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 6454 | |
| 6455 | # Is the header present? |
| 6456 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 6457 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 6458 | cat >conftest.$ac_ext <<_ACEOF |
| 6459 | #line $LINENO "configure" |
| 6460 | /* confdefs.h. */ |
| 6461 | _ACEOF |
| 6462 | cat confdefs.h >>conftest.$ac_ext |
| 6463 | cat >>conftest.$ac_ext <<_ACEOF |
| 6464 | /* end confdefs.h. */ |
| 6465 | #include <$ac_header> |
| 6466 | _ACEOF |
| 6467 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6468 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 6469 | ac_status=$? |
| 6470 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6471 | rm -f conftest.er1 |
| 6472 | cat conftest.err >&5 |
| 6473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6474 | (exit $ac_status); } >/dev/null; then |
| 6475 | if test -s conftest.err; then |
| 6476 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 6477 | else |
| 6478 | ac_cpp_err= |
| 6479 | fi |
| 6480 | else |
| 6481 | ac_cpp_err=yes |
| 6482 | fi |
| 6483 | if test -z "$ac_cpp_err"; then |
| 6484 | ac_header_preproc=yes |
| 6485 | else |
| 6486 | echo "$as_me: failed program was:" >&5 |
| 6487 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6488 | |
| 6489 | ac_header_preproc=no |
| 6490 | fi |
| 6491 | rm -f conftest.err conftest.$ac_ext |
| 6492 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6493 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 6494 | |
| 6495 | # So? What about this header? |
| 6496 | case $ac_header_compiler:$ac_header_preproc in |
| 6497 | yes:no ) |
| 6498 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6499 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6500 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 6501 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 6502 | ( |
| 6503 | cat <<\_ASBOX |
| 6504 | ## ------------------------------------ ## |
| 6505 | ## Report this to bug-autoconf@gnu.org. ## |
| 6506 | ## ------------------------------------ ## |
| 6507 | _ASBOX |
| 6508 | ) | |
| 6509 | sed "s/^/$as_me: WARNING: /" >&2 |
| 6510 | ;; |
| 6511 | no:yes ) |
| 6512 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 6513 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 6514 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 6515 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 6516 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 6517 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 6518 | ( |
| 6519 | cat <<\_ASBOX |
| 6520 | ## ------------------------------------ ## |
| 6521 | ## Report this to bug-autoconf@gnu.org. ## |
| 6522 | ## ------------------------------------ ## |
| 6523 | _ASBOX |
| 6524 | ) | |
| 6525 | sed "s/^/$as_me: WARNING: /" >&2 |
| 6526 | ;; |
| 6527 | esac |
| 6528 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6529 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 6530 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6531 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6532 | else |
| 6533 | eval "$as_ac_Header=$ac_header_preproc" |
| 6534 | fi |
| 6535 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 6536 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 6537 | |
| 6538 | fi |
| 6539 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 6540 | cat >>confdefs.h <<_ACEOF |
| 6541 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 6542 | _ACEOF |
| 6543 | echo "$as_me:$LINENO: checking for DGifOpen in -lungif" >&5 |
| 6544 | echo $ECHO_N "checking for DGifOpen in -lungif... $ECHO_C" >&6 |
| 6545 | if test "${ac_cv_lib_ungif_DGifOpen+set}" = set; then |
| 6546 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6547 | else |
| 6548 | ac_check_lib_save_LIBS=$LIBS |
| 6549 | LIBS="-lungif $LIBS" |
| 6550 | cat >conftest.$ac_ext <<_ACEOF |
| 6551 | #line $LINENO "configure" |
| 6552 | /* confdefs.h. */ |
| 6553 | _ACEOF |
| 6554 | cat confdefs.h >>conftest.$ac_ext |
| 6555 | cat >>conftest.$ac_ext <<_ACEOF |
| 6556 | /* end confdefs.h. */ |
| 6557 | |
| 6558 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6559 | #ifdef __cplusplus |
| 6560 | extern "C" |
| 6561 | #endif |
| 6562 | /* We use char because int might match the return type of a gcc2 |
| 6563 | builtin and then its argument prototype would still apply. */ |
| 6564 | char DGifOpen (); |
| 6565 | int |
| 6566 | main () |
| 6567 | { |
| 6568 | DGifOpen (); |
| 6569 | ; |
| 6570 | return 0; |
| 6571 | } |
| 6572 | _ACEOF |
| 6573 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6574 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6575 | (eval $ac_link) 2>&5 |
| 6576 | ac_status=$? |
| 6577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6578 | (exit $ac_status); } && |
| 6579 | { ac_try='test -s conftest$ac_exeext' |
| 6580 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6581 | (eval $ac_try) 2>&5 |
| 6582 | ac_status=$? |
| 6583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6584 | (exit $ac_status); }; }; then |
| 6585 | ac_cv_lib_ungif_DGifOpen=yes |
| 6586 | else |
| 6587 | echo "$as_me: failed program was:" >&5 |
| 6588 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6589 | |
| 6590 | ac_cv_lib_ungif_DGifOpen=no |
| 6591 | fi |
| 6592 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6593 | LIBS=$ac_check_lib_save_LIBS |
| 6594 | fi |
| 6595 | echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_DGifOpen" >&5 |
| 6596 | echo "${ECHO_T}$ac_cv_lib_ungif_DGifOpen" >&6 |
| 6597 | if test $ac_cv_lib_ungif_DGifOpen = yes; then |
| 6598 | |
| 6599 | cat >>confdefs.h <<\_ACEOF |
| 6600 | #define HAVE_LIBGIF 1 |
| 6601 | _ACEOF |
| 6602 | |
| 6603 | GIFLIB="-lungif" |
| 6604 | else |
| 6605 | echo "$as_me:$LINENO: checking for DGifOpen in -lgif" >&5 |
| 6606 | echo $ECHO_N "checking for DGifOpen in -lgif... $ECHO_C" >&6 |
| 6607 | if test "${ac_cv_lib_gif_DGifOpen+set}" = set; then |
| 6608 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6609 | else |
| 6610 | ac_check_lib_save_LIBS=$LIBS |
| 6611 | LIBS="-lgif $LIBS" |
| 6612 | cat >conftest.$ac_ext <<_ACEOF |
| 6613 | #line $LINENO "configure" |
| 6614 | /* confdefs.h. */ |
| 6615 | _ACEOF |
| 6616 | cat confdefs.h >>conftest.$ac_ext |
| 6617 | cat >>conftest.$ac_ext <<_ACEOF |
| 6618 | /* end confdefs.h. */ |
| 6619 | |
| 6620 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6621 | #ifdef __cplusplus |
| 6622 | extern "C" |
| 6623 | #endif |
| 6624 | /* We use char because int might match the return type of a gcc2 |
| 6625 | builtin and then its argument prototype would still apply. */ |
| 6626 | char DGifOpen (); |
| 6627 | int |
| 6628 | main () |
| 6629 | { |
| 6630 | DGifOpen (); |
| 6631 | ; |
| 6632 | return 0; |
| 6633 | } |
| 6634 | _ACEOF |
| 6635 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6636 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6637 | (eval $ac_link) 2>&5 |
| 6638 | ac_status=$? |
| 6639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6640 | (exit $ac_status); } && |
| 6641 | { ac_try='test -s conftest$ac_exeext' |
| 6642 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6643 | (eval $ac_try) 2>&5 |
| 6644 | ac_status=$? |
| 6645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6646 | (exit $ac_status); }; }; then |
| 6647 | ac_cv_lib_gif_DGifOpen=yes |
| 6648 | else |
| 6649 | echo "$as_me: failed program was:" >&5 |
| 6650 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6651 | |
| 6652 | ac_cv_lib_gif_DGifOpen=no |
| 6653 | fi |
| 6654 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6655 | LIBS=$ac_check_lib_save_LIBS |
| 6656 | fi |
| 6657 | echo "$as_me:$LINENO: result: $ac_cv_lib_gif_DGifOpen" >&5 |
| 6658 | echo "${ECHO_T}$ac_cv_lib_gif_DGifOpen" >&6 |
| 6659 | if test $ac_cv_lib_gif_DGifOpen = yes; then |
| 6660 | cat >>confdefs.h <<\_ACEOF |
| 6661 | #define HAVE_LIBGIF 1 |
| 6662 | _ACEOF |
| 6663 | |
| 6664 | GIFLIB="-lgif" |
| 6665 | fi |
| 6666 | |
| 6667 | fi |
| 6668 | |
| 6669 | fi |
| 6670 | |
| 6671 | done |
| 6672 | |
| 6673 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6674 | |
| 6675 | |
| 6676 | |
Patrik Stridvall | 2941a21 | 2000-04-25 20:34:22 +0000 | [diff] [blame] | 6677 | XFILES="" |
Marcus Meissner | 10ad97c | 2000-04-09 14:30:50 +0000 | [diff] [blame] | 6678 | |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 6679 | OPENGLFILES="" |
| 6680 | |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 6681 | GLU32FILES="" |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 6682 | |
| 6683 | OPENGL_LIBS="" |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 6684 | if test "$have_x" = "yes" |
| 6685 | then |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6686 | XLIB="-lXext -lX11" |
Ove Kaaven | 1eb593c | 1999-02-14 09:34:46 +0000 | [diff] [blame] | 6687 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 6688 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 6689 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6690 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6691 | for ac_header in X11/Xlib.h |
Lionel Ulmer | a1d6d24 | 1999-01-30 15:54:43 +0000 | [diff] [blame] | 6692 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6693 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6694 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6695 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 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 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6699 | fi |
| 6700 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 6701 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Lionel Ulmer | a1d6d24 | 1999-01-30 15:54:43 +0000 | [diff] [blame] | 6702 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6703 | # Is the header compilable? |
| 6704 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 6705 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 6706 | cat >conftest.$ac_ext <<_ACEOF |
| 6707 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6708 | /* confdefs.h. */ |
| 6709 | _ACEOF |
| 6710 | cat confdefs.h >>conftest.$ac_ext |
| 6711 | cat >>conftest.$ac_ext <<_ACEOF |
| 6712 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6713 | $ac_includes_default |
| 6714 | #include <$ac_header> |
| 6715 | _ACEOF |
| 6716 | rm -f conftest.$ac_objext |
| 6717 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6718 | (eval $ac_compile) 2>&5 |
| 6719 | ac_status=$? |
| 6720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6721 | (exit $ac_status); } && |
| 6722 | { ac_try='test -s conftest.$ac_objext' |
| 6723 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6724 | (eval $ac_try) 2>&5 |
| 6725 | ac_status=$? |
| 6726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6727 | (exit $ac_status); }; }; then |
| 6728 | ac_header_compiler=yes |
| 6729 | else |
| 6730 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6731 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6732 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6733 | ac_header_compiler=no |
| 6734 | fi |
| 6735 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6736 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6737 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 6738 | |
| 6739 | # Is the header present? |
| 6740 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 6741 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 6742 | cat >conftest.$ac_ext <<_ACEOF |
| 6743 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6744 | /* confdefs.h. */ |
| 6745 | _ACEOF |
| 6746 | cat confdefs.h >>conftest.$ac_ext |
| 6747 | cat >>conftest.$ac_ext <<_ACEOF |
| 6748 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6749 | #include <$ac_header> |
| 6750 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6751 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6752 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 6753 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 6754 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6755 | rm -f conftest.er1 |
| 6756 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6758 | (exit $ac_status); } >/dev/null; then |
| 6759 | if test -s conftest.err; then |
| 6760 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 6761 | else |
| 6762 | ac_cpp_err= |
| 6763 | fi |
Lionel Ulmer | a1d6d24 | 1999-01-30 15:54:43 +0000 | [diff] [blame] | 6764 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6765 | ac_cpp_err=yes |
| 6766 | fi |
| 6767 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6768 | ac_header_preproc=yes |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6769 | else |
| 6770 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6771 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6772 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6773 | ac_header_preproc=no |
Lionel Ulmer | a1d6d24 | 1999-01-30 15:54:43 +0000 | [diff] [blame] | 6774 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6775 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6776 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6777 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 6778 | |
| 6779 | # So? What about this header? |
| 6780 | case $ac_header_compiler:$ac_header_preproc in |
| 6781 | yes:no ) |
| 6782 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6783 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6784 | { 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] | 6785 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 6786 | ( |
| 6787 | cat <<\_ASBOX |
| 6788 | ## ------------------------------------ ## |
| 6789 | ## Report this to bug-autoconf@gnu.org. ## |
| 6790 | ## ------------------------------------ ## |
| 6791 | _ASBOX |
| 6792 | ) | |
| 6793 | sed "s/^/$as_me: WARNING: /" >&2 |
| 6794 | ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6795 | no:yes ) |
| 6796 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 6797 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 6798 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 6799 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 6800 | { 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] | 6801 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 6802 | ( |
| 6803 | cat <<\_ASBOX |
| 6804 | ## ------------------------------------ ## |
| 6805 | ## Report this to bug-autoconf@gnu.org. ## |
| 6806 | ## ------------------------------------ ## |
| 6807 | _ASBOX |
| 6808 | ) | |
| 6809 | sed "s/^/$as_me: WARNING: /" >&2 |
| 6810 | ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6811 | esac |
| 6812 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6813 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 6814 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6815 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6816 | else |
| 6817 | eval "$as_ac_Header=$ac_header_preproc" |
Lionel Ulmer | a1d6d24 | 1999-01-30 15:54:43 +0000 | [diff] [blame] | 6818 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6819 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6820 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6821 | |
| 6822 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6823 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6824 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6825 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6826 | _ACEOF |
| 6827 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6828 | |
| 6829 | for ac_header in X11/XKBlib.h |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 6830 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6831 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 6832 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6833 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 6834 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6835 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6836 | else |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 6837 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6838 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6839 | /* confdefs.h. */ |
| 6840 | _ACEOF |
| 6841 | cat confdefs.h >>conftest.$ac_ext |
| 6842 | cat >>conftest.$ac_ext <<_ACEOF |
| 6843 | /* end confdefs.h. */ |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 6844 | #include <X11/Xlib.h> |
| 6845 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6846 | #include <$ac_header> |
| 6847 | _ACEOF |
| 6848 | rm -f conftest.$ac_objext |
| 6849 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6850 | (eval $ac_compile) 2>&5 |
| 6851 | ac_status=$? |
| 6852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6853 | (exit $ac_status); } && |
| 6854 | { ac_try='test -s conftest.$ac_objext' |
| 6855 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6856 | (eval $ac_try) 2>&5 |
| 6857 | ac_status=$? |
| 6858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6859 | (exit $ac_status); }; }; then |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 6860 | eval "$as_ac_Header=yes" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6861 | else |
| 6862 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6863 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6864 | |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 6865 | eval "$as_ac_Header=no" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6866 | fi |
| 6867 | rm -f conftest.$ac_objext conftest.$ac_ext |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 6868 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6869 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6870 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 6871 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6872 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6873 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6874 | _ACEOF |
| 6875 | echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6876 | echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6 |
| 6877 | if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then |
| 6878 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6879 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6880 | ac_check_lib_save_LIBS=$LIBS |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 6881 | LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6882 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6883 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6884 | /* confdefs.h. */ |
| 6885 | _ACEOF |
| 6886 | cat confdefs.h >>conftest.$ac_ext |
| 6887 | cat >>conftest.$ac_ext <<_ACEOF |
| 6888 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6889 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6890 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6891 | #ifdef __cplusplus |
| 6892 | extern "C" |
| 6893 | #endif |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6894 | /* 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] | 6895 | builtin and then its argument prototype would still apply. */ |
| 6896 | char XkbQueryExtension (); |
| 6897 | int |
| 6898 | main () |
| 6899 | { |
| 6900 | XkbQueryExtension (); |
| 6901 | ; |
| 6902 | return 0; |
| 6903 | } |
| 6904 | _ACEOF |
| 6905 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6906 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6907 | (eval $ac_link) 2>&5 |
| 6908 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6910 | (exit $ac_status); } && |
| 6911 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6912 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6913 | (eval $ac_try) 2>&5 |
| 6914 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6916 | (exit $ac_status); }; }; then |
| 6917 | ac_cv_lib_X11_XkbQueryExtension=yes |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6918 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6919 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6920 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6921 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6922 | ac_cv_lib_X11_XkbQueryExtension=no |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6923 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6924 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6925 | LIBS=$ac_check_lib_save_LIBS |
| 6926 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6927 | echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6928 | echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6 |
| 6929 | if test $ac_cv_lib_X11_XkbQueryExtension = yes; then |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6930 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6931 | cat >>confdefs.h <<\_ACEOF |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 6932 | #define HAVE_XKB 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6933 | _ACEOF |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6934 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6935 | fi |
| 6936 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6937 | |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 6938 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6939 | { 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] | 6940 | 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] | 6941 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6942 | |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 6943 | done |
| 6944 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6945 | |
| 6946 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6947 | for ac_header in X11/extensions/XShm.h |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6948 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6949 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6950 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6951 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 6952 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6953 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6954 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6955 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6956 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6957 | /* confdefs.h. */ |
| 6958 | _ACEOF |
| 6959 | cat confdefs.h >>conftest.$ac_ext |
| 6960 | cat >>conftest.$ac_ext <<_ACEOF |
| 6961 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6962 | #include <X11/Xlib.h> |
| 6963 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6964 | #include <$ac_header> |
| 6965 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6966 | rm -f conftest.$ac_objext |
| 6967 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6968 | (eval $ac_compile) 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6969 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6971 | (exit $ac_status); } && |
| 6972 | { ac_try='test -s conftest.$ac_objext' |
| 6973 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6974 | (eval $ac_try) 2>&5 |
| 6975 | ac_status=$? |
| 6976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6977 | (exit $ac_status); }; }; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6978 | eval "$as_ac_Header=yes" |
| 6979 | else |
| 6980 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6981 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6982 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6983 | eval "$as_ac_Header=no" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6984 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6985 | rm -f conftest.$ac_objext conftest.$ac_ext |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6986 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6987 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6988 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 6989 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6990 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6991 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6992 | _ACEOF |
| 6993 | echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6994 | echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6 |
| 6995 | if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then |
| 6996 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 6997 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6998 | ac_check_lib_save_LIBS=$LIBS |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 6999 | LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7000 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7001 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7002 | /* confdefs.h. */ |
| 7003 | _ACEOF |
| 7004 | cat confdefs.h >>conftest.$ac_ext |
| 7005 | cat >>conftest.$ac_ext <<_ACEOF |
| 7006 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7007 | |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 7008 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7009 | #ifdef __cplusplus |
| 7010 | extern "C" |
| 7011 | #endif |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 7012 | /* 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] | 7013 | builtin and then its argument prototype would still apply. */ |
| 7014 | char XShmQueryExtension (); |
| 7015 | int |
| 7016 | main () |
| 7017 | { |
| 7018 | XShmQueryExtension (); |
| 7019 | ; |
| 7020 | return 0; |
| 7021 | } |
| 7022 | _ACEOF |
| 7023 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7024 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7025 | (eval $ac_link) 2>&5 |
| 7026 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7028 | (exit $ac_status); } && |
| 7029 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7031 | (eval $ac_try) 2>&5 |
| 7032 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7034 | (exit $ac_status); }; }; then |
| 7035 | ac_cv_lib_Xext_XShmQueryExtension=yes |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 7036 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7037 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7038 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7039 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7040 | ac_cv_lib_Xext_XShmQueryExtension=no |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 7041 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7042 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 7043 | LIBS=$ac_check_lib_save_LIBS |
| 7044 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7045 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7046 | echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6 |
| 7047 | if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 7048 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7049 | cat >>confdefs.h <<\_ACEOF |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 7050 | #define HAVE_LIBXXSHM 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7051 | _ACEOF |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 7052 | |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 7053 | fi |
| 7054 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7055 | |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 7056 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7057 | { 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] | 7058 | 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] | 7059 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7060 | |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 7061 | done |
| 7062 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7063 | |
| 7064 | |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 7065 | for ac_header in X11/Xutil.h |
| 7066 | do |
| 7067 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 7068 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7069 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7070 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7071 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7072 | else |
| 7073 | cat >conftest.$ac_ext <<_ACEOF |
| 7074 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7075 | /* confdefs.h. */ |
| 7076 | _ACEOF |
| 7077 | cat confdefs.h >>conftest.$ac_ext |
| 7078 | cat >>conftest.$ac_ext <<_ACEOF |
| 7079 | /* end confdefs.h. */ |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 7080 | #include <X11/Xlib.h> |
| 7081 | |
| 7082 | #include <$ac_header> |
| 7083 | _ACEOF |
| 7084 | rm -f conftest.$ac_objext |
| 7085 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7086 | (eval $ac_compile) 2>&5 |
| 7087 | ac_status=$? |
| 7088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7089 | (exit $ac_status); } && |
| 7090 | { ac_try='test -s conftest.$ac_objext' |
| 7091 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7092 | (eval $ac_try) 2>&5 |
| 7093 | ac_status=$? |
| 7094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7095 | (exit $ac_status); }; }; then |
| 7096 | eval "$as_ac_Header=yes" |
| 7097 | else |
| 7098 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7099 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7100 | |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 7101 | eval "$as_ac_Header=no" |
| 7102 | fi |
| 7103 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7104 | fi |
| 7105 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 7106 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 7107 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 7108 | cat >>confdefs.h <<_ACEOF |
| 7109 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 7110 | _ACEOF |
| 7111 | |
| 7112 | fi |
| 7113 | |
| 7114 | done |
| 7115 | |
| 7116 | |
| 7117 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7118 | for ac_header in X11/extensions/shape.h |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 7119 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7120 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7121 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7122 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7123 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7124 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 7125 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7126 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7127 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7128 | /* confdefs.h. */ |
| 7129 | _ACEOF |
| 7130 | cat confdefs.h >>conftest.$ac_ext |
| 7131 | cat >>conftest.$ac_ext <<_ACEOF |
| 7132 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7133 | #include <X11/Xlib.h> |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 7134 | #ifdef HAVE_X11_XUTIL_H |
| 7135 | # include <X11/Xutil.h> |
| 7136 | #endif |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7137 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7138 | #include <$ac_header> |
| 7139 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7140 | rm -f conftest.$ac_objext |
| 7141 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7142 | (eval $ac_compile) 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7143 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7145 | (exit $ac_status); } && |
| 7146 | { ac_try='test -s conftest.$ac_objext' |
| 7147 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7148 | (eval $ac_try) 2>&5 |
| 7149 | ac_status=$? |
| 7150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7151 | (exit $ac_status); }; }; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7152 | eval "$as_ac_Header=yes" |
| 7153 | else |
| 7154 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7155 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7156 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7157 | eval "$as_ac_Header=no" |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 7158 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7159 | rm -f conftest.$ac_objext conftest.$ac_ext |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 7160 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7161 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7162 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 7163 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7164 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7165 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7166 | _ACEOF |
| 7167 | echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7168 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 |
| 7169 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then |
| 7170 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 7171 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7172 | ac_check_lib_save_LIBS=$LIBS |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 7173 | LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7174 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7175 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7176 | /* confdefs.h. */ |
| 7177 | _ACEOF |
| 7178 | cat confdefs.h >>conftest.$ac_ext |
| 7179 | cat >>conftest.$ac_ext <<_ACEOF |
| 7180 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7181 | |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 7182 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7183 | #ifdef __cplusplus |
| 7184 | extern "C" |
| 7185 | #endif |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 7186 | /* 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] | 7187 | builtin and then its argument prototype would still apply. */ |
| 7188 | char XShapeQueryExtension (); |
| 7189 | int |
| 7190 | main () |
| 7191 | { |
| 7192 | XShapeQueryExtension (); |
| 7193 | ; |
| 7194 | return 0; |
| 7195 | } |
| 7196 | _ACEOF |
| 7197 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7198 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7199 | (eval $ac_link) 2>&5 |
| 7200 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7202 | (exit $ac_status); } && |
| 7203 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7204 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7205 | (eval $ac_try) 2>&5 |
| 7206 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7208 | (exit $ac_status); }; }; then |
| 7209 | ac_cv_lib_Xext_XShapeQueryExtension=yes |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 7210 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7211 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7212 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7213 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7214 | ac_cv_lib_Xext_XShapeQueryExtension=no |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 7215 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7216 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 7217 | LIBS=$ac_check_lib_save_LIBS |
| 7218 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7219 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7220 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 |
| 7221 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 7222 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7223 | cat >>confdefs.h <<\_ACEOF |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 7224 | #define HAVE_LIBXSHAPE 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7225 | _ACEOF |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 7226 | |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 7227 | fi |
| 7228 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7229 | |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 7230 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7231 | { 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] | 7232 | 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] | 7233 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7234 | |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 7235 | done |
| 7236 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7237 | |
| 7238 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7239 | for ac_header in X11/extensions/xf86dga.h |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 7240 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7241 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7242 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7243 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7244 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7245 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 7246 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7247 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7248 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7249 | /* confdefs.h. */ |
| 7250 | _ACEOF |
| 7251 | cat confdefs.h >>conftest.$ac_ext |
| 7252 | cat >>conftest.$ac_ext <<_ACEOF |
| 7253 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7254 | #include <X11/Xlib.h> |
| 7255 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7256 | #include <$ac_header> |
| 7257 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7258 | rm -f conftest.$ac_objext |
| 7259 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7260 | (eval $ac_compile) 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7261 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7263 | (exit $ac_status); } && |
| 7264 | { ac_try='test -s conftest.$ac_objext' |
| 7265 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7266 | (eval $ac_try) 2>&5 |
| 7267 | ac_status=$? |
| 7268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7269 | (exit $ac_status); }; }; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7270 | eval "$as_ac_Header=yes" |
| 7271 | else |
| 7272 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7273 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7274 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7275 | eval "$as_ac_Header=no" |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 7276 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7277 | rm -f conftest.$ac_objext conftest.$ac_ext |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 7278 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7279 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7280 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 7281 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7282 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7283 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7284 | _ACEOF |
| 7285 | echo "$as_me:$LINENO: checking for XDGAQueryExtension in -lXxf86dga" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7286 | echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6 |
| 7287 | if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then |
| 7288 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7289 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7290 | ac_check_lib_save_LIBS=$LIBS |
Marcus Meissner | 10ad97c | 2000-04-09 14:30:50 +0000 | [diff] [blame] | 7291 | LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 7292 | $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7293 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7294 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7295 | /* confdefs.h. */ |
| 7296 | _ACEOF |
| 7297 | cat confdefs.h >>conftest.$ac_ext |
| 7298 | cat >>conftest.$ac_ext <<_ACEOF |
| 7299 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7300 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7301 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7302 | #ifdef __cplusplus |
| 7303 | extern "C" |
| 7304 | #endif |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7305 | /* 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] | 7306 | builtin and then its argument prototype would still apply. */ |
| 7307 | char XDGAQueryExtension (); |
| 7308 | int |
| 7309 | main () |
| 7310 | { |
| 7311 | XDGAQueryExtension (); |
| 7312 | ; |
| 7313 | return 0; |
| 7314 | } |
| 7315 | _ACEOF |
| 7316 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7317 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7318 | (eval $ac_link) 2>&5 |
| 7319 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7321 | (exit $ac_status); } && |
| 7322 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7324 | (eval $ac_try) 2>&5 |
| 7325 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7327 | (exit $ac_status); }; }; then |
| 7328 | ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes |
Lionel Ulmer | d94475b | 1999-09-20 18:42:46 +0000 | [diff] [blame] | 7329 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7330 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7331 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7332 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7333 | ac_cv_lib_Xxf86dga_XDGAQueryExtension=no |
Lionel Ulmer | d94475b | 1999-09-20 18:42:46 +0000 | [diff] [blame] | 7334 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7335 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 7336 | LIBS=$ac_check_lib_save_LIBS |
| 7337 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7338 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7339 | echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6 |
| 7340 | if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then |
Lionel Ulmer | d94475b | 1999-09-20 18:42:46 +0000 | [diff] [blame] | 7341 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7342 | cat >>confdefs.h <<\_ACEOF |
Lionel Ulmer | d94475b | 1999-09-20 18:42:46 +0000 | [diff] [blame] | 7343 | #define HAVE_LIBXXF86DGA2 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7344 | _ACEOF |
Marcus Meissner | 10ad97c | 2000-04-09 14:30:50 +0000 | [diff] [blame] | 7345 | |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 7346 | X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7347 | |
Lionel Ulmer | d94475b | 1999-09-20 18:42:46 +0000 | [diff] [blame] | 7348 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7349 | echo "$as_me:$LINENO: checking for XF86DGAQueryExtension in -lXxf86dga" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7350 | echo $ECHO_N "checking for XF86DGAQueryExtension in -lXxf86dga... $ECHO_C" >&6 |
| 7351 | if test "${ac_cv_lib_Xxf86dga_XF86DGAQueryExtension+set}" = set; then |
| 7352 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Lionel Ulmer | d94475b | 1999-09-20 18:42:46 +0000 | [diff] [blame] | 7353 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7354 | ac_check_lib_save_LIBS=$LIBS |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 7355 | LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS |
| 7356 | $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7357 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7358 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7359 | /* confdefs.h. */ |
| 7360 | _ACEOF |
| 7361 | cat confdefs.h >>conftest.$ac_ext |
| 7362 | cat >>conftest.$ac_ext <<_ACEOF |
| 7363 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7364 | |
Lionel Ulmer | d94475b | 1999-09-20 18:42:46 +0000 | [diff] [blame] | 7365 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7366 | #ifdef __cplusplus |
| 7367 | extern "C" |
| 7368 | #endif |
Lionel Ulmer | d94475b | 1999-09-20 18:42:46 +0000 | [diff] [blame] | 7369 | /* 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] | 7370 | builtin and then its argument prototype would still apply. */ |
| 7371 | char XF86DGAQueryExtension (); |
| 7372 | int |
| 7373 | main () |
| 7374 | { |
| 7375 | XF86DGAQueryExtension (); |
| 7376 | ; |
| 7377 | return 0; |
| 7378 | } |
| 7379 | _ACEOF |
| 7380 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7381 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7382 | (eval $ac_link) 2>&5 |
| 7383 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7385 | (exit $ac_status); } && |
| 7386 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7387 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7388 | (eval $ac_try) 2>&5 |
| 7389 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7391 | (exit $ac_status); }; }; then |
| 7392 | ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=yes |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7393 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7394 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7395 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7396 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7397 | ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=no |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7398 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7399 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 7400 | LIBS=$ac_check_lib_save_LIBS |
| 7401 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7402 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7403 | echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&6 |
| 7404 | if test $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension = yes; then |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7405 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7406 | cat >>confdefs.h <<\_ACEOF |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7407 | #define HAVE_LIBXXF86DGA 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7408 | _ACEOF |
Marcus Meissner | 10ad97c | 2000-04-09 14:30:50 +0000 | [diff] [blame] | 7409 | |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 7410 | X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7411 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7412 | fi |
| 7413 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7414 | |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 7415 | fi |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7416 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7417 | |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 7418 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7419 | { 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] | 7420 | 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] | 7421 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7422 | |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 7423 | done |
| 7424 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7425 | |
| 7426 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7427 | for ac_header in X11/extensions/xf86vmode.h |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7428 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7429 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7430 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7431 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7432 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7433 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7434 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7435 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7436 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7437 | /* confdefs.h. */ |
| 7438 | _ACEOF |
| 7439 | cat confdefs.h >>conftest.$ac_ext |
| 7440 | cat >>conftest.$ac_ext <<_ACEOF |
| 7441 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7442 | #include <X11/Xlib.h> |
| 7443 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7444 | #include <$ac_header> |
| 7445 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7446 | rm -f conftest.$ac_objext |
| 7447 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7448 | (eval $ac_compile) 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7449 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7451 | (exit $ac_status); } && |
| 7452 | { ac_try='test -s conftest.$ac_objext' |
| 7453 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7454 | (eval $ac_try) 2>&5 |
| 7455 | ac_status=$? |
| 7456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7457 | (exit $ac_status); }; }; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7458 | eval "$as_ac_Header=yes" |
| 7459 | else |
| 7460 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7461 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7462 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7463 | eval "$as_ac_Header=no" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7464 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7465 | rm -f conftest.$ac_objext conftest.$ac_ext |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7466 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7467 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7468 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 7469 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7470 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7471 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7472 | _ACEOF |
| 7473 | echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7474 | echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6 |
| 7475 | if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then |
| 7476 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7477 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7478 | ac_check_lib_save_LIBS=$LIBS |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 7479 | LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS |
| 7480 | $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7481 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7482 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7483 | /* confdefs.h. */ |
| 7484 | _ACEOF |
| 7485 | cat confdefs.h >>conftest.$ac_ext |
| 7486 | cat >>conftest.$ac_ext <<_ACEOF |
| 7487 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7488 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7489 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7490 | #ifdef __cplusplus |
| 7491 | extern "C" |
| 7492 | #endif |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7493 | /* We use char because int might match the return type of a gcc2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7494 | builtin and then its argument prototype would still apply. */ |
| 7495 | char XF86VidModeQueryExtension (); |
| 7496 | int |
| 7497 | main () |
| 7498 | { |
| 7499 | XF86VidModeQueryExtension (); |
| 7500 | ; |
| 7501 | return 0; |
| 7502 | } |
| 7503 | _ACEOF |
| 7504 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7505 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7506 | (eval $ac_link) 2>&5 |
| 7507 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7509 | (exit $ac_status); } && |
| 7510 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7511 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7512 | (eval $ac_try) 2>&5 |
| 7513 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7515 | (exit $ac_status); }; }; then |
| 7516 | ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7517 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7518 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7519 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7520 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7521 | ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7522 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7523 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 7524 | LIBS=$ac_check_lib_save_LIBS |
| 7525 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7526 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7527 | echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6 |
| 7528 | if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7529 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7530 | cat >>confdefs.h <<\_ACEOF |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7531 | #define HAVE_LIBXXF86VM 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7532 | _ACEOF |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 7533 | |
| 7534 | X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7535 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7536 | fi |
| 7537 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7538 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7539 | else |
| 7540 | { echo "$as_me:$LINENO: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&5 |
| 7541 | 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] | 7542 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7543 | |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 7544 | done |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 7545 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7546 | |
| 7547 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7548 | for ac_header in X11/extensions/Xvlib.h |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 7549 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7550 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7551 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7552 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7553 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7554 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 7555 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7556 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7557 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7558 | /* confdefs.h. */ |
| 7559 | _ACEOF |
| 7560 | cat confdefs.h >>conftest.$ac_ext |
| 7561 | cat >>conftest.$ac_ext <<_ACEOF |
| 7562 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7563 | #include <X11/Xlib.h> |
| 7564 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7565 | #include <$ac_header> |
| 7566 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7567 | rm -f conftest.$ac_objext |
| 7568 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7569 | (eval $ac_compile) 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7570 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7572 | (exit $ac_status); } && |
| 7573 | { ac_try='test -s conftest.$ac_objext' |
| 7574 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7575 | (eval $ac_try) 2>&5 |
| 7576 | ac_status=$? |
| 7577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7578 | (exit $ac_status); }; }; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7579 | eval "$as_ac_Header=yes" |
| 7580 | else |
| 7581 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7582 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7583 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7584 | eval "$as_ac_Header=no" |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 7585 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7586 | rm -f conftest.$ac_objext conftest.$ac_ext |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 7587 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7588 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7589 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 7590 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7591 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7592 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7593 | _ACEOF |
| 7594 | echo "$as_me:$LINENO: checking for XvShmCreateImage in -lXv" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7595 | echo $ECHO_N "checking for XvShmCreateImage in -lXv... $ECHO_C" >&6 |
| 7596 | if test "${ac_cv_lib_Xv_XvShmCreateImage+set}" = set; then |
| 7597 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 7598 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7599 | ac_check_lib_save_LIBS=$LIBS |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 7600 | LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS |
| 7601 | $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7602 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7603 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7604 | /* confdefs.h. */ |
| 7605 | _ACEOF |
| 7606 | cat confdefs.h >>conftest.$ac_ext |
| 7607 | cat >>conftest.$ac_ext <<_ACEOF |
| 7608 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7609 | |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 7610 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7611 | #ifdef __cplusplus |
| 7612 | extern "C" |
| 7613 | #endif |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 7614 | /* 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] | 7615 | builtin and then its argument prototype would still apply. */ |
| 7616 | char XvShmCreateImage (); |
| 7617 | int |
| 7618 | main () |
| 7619 | { |
| 7620 | XvShmCreateImage (); |
| 7621 | ; |
| 7622 | return 0; |
| 7623 | } |
| 7624 | _ACEOF |
| 7625 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7626 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7627 | (eval $ac_link) 2>&5 |
| 7628 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7630 | (exit $ac_status); } && |
| 7631 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7632 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7633 | (eval $ac_try) 2>&5 |
| 7634 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7636 | (exit $ac_status); }; }; then |
| 7637 | ac_cv_lib_Xv_XvShmCreateImage=yes |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 7638 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7639 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7640 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7641 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7642 | ac_cv_lib_Xv_XvShmCreateImage=no |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 7643 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7644 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 7645 | LIBS=$ac_check_lib_save_LIBS |
| 7646 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7647 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xv_XvShmCreateImage" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7648 | echo "${ECHO_T}$ac_cv_lib_Xv_XvShmCreateImage" >&6 |
| 7649 | if test $ac_cv_lib_Xv_XvShmCreateImage = yes; then |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 7650 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7651 | cat >>confdefs.h <<\_ACEOF |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 7652 | #define HAVE_XVIDEO 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7653 | _ACEOF |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 7654 | |
| 7655 | X_PRE_LIBS="$X_PRE_LIBS -lXv" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7656 | |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 7657 | fi |
| 7658 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7659 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7660 | else |
| 7661 | { echo "$as_me:$LINENO: WARNING: XVideo extension not found, Wine will be built without it" >&5 |
| 7662 | 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] | 7663 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7664 | |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 7665 | done |
| 7666 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7667 | |
| 7668 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7669 | for ac_header in X11/extensions/Xrender.h |
Huw D M Davies | ff453fc | 2001-09-14 01:04:25 +0000 | [diff] [blame] | 7670 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7671 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7672 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7673 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7674 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7675 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Huw D M Davies | ff453fc | 2001-09-14 01:04:25 +0000 | [diff] [blame] | 7676 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7677 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7678 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7679 | /* confdefs.h. */ |
| 7680 | _ACEOF |
| 7681 | cat confdefs.h >>conftest.$ac_ext |
| 7682 | cat >>conftest.$ac_ext <<_ACEOF |
| 7683 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7684 | #include <X11/Xlib.h> |
| 7685 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7686 | #include <$ac_header> |
| 7687 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7688 | rm -f conftest.$ac_objext |
| 7689 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7690 | (eval $ac_compile) 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7691 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7693 | (exit $ac_status); } && |
| 7694 | { ac_try='test -s conftest.$ac_objext' |
| 7695 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7696 | (eval $ac_try) 2>&5 |
| 7697 | ac_status=$? |
| 7698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7699 | (exit $ac_status); }; }; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7700 | eval "$as_ac_Header=yes" |
| 7701 | else |
| 7702 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7703 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7704 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7705 | eval "$as_ac_Header=no" |
Huw D M Davies | ff453fc | 2001-09-14 01:04:25 +0000 | [diff] [blame] | 7706 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7707 | rm -f conftest.$ac_objext conftest.$ac_ext |
Huw D M Davies | ff453fc | 2001-09-14 01:04:25 +0000 | [diff] [blame] | 7708 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7709 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7710 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 7711 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7712 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7713 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7714 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7715 | |
Huw D M Davies | ff453fc | 2001-09-14 01:04:25 +0000 | [diff] [blame] | 7716 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7717 | |
Huw D M Davies | ff453fc | 2001-09-14 01:04:25 +0000 | [diff] [blame] | 7718 | done |
| 7719 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7720 | |
| 7721 | |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 7722 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7723 | |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 7724 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7725 | |
Alexandre Julliard | b807499 | 2002-11-21 21:51:24 +0000 | [diff] [blame] | 7726 | if test "x$with_opengl" != "xno" |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 7727 | then |
Francois Gouget | 42dcd97 | 2002-01-29 17:52:28 +0000 | [diff] [blame] | 7728 | 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] | 7729 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7730 | { { 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] | 7731 | This prevents linking to OpenGL. Delete the file and restart configure." >&5 |
| 7732 | echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system. |
| 7733 | This prevents linking to OpenGL. Delete the file and restart configure." >&2;} |
| 7734 | { (exit 1); exit 1; }; } |
Alexandre Julliard | b508a1d | 2002-01-21 18:06:10 +0000 | [diff] [blame] | 7735 | fi |
| 7736 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7737 | |
| 7738 | |
| 7739 | for ac_header in GL/gl.h GL/glx.h |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7740 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7741 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7742 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7743 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7744 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7745 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7746 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7747 | fi |
| 7748 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 7749 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7750 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7751 | # Is the header compilable? |
| 7752 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 7753 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 7754 | cat >conftest.$ac_ext <<_ACEOF |
| 7755 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7756 | /* confdefs.h. */ |
| 7757 | _ACEOF |
| 7758 | cat confdefs.h >>conftest.$ac_ext |
| 7759 | cat >>conftest.$ac_ext <<_ACEOF |
| 7760 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7761 | $ac_includes_default |
| 7762 | #include <$ac_header> |
| 7763 | _ACEOF |
| 7764 | rm -f conftest.$ac_objext |
| 7765 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7766 | (eval $ac_compile) 2>&5 |
| 7767 | ac_status=$? |
| 7768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7769 | (exit $ac_status); } && |
| 7770 | { ac_try='test -s conftest.$ac_objext' |
| 7771 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7772 | (eval $ac_try) 2>&5 |
| 7773 | ac_status=$? |
| 7774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7775 | (exit $ac_status); }; }; then |
| 7776 | ac_header_compiler=yes |
| 7777 | else |
| 7778 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7779 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7780 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7781 | ac_header_compiler=no |
| 7782 | fi |
| 7783 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7784 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7785 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 7786 | |
| 7787 | # Is the header present? |
| 7788 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 7789 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 7790 | cat >conftest.$ac_ext <<_ACEOF |
| 7791 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7792 | /* confdefs.h. */ |
| 7793 | _ACEOF |
| 7794 | cat confdefs.h >>conftest.$ac_ext |
| 7795 | cat >>conftest.$ac_ext <<_ACEOF |
| 7796 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7797 | #include <$ac_header> |
| 7798 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7799 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7800 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 7801 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 7802 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7803 | rm -f conftest.er1 |
| 7804 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7806 | (exit $ac_status); } >/dev/null; then |
| 7807 | if test -s conftest.err; then |
| 7808 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 7809 | else |
| 7810 | ac_cpp_err= |
| 7811 | fi |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7812 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7813 | ac_cpp_err=yes |
| 7814 | fi |
| 7815 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7816 | ac_header_preproc=yes |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7817 | else |
| 7818 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7819 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7820 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7821 | ac_header_preproc=no |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7822 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7823 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7824 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7825 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 7826 | |
| 7827 | # So? What about this header? |
| 7828 | case $ac_header_compiler:$ac_header_preproc in |
| 7829 | yes:no ) |
| 7830 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7831 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7832 | { 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] | 7833 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 7834 | ( |
| 7835 | cat <<\_ASBOX |
| 7836 | ## ------------------------------------ ## |
| 7837 | ## Report this to bug-autoconf@gnu.org. ## |
| 7838 | ## ------------------------------------ ## |
| 7839 | _ASBOX |
| 7840 | ) | |
| 7841 | sed "s/^/$as_me: WARNING: /" >&2 |
| 7842 | ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7843 | no:yes ) |
| 7844 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 7845 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 7846 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 7847 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 7848 | { 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] | 7849 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 7850 | ( |
| 7851 | cat <<\_ASBOX |
| 7852 | ## ------------------------------------ ## |
| 7853 | ## Report this to bug-autoconf@gnu.org. ## |
| 7854 | ## ------------------------------------ ## |
| 7855 | _ASBOX |
| 7856 | ) | |
| 7857 | sed "s/^/$as_me: WARNING: /" >&2 |
| 7858 | ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7859 | esac |
| 7860 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7861 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7862 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7863 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7864 | else |
| 7865 | eval "$as_ac_Header=$ac_header_preproc" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7866 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7867 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7868 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7869 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7870 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7871 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 7872 | cat >>confdefs.h <<_ACEOF |
| 7873 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 7874 | _ACEOF |
| 7875 | |
| 7876 | fi |
| 7877 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7878 | done |
| 7879 | |
Marcus Meissner | 22a969b | 2000-08-08 20:46:50 +0000 | [diff] [blame] | 7880 | 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] | 7881 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7882 | |
| 7883 | for ac_header in GL/glext.h |
| 7884 | do |
| 7885 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 7886 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7887 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7888 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7889 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7890 | else |
| 7891 | cat >conftest.$ac_ext <<_ACEOF |
| 7892 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7893 | /* confdefs.h. */ |
| 7894 | _ACEOF |
| 7895 | cat confdefs.h >>conftest.$ac_ext |
| 7896 | cat >>conftest.$ac_ext <<_ACEOF |
| 7897 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7898 | #include <GL/glx.h> |
| 7899 | |
| 7900 | #include <$ac_header> |
| 7901 | _ACEOF |
| 7902 | rm -f conftest.$ac_objext |
| 7903 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7904 | (eval $ac_compile) 2>&5 |
| 7905 | ac_status=$? |
| 7906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7907 | (exit $ac_status); } && |
| 7908 | { ac_try='test -s conftest.$ac_objext' |
| 7909 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7910 | (eval $ac_try) 2>&5 |
| 7911 | ac_status=$? |
| 7912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7913 | (exit $ac_status); }; }; then |
| 7914 | eval "$as_ac_Header=yes" |
| 7915 | else |
| 7916 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7917 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7918 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7919 | eval "$as_ac_Header=no" |
| 7920 | fi |
| 7921 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7922 | fi |
| 7923 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 7924 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 7925 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 7926 | cat >>confdefs.h <<_ACEOF |
| 7927 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 7928 | _ACEOF |
| 7929 | |
| 7930 | fi |
| 7931 | |
| 7932 | done |
| 7933 | |
| 7934 | echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7935 | echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6 |
| 7936 | if test "${wine_cv_opengl_version_OK+set}" = set; then |
| 7937 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 7938 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7939 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7940 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7941 | /* confdefs.h. */ |
| 7942 | _ACEOF |
| 7943 | cat confdefs.h >>conftest.$ac_ext |
| 7944 | cat >>conftest.$ac_ext <<_ACEOF |
| 7945 | /* end confdefs.h. */ |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 7946 | #include <GL/gl.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7947 | int |
| 7948 | main () |
| 7949 | { |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 7950 | GLenum test = GL_UNSIGNED_SHORT_5_6_5; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7951 | ; |
| 7952 | return 0; |
| 7953 | } |
| 7954 | _ACEOF |
| 7955 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7956 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7957 | (eval $ac_compile) 2>&5 |
| 7958 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7960 | (exit $ac_status); } && |
| 7961 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7962 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7963 | (eval $ac_try) 2>&5 |
| 7964 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7966 | (exit $ac_status); }; }; then |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 7967 | wine_cv_opengl_version_OK="yes" |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 7968 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7969 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7970 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7971 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7972 | wine_cv_opengl_version_OK="no" |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 7973 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7974 | fi |
| 7975 | rm -f conftest.$ac_objext conftest.$ac_ext |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 7976 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7977 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7978 | echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7979 | echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6 |
| 7980 | |
Alexandre Julliard | b807499 | 2002-11-21 21:51:24 +0000 | [diff] [blame] | 7981 | if test "$wine_cv_opengl_version_OK" = "yes" |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 7982 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7983 | echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7984 | echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6 |
| 7985 | if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then |
| 7986 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7987 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7988 | ac_check_lib_save_LIBS=$LIBS |
Marcus Meissner | 376ec88 | 2000-01-05 03:24:52 +0000 | [diff] [blame] | 7989 | LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7990 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7991 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7992 | /* confdefs.h. */ |
| 7993 | _ACEOF |
| 7994 | cat confdefs.h >>conftest.$ac_ext |
| 7995 | cat >>conftest.$ac_ext <<_ACEOF |
| 7996 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7997 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7998 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7999 | #ifdef __cplusplus |
| 8000 | extern "C" |
| 8001 | #endif |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8002 | /* 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] | 8003 | builtin and then its argument prototype would still apply. */ |
| 8004 | char glXCreateContext (); |
| 8005 | int |
| 8006 | main () |
| 8007 | { |
| 8008 | glXCreateContext (); |
| 8009 | ; |
| 8010 | return 0; |
| 8011 | } |
| 8012 | _ACEOF |
| 8013 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8014 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8015 | (eval $ac_link) 2>&5 |
| 8016 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8018 | (exit $ac_status); } && |
| 8019 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8021 | (eval $ac_try) 2>&5 |
| 8022 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8024 | (exit $ac_status); }; }; then |
| 8025 | ac_cv_lib_GL_glXCreateContext=yes |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8026 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8027 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8028 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8029 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8030 | ac_cv_lib_GL_glXCreateContext=no |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8031 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8032 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 8033 | LIBS=$ac_check_lib_save_LIBS |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8034 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8035 | echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8036 | echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6 |
| 8037 | if test $ac_cv_lib_GL_glXCreateContext = yes; then |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 8038 | OPENGL_LIBS="-lGL" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8039 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8040 | fi |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 8041 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8042 | |
Alexandre Julliard | b508a1d | 2002-01-21 18:06:10 +0000 | [diff] [blame] | 8043 | if test "$ac_cv_lib_GL_glXCreateContext" = "yes" |
Lionel Ulmer | bd8ede1 | 2000-10-12 20:45:58 +0000 | [diff] [blame] | 8044 | then |
Lionel Ulmer | bd8ede1 | 2000-10-12 20:45:58 +0000 | [diff] [blame] | 8045 | OPENGLFILES='$(OPENGLFILES)' |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8046 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8047 | cat >>confdefs.h <<\_ACEOF |
Marcus Meissner | 6bb6d4c | 2000-08-09 22:21:08 +0000 | [diff] [blame] | 8048 | #define HAVE_OPENGL 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8049 | _ACEOF |
Marcus Meissner | 6bb6d4c | 2000-08-09 22:21:08 +0000 | [diff] [blame] | 8050 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8051 | |
| 8052 | echo "$as_me:$LINENO: checking for glXGetProcAddressARB in -lGL" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8053 | echo $ECHO_N "checking for glXGetProcAddressARB in -lGL... $ECHO_C" >&6 |
| 8054 | if test "${ac_cv_lib_GL_glXGetProcAddressARB+set}" = set; then |
| 8055 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 8056 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8057 | ac_check_lib_save_LIBS=$LIBS |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 8058 | LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8059 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8060 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8061 | /* confdefs.h. */ |
| 8062 | _ACEOF |
| 8063 | cat confdefs.h >>conftest.$ac_ext |
| 8064 | cat >>conftest.$ac_ext <<_ACEOF |
| 8065 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8066 | |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 8067 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8068 | #ifdef __cplusplus |
| 8069 | extern "C" |
| 8070 | #endif |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 8071 | /* 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] | 8072 | builtin and then its argument prototype would still apply. */ |
| 8073 | char glXGetProcAddressARB (); |
| 8074 | int |
| 8075 | main () |
| 8076 | { |
| 8077 | glXGetProcAddressARB (); |
| 8078 | ; |
| 8079 | return 0; |
| 8080 | } |
| 8081 | _ACEOF |
| 8082 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8083 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8084 | (eval $ac_link) 2>&5 |
| 8085 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8087 | (exit $ac_status); } && |
| 8088 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8089 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8090 | (eval $ac_try) 2>&5 |
| 8091 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8093 | (exit $ac_status); }; }; then |
| 8094 | ac_cv_lib_GL_glXGetProcAddressARB=yes |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 8095 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8096 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8097 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8098 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8099 | ac_cv_lib_GL_glXGetProcAddressARB=no |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 8100 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8101 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 8102 | LIBS=$ac_check_lib_save_LIBS |
| 8103 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8104 | echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXGetProcAddressARB" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8105 | echo "${ECHO_T}$ac_cv_lib_GL_glXGetProcAddressARB" >&6 |
| 8106 | if test $ac_cv_lib_GL_glXGetProcAddressARB = yes; then |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 8107 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8108 | cat >>confdefs.h <<\_ACEOF |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 8109 | #define HAVE_GLX_GETPROCADDRESS 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8110 | _ACEOF |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 8111 | |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 8112 | fi |
| 8113 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8114 | |
Alexandre Julliard | b508a1d | 2002-01-21 18:06:10 +0000 | [diff] [blame] | 8115 | if test "$ac_cv_lib_GL_glXGetProcAddressARB" = "yes" |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 8116 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8117 | echo "$as_me:$LINENO: checking for OpenGL extension functions prototypes" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8118 | echo $ECHO_N "checking for OpenGL extension functions prototypes... $ECHO_C" >&6 |
| 8119 | if test "${wine_cv_extension_prototypes+set}" = set; then |
| 8120 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Lionel Ulmer | 1434d87 | 2000-07-23 14:23:31 +0000 | [diff] [blame] | 8121 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8122 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8123 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8124 | /* confdefs.h. */ |
| 8125 | _ACEOF |
| 8126 | cat confdefs.h >>conftest.$ac_ext |
| 8127 | cat >>conftest.$ac_ext <<_ACEOF |
| 8128 | /* end confdefs.h. */ |
Lionel Ulmer | 1434d87 | 2000-07-23 14:23:31 +0000 | [diff] [blame] | 8129 | #include <GL/gl.h> |
Marcus Meissner | 6bb6d4c | 2000-08-09 22:21:08 +0000 | [diff] [blame] | 8130 | #ifdef HAVE_GL_GLEXT_H |
| 8131 | # include <GL/glext.h> |
| 8132 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8133 | |
| 8134 | int |
| 8135 | main () |
| 8136 | { |
Lionel Ulmer | 1434d87 | 2000-07-23 14:23:31 +0000 | [diff] [blame] | 8137 | PFNGLCOLORTABLEEXTPROC test_proc; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8138 | ; |
| 8139 | return 0; |
| 8140 | } |
| 8141 | _ACEOF |
| 8142 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8143 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8144 | (eval $ac_compile) 2>&5 |
| 8145 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8147 | (exit $ac_status); } && |
| 8148 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8150 | (eval $ac_try) 2>&5 |
| 8151 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8153 | (exit $ac_status); }; }; then |
Lionel Ulmer | fe210ef | 2000-07-29 11:30:56 +0000 | [diff] [blame] | 8154 | wine_cv_extension_prototypes="yes" |
Lionel Ulmer | 1434d87 | 2000-07-23 14:23:31 +0000 | [diff] [blame] | 8155 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8156 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8157 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8158 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8159 | wine_cv_extension_prototypes="no" |
Lionel Ulmer | 1434d87 | 2000-07-23 14:23:31 +0000 | [diff] [blame] | 8160 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8161 | fi |
| 8162 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8163 | |
| 8164 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8165 | echo "$as_me:$LINENO: result: $wine_cv_extension_prototypes" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8166 | echo "${ECHO_T}$wine_cv_extension_prototypes" >&6 |
Alexandre Julliard | b508a1d | 2002-01-21 18:06:10 +0000 | [diff] [blame] | 8167 | if test "$wine_cv_extension_prototypes" = "yes" |
Lionel Ulmer | fe210ef | 2000-07-29 11:30:56 +0000 | [diff] [blame] | 8168 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8169 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8170 | cat >>confdefs.h <<\_ACEOF |
Lionel Ulmer | fe210ef | 2000-07-29 11:30:56 +0000 | [diff] [blame] | 8171 | #define HAVE_GLEXT_PROTOTYPES 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8172 | _ACEOF |
Lionel Ulmer | fe210ef | 2000-07-29 11:30:56 +0000 | [diff] [blame] | 8173 | |
| 8174 | fi |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 8175 | fi |
Alexandre Julliard | d6c0f9f | 2001-01-04 22:44:55 +0000 | [diff] [blame] | 8176 | |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 8177 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8178 | echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8179 | echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6 |
| 8180 | if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then |
| 8181 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 8182 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8183 | ac_check_lib_save_LIBS=$LIBS |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 8184 | 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] | 8185 | $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8186 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8187 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8188 | /* confdefs.h. */ |
| 8189 | _ACEOF |
| 8190 | cat confdefs.h >>conftest.$ac_ext |
| 8191 | cat >>conftest.$ac_ext <<_ACEOF |
| 8192 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8193 | |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 8194 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8195 | #ifdef __cplusplus |
| 8196 | extern "C" |
| 8197 | #endif |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 8198 | /* 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] | 8199 | builtin and then its argument prototype would still apply. */ |
| 8200 | char gluLookAt (); |
| 8201 | int |
| 8202 | main () |
| 8203 | { |
| 8204 | gluLookAt (); |
| 8205 | ; |
| 8206 | return 0; |
| 8207 | } |
| 8208 | _ACEOF |
| 8209 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8210 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8211 | (eval $ac_link) 2>&5 |
| 8212 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8214 | (exit $ac_status); } && |
| 8215 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8216 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8217 | (eval $ac_try) 2>&5 |
| 8218 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8220 | (exit $ac_status); }; }; then |
| 8221 | ac_cv_lib_GLU_gluLookAt=yes |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 8222 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8223 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8224 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8225 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8226 | ac_cv_lib_GLU_gluLookAt=no |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 8227 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8228 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 8229 | LIBS=$ac_check_lib_save_LIBS |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 8230 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8231 | echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8232 | echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6 |
| 8233 | if test $ac_cv_lib_GLU_gluLookAt = yes; then |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 8234 | OPENGL_LIBS="$OPENGL_LIBS -lGLU" |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 8235 | GLU32FILES='$(GLU32FILES)' |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8236 | |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 8237 | fi |
| 8238 | |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 8239 | fi |
| 8240 | fi |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8241 | fi |
Ove Kaaven | 1eb593c | 1999-02-14 09:34:46 +0000 | [diff] [blame] | 8242 | |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8243 | NASLIBS="" |
| 8244 | |
| 8245 | |
| 8246 | for ac_header in audio/audiolib.h |
| 8247 | do |
| 8248 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8249 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8250 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8251 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8252 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8253 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8254 | fi |
| 8255 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8256 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8257 | else |
| 8258 | # Is the header compilable? |
| 8259 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8260 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 8261 | cat >conftest.$ac_ext <<_ACEOF |
| 8262 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8263 | /* confdefs.h. */ |
| 8264 | _ACEOF |
| 8265 | cat confdefs.h >>conftest.$ac_ext |
| 8266 | cat >>conftest.$ac_ext <<_ACEOF |
| 8267 | /* end confdefs.h. */ |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8268 | $ac_includes_default |
| 8269 | #include <$ac_header> |
| 8270 | _ACEOF |
| 8271 | rm -f conftest.$ac_objext |
| 8272 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8273 | (eval $ac_compile) 2>&5 |
| 8274 | ac_status=$? |
| 8275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8276 | (exit $ac_status); } && |
| 8277 | { ac_try='test -s conftest.$ac_objext' |
| 8278 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8279 | (eval $ac_try) 2>&5 |
| 8280 | ac_status=$? |
| 8281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8282 | (exit $ac_status); }; }; then |
| 8283 | ac_header_compiler=yes |
| 8284 | else |
| 8285 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8286 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8287 | |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8288 | ac_header_compiler=no |
| 8289 | fi |
| 8290 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8291 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8292 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 8293 | |
| 8294 | # Is the header present? |
| 8295 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8296 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 8297 | cat >conftest.$ac_ext <<_ACEOF |
| 8298 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8299 | /* confdefs.h. */ |
| 8300 | _ACEOF |
| 8301 | cat confdefs.h >>conftest.$ac_ext |
| 8302 | cat >>conftest.$ac_ext <<_ACEOF |
| 8303 | /* end confdefs.h. */ |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8304 | #include <$ac_header> |
| 8305 | _ACEOF |
| 8306 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8307 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 8308 | ac_status=$? |
| 8309 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8310 | rm -f conftest.er1 |
| 8311 | cat conftest.err >&5 |
| 8312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8313 | (exit $ac_status); } >/dev/null; then |
| 8314 | if test -s conftest.err; then |
| 8315 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8316 | else |
| 8317 | ac_cpp_err= |
| 8318 | fi |
| 8319 | else |
| 8320 | ac_cpp_err=yes |
| 8321 | fi |
| 8322 | if test -z "$ac_cpp_err"; then |
| 8323 | ac_header_preproc=yes |
| 8324 | else |
| 8325 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8326 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8327 | |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8328 | ac_header_preproc=no |
| 8329 | fi |
| 8330 | rm -f conftest.err conftest.$ac_ext |
| 8331 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8332 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 8333 | |
| 8334 | # So? What about this header? |
| 8335 | case $ac_header_compiler:$ac_header_preproc in |
| 8336 | yes:no ) |
| 8337 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8338 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8339 | { 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] | 8340 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8341 | ( |
| 8342 | cat <<\_ASBOX |
| 8343 | ## ------------------------------------ ## |
| 8344 | ## Report this to bug-autoconf@gnu.org. ## |
| 8345 | ## ------------------------------------ ## |
| 8346 | _ASBOX |
| 8347 | ) | |
| 8348 | sed "s/^/$as_me: WARNING: /" >&2 |
| 8349 | ;; |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8350 | no:yes ) |
| 8351 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8352 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 8353 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8354 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8355 | { 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] | 8356 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8357 | ( |
| 8358 | cat <<\_ASBOX |
| 8359 | ## ------------------------------------ ## |
| 8360 | ## Report this to bug-autoconf@gnu.org. ## |
| 8361 | ## ------------------------------------ ## |
| 8362 | _ASBOX |
| 8363 | ) | |
| 8364 | sed "s/^/$as_me: WARNING: /" >&2 |
| 8365 | ;; |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8366 | esac |
| 8367 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8368 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8369 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8370 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8371 | else |
| 8372 | eval "$as_ac_Header=$ac_header_preproc" |
| 8373 | fi |
| 8374 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8375 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8376 | |
| 8377 | fi |
| 8378 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8379 | cat >>confdefs.h <<_ACEOF |
| 8380 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8381 | _ACEOF |
| 8382 | |
| 8383 | for ac_header in audio/soundlib.h |
| 8384 | do |
| 8385 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8386 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8387 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8388 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8389 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8390 | else |
| 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. */ |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8398 | #include <audio/audiolib.h> |
| 8399 | |
| 8400 | #include <$ac_header> |
| 8401 | _ACEOF |
| 8402 | rm -f conftest.$ac_objext |
| 8403 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8404 | (eval $ac_compile) 2>&5 |
| 8405 | ac_status=$? |
| 8406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8407 | (exit $ac_status); } && |
| 8408 | { ac_try='test -s conftest.$ac_objext' |
| 8409 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8410 | (eval $ac_try) 2>&5 |
| 8411 | ac_status=$? |
| 8412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8413 | (exit $ac_status); }; }; then |
| 8414 | eval "$as_ac_Header=yes" |
| 8415 | else |
| 8416 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8417 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8418 | |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8419 | eval "$as_ac_Header=no" |
| 8420 | fi |
| 8421 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8422 | fi |
| 8423 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8424 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8425 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8426 | cat >>confdefs.h <<_ACEOF |
| 8427 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8428 | _ACEOF |
| 8429 | |
| 8430 | fi |
| 8431 | |
| 8432 | done |
| 8433 | |
| 8434 | echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5 |
| 8435 | echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6 |
| 8436 | if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then |
| 8437 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8438 | else |
| 8439 | ac_check_lib_save_LIBS=$LIBS |
| 8440 | LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
| 8441 | cat >conftest.$ac_ext <<_ACEOF |
| 8442 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8443 | /* confdefs.h. */ |
| 8444 | _ACEOF |
| 8445 | cat confdefs.h >>conftest.$ac_ext |
| 8446 | cat >>conftest.$ac_ext <<_ACEOF |
| 8447 | /* end confdefs.h. */ |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8448 | |
| 8449 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8450 | #ifdef __cplusplus |
| 8451 | extern "C" |
| 8452 | #endif |
| 8453 | /* We use char because int might match the return type of a gcc2 |
| 8454 | builtin and then its argument prototype would still apply. */ |
| 8455 | char AuCreateFlow (); |
| 8456 | int |
| 8457 | main () |
| 8458 | { |
| 8459 | AuCreateFlow (); |
| 8460 | ; |
| 8461 | return 0; |
| 8462 | } |
| 8463 | _ACEOF |
| 8464 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8465 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8466 | (eval $ac_link) 2>&5 |
| 8467 | ac_status=$? |
| 8468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8469 | (exit $ac_status); } && |
| 8470 | { ac_try='test -s conftest$ac_exeext' |
| 8471 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8472 | (eval $ac_try) 2>&5 |
| 8473 | ac_status=$? |
| 8474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8475 | (exit $ac_status); }; }; then |
| 8476 | ac_cv_lib_audio_AuCreateFlow=yes |
| 8477 | else |
| 8478 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8479 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8480 | |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8481 | ac_cv_lib_audio_AuCreateFlow=no |
| 8482 | fi |
| 8483 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 8484 | LIBS=$ac_check_lib_save_LIBS |
| 8485 | fi |
| 8486 | echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5 |
| 8487 | echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6 |
| 8488 | if test $ac_cv_lib_audio_AuCreateFlow = yes; then |
| 8489 | |
| 8490 | cat >>confdefs.h <<\_ACEOF |
| 8491 | #define HAVE_NAS 1 |
| 8492 | _ACEOF |
| 8493 | |
| 8494 | NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS" |
| 8495 | fi |
| 8496 | |
| 8497 | fi |
| 8498 | |
| 8499 | done |
| 8500 | |
| 8501 | |
Ove Kaaven | 1eb593c | 1999-02-14 09:34:46 +0000 | [diff] [blame] | 8502 | CPPFLAGS="$ac_save_CPPFLAGS" |
Patrik Stridvall | 2941a21 | 2000-04-25 20:34:22 +0000 | [diff] [blame] | 8503 | XFILES='$(XFILES)' |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 8504 | else |
| 8505 | XLIB="" |
| 8506 | X_CFLAGS="" |
| 8507 | X_LIBS="" |
| 8508 | fi |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 8509 | |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 8510 | CURSESLIBS="" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8511 | if test "x$with_curses" != "xno" |
Patrik Stridvall | 5e5ad53 | 2000-04-23 20:02:46 +0000 | [diff] [blame] | 8512 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8513 | |
| 8514 | for ac_header in ncurses.h |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8515 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8516 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8517 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8518 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8519 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8520 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8521 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8522 | fi |
| 8523 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8524 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8525 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8526 | # Is the header compilable? |
| 8527 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8528 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 8529 | cat >conftest.$ac_ext <<_ACEOF |
| 8530 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8531 | /* confdefs.h. */ |
| 8532 | _ACEOF |
| 8533 | cat confdefs.h >>conftest.$ac_ext |
| 8534 | cat >>conftest.$ac_ext <<_ACEOF |
| 8535 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8536 | $ac_includes_default |
| 8537 | #include <$ac_header> |
| 8538 | _ACEOF |
| 8539 | rm -f conftest.$ac_objext |
| 8540 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8541 | (eval $ac_compile) 2>&5 |
| 8542 | ac_status=$? |
| 8543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8544 | (exit $ac_status); } && |
| 8545 | { ac_try='test -s conftest.$ac_objext' |
| 8546 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8547 | (eval $ac_try) 2>&5 |
| 8548 | ac_status=$? |
| 8549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8550 | (exit $ac_status); }; }; then |
| 8551 | ac_header_compiler=yes |
| 8552 | else |
| 8553 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8554 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8555 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8556 | ac_header_compiler=no |
| 8557 | fi |
| 8558 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8559 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8560 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 8561 | |
| 8562 | # Is the header present? |
| 8563 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8564 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 8565 | cat >conftest.$ac_ext <<_ACEOF |
| 8566 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8567 | /* confdefs.h. */ |
| 8568 | _ACEOF |
| 8569 | cat confdefs.h >>conftest.$ac_ext |
| 8570 | cat >>conftest.$ac_ext <<_ACEOF |
| 8571 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8572 | #include <$ac_header> |
| 8573 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8574 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8575 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 8576 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 8577 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8578 | rm -f conftest.er1 |
| 8579 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8581 | (exit $ac_status); } >/dev/null; then |
| 8582 | if test -s conftest.err; then |
| 8583 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8584 | else |
| 8585 | ac_cpp_err= |
| 8586 | fi |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8587 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8588 | ac_cpp_err=yes |
| 8589 | fi |
| 8590 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8591 | ac_header_preproc=yes |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8592 | else |
| 8593 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8594 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8595 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8596 | ac_header_preproc=no |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8597 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8598 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8599 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8600 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 8601 | |
| 8602 | # So? What about this header? |
| 8603 | case $ac_header_compiler:$ac_header_preproc in |
| 8604 | yes:no ) |
| 8605 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8606 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8607 | { 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] | 8608 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8609 | ( |
| 8610 | cat <<\_ASBOX |
| 8611 | ## ------------------------------------ ## |
| 8612 | ## Report this to bug-autoconf@gnu.org. ## |
| 8613 | ## ------------------------------------ ## |
| 8614 | _ASBOX |
| 8615 | ) | |
| 8616 | sed "s/^/$as_me: WARNING: /" >&2 |
| 8617 | ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8618 | no:yes ) |
| 8619 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8620 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 8621 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8622 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8623 | { 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] | 8624 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8625 | ( |
| 8626 | cat <<\_ASBOX |
| 8627 | ## ------------------------------------ ## |
| 8628 | ## Report this to bug-autoconf@gnu.org. ## |
| 8629 | ## ------------------------------------ ## |
| 8630 | _ASBOX |
| 8631 | ) | |
| 8632 | sed "s/^/$as_me: WARNING: /" >&2 |
| 8633 | ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8634 | esac |
| 8635 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8636 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8637 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8638 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8639 | else |
| 8640 | eval "$as_ac_Header=$ac_header_preproc" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8641 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8642 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8643 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8644 | |
| 8645 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8646 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8647 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8648 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8649 | _ACEOF |
| 8650 | echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8651 | echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6 |
| 8652 | if test "${ac_cv_lib_ncurses_waddch+set}" = set; then |
| 8653 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 8654 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8655 | ac_check_lib_save_LIBS=$LIBS |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 8656 | LIBS="-lncurses $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8657 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8658 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8659 | /* confdefs.h. */ |
| 8660 | _ACEOF |
| 8661 | cat confdefs.h >>conftest.$ac_ext |
| 8662 | cat >>conftest.$ac_ext <<_ACEOF |
| 8663 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8664 | |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 8665 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8666 | #ifdef __cplusplus |
| 8667 | extern "C" |
| 8668 | #endif |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 8669 | /* 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] | 8670 | builtin and then its argument prototype would still apply. */ |
| 8671 | char waddch (); |
| 8672 | int |
| 8673 | main () |
| 8674 | { |
| 8675 | waddch (); |
| 8676 | ; |
| 8677 | return 0; |
| 8678 | } |
| 8679 | _ACEOF |
| 8680 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8681 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8682 | (eval $ac_link) 2>&5 |
| 8683 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8685 | (exit $ac_status); } && |
| 8686 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8688 | (eval $ac_try) 2>&5 |
| 8689 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8691 | (exit $ac_status); }; }; then |
| 8692 | ac_cv_lib_ncurses_waddch=yes |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 8693 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8694 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8695 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8696 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8697 | ac_cv_lib_ncurses_waddch=no |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 8698 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8699 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 8700 | LIBS=$ac_check_lib_save_LIBS |
| 8701 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8702 | echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8703 | echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6 |
| 8704 | if test $ac_cv_lib_ncurses_waddch = yes; then |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 8705 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8706 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 8707 | #define HAVE_LIBNCURSES 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8708 | _ACEOF |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 8709 | |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 8710 | CURSESLIBS="-lncurses" |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 8711 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8712 | |
| 8713 | for ac_header in curses.h |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8714 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8715 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8716 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8717 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8718 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8719 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8720 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8721 | fi |
| 8722 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8723 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8724 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8725 | # Is the header compilable? |
| 8726 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8727 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 8728 | cat >conftest.$ac_ext <<_ACEOF |
| 8729 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8730 | /* confdefs.h. */ |
| 8731 | _ACEOF |
| 8732 | cat confdefs.h >>conftest.$ac_ext |
| 8733 | cat >>conftest.$ac_ext <<_ACEOF |
| 8734 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8735 | $ac_includes_default |
| 8736 | #include <$ac_header> |
| 8737 | _ACEOF |
| 8738 | rm -f conftest.$ac_objext |
| 8739 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8740 | (eval $ac_compile) 2>&5 |
| 8741 | ac_status=$? |
| 8742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8743 | (exit $ac_status); } && |
| 8744 | { ac_try='test -s conftest.$ac_objext' |
| 8745 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8746 | (eval $ac_try) 2>&5 |
| 8747 | ac_status=$? |
| 8748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8749 | (exit $ac_status); }; }; then |
| 8750 | ac_header_compiler=yes |
| 8751 | else |
| 8752 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8753 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8754 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8755 | ac_header_compiler=no |
| 8756 | fi |
| 8757 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8758 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8759 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 8760 | |
| 8761 | # Is the header present? |
| 8762 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8763 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 8764 | cat >conftest.$ac_ext <<_ACEOF |
| 8765 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8766 | /* confdefs.h. */ |
| 8767 | _ACEOF |
| 8768 | cat confdefs.h >>conftest.$ac_ext |
| 8769 | cat >>conftest.$ac_ext <<_ACEOF |
| 8770 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8771 | #include <$ac_header> |
| 8772 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8773 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8774 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 8775 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 8776 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8777 | rm -f conftest.er1 |
| 8778 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8780 | (exit $ac_status); } >/dev/null; then |
| 8781 | if test -s conftest.err; then |
| 8782 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8783 | else |
| 8784 | ac_cpp_err= |
| 8785 | fi |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8786 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8787 | ac_cpp_err=yes |
| 8788 | fi |
| 8789 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8790 | ac_header_preproc=yes |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8791 | else |
| 8792 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8793 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8794 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8795 | ac_header_preproc=no |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8796 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8797 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8798 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8799 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 8800 | |
| 8801 | # So? What about this header? |
| 8802 | case $ac_header_compiler:$ac_header_preproc in |
| 8803 | yes:no ) |
| 8804 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8805 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8806 | { 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] | 8807 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8808 | ( |
| 8809 | cat <<\_ASBOX |
| 8810 | ## ------------------------------------ ## |
| 8811 | ## Report this to bug-autoconf@gnu.org. ## |
| 8812 | ## ------------------------------------ ## |
| 8813 | _ASBOX |
| 8814 | ) | |
| 8815 | sed "s/^/$as_me: WARNING: /" >&2 |
| 8816 | ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8817 | no:yes ) |
| 8818 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8819 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 8820 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8821 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8822 | { 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] | 8823 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8824 | ( |
| 8825 | cat <<\_ASBOX |
| 8826 | ## ------------------------------------ ## |
| 8827 | ## Report this to bug-autoconf@gnu.org. ## |
| 8828 | ## ------------------------------------ ## |
| 8829 | _ASBOX |
| 8830 | ) | |
| 8831 | sed "s/^/$as_me: WARNING: /" >&2 |
| 8832 | ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8833 | esac |
| 8834 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8835 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8836 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8837 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8838 | else |
| 8839 | eval "$as_ac_Header=$ac_header_preproc" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8840 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8841 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8842 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8843 | |
| 8844 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8845 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8846 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8847 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8848 | _ACEOF |
| 8849 | echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8850 | echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6 |
| 8851 | if test "${ac_cv_lib_curses_waddch+set}" = set; then |
| 8852 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 8853 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8854 | ac_check_lib_save_LIBS=$LIBS |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 8855 | LIBS="-lcurses $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8856 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8857 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8858 | /* confdefs.h. */ |
| 8859 | _ACEOF |
| 8860 | cat confdefs.h >>conftest.$ac_ext |
| 8861 | cat >>conftest.$ac_ext <<_ACEOF |
| 8862 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8863 | |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 8864 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8865 | #ifdef __cplusplus |
| 8866 | extern "C" |
| 8867 | #endif |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 8868 | /* 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] | 8869 | builtin and then its argument prototype would still apply. */ |
| 8870 | char waddch (); |
| 8871 | int |
| 8872 | main () |
| 8873 | { |
| 8874 | waddch (); |
| 8875 | ; |
| 8876 | return 0; |
| 8877 | } |
| 8878 | _ACEOF |
| 8879 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8880 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8881 | (eval $ac_link) 2>&5 |
| 8882 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8884 | (exit $ac_status); } && |
| 8885 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8886 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8887 | (eval $ac_try) 2>&5 |
| 8888 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8890 | (exit $ac_status); }; }; then |
| 8891 | ac_cv_lib_curses_waddch=yes |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 8892 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8893 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8894 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8895 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8896 | ac_cv_lib_curses_waddch=no |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 8897 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8898 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 8899 | LIBS=$ac_check_lib_save_LIBS |
| 8900 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8901 | echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8902 | echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6 |
| 8903 | if test $ac_cv_lib_curses_waddch = yes; then |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 8904 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8905 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 8906 | #define HAVE_LIBCURSES 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8907 | _ACEOF |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 8908 | |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 8909 | CURSESLIBS="-lcurses" |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 8910 | fi |
| 8911 | |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 8912 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8913 | |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 8914 | done |
| 8915 | |
| 8916 | fi |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 8917 | |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 8918 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8919 | |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 8920 | done |
| 8921 | |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 8922 | saved_libs="$LIBS" |
| 8923 | LIBS="$CURSESLIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8924 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8925 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8926 | for ac_func in getbkgd resizeterm |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 8927 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8928 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8929 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8930 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 8931 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 8932 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 8933 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8934 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8935 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8936 | /* confdefs.h. */ |
| 8937 | _ACEOF |
| 8938 | cat confdefs.h >>conftest.$ac_ext |
| 8939 | cat >>conftest.$ac_ext <<_ACEOF |
| 8940 | /* end confdefs.h. */ |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 8941 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8942 | which can conflict with char $ac_func (); below. |
| 8943 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 8944 | <limits.h> exists even on freestanding compilers. */ |
| 8945 | #ifdef __STDC__ |
| 8946 | # include <limits.h> |
| 8947 | #else |
| 8948 | # include <assert.h> |
| 8949 | #endif |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 8950 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8951 | #ifdef __cplusplus |
| 8952 | extern "C" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8953 | { |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8954 | #endif |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 8955 | /* 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] | 8956 | builtin and then its argument prototype would still apply. */ |
| 8957 | char $ac_func (); |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 8958 | /* The GNU C library defines this for functions which it implements |
| 8959 | to always fail with ENOSYS. Some functions are actually named |
| 8960 | something starting with __ and the normal name is an alias. */ |
| 8961 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 8962 | choke me |
| 8963 | #else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8964 | char (*f) () = $ac_func; |
| 8965 | #endif |
| 8966 | #ifdef __cplusplus |
| 8967 | } |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 8968 | #endif |
| 8969 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8970 | int |
| 8971 | main () |
| 8972 | { |
| 8973 | return f != $ac_func; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8974 | ; |
| 8975 | return 0; |
| 8976 | } |
| 8977 | _ACEOF |
| 8978 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8979 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8980 | (eval $ac_link) 2>&5 |
| 8981 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8983 | (exit $ac_status); } && |
| 8984 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8985 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8986 | (eval $ac_try) 2>&5 |
| 8987 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8989 | (exit $ac_status); }; }; then |
| 8990 | eval "$as_ac_var=yes" |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 8991 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8992 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8993 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8994 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8995 | eval "$as_ac_var=no" |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 8996 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8997 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 8998 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8999 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9000 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 9001 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9002 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9003 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9004 | _ACEOF |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 9005 | |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 9006 | fi |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 9007 | done |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 9008 | |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 9009 | LIBS="$saved_libs" |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 9010 | fi |
| 9011 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9012 | |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9013 | # Extract the first word of "sane-config", so it can be a program name with args. |
| 9014 | set dummy sane-config; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9015 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9016 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 9017 | if test "${ac_cv_prog_sane_devel+set}" = set; then |
| 9018 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9019 | else |
| 9020 | if test -n "$sane_devel"; then |
| 9021 | ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test. |
| 9022 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9023 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9024 | for as_dir in $PATH |
| 9025 | do |
| 9026 | IFS=$as_save_IFS |
| 9027 | test -z "$as_dir" && as_dir=. |
| 9028 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9029 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 9030 | ac_cv_prog_sane_devel="sane-config" |
| 9031 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9032 | break 2 |
| 9033 | fi |
| 9034 | done |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9035 | done |
| 9036 | |
| 9037 | test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no" |
| 9038 | fi |
| 9039 | fi |
| 9040 | sane_devel=$ac_cv_prog_sane_devel |
| 9041 | if test -n "$sane_devel"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9042 | echo "$as_me:$LINENO: result: $sane_devel" >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9043 | echo "${ECHO_T}$sane_devel" >&6 |
| 9044 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9045 | echo "$as_me:$LINENO: result: no" >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9046 | echo "${ECHO_T}no" >&6 |
| 9047 | fi |
| 9048 | |
| 9049 | if test "$sane_devel" = "no" |
| 9050 | then |
| 9051 | SANELIBS="" |
| 9052 | SANEINCL="" |
| 9053 | else |
| 9054 | SANELIBS="`$sane_devel --libs`" |
| 9055 | SANEINCL="`$sane_devel --cflags`" |
| 9056 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 9057 | ac_save_LIBS="$LIBS" |
| 9058 | CPPFLAGS="$CPPFLAGS $SANEINCL" |
| 9059 | LIBS="$LIBS $SANELIBS" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9060 | if test "${ac_cv_header_sane_sane_h+set}" = set; then |
| 9061 | echo "$as_me:$LINENO: checking for sane/sane.h" >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9062 | echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6 |
| 9063 | if test "${ac_cv_header_sane_sane_h+set}" = set; then |
| 9064 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9065 | fi |
| 9066 | echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5 |
| 9067 | echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9068 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9069 | # Is the header compilable? |
| 9070 | echo "$as_me:$LINENO: checking sane/sane.h usability" >&5 |
| 9071 | echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6 |
| 9072 | cat >conftest.$ac_ext <<_ACEOF |
| 9073 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9074 | /* confdefs.h. */ |
| 9075 | _ACEOF |
| 9076 | cat confdefs.h >>conftest.$ac_ext |
| 9077 | cat >>conftest.$ac_ext <<_ACEOF |
| 9078 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9079 | $ac_includes_default |
| 9080 | #include <sane/sane.h> |
| 9081 | _ACEOF |
| 9082 | rm -f conftest.$ac_objext |
| 9083 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9084 | (eval $ac_compile) 2>&5 |
| 9085 | ac_status=$? |
| 9086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9087 | (exit $ac_status); } && |
| 9088 | { ac_try='test -s conftest.$ac_objext' |
| 9089 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9090 | (eval $ac_try) 2>&5 |
| 9091 | ac_status=$? |
| 9092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9093 | (exit $ac_status); }; }; then |
| 9094 | ac_header_compiler=yes |
| 9095 | else |
| 9096 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9097 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9098 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9099 | ac_header_compiler=no |
| 9100 | fi |
| 9101 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9102 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9103 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 9104 | |
| 9105 | # Is the header present? |
| 9106 | echo "$as_me:$LINENO: checking sane/sane.h presence" >&5 |
| 9107 | echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6 |
| 9108 | cat >conftest.$ac_ext <<_ACEOF |
| 9109 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9110 | /* confdefs.h. */ |
| 9111 | _ACEOF |
| 9112 | cat confdefs.h >>conftest.$ac_ext |
| 9113 | cat >>conftest.$ac_ext <<_ACEOF |
| 9114 | /* end confdefs.h. */ |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9115 | #include <sane/sane.h> |
| 9116 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9117 | 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] | 9118 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9119 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 9120 | grep -v '^ *+' conftest.er1 >conftest.err |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9121 | rm -f conftest.er1 |
| 9122 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9124 | (exit $ac_status); } >/dev/null; then |
| 9125 | if test -s conftest.err; then |
| 9126 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9127 | else |
| 9128 | ac_cpp_err= |
| 9129 | fi |
| 9130 | else |
| 9131 | ac_cpp_err=yes |
| 9132 | fi |
| 9133 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9134 | ac_header_preproc=yes |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9135 | else |
| 9136 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9137 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9138 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9139 | ac_header_preproc=no |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9140 | fi |
| 9141 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9142 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9143 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 9144 | |
| 9145 | # So? What about this header? |
| 9146 | case $ac_header_compiler:$ac_header_preproc in |
| 9147 | yes:no ) |
| 9148 | { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9149 | echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9150 | { 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] | 9151 | echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;} |
| 9152 | ( |
| 9153 | cat <<\_ASBOX |
| 9154 | ## ------------------------------------ ## |
| 9155 | ## Report this to bug-autoconf@gnu.org. ## |
| 9156 | ## ------------------------------------ ## |
| 9157 | _ASBOX |
| 9158 | ) | |
| 9159 | sed "s/^/$as_me: WARNING: /" >&2 |
| 9160 | ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9161 | no:yes ) |
| 9162 | { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5 |
| 9163 | echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;} |
| 9164 | { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5 |
| 9165 | echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;} |
| 9166 | { 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] | 9167 | echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;} |
| 9168 | ( |
| 9169 | cat <<\_ASBOX |
| 9170 | ## ------------------------------------ ## |
| 9171 | ## Report this to bug-autoconf@gnu.org. ## |
| 9172 | ## ------------------------------------ ## |
| 9173 | _ASBOX |
| 9174 | ) | |
| 9175 | sed "s/^/$as_me: WARNING: /" >&2 |
| 9176 | ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9177 | esac |
| 9178 | echo "$as_me:$LINENO: checking for sane/sane.h" >&5 |
| 9179 | echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6 |
| 9180 | if test "${ac_cv_header_sane_sane_h+set}" = set; then |
| 9181 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9182 | else |
| 9183 | ac_cv_header_sane_sane_h=$ac_header_preproc |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9184 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9185 | 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] | 9186 | echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9187 | |
| 9188 | fi |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9189 | if test $ac_cv_header_sane_sane_h = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9190 | echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9191 | echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6 |
| 9192 | if test "${ac_cv_lib_sane_sane_open+set}" = set; then |
| 9193 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9194 | else |
| 9195 | ac_check_lib_save_LIBS=$LIBS |
| 9196 | LIBS="-lsane $LIBS" |
| 9197 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9198 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9199 | /* confdefs.h. */ |
| 9200 | _ACEOF |
| 9201 | cat confdefs.h >>conftest.$ac_ext |
| 9202 | cat >>conftest.$ac_ext <<_ACEOF |
| 9203 | /* end confdefs.h. */ |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9204 | |
| 9205 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9206 | #ifdef __cplusplus |
| 9207 | extern "C" |
| 9208 | #endif |
| 9209 | /* We use char because int might match the return type of a gcc2 |
| 9210 | builtin and then its argument prototype would still apply. */ |
| 9211 | char sane_open (); |
| 9212 | int |
| 9213 | main () |
| 9214 | { |
| 9215 | sane_open (); |
| 9216 | ; |
| 9217 | return 0; |
| 9218 | } |
| 9219 | _ACEOF |
| 9220 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9221 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9222 | (eval $ac_link) 2>&5 |
| 9223 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9225 | (exit $ac_status); } && |
| 9226 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9227 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9228 | (eval $ac_try) 2>&5 |
| 9229 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9231 | (exit $ac_status); }; }; then |
| 9232 | ac_cv_lib_sane_sane_open=yes |
| 9233 | else |
| 9234 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9235 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9236 | |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9237 | ac_cv_lib_sane_sane_open=no |
| 9238 | fi |
| 9239 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9240 | LIBS=$ac_check_lib_save_LIBS |
| 9241 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9242 | 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] | 9243 | echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6 |
| 9244 | if test $ac_cv_lib_sane_sane_open = yes; then |
| 9245 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9246 | cat >>confdefs.h <<\_ACEOF |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9247 | #define HAVE_SANE 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9248 | _ACEOF |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9249 | |
| 9250 | else |
| 9251 | SANELIBS="" |
Alexandre Julliard | 96328b3 | 2002-03-31 19:23:41 +0000 | [diff] [blame] | 9252 | SANEINCL="" |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9253 | fi |
| 9254 | |
Alexandre Julliard | 96328b3 | 2002-03-31 19:23:41 +0000 | [diff] [blame] | 9255 | else |
| 9256 | SANELIBS="" |
| 9257 | SANEINCL="" |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9258 | fi |
| 9259 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9260 | |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9261 | LIBS="$ac_save_LIBS" |
| 9262 | CPPFLAGS="$ac_save_CPPFLAGS" |
| 9263 | fi |
| 9264 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9265 | |
| 9266 | |
| 9267 | echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9268 | echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6 |
| 9269 | if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then |
| 9270 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 9271 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9272 | ac_check_lib_save_LIBS=$LIBS |
Dmitry Timoshkov | 8871a11 | 2001-11-06 22:26:53 +0000 | [diff] [blame] | 9273 | LIBS="-lfreetype $X_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9274 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9275 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9276 | /* confdefs.h. */ |
| 9277 | _ACEOF |
| 9278 | cat confdefs.h >>conftest.$ac_ext |
| 9279 | cat >>conftest.$ac_ext <<_ACEOF |
| 9280 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9281 | |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 9282 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9283 | #ifdef __cplusplus |
| 9284 | extern "C" |
| 9285 | #endif |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 9286 | /* 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] | 9287 | builtin and then its argument prototype would still apply. */ |
| 9288 | char FT_Init_FreeType (); |
| 9289 | int |
| 9290 | main () |
| 9291 | { |
| 9292 | FT_Init_FreeType (); |
| 9293 | ; |
| 9294 | return 0; |
| 9295 | } |
| 9296 | _ACEOF |
| 9297 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9298 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9299 | (eval $ac_link) 2>&5 |
| 9300 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9302 | (exit $ac_status); } && |
| 9303 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9304 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9305 | (eval $ac_try) 2>&5 |
| 9306 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9308 | (exit $ac_status); }; }; then |
| 9309 | ac_cv_lib_freetype_FT_Init_FreeType=yes |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 9310 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9311 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9312 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9313 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9314 | ac_cv_lib_freetype_FT_Init_FreeType=no |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 9315 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9316 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9317 | LIBS=$ac_check_lib_save_LIBS |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 9318 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9319 | 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] | 9320 | echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6 |
| 9321 | if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 9322 | ft_lib=yes |
| 9323 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9324 | ft_lib=no |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 9325 | fi |
| 9326 | |
| 9327 | if test "$ft_lib" = "no" |
| 9328 | then |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 9329 | FREETYPEINCL="" |
| 9330 | wine_cv_msg_freetype=no |
| 9331 | else |
| 9332 | # Extract the first word of "freetype-config", so it can be a program name with args. |
| 9333 | set dummy freetype-config; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9334 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9335 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 9336 | if test "${ac_cv_prog_ft_devel+set}" = set; then |
| 9337 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 9338 | else |
| 9339 | if test -n "$ft_devel"; then |
| 9340 | ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test. |
| 9341 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9342 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9343 | for as_dir in $PATH |
| 9344 | do |
| 9345 | IFS=$as_save_IFS |
| 9346 | test -z "$as_dir" && as_dir=. |
| 9347 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9348 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 9349 | ac_cv_prog_ft_devel="freetype-config" |
| 9350 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9351 | break 2 |
| 9352 | fi |
| 9353 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9354 | done |
| 9355 | |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 9356 | test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no" |
| 9357 | fi |
| 9358 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9359 | ft_devel=$ac_cv_prog_ft_devel |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 9360 | if test -n "$ft_devel"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9361 | echo "$as_me:$LINENO: result: $ft_devel" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9362 | echo "${ECHO_T}$ft_devel" >&6 |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 9363 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9364 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9365 | echo "${ECHO_T}no" >&6 |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 9366 | fi |
| 9367 | |
| 9368 | if test "$ft_devel" = "no" |
| 9369 | then |
Marcus Meissner | d28955d | 2001-05-31 21:35:15 +0000 | [diff] [blame] | 9370 | # Extract the first word of "freetype2-config", so it can be a program name with args. |
| 9371 | set dummy freetype2-config; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9372 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9373 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 9374 | if test "${ac_cv_prog_ft_devel2+set}" = set; then |
| 9375 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | d28955d | 2001-05-31 21:35:15 +0000 | [diff] [blame] | 9376 | else |
| 9377 | if test -n "$ft_devel2"; then |
| 9378 | ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test. |
| 9379 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9380 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9381 | for as_dir in $PATH |
| 9382 | do |
| 9383 | IFS=$as_save_IFS |
| 9384 | test -z "$as_dir" && as_dir=. |
| 9385 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9386 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 9387 | ac_cv_prog_ft_devel2="freetype2-config" |
| 9388 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9389 | break 2 |
| 9390 | fi |
| 9391 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9392 | done |
| 9393 | |
Marcus Meissner | d28955d | 2001-05-31 21:35:15 +0000 | [diff] [blame] | 9394 | test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no" |
| 9395 | fi |
| 9396 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9397 | ft_devel2=$ac_cv_prog_ft_devel2 |
Marcus Meissner | d28955d | 2001-05-31 21:35:15 +0000 | [diff] [blame] | 9398 | if test -n "$ft_devel2"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9399 | echo "$as_me:$LINENO: result: $ft_devel2" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9400 | echo "${ECHO_T}$ft_devel2" >&6 |
Marcus Meissner | d28955d | 2001-05-31 21:35:15 +0000 | [diff] [blame] | 9401 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9402 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9403 | echo "${ECHO_T}no" >&6 |
Marcus Meissner | d28955d | 2001-05-31 21:35:15 +0000 | [diff] [blame] | 9404 | fi |
| 9405 | |
| 9406 | if test "$ft_devel2" = "freetype2-config" |
| 9407 | then |
| 9408 | ft_devel=$ft_devel2 |
| 9409 | fi |
| 9410 | fi |
| 9411 | if test "$ft_devel" = "no" |
| 9412 | then |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 9413 | FREETYPEINCL="" |
| 9414 | wine_cv_msg_freetype=yes |
| 9415 | else |
Marcus Meissner | d28955d | 2001-05-31 21:35:15 +0000 | [diff] [blame] | 9416 | FREETYPEINCL=`$ft_devel --cflags` |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 9417 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 9418 | CPPFLAGS="$FREETYPEINCL $CPPFLAGS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9419 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9420 | |
| 9421 | |
| 9422 | |
| 9423 | |
| 9424 | |
| 9425 | |
| 9426 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9427 | for ac_header in freetype/freetype.h \ |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 9428 | freetype/ftglyph.h \ |
| 9429 | freetype/tttables.h \ |
| 9430 | freetype/ftnames.h \ |
| 9431 | freetype/ftsnames.h \ |
Huw D M Davies | 814654e | 2001-09-12 20:21:06 +0000 | [diff] [blame] | 9432 | freetype/ttnameid.h \ |
Huw D M Davies | 4e2024e | 2001-10-23 20:06:32 +0000 | [diff] [blame] | 9433 | freetype/ftoutln.h \ |
| 9434 | freetype/internal/sfnt.h |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 9435 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9436 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9437 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9438 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9439 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9440 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9441 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9442 | fi |
| 9443 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9444 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9445 | else |
| 9446 | # Is the header compilable? |
| 9447 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9448 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 9449 | cat >conftest.$ac_ext <<_ACEOF |
| 9450 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9451 | /* confdefs.h. */ |
| 9452 | _ACEOF |
| 9453 | cat confdefs.h >>conftest.$ac_ext |
| 9454 | cat >>conftest.$ac_ext <<_ACEOF |
| 9455 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9456 | $ac_includes_default |
| 9457 | #include <$ac_header> |
| 9458 | _ACEOF |
| 9459 | rm -f conftest.$ac_objext |
| 9460 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9461 | (eval $ac_compile) 2>&5 |
| 9462 | ac_status=$? |
| 9463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9464 | (exit $ac_status); } && |
| 9465 | { ac_try='test -s conftest.$ac_objext' |
| 9466 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9467 | (eval $ac_try) 2>&5 |
| 9468 | ac_status=$? |
| 9469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9470 | (exit $ac_status); }; }; then |
| 9471 | ac_header_compiler=yes |
| 9472 | else |
| 9473 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9474 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9475 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9476 | ac_header_compiler=no |
| 9477 | fi |
| 9478 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9479 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9480 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 9481 | |
| 9482 | # Is the header present? |
| 9483 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9484 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 9485 | cat >conftest.$ac_ext <<_ACEOF |
| 9486 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9487 | /* confdefs.h. */ |
| 9488 | _ACEOF |
| 9489 | cat confdefs.h >>conftest.$ac_ext |
| 9490 | cat >>conftest.$ac_ext <<_ACEOF |
| 9491 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9492 | #include <$ac_header> |
| 9493 | _ACEOF |
| 9494 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 9495 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9496 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 9497 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9498 | rm -f conftest.er1 |
| 9499 | cat conftest.err >&5 |
| 9500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9501 | (exit $ac_status); } >/dev/null; then |
| 9502 | if test -s conftest.err; then |
| 9503 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9504 | else |
| 9505 | ac_cpp_err= |
| 9506 | fi |
| 9507 | else |
| 9508 | ac_cpp_err=yes |
| 9509 | fi |
| 9510 | if test -z "$ac_cpp_err"; then |
| 9511 | ac_header_preproc=yes |
| 9512 | else |
| 9513 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9514 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9515 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9516 | ac_header_preproc=no |
| 9517 | fi |
| 9518 | rm -f conftest.err conftest.$ac_ext |
| 9519 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9520 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 9521 | |
| 9522 | # So? What about this header? |
| 9523 | case $ac_header_compiler:$ac_header_preproc in |
| 9524 | yes:no ) |
| 9525 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9526 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9527 | { 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] | 9528 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 9529 | ( |
| 9530 | cat <<\_ASBOX |
| 9531 | ## ------------------------------------ ## |
| 9532 | ## Report this to bug-autoconf@gnu.org. ## |
| 9533 | ## ------------------------------------ ## |
| 9534 | _ASBOX |
| 9535 | ) | |
| 9536 | sed "s/^/$as_me: WARNING: /" >&2 |
| 9537 | ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9538 | no:yes ) |
| 9539 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9540 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 9541 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9542 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9543 | { 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] | 9544 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 9545 | ( |
| 9546 | cat <<\_ASBOX |
| 9547 | ## ------------------------------------ ## |
| 9548 | ## Report this to bug-autoconf@gnu.org. ## |
| 9549 | ## ------------------------------------ ## |
| 9550 | _ASBOX |
| 9551 | ) | |
| 9552 | sed "s/^/$as_me: WARNING: /" >&2 |
| 9553 | ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9554 | esac |
| 9555 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9556 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9557 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9558 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 9559 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9560 | eval "$as_ac_Header=$ac_header_preproc" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9561 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9562 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9563 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9564 | |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 9565 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9566 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 9567 | cat >>confdefs.h <<_ACEOF |
| 9568 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 9569 | _ACEOF |
| 9570 | |
| 9571 | fi |
| 9572 | |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 9573 | done |
| 9574 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9575 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9576 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9577 | /* confdefs.h. */ |
| 9578 | _ACEOF |
| 9579 | cat confdefs.h >>conftest.$ac_ext |
| 9580 | cat >>conftest.$ac_ext <<_ACEOF |
| 9581 | /* end confdefs.h. */ |
Alexandre Julliard | 18d7573 | 2002-01-29 03:02:50 +0000 | [diff] [blame] | 9582 | #include <ft2build.h> |
| 9583 | #include <freetype/fttrigon.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9584 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9585 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9586 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9587 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 9588 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9589 | rm -f conftest.er1 |
| 9590 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9592 | (exit $ac_status); } >/dev/null; then |
| 9593 | if test -s conftest.err; then |
| 9594 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9595 | else |
| 9596 | ac_cpp_err= |
| 9597 | fi |
| 9598 | else |
| 9599 | ac_cpp_err=yes |
| 9600 | fi |
| 9601 | if test -z "$ac_cpp_err"; then |
| 9602 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9603 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | 18d7573 | 2002-01-29 03:02:50 +0000 | [diff] [blame] | 9604 | #define HAVE_FREETYPE_FTTRIGON_H 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9605 | _ACEOF |
Alexandre Julliard | 18d7573 | 2002-01-29 03:02:50 +0000 | [diff] [blame] | 9606 | |
Huw D M Davies | c1d3813 | 2002-02-08 17:09:50 +0000 | [diff] [blame] | 9607 | wine_cv_fttrigon=yes |
Alexandre Julliard | 18d7573 | 2002-01-29 03:02:50 +0000 | [diff] [blame] | 9608 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9609 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9610 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9611 | |
Huw D M Davies | c1d3813 | 2002-02-08 17:09:50 +0000 | [diff] [blame] | 9612 | wine_cv_fttrigon=no |
Alexandre Julliard | 18d7573 | 2002-01-29 03:02:50 +0000 | [diff] [blame] | 9613 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9614 | rm -f conftest.err conftest.$ac_ext |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 9615 | CPPFLAGS="$ac_save_CPPFLAGS" |
Huw D M Davies | c1d3813 | 2002-02-08 17:09:50 +0000 | [diff] [blame] | 9616 | 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] | 9617 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9618 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9619 | cat >>confdefs.h <<\_ACEOF |
Huw D M Davies | 9b1d372 | 2002-01-29 17:09:28 +0000 | [diff] [blame] | 9620 | #define HAVE_FREETYPE 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9621 | _ACEOF |
Huw D M Davies | 9b1d372 | 2002-01-29 17:09:28 +0000 | [diff] [blame] | 9622 | |
| 9623 | wine_cv_msg_freetype=no |
| 9624 | else |
Huw D M Davies | 9b1d372 | 2002-01-29 17:09:28 +0000 | [diff] [blame] | 9625 | FREETYPEINCL="" |
| 9626 | wine_cv_msg_freetype=yes |
| 9627 | fi |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 9628 | fi |
| 9629 | fi |
| 9630 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9631 | |
| 9632 | echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9633 | echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6 |
| 9634 | if test "${ac_cv_c_ppdev+set}" = set; then |
| 9635 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 9636 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9637 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9638 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9639 | /* confdefs.h. */ |
| 9640 | _ACEOF |
| 9641 | cat confdefs.h >>conftest.$ac_ext |
| 9642 | cat >>conftest.$ac_ext <<_ACEOF |
| 9643 | /* end confdefs.h. */ |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 9644 | #include <linux/ppdev.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9645 | int |
| 9646 | main () |
| 9647 | { |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 9648 | ioctl (1,PPCLAIM,0) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9649 | ; |
| 9650 | return 0; |
| 9651 | } |
| 9652 | _ACEOF |
| 9653 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9654 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9655 | (eval $ac_compile) 2>&5 |
| 9656 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9658 | (exit $ac_status); } && |
| 9659 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9660 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9661 | (eval $ac_try) 2>&5 |
| 9662 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9664 | (exit $ac_status); }; }; then |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 9665 | ac_cv_c_ppdev="yes" |
| 9666 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9667 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9668 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9669 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9670 | ac_cv_c_ppdev="no" |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 9671 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9672 | rm -f conftest.$ac_objext conftest.$ac_ext |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 9673 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9674 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9675 | echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9676 | echo "${ECHO_T}$ac_cv_c_ppdev" >&6 |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 9677 | if test "$ac_cv_c_ppdev" = "yes" |
| 9678 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9679 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9680 | cat >>confdefs.h <<\_ACEOF |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 9681 | #define HAVE_PPDEV 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9682 | _ACEOF |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 9683 | |
| 9684 | fi |
| 9685 | |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 9686 | echo "$as_me:$LINENO: checking for va_copy" >&5 |
| 9687 | echo $ECHO_N "checking for va_copy... $ECHO_C" >&6 |
| 9688 | if test "${ac_cv_c_va_copy+set}" = set; then |
| 9689 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9690 | else |
| 9691 | cat >conftest.$ac_ext <<_ACEOF |
| 9692 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9693 | /* confdefs.h. */ |
| 9694 | _ACEOF |
| 9695 | cat confdefs.h >>conftest.$ac_ext |
| 9696 | cat >>conftest.$ac_ext <<_ACEOF |
| 9697 | /* end confdefs.h. */ |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 9698 | #include <stdarg.h> |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 9699 | int |
| 9700 | main () |
| 9701 | { |
| 9702 | va_list ap1, ap2; |
| 9703 | va_copy(ap1,ap2); |
| 9704 | |
| 9705 | ; |
| 9706 | return 0; |
| 9707 | } |
| 9708 | _ACEOF |
| 9709 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9710 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9711 | (eval $ac_link) 2>&5 |
| 9712 | ac_status=$? |
| 9713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9714 | (exit $ac_status); } && |
| 9715 | { ac_try='test -s conftest$ac_exeext' |
| 9716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9717 | (eval $ac_try) 2>&5 |
| 9718 | ac_status=$? |
| 9719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9720 | (exit $ac_status); }; }; then |
| 9721 | ac_cv_c_va_copy="yes" |
| 9722 | else |
| 9723 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9724 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9725 | |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 9726 | ac_cv_c_va_copy="no" |
| 9727 | fi |
| 9728 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9729 | |
| 9730 | fi |
| 9731 | echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5 |
| 9732 | echo "${ECHO_T}$ac_cv_c_va_copy" >&6 |
| 9733 | if test "$ac_cv_c_va_copy" = "yes" |
| 9734 | then |
| 9735 | |
| 9736 | cat >>confdefs.h <<\_ACEOF |
| 9737 | #define HAVE_VA_COPY 1 |
| 9738 | _ACEOF |
| 9739 | |
| 9740 | fi |
| 9741 | echo "$as_me:$LINENO: checking for __va_copy" >&5 |
| 9742 | echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6 |
| 9743 | if test "${ac_cv_c___va_copy+set}" = set; then |
| 9744 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9745 | else |
| 9746 | cat >conftest.$ac_ext <<_ACEOF |
| 9747 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9748 | /* confdefs.h. */ |
| 9749 | _ACEOF |
| 9750 | cat confdefs.h >>conftest.$ac_ext |
| 9751 | cat >>conftest.$ac_ext <<_ACEOF |
| 9752 | /* end confdefs.h. */ |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 9753 | #include <stdarg.h> |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 9754 | int |
| 9755 | main () |
| 9756 | { |
| 9757 | va_list ap1, ap2; |
| 9758 | __va_copy(ap1,ap2); |
| 9759 | |
| 9760 | ; |
| 9761 | return 0; |
| 9762 | } |
| 9763 | _ACEOF |
| 9764 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9765 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9766 | (eval $ac_link) 2>&5 |
| 9767 | ac_status=$? |
| 9768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9769 | (exit $ac_status); } && |
| 9770 | { ac_try='test -s conftest$ac_exeext' |
| 9771 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9772 | (eval $ac_try) 2>&5 |
| 9773 | ac_status=$? |
| 9774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9775 | (exit $ac_status); }; }; then |
| 9776 | ac_cv_c___va_copy="yes" |
| 9777 | else |
| 9778 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9779 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9780 | |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 9781 | ac_cv_c___va_copy="no" |
| 9782 | fi |
| 9783 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9784 | |
| 9785 | fi |
| 9786 | echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5 |
| 9787 | echo "${ECHO_T}$ac_cv_c___va_copy" >&6 |
| 9788 | if test "$ac_cv_c___va_copy" = "yes" |
| 9789 | then |
| 9790 | |
| 9791 | cat >>confdefs.h <<\_ACEOF |
| 9792 | #define HAVE___VA_COPY 1 |
| 9793 | _ACEOF |
| 9794 | |
| 9795 | fi |
| 9796 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9797 | |
| 9798 | |
| 9799 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9800 | for ac_header in sys/soundcard.h machine/soundcard.h soundcard.h |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 9801 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9802 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9803 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9804 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9805 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9806 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9807 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9808 | fi |
| 9809 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9810 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 9811 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9812 | # Is the header compilable? |
| 9813 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9814 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 9815 | cat >conftest.$ac_ext <<_ACEOF |
| 9816 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9817 | /* confdefs.h. */ |
| 9818 | _ACEOF |
| 9819 | cat confdefs.h >>conftest.$ac_ext |
| 9820 | cat >>conftest.$ac_ext <<_ACEOF |
| 9821 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9822 | $ac_includes_default |
| 9823 | #include <$ac_header> |
| 9824 | _ACEOF |
| 9825 | rm -f conftest.$ac_objext |
| 9826 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9827 | (eval $ac_compile) 2>&5 |
| 9828 | ac_status=$? |
| 9829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9830 | (exit $ac_status); } && |
| 9831 | { ac_try='test -s conftest.$ac_objext' |
| 9832 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9833 | (eval $ac_try) 2>&5 |
| 9834 | ac_status=$? |
| 9835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9836 | (exit $ac_status); }; }; then |
| 9837 | ac_header_compiler=yes |
| 9838 | else |
| 9839 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9840 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9841 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9842 | ac_header_compiler=no |
| 9843 | fi |
| 9844 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9845 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9846 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 9847 | |
| 9848 | # Is the header present? |
| 9849 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9850 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 9851 | cat >conftest.$ac_ext <<_ACEOF |
| 9852 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9853 | /* confdefs.h. */ |
| 9854 | _ACEOF |
| 9855 | cat confdefs.h >>conftest.$ac_ext |
| 9856 | cat >>conftest.$ac_ext <<_ACEOF |
| 9857 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9858 | #include <$ac_header> |
| 9859 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9860 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9861 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9862 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 9863 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9864 | rm -f conftest.er1 |
| 9865 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9867 | (exit $ac_status); } >/dev/null; then |
| 9868 | if test -s conftest.err; then |
| 9869 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9870 | else |
| 9871 | ac_cpp_err= |
| 9872 | fi |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 9873 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9874 | ac_cpp_err=yes |
| 9875 | fi |
| 9876 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9877 | ac_header_preproc=yes |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9878 | else |
| 9879 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9880 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9881 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9882 | ac_header_preproc=no |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 9883 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9884 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9885 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9886 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 9887 | |
| 9888 | # So? What about this header? |
| 9889 | case $ac_header_compiler:$ac_header_preproc in |
| 9890 | yes:no ) |
| 9891 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9892 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9893 | { 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] | 9894 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 9895 | ( |
| 9896 | cat <<\_ASBOX |
| 9897 | ## ------------------------------------ ## |
| 9898 | ## Report this to bug-autoconf@gnu.org. ## |
| 9899 | ## ------------------------------------ ## |
| 9900 | _ASBOX |
| 9901 | ) | |
| 9902 | sed "s/^/$as_me: WARNING: /" >&2 |
| 9903 | ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9904 | no:yes ) |
| 9905 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9906 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 9907 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9908 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9909 | { 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] | 9910 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 9911 | ( |
| 9912 | cat <<\_ASBOX |
| 9913 | ## ------------------------------------ ## |
| 9914 | ## Report this to bug-autoconf@gnu.org. ## |
| 9915 | ## ------------------------------------ ## |
| 9916 | _ASBOX |
| 9917 | ) | |
| 9918 | sed "s/^/$as_me: WARNING: /" >&2 |
| 9919 | ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9920 | esac |
| 9921 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9922 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9923 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9924 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9925 | else |
| 9926 | eval "$as_ac_Header=$ac_header_preproc" |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 9927 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9928 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9929 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9930 | |
| 9931 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9932 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9933 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9934 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9935 | _ACEOF |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 9936 | break |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 9937 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9938 | |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 9939 | done |
| 9940 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9941 | |
| 9942 | echo "$as_me:$LINENO: checking for Open Sound System" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9943 | echo $ECHO_N "checking for Open Sound System... $ECHO_C" >&6 |
| 9944 | if test "${ac_cv_c_opensoundsystem+set}" = set; then |
| 9945 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 9946 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9947 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9948 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9949 | /* confdefs.h. */ |
| 9950 | _ACEOF |
| 9951 | cat confdefs.h >>conftest.$ac_ext |
| 9952 | cat >>conftest.$ac_ext <<_ACEOF |
| 9953 | /* end confdefs.h. */ |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 9954 | |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 9955 | #if defined(HAVE_SYS_SOUNDCARD_H) |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 9956 | #include <sys/soundcard.h> |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 9957 | #elif defined(HAVE_MACHINE_SOUNDCARD_H) |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 9958 | #include <machine/soundcard.h> |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 9959 | #elif defined(HAVE_SOUNDCARD_H) |
| 9960 | #include <soundcard.h> |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 9961 | #endif |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 9962 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9963 | int |
| 9964 | main () |
| 9965 | { |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 9966 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9967 | |
Alexandre Julliard | 60ce85c | 1998-02-01 18:33:27 +0000 | [diff] [blame] | 9968 | /* check for one of the Open Sound System specific SNDCTL_ defines */ |
| 9969 | #if !defined(SNDCTL_DSP_STEREO) |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 9970 | #error No open sound system |
| 9971 | #endif |
| 9972 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9973 | ; |
| 9974 | return 0; |
| 9975 | } |
| 9976 | _ACEOF |
| 9977 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9978 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9979 | (eval $ac_compile) 2>&5 |
| 9980 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9982 | (exit $ac_status); } && |
| 9983 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9984 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9985 | (eval $ac_try) 2>&5 |
| 9986 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9988 | (exit $ac_status); }; }; then |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 9989 | ac_cv_c_opensoundsystem="yes" |
| 9990 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9991 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9992 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9993 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9994 | ac_cv_c_opensoundsystem="no" |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 9995 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9996 | rm -f conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 9997 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9998 | echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9999 | echo "${ECHO_T}$ac_cv_c_opensoundsystem" >&6 |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 10000 | |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 10001 | if test "$ac_cv_c_opensoundsystem" = "yes" |
| 10002 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10003 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10004 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 10005 | #define HAVE_OSS 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10006 | _ACEOF |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 10007 | |
| 10008 | fi |
| 10009 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10010 | echo "$as_me:$LINENO: checking for Open Sound System/MIDI interface" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10011 | echo $ECHO_N "checking for Open Sound System/MIDI interface... $ECHO_C" >&6 |
| 10012 | if test "${ac_cv_c_opensoundsystem_midi+set}" = set; then |
| 10013 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 10014 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10015 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10016 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10017 | /* confdefs.h. */ |
| 10018 | _ACEOF |
| 10019 | cat confdefs.h >>conftest.$ac_ext |
| 10020 | cat >>conftest.$ac_ext <<_ACEOF |
| 10021 | /* end confdefs.h. */ |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 10022 | |
| 10023 | #if defined(HAVE_SYS_SOUNDCARD_H) |
| 10024 | #include <sys/soundcard.h> |
| 10025 | #elif defined(HAVE_MACHINE_SOUNDCARD_H) |
| 10026 | #include <machine/soundcard.h> |
| 10027 | #elif defined(HAVE_SOUNDCARD_H) |
| 10028 | #include <soundcard.h> |
| 10029 | #endif |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 10030 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10031 | int |
| 10032 | main () |
| 10033 | { |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 10034 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10035 | |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 10036 | /* check for one of the Open Sound System specific SNDCTL_SEQ defines */ |
| 10037 | #if !defined(SNDCTL_SEQ_SYNC) |
| 10038 | #error No open sound system MIDI interface |
| 10039 | #endif |
| 10040 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10041 | ; |
| 10042 | return 0; |
| 10043 | } |
| 10044 | _ACEOF |
| 10045 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10046 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10047 | (eval $ac_compile) 2>&5 |
| 10048 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10050 | (exit $ac_status); } && |
| 10051 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10053 | (eval $ac_try) 2>&5 |
| 10054 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10056 | (exit $ac_status); }; }; then |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 10057 | ac_cv_c_opensoundsystem_midi="yes" |
| 10058 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10059 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10060 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10061 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10062 | ac_cv_c_opensoundsystem_midi="no" |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 10063 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10064 | rm -f conftest.$ac_objext conftest.$ac_ext |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 10065 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10066 | echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem_midi" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10067 | echo "${ECHO_T}$ac_cv_c_opensoundsystem_midi" >&6 |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 10068 | |
| 10069 | if test "$ac_cv_c_opensoundsystem_midi" = "yes" |
| 10070 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10071 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10072 | cat >>confdefs.h <<\_ACEOF |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 10073 | #define HAVE_OSS_MIDI 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10074 | _ACEOF |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 10075 | |
| 10076 | fi |
| 10077 | |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 10078 | # Extract the first word of "artsc-config", so it can be a program name with args. |
| 10079 | set dummy artsc-config; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10080 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 10081 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 10082 | if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then |
| 10083 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10084 | else |
| 10085 | case $ARTSCCONFIG in |
| 10086 | [\\/]* | ?:[\\/]*) |
| 10087 | ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path. |
| 10088 | ;; |
| 10089 | *) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10090 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10091 | for as_dir in $PATH |
| 10092 | do |
| 10093 | IFS=$as_save_IFS |
| 10094 | test -z "$as_dir" && as_dir=. |
| 10095 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10096 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 10097 | ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 10098 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10099 | break 2 |
| 10100 | fi |
| 10101 | done |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 10102 | done |
| 10103 | |
| 10104 | ;; |
| 10105 | esac |
| 10106 | fi |
| 10107 | ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG |
| 10108 | |
| 10109 | if test -n "$ARTSCCONFIG"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10110 | echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5 |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 10111 | echo "${ECHO_T}$ARTSCCONFIG" >&6 |
| 10112 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10113 | echo "$as_me:$LINENO: result: no" >&5 |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 10114 | echo "${ECHO_T}no" >&6 |
| 10115 | fi |
| 10116 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10117 | echo "$as_me:$LINENO: checking for aRts Sound server" >&5 |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 10118 | echo $ECHO_N "checking for aRts Sound server... $ECHO_C" >&6 |
| 10119 | if test "${ac_cv_c_artsserver+set}" = set; then |
| 10120 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10121 | else |
| 10122 | if test x$ARTSCCONFIG = x -o x$ARTSCCONFIG = x'"$ARTSCCONFIG"'; |
| 10123 | then |
| 10124 | ac_cv_c_artsserver=no |
| 10125 | else |
| 10126 | ARTSC_CFLAGS=`$ARTSCCONFIG --cflags` |
| 10127 | ARTSC_LIBS=`$ARTSCCONFIG --libs` |
| 10128 | ac_cv_c_artsserver=no |
| 10129 | save_CFLAGS="$CFLAGS" |
| 10130 | CFLAGS="$CFLAGS $ARTSC_CFLAGS" |
| 10131 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10132 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10133 | /* confdefs.h. */ |
| 10134 | _ACEOF |
| 10135 | cat confdefs.h >>conftest.$ac_ext |
| 10136 | cat >>conftest.$ac_ext <<_ACEOF |
| 10137 | /* end confdefs.h. */ |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 10138 | |
| 10139 | #include <artsc.h> |
| 10140 | |
| 10141 | int |
| 10142 | main () |
| 10143 | { |
| 10144 | |
| 10145 | arts_stream_t stream; |
| 10146 | |
| 10147 | ; |
| 10148 | return 0; |
| 10149 | } |
| 10150 | _ACEOF |
| 10151 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10152 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 10153 | (eval $ac_compile) 2>&5 |
| 10154 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 10156 | (exit $ac_status); } && |
| 10157 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10158 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 10159 | (eval $ac_try) 2>&5 |
| 10160 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 10162 | (exit $ac_status); }; }; then |
| 10163 | |
| 10164 | ac_cv_c_artsserver=yes |
| 10165 | |
| 10166 | else |
| 10167 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10168 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10169 | |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 10170 | fi |
| 10171 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 10172 | CFLAGS="$save_CFLAGS" |
| 10173 | fi |
| 10174 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10175 | echo "$as_me:$LINENO: result: $ac_cv_c_artsserver" >&5 |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 10176 | echo "${ECHO_T}$ac_cv_c_artsserver" >&6 |
| 10177 | |
| 10178 | if test "$ac_cv_c_artsserver" = "yes" |
| 10179 | then |
| 10180 | ARTSLIBS=$ARTSC_LIBS |
| 10181 | |
| 10182 | ARTSINCL=$ARTSC_CFLAGS |
| 10183 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10184 | |
| 10185 | |
| 10186 | cat >>confdefs.h <<\_ACEOF |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 10187 | #define HAVE_ARTS 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10188 | _ACEOF |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 10189 | |
| 10190 | fi |
| 10191 | |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 10192 | ALSALIBS="" |
| 10193 | |
| 10194 | |
Marco Pietrobono | 0e79a41 | 2002-08-29 01:51:31 +0000 | [diff] [blame] | 10195 | |
| 10196 | for ac_header in alsa/asoundlib.h sys/asoundlib.h |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 10197 | do |
| 10198 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 10199 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10200 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10201 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 10202 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10203 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10204 | fi |
| 10205 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 10206 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 10207 | else |
| 10208 | # Is the header compilable? |
| 10209 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 10210 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 10211 | cat >conftest.$ac_ext <<_ACEOF |
| 10212 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10213 | /* confdefs.h. */ |
| 10214 | _ACEOF |
| 10215 | cat confdefs.h >>conftest.$ac_ext |
| 10216 | cat >>conftest.$ac_ext <<_ACEOF |
| 10217 | /* end confdefs.h. */ |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 10218 | $ac_includes_default |
| 10219 | #include <$ac_header> |
| 10220 | _ACEOF |
| 10221 | rm -f conftest.$ac_objext |
| 10222 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10223 | (eval $ac_compile) 2>&5 |
| 10224 | ac_status=$? |
| 10225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10226 | (exit $ac_status); } && |
| 10227 | { ac_try='test -s conftest.$ac_objext' |
| 10228 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10229 | (eval $ac_try) 2>&5 |
| 10230 | ac_status=$? |
| 10231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10232 | (exit $ac_status); }; }; then |
| 10233 | ac_header_compiler=yes |
| 10234 | else |
| 10235 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10236 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10237 | |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 10238 | ac_header_compiler=no |
| 10239 | fi |
| 10240 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 10241 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10242 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10243 | |
| 10244 | # Is the header present? |
| 10245 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 10246 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 10247 | cat >conftest.$ac_ext <<_ACEOF |
| 10248 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10249 | /* confdefs.h. */ |
| 10250 | _ACEOF |
| 10251 | cat confdefs.h >>conftest.$ac_ext |
| 10252 | cat >>conftest.$ac_ext <<_ACEOF |
| 10253 | /* end confdefs.h. */ |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 10254 | #include <$ac_header> |
| 10255 | _ACEOF |
| 10256 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10257 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10258 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 10259 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 10260 | rm -f conftest.er1 |
| 10261 | cat conftest.err >&5 |
| 10262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10263 | (exit $ac_status); } >/dev/null; then |
| 10264 | if test -s conftest.err; then |
| 10265 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10266 | else |
| 10267 | ac_cpp_err= |
| 10268 | fi |
| 10269 | else |
| 10270 | ac_cpp_err=yes |
| 10271 | fi |
| 10272 | if test -z "$ac_cpp_err"; then |
| 10273 | ac_header_preproc=yes |
| 10274 | else |
| 10275 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10276 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10277 | |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 10278 | ac_header_preproc=no |
| 10279 | fi |
| 10280 | rm -f conftest.err conftest.$ac_ext |
| 10281 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10282 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 10283 | |
| 10284 | # So? What about this header? |
| 10285 | case $ac_header_compiler:$ac_header_preproc in |
| 10286 | yes:no ) |
| 10287 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10288 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10289 | { 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] | 10290 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 10291 | ( |
| 10292 | cat <<\_ASBOX |
| 10293 | ## ------------------------------------ ## |
| 10294 | ## Report this to bug-autoconf@gnu.org. ## |
| 10295 | ## ------------------------------------ ## |
| 10296 | _ASBOX |
| 10297 | ) | |
| 10298 | sed "s/^/$as_me: WARNING: /" >&2 |
| 10299 | ;; |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 10300 | no:yes ) |
| 10301 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 10302 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 10303 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 10304 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 10305 | { 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] | 10306 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 10307 | ( |
| 10308 | cat <<\_ASBOX |
| 10309 | ## ------------------------------------ ## |
| 10310 | ## Report this to bug-autoconf@gnu.org. ## |
| 10311 | ## ------------------------------------ ## |
| 10312 | _ASBOX |
| 10313 | ) | |
| 10314 | sed "s/^/$as_me: WARNING: /" >&2 |
| 10315 | ;; |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 10316 | esac |
| 10317 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10318 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 10319 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10320 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10321 | else |
| 10322 | eval "$as_ac_Header=$ac_header_preproc" |
| 10323 | fi |
| 10324 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 10325 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 10326 | |
| 10327 | fi |
| 10328 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 10329 | cat >>confdefs.h <<_ACEOF |
| 10330 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 10331 | _ACEOF |
Marco Pietrobono | 0e79a41 | 2002-08-29 01:51:31 +0000 | [diff] [blame] | 10332 | break |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 10333 | fi |
| 10334 | |
| 10335 | done |
| 10336 | |
Marco Pietrobono | 0e79a41 | 2002-08-29 01:51:31 +0000 | [diff] [blame] | 10337 | 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] | 10338 | then |
| 10339 | echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5 |
| 10340 | echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6 |
| 10341 | if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then |
| 10342 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10343 | else |
| 10344 | ac_check_lib_save_LIBS=$LIBS |
| 10345 | LIBS="-lasound $LIBS" |
| 10346 | cat >conftest.$ac_ext <<_ACEOF |
| 10347 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10348 | /* confdefs.h. */ |
| 10349 | _ACEOF |
| 10350 | cat confdefs.h >>conftest.$ac_ext |
| 10351 | cat >>conftest.$ac_ext <<_ACEOF |
| 10352 | /* end confdefs.h. */ |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 10353 | |
| 10354 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 10355 | #ifdef __cplusplus |
| 10356 | extern "C" |
| 10357 | #endif |
| 10358 | /* We use char because int might match the return type of a gcc2 |
| 10359 | builtin and then its argument prototype would still apply. */ |
| 10360 | char snd_pcm_open (); |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 10361 | int |
| 10362 | main () |
| 10363 | { |
| 10364 | snd_pcm_open (); |
| 10365 | ; |
| 10366 | return 0; |
| 10367 | } |
| 10368 | _ACEOF |
| 10369 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10370 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10371 | (eval $ac_link) 2>&5 |
| 10372 | ac_status=$? |
| 10373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10374 | (exit $ac_status); } && |
| 10375 | { ac_try='test -s conftest$ac_exeext' |
| 10376 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10377 | (eval $ac_try) 2>&5 |
| 10378 | ac_status=$? |
| 10379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10380 | (exit $ac_status); }; }; then |
| 10381 | ac_cv_lib_asound_snd_pcm_open=yes |
| 10382 | else |
| 10383 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10384 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10385 | |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 10386 | ac_cv_lib_asound_snd_pcm_open=no |
| 10387 | fi |
| 10388 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10389 | LIBS=$ac_check_lib_save_LIBS |
| 10390 | fi |
| 10391 | echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5 |
| 10392 | echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6 |
| 10393 | if test $ac_cv_lib_asound_snd_pcm_open = yes; then |
| 10394 | |
| 10395 | cat >>confdefs.h <<\_ACEOF |
| 10396 | #define HAVE_ALSA 1 |
| 10397 | _ACEOF |
| 10398 | |
| 10399 | ALSALIBS="-lasound" |
| 10400 | fi |
| 10401 | |
| 10402 | fi |
| 10403 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10404 | |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 10405 | AUDIOIOLIBS="" |
| 10406 | |
| 10407 | |
| 10408 | for ac_header in libaudioio.h |
| 10409 | do |
| 10410 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 10411 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10412 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10413 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 10414 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10415 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10416 | fi |
| 10417 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 10418 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 10419 | else |
| 10420 | # Is the header compilable? |
| 10421 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 10422 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 10423 | cat >conftest.$ac_ext <<_ACEOF |
| 10424 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10425 | /* confdefs.h. */ |
| 10426 | _ACEOF |
| 10427 | cat confdefs.h >>conftest.$ac_ext |
| 10428 | cat >>conftest.$ac_ext <<_ACEOF |
| 10429 | /* end confdefs.h. */ |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 10430 | $ac_includes_default |
| 10431 | #include <$ac_header> |
| 10432 | _ACEOF |
| 10433 | rm -f conftest.$ac_objext |
| 10434 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10435 | (eval $ac_compile) 2>&5 |
| 10436 | ac_status=$? |
| 10437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10438 | (exit $ac_status); } && |
| 10439 | { ac_try='test -s conftest.$ac_objext' |
| 10440 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10441 | (eval $ac_try) 2>&5 |
| 10442 | ac_status=$? |
| 10443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10444 | (exit $ac_status); }; }; then |
| 10445 | ac_header_compiler=yes |
| 10446 | else |
| 10447 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10448 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10449 | |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 10450 | ac_header_compiler=no |
| 10451 | fi |
| 10452 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 10453 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10454 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10455 | |
| 10456 | # Is the header present? |
| 10457 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 10458 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 10459 | cat >conftest.$ac_ext <<_ACEOF |
| 10460 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10461 | /* confdefs.h. */ |
| 10462 | _ACEOF |
| 10463 | cat confdefs.h >>conftest.$ac_ext |
| 10464 | cat >>conftest.$ac_ext <<_ACEOF |
| 10465 | /* end confdefs.h. */ |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 10466 | #include <$ac_header> |
| 10467 | _ACEOF |
| 10468 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10469 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10470 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 10471 | grep -v '^ *+' conftest.er1 >conftest.err |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 10472 | rm -f conftest.er1 |
| 10473 | cat conftest.err >&5 |
| 10474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10475 | (exit $ac_status); } >/dev/null; then |
| 10476 | if test -s conftest.err; then |
| 10477 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10478 | else |
| 10479 | ac_cpp_err= |
| 10480 | fi |
| 10481 | else |
| 10482 | ac_cpp_err=yes |
| 10483 | fi |
| 10484 | if test -z "$ac_cpp_err"; then |
| 10485 | ac_header_preproc=yes |
| 10486 | else |
| 10487 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10488 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10489 | |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 10490 | ac_header_preproc=no |
| 10491 | fi |
| 10492 | rm -f conftest.err conftest.$ac_ext |
| 10493 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10494 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 10495 | |
| 10496 | # So? What about this header? |
| 10497 | case $ac_header_compiler:$ac_header_preproc in |
| 10498 | yes:no ) |
| 10499 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10500 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10501 | { 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] | 10502 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 10503 | ( |
| 10504 | cat <<\_ASBOX |
| 10505 | ## ------------------------------------ ## |
| 10506 | ## Report this to bug-autoconf@gnu.org. ## |
| 10507 | ## ------------------------------------ ## |
| 10508 | _ASBOX |
| 10509 | ) | |
| 10510 | sed "s/^/$as_me: WARNING: /" >&2 |
| 10511 | ;; |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 10512 | no:yes ) |
| 10513 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 10514 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 10515 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 10516 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 10517 | { 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] | 10518 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 10519 | ( |
| 10520 | cat <<\_ASBOX |
| 10521 | ## ------------------------------------ ## |
| 10522 | ## Report this to bug-autoconf@gnu.org. ## |
| 10523 | ## ------------------------------------ ## |
| 10524 | _ASBOX |
| 10525 | ) | |
| 10526 | sed "s/^/$as_me: WARNING: /" >&2 |
| 10527 | ;; |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 10528 | esac |
| 10529 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10530 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 10531 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10532 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10533 | else |
| 10534 | eval "$as_ac_Header=$ac_header_preproc" |
| 10535 | fi |
| 10536 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 10537 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 10538 | |
| 10539 | fi |
| 10540 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 10541 | cat >>confdefs.h <<_ACEOF |
| 10542 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 10543 | _ACEOF |
| 10544 | echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5 |
| 10545 | echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6 |
| 10546 | if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then |
| 10547 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10548 | else |
| 10549 | ac_check_lib_save_LIBS=$LIBS |
| 10550 | LIBS="-laudioio $LIBS" |
| 10551 | cat >conftest.$ac_ext <<_ACEOF |
| 10552 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10553 | /* confdefs.h. */ |
| 10554 | _ACEOF |
| 10555 | cat confdefs.h >>conftest.$ac_ext |
| 10556 | cat >>conftest.$ac_ext <<_ACEOF |
| 10557 | /* end confdefs.h. */ |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 10558 | |
| 10559 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 10560 | #ifdef __cplusplus |
| 10561 | extern "C" |
| 10562 | #endif |
| 10563 | /* We use char because int might match the return type of a gcc2 |
| 10564 | builtin and then its argument prototype would still apply. */ |
| 10565 | char AudioIOGetVersion (); |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 10566 | int |
| 10567 | main () |
| 10568 | { |
| 10569 | AudioIOGetVersion (); |
| 10570 | ; |
| 10571 | return 0; |
| 10572 | } |
| 10573 | _ACEOF |
| 10574 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10575 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10576 | (eval $ac_link) 2>&5 |
| 10577 | ac_status=$? |
| 10578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10579 | (exit $ac_status); } && |
| 10580 | { ac_try='test -s conftest$ac_exeext' |
| 10581 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10582 | (eval $ac_try) 2>&5 |
| 10583 | ac_status=$? |
| 10584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10585 | (exit $ac_status); }; }; then |
| 10586 | ac_cv_lib_audioio_AudioIOGetVersion=yes |
| 10587 | else |
| 10588 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10589 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10590 | |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 10591 | ac_cv_lib_audioio_AudioIOGetVersion=no |
| 10592 | fi |
| 10593 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10594 | LIBS=$ac_check_lib_save_LIBS |
| 10595 | fi |
| 10596 | echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5 |
| 10597 | echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6 |
| 10598 | if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then |
| 10599 | AUDIOIOLIBS="-laudioio" |
| 10600 | |
| 10601 | cat >>confdefs.h <<\_ACEOF |
| 10602 | #define HAVE_LIBAUDIOIO 1 |
| 10603 | _ACEOF |
| 10604 | |
| 10605 | fi |
| 10606 | |
| 10607 | fi |
| 10608 | |
| 10609 | done |
| 10610 | |
| 10611 | |
| 10612 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10613 | echo "$as_me:$LINENO: checking whether mmap64 works defined as mmap" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10614 | echo $ECHO_N "checking whether mmap64 works defined as mmap... $ECHO_C" >&6 |
| 10615 | if test "${ac_cv_mmap64_works+set}" = set; then |
| 10616 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | 0f6cfbc | 2001-06-08 19:34:56 +0000 | [diff] [blame] | 10617 | else |
| 10618 | if test "$cross_compiling" = yes; then |
| 10619 | ac_cv_mmap64_works="no" |
| 10620 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10621 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10622 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10623 | /* confdefs.h. */ |
| 10624 | _ACEOF |
| 10625 | cat confdefs.h >>conftest.$ac_ext |
| 10626 | cat >>conftest.$ac_ext <<_ACEOF |
| 10627 | /* end confdefs.h. */ |
Marcus Meissner | 0f6cfbc | 2001-06-08 19:34:56 +0000 | [diff] [blame] | 10628 | |
| 10629 | #define _FILE_OFFSET_BITS 64 |
| 10630 | #include <stdio.h> |
| 10631 | #include <unistd.h> |
| 10632 | #include <fcntl.h> |
| 10633 | #include <sys/mman.h> |
| 10634 | #include <errno.h> |
| 10635 | |
| 10636 | int main(int argc,char **argv) { |
| 10637 | int fd = open("conftest.map",O_CREAT|O_RDWR,0600); |
| 10638 | if (fd == -1) exit(1); |
| 10639 | |
| 10640 | unlink("conftest.map"); |
| 10641 | |
| 10642 | write(fd,"test",4); |
| 10643 | |
| 10644 | if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) && |
| 10645 | (errno == EINVAL) |
| 10646 | ) { |
| 10647 | exit(1); |
| 10648 | } |
| 10649 | close(fd); |
| 10650 | fprintf(stderr,"success!\n"); |
| 10651 | exit(0); |
| 10652 | } |
| 10653 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10654 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10655 | _ACEOF |
| 10656 | rm -f conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10657 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10658 | (eval $ac_link) 2>&5 |
| 10659 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10661 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10662 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10663 | (eval $ac_try) 2>&5 |
| 10664 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10666 | (exit $ac_status); }; }; then |
Marcus Meissner | 0f6cfbc | 2001-06-08 19:34:56 +0000 | [diff] [blame] | 10667 | ac_cv_mmap64_works="yes" |
| 10668 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10669 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10670 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10671 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10672 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10673 | ( exit $ac_status ) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10674 | ac_cv_mmap64_works="no" |
Marcus Meissner | 0f6cfbc | 2001-06-08 19:34:56 +0000 | [diff] [blame] | 10675 | fi |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 10676 | 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] | 10677 | fi |
Marcus Meissner | 0f6cfbc | 2001-06-08 19:34:56 +0000 | [diff] [blame] | 10678 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10679 | echo "$as_me:$LINENO: result: $ac_cv_mmap64_works" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10680 | echo "${ECHO_T}$ac_cv_mmap64_works" >&6 |
Marcus Meissner | 0f6cfbc | 2001-06-08 19:34:56 +0000 | [diff] [blame] | 10681 | |
| 10682 | if test "$ac_cv_mmap64_works" = "yes" |
| 10683 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10684 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10685 | cat >>confdefs.h <<\_ACEOF |
Marcus Meissner | 0f6cfbc | 2001-06-08 19:34:56 +0000 | [diff] [blame] | 10686 | #define _FILE_OFFSET_BITS 64 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10687 | _ACEOF |
Marcus Meissner | 0f6cfbc | 2001-06-08 19:34:56 +0000 | [diff] [blame] | 10688 | |
| 10689 | fi |
| 10690 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10691 | |
Alexandre Julliard | fc09423 | 2003-04-14 21:46:41 +0000 | [diff] [blame] | 10692 | EXTRACFLAGS="" |
| 10693 | |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 10694 | if test "x${GCC}" = "xyes" |
| 10695 | then |
Alexandre Julliard | fc09423 | 2003-04-14 21:46:41 +0000 | [diff] [blame] | 10696 | EXTRACFLAGS=-Wall |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 10697 | |
| 10698 | echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10699 | echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6 |
| 10700 | if test "${ac_cv_c_gcc_strength_bug+set}" = set; then |
| 10701 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 10702 | else |
| 10703 | if test "$cross_compiling" = yes; then |
| 10704 | ac_cv_c_gcc_strength_bug="yes" |
| 10705 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10706 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10707 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10708 | /* confdefs.h. */ |
| 10709 | _ACEOF |
| 10710 | cat confdefs.h >>conftest.$ac_ext |
| 10711 | cat >>conftest.$ac_ext <<_ACEOF |
| 10712 | /* end confdefs.h. */ |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 10713 | |
Eric Pouech | 5aee80f | 2000-11-11 00:31:39 +0000 | [diff] [blame] | 10714 | int L[4] = {0,1,2,3}; |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 10715 | int main(void) { |
Alexandre Julliard | d2e1c1a | 1996-03-09 16:12:43 +0000 | [diff] [blame] | 10716 | static int Array[3]; |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 10717 | unsigned int B = 3; |
| 10718 | int i; |
Alexandre Julliard | d2e1c1a | 1996-03-09 16:12:43 +0000 | [diff] [blame] | 10719 | for(i=0; i<B; i++) Array[i] = i - 3; |
Eric Pouech | 5aee80f | 2000-11-11 00:31:39 +0000 | [diff] [blame] | 10720 | for(i=0; i<4 - 1; i++) L[i] = L[i + 1]; |
| 10721 | L[i] = 4; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10722 | |
Eric Pouech | 5aee80f | 2000-11-11 00:31:39 +0000 | [diff] [blame] | 10723 | exit( Array[1] != -2 || L[2] != 3); |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 10724 | } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10725 | _ACEOF |
| 10726 | rm -f conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10727 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10728 | (eval $ac_link) 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); } && { ac_try='./conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10732 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10733 | (eval $ac_try) 2>&5 |
| 10734 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10736 | (exit $ac_status); }; }; then |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 10737 | ac_cv_c_gcc_strength_bug="no" |
| 10738 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10739 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10740 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10741 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10742 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10743 | ( exit $ac_status ) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10744 | ac_cv_c_gcc_strength_bug="yes" |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 10745 | fi |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 10746 | 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] | 10747 | fi |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 10748 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10749 | echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10750 | echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6 |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 10751 | if test "$ac_cv_c_gcc_strength_bug" = "yes" |
| 10752 | then |
Alexandre Julliard | fc09423 | 2003-04-14 21:46:41 +0000 | [diff] [blame] | 10753 | EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce" |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 10754 | fi |
Alexandre Julliard | f9b94cb | 2000-12-06 03:50:22 +0000 | [diff] [blame] | 10755 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10756 | 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] | 10757 | echo $ECHO_N "checking for gcc -mpreferred-stack-boundary=2 support... $ECHO_C" >&6 |
| 10758 | if test "${ac_cv_c_gcc_stack_boundary+set}" = set; then |
| 10759 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | f9b94cb | 2000-12-06 03:50:22 +0000 | [diff] [blame] | 10760 | else |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 10761 | ac_wine_try_cflags_saved=$CFLAGS |
| 10762 | CFLAGS="$CFLAGS -mpreferred-stack-boundary=2" |
| 10763 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10764 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10765 | /* confdefs.h. */ |
| 10766 | _ACEOF |
| 10767 | cat confdefs.h >>conftest.$ac_ext |
| 10768 | cat >>conftest.$ac_ext <<_ACEOF |
| 10769 | /* end confdefs.h. */ |
Alexandre Julliard | f9b94cb | 2000-12-06 03:50:22 +0000 | [diff] [blame] | 10770 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10771 | int |
| 10772 | main () |
| 10773 | { |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 10774 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10775 | ; |
| 10776 | return 0; |
| 10777 | } |
| 10778 | _ACEOF |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 10779 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10780 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10781 | (eval $ac_link) 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10782 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10784 | (exit $ac_status); } && |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 10785 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10786 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10787 | (eval $ac_try) 2>&5 |
| 10788 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10790 | (exit $ac_status); }; }; then |
Alexandre Julliard | f9b94cb | 2000-12-06 03:50:22 +0000 | [diff] [blame] | 10791 | ac_cv_c_gcc_stack_boundary="yes" |
| 10792 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10793 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10794 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10795 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10796 | ac_cv_c_gcc_stack_boundary="no" |
Alexandre Julliard | f9b94cb | 2000-12-06 03:50:22 +0000 | [diff] [blame] | 10797 | fi |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 10798 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10799 | CFLAGS=$ac_wine_try_cflags_saved |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10800 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10801 | echo "$as_me:$LINENO: result: $ac_cv_c_gcc_stack_boundary" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10802 | echo "${ECHO_T}$ac_cv_c_gcc_stack_boundary" >&6 |
Alexandre Julliard | f9b94cb | 2000-12-06 03:50:22 +0000 | [diff] [blame] | 10803 | if test "$ac_cv_c_gcc_stack_boundary" = "yes" |
| 10804 | then |
Alexandre Julliard | fc09423 | 2003-04-14 21:46:41 +0000 | [diff] [blame] | 10805 | EXTRACFLAGS="$EXTRACFLAGS -mpreferred-stack-boundary=2" |
Alexandre Julliard | f9b94cb | 2000-12-06 03:50:22 +0000 | [diff] [blame] | 10806 | fi |
Alexandre Julliard | 14bd120 | 2003-01-09 00:42:26 +0000 | [diff] [blame] | 10807 | |
| 10808 | echo "$as_me:$LINENO: checking for gcc -gstabs+ support" >&5 |
| 10809 | echo $ECHO_N "checking for gcc -gstabs+ support... $ECHO_C" >&6 |
| 10810 | if test "${ac_cv_c_gcc_gstabs+set}" = set; then |
| 10811 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10812 | else |
| 10813 | ac_wine_try_cflags_saved=$CFLAGS |
| 10814 | CFLAGS="$CFLAGS -gstabs+" |
| 10815 | cat >conftest.$ac_ext <<_ACEOF |
| 10816 | #line $LINENO "configure" |
| 10817 | /* confdefs.h. */ |
| 10818 | _ACEOF |
| 10819 | cat confdefs.h >>conftest.$ac_ext |
| 10820 | cat >>conftest.$ac_ext <<_ACEOF |
| 10821 | /* end confdefs.h. */ |
| 10822 | |
| 10823 | int |
| 10824 | main () |
| 10825 | { |
| 10826 | |
| 10827 | ; |
| 10828 | return 0; |
| 10829 | } |
| 10830 | _ACEOF |
| 10831 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10832 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10833 | (eval $ac_link) 2>&5 |
| 10834 | ac_status=$? |
| 10835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10836 | (exit $ac_status); } && |
| 10837 | { ac_try='test -s conftest$ac_exeext' |
| 10838 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10839 | (eval $ac_try) 2>&5 |
| 10840 | ac_status=$? |
| 10841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10842 | (exit $ac_status); }; }; then |
| 10843 | ac_cv_c_gcc_gstabs="yes" |
| 10844 | else |
| 10845 | echo "$as_me: failed program was:" >&5 |
| 10846 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10847 | |
| 10848 | ac_cv_c_gcc_gstabs="no" |
| 10849 | fi |
| 10850 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10851 | CFLAGS=$ac_wine_try_cflags_saved |
| 10852 | fi |
| 10853 | echo "$as_me:$LINENO: result: $ac_cv_c_gcc_gstabs" >&5 |
| 10854 | echo "${ECHO_T}$ac_cv_c_gcc_gstabs" >&6 |
| 10855 | if test "$ac_cv_c_gcc_gstabs" = "yes" |
| 10856 | then |
Alexandre Julliard | fc09423 | 2003-04-14 21:46:41 +0000 | [diff] [blame] | 10857 | EXTRACFLAGS="$EXTRACFLAGS -gstabs+" |
Alexandre Julliard | 14bd120 | 2003-01-09 00:42:26 +0000 | [diff] [blame] | 10858 | fi |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 10859 | |
Alexandre Julliard | 4d52d37 | 2003-03-24 19:33:20 +0000 | [diff] [blame] | 10860 | saved_CFLAGS="$CFLAGS" |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 10861 | CFLAGS="$CFLAGS -Wpointer-arith -Werror" |
| 10862 | echo "$as_me:$LINENO: checking for broken string.h that generates warnings" >&5 |
| 10863 | echo $ECHO_N "checking for broken string.h that generates warnings... $ECHO_C" >&6 |
| 10864 | if test "${ac_cv_c_string_h_warnings+set}" = set; then |
| 10865 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10866 | else |
| 10867 | cat >conftest.$ac_ext <<_ACEOF |
| 10868 | #line $LINENO "configure" |
| 10869 | /* confdefs.h. */ |
| 10870 | _ACEOF |
| 10871 | cat confdefs.h >>conftest.$ac_ext |
| 10872 | cat >>conftest.$ac_ext <<_ACEOF |
| 10873 | /* end confdefs.h. */ |
| 10874 | #include <string.h> |
| 10875 | int |
| 10876 | main () |
| 10877 | { |
| 10878 | |
| 10879 | ; |
| 10880 | return 0; |
| 10881 | } |
| 10882 | _ACEOF |
| 10883 | rm -f conftest.$ac_objext |
| 10884 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10885 | (eval $ac_compile) 2>&5 |
| 10886 | ac_status=$? |
| 10887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10888 | (exit $ac_status); } && |
| 10889 | { ac_try='test -s conftest.$ac_objext' |
| 10890 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10891 | (eval $ac_try) 2>&5 |
| 10892 | ac_status=$? |
| 10893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10894 | (exit $ac_status); }; }; then |
| 10895 | ac_cv_c_string_h_warnings=no |
| 10896 | else |
| 10897 | echo "$as_me: failed program was:" >&5 |
| 10898 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10899 | |
| 10900 | ac_cv_c_string_h_warnings=yes |
| 10901 | fi |
| 10902 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 10903 | fi |
| 10904 | echo "$as_me:$LINENO: result: $ac_cv_c_string_h_warnings" >&5 |
| 10905 | echo "${ECHO_T}$ac_cv_c_string_h_warnings" >&6 |
Alexandre Julliard | 4d52d37 | 2003-03-24 19:33:20 +0000 | [diff] [blame] | 10906 | CFLAGS="$saved_CFLAGS" |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 10907 | if test "$ac_cv_c_string_h_warnings" = "no" |
| 10908 | then |
Alexandre Julliard | fc09423 | 2003-04-14 21:46:41 +0000 | [diff] [blame] | 10909 | EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith" |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 10910 | fi |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 10911 | fi |
| 10912 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10913 | |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 10914 | echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5 |
| 10915 | echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6 |
| 10916 | if test "${ac_cv_asm_func_def+set}" = set; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10917 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Dimitrie O. Paun | c77cbbc | 2000-11-27 23:32:55 +0000 | [diff] [blame] | 10918 | else |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 10919 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10920 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10921 | /* confdefs.h. */ |
| 10922 | _ACEOF |
| 10923 | cat confdefs.h >>conftest.$ac_ext |
| 10924 | cat >>conftest.$ac_ext <<_ACEOF |
| 10925 | /* end confdefs.h. */ |
Alexandre Julliard | 520852c | 2002-08-07 00:04:44 +0000 | [diff] [blame] | 10926 | 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] | 10927 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10928 | int |
| 10929 | main () |
| 10930 | { |
Dimitrie O. Paun | c77cbbc | 2000-11-27 23:32:55 +0000 | [diff] [blame] | 10931 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10932 | ; |
| 10933 | return 0; |
| 10934 | } |
| 10935 | _ACEOF |
| 10936 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10937 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10938 | (eval $ac_link) 2>&5 |
| 10939 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10941 | (exit $ac_status); } && |
| 10942 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10943 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10944 | (eval $ac_try) 2>&5 |
| 10945 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10947 | (exit $ac_status); }; }; then |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 10948 | ac_cv_asm_func_def=".def" |
Dimitrie O. Paun | c77cbbc | 2000-11-27 23:32:55 +0000 | [diff] [blame] | 10949 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10950 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10951 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10952 | |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 10953 | cat >conftest.$ac_ext <<_ACEOF |
| 10954 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10955 | /* confdefs.h. */ |
| 10956 | _ACEOF |
| 10957 | cat confdefs.h >>conftest.$ac_ext |
| 10958 | cat >>conftest.$ac_ext <<_ACEOF |
| 10959 | /* end confdefs.h. */ |
Alexandre Julliard | 520852c | 2002-08-07 00:04:44 +0000 | [diff] [blame] | 10960 | 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] | 10961 | |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 10962 | int |
| 10963 | main () |
| 10964 | { |
| 10965 | |
| 10966 | ; |
| 10967 | return 0; |
| 10968 | } |
| 10969 | _ACEOF |
| 10970 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10971 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10972 | (eval $ac_link) 2>&5 |
| 10973 | ac_status=$? |
| 10974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10975 | (exit $ac_status); } && |
| 10976 | { ac_try='test -s conftest$ac_exeext' |
| 10977 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10978 | (eval $ac_try) 2>&5 |
| 10979 | ac_status=$? |
| 10980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10981 | (exit $ac_status); }; }; then |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 10982 | ac_cv_asm_func_def=".type @function" |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 10983 | else |
| 10984 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10985 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10986 | |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 10987 | cat >conftest.$ac_ext <<_ACEOF |
| 10988 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10989 | /* confdefs.h. */ |
| 10990 | _ACEOF |
| 10991 | cat confdefs.h >>conftest.$ac_ext |
| 10992 | cat >>conftest.$ac_ext <<_ACEOF |
| 10993 | /* end confdefs.h. */ |
Alexandre Julliard | 520852c | 2002-08-07 00:04:44 +0000 | [diff] [blame] | 10994 | 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] | 10995 | |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 10996 | int |
| 10997 | main () |
| 10998 | { |
| 10999 | |
| 11000 | ; |
| 11001 | return 0; |
| 11002 | } |
| 11003 | _ACEOF |
| 11004 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11005 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11006 | (eval $ac_link) 2>&5 |
| 11007 | ac_status=$? |
| 11008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11009 | (exit $ac_status); } && |
| 11010 | { ac_try='test -s conftest$ac_exeext' |
| 11011 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11012 | (eval $ac_try) 2>&5 |
| 11013 | ac_status=$? |
| 11014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11015 | (exit $ac_status); }; }; then |
| 11016 | ac_cv_asm_func_def=".type 2" |
| 11017 | else |
| 11018 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11019 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11020 | |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 11021 | ac_cv_asm_func_def="unknown" |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 11022 | fi |
| 11023 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 11024 | fi |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 11025 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11026 | fi |
| 11027 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11028 | fi |
| 11029 | echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5 |
| 11030 | echo "${ECHO_T}$ac_cv_asm_func_def" >&6 |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 11031 | |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 11032 | |
| 11033 | |
| 11034 | case "$ac_cv_asm_func_def" in |
| 11035 | ".def") |
| 11036 | cat >>confdefs.h <<\_ACEOF |
| 11037 | #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] | 11038 | _ACEOF |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 11039 | ;; |
| 11040 | ".type @function") |
| 11041 | cat >>confdefs.h <<\_ACEOF |
| 11042 | #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function" |
| 11043 | _ACEOF |
| 11044 | ;; |
| 11045 | ".type 2") |
| 11046 | cat >>confdefs.h <<\_ACEOF |
| 11047 | #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2" |
| 11048 | _ACEOF |
| 11049 | ;; |
| 11050 | *) |
| 11051 | cat >>confdefs.h <<\_ACEOF |
| 11052 | #define __ASM_FUNC(name) "" |
| 11053 | _ACEOF |
| 11054 | ;; |
| 11055 | esac |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 11056 | |
| 11057 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11058 | 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] | 11059 | echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6 |
| 11060 | if test "${ac_cv_c_extern_prefix+set}" = set; then |
| 11061 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 11062 | else |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 11063 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11064 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11065 | /* confdefs.h. */ |
| 11066 | _ACEOF |
| 11067 | cat confdefs.h >>conftest.$ac_ext |
| 11068 | cat >>conftest.$ac_ext <<_ACEOF |
| 11069 | /* end confdefs.h. */ |
Alexandre Julliard | 520852c | 2002-08-07 00:04:44 +0000 | [diff] [blame] | 11070 | 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] | 11071 | extern int ac_test; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11072 | int |
| 11073 | main () |
| 11074 | { |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 11075 | if (ac_test) return 1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11076 | ; |
| 11077 | return 0; |
| 11078 | } |
| 11079 | _ACEOF |
| 11080 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11081 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11082 | (eval $ac_link) 2>&5 |
| 11083 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11085 | (exit $ac_status); } && |
| 11086 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11087 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11088 | (eval $ac_try) 2>&5 |
| 11089 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11091 | (exit $ac_status); }; }; then |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 11092 | ac_cv_c_extern_prefix="yes" |
| 11093 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11094 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11095 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11096 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11097 | ac_cv_c_extern_prefix="no" |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 11098 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11099 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 11100 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11101 | echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11102 | echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6 |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 11103 | |
| 11104 | |
| 11105 | |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 11106 | if test "$ac_cv_c_extern_prefix" = "yes" |
| 11107 | then |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 11108 | cat >>confdefs.h <<\_ACEOF |
| 11109 | #define __ASM_NAME(name) "_" name |
| 11110 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11111 | |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 11112 | else |
| 11113 | cat >>confdefs.h <<\_ACEOF |
| 11114 | #define __ASM_NAME(name) name |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11115 | _ACEOF |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 11116 | |
| 11117 | fi |
| 11118 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11119 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11120 | echo "$as_me:$LINENO: checking whether assembler accepts .string" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11121 | echo $ECHO_N "checking whether assembler accepts .string... $ECHO_C" >&6 |
| 11122 | if test "${ac_cv_c_asm_string+set}" = set; then |
| 11123 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 11124 | else |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 11125 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11126 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11127 | /* confdefs.h. */ |
| 11128 | _ACEOF |
| 11129 | cat confdefs.h >>conftest.$ac_ext |
| 11130 | cat >>conftest.$ac_ext <<_ACEOF |
| 11131 | /* end confdefs.h. */ |
Marcus Meissner | 49163d5 | 2002-08-20 00:26:40 +0000 | [diff] [blame] | 11132 | 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] | 11133 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11134 | int |
| 11135 | main () |
| 11136 | { |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 11137 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11138 | ; |
| 11139 | return 0; |
| 11140 | } |
| 11141 | _ACEOF |
| 11142 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11143 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11144 | (eval $ac_link) 2>&5 |
| 11145 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11147 | (exit $ac_status); } && |
| 11148 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11150 | (eval $ac_try) 2>&5 |
| 11151 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11153 | (exit $ac_status); }; }; then |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 11154 | ac_cv_c_asm_string="yes" |
| 11155 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11156 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11157 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11158 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11159 | ac_cv_c_asm_string="no" |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 11160 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11161 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 11162 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11163 | echo "$as_me:$LINENO: result: $ac_cv_c_asm_string" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11164 | echo "${ECHO_T}$ac_cv_c_asm_string" >&6 |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 11165 | if test "$ac_cv_c_asm_string" = "yes" |
| 11166 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11167 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11168 | cat >>confdefs.h <<\_ACEOF |
Christian Costa | f814cf8 | 2003-03-23 00:18:26 +0000 | [diff] [blame] | 11169 | #define __ASM_STRING ".string" |
| 11170 | _ACEOF |
| 11171 | |
| 11172 | else |
| 11173 | echo "$as_me:$LINENO: checking whether assembler accepts .asciz" >&5 |
| 11174 | echo $ECHO_N "checking whether assembler accepts .asciz... $ECHO_C" >&6 |
| 11175 | if test "${ac_cv_c_asm_asciz+set}" = set; then |
| 11176 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11177 | else |
| 11178 | cat >conftest.$ac_ext <<_ACEOF |
| 11179 | #line $LINENO "configure" |
| 11180 | /* confdefs.h. */ |
| 11181 | _ACEOF |
| 11182 | cat confdefs.h >>conftest.$ac_ext |
| 11183 | cat >>conftest.$ac_ext <<_ACEOF |
| 11184 | /* end confdefs.h. */ |
| 11185 | void ac_asm(void) { asm(".data\n\t.asciz \"test\"\n\t.text"); } |
| 11186 | |
| 11187 | int |
| 11188 | main () |
| 11189 | { |
| 11190 | |
| 11191 | ; |
| 11192 | return 0; |
| 11193 | } |
| 11194 | _ACEOF |
| 11195 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11196 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11197 | (eval $ac_link) 2>&5 |
| 11198 | ac_status=$? |
| 11199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11200 | (exit $ac_status); } && |
| 11201 | { ac_try='test -s conftest$ac_exeext' |
| 11202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11203 | (eval $ac_try) 2>&5 |
| 11204 | ac_status=$? |
| 11205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11206 | (exit $ac_status); }; }; then |
| 11207 | ac_cv_c_asm_asciz="yes" |
| 11208 | else |
| 11209 | echo "$as_me: failed program was:" >&5 |
| 11210 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11211 | |
| 11212 | ac_cv_c_asm_asciz="no" |
| 11213 | fi |
| 11214 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11215 | fi |
| 11216 | echo "$as_me:$LINENO: result: $ac_cv_c_asm_asciz" >&5 |
| 11217 | echo "${ECHO_T}$ac_cv_c_asm_asciz" >&6 |
| 11218 | if test "$ac_cv_c_asm_asciz" = "yes" |
| 11219 | then |
| 11220 | cat >>confdefs.h <<\_ACEOF |
| 11221 | #define __ASM_STRING ".asciz" |
| 11222 | _ACEOF |
| 11223 | |
| 11224 | else |
| 11225 | cat >>confdefs.h <<\_ACEOF |
| 11226 | #define __ASM_STRING ".ascii" |
| 11227 | _ACEOF |
| 11228 | |
| 11229 | fi |
| 11230 | fi |
| 11231 | |
| 11232 | |
| 11233 | echo "$as_me:$LINENO: checking whether assembler accepts .short" >&5 |
| 11234 | echo $ECHO_N "checking whether assembler accepts .short... $ECHO_C" >&6 |
| 11235 | if test "${ac_cv_c_asm_short+set}" = set; then |
| 11236 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11237 | else |
| 11238 | cat >conftest.$ac_ext <<_ACEOF |
| 11239 | #line $LINENO "configure" |
| 11240 | /* confdefs.h. */ |
| 11241 | _ACEOF |
| 11242 | cat confdefs.h >>conftest.$ac_ext |
| 11243 | cat >>conftest.$ac_ext <<_ACEOF |
| 11244 | /* end confdefs.h. */ |
| 11245 | void ac_asm(void) { asm(".data\n\t.short 1\n\t.text"); } |
| 11246 | |
| 11247 | int |
| 11248 | main () |
| 11249 | { |
| 11250 | |
| 11251 | ; |
| 11252 | return 0; |
| 11253 | } |
| 11254 | _ACEOF |
| 11255 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11256 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11257 | (eval $ac_link) 2>&5 |
| 11258 | ac_status=$? |
| 11259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11260 | (exit $ac_status); } && |
| 11261 | { ac_try='test -s conftest$ac_exeext' |
| 11262 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11263 | (eval $ac_try) 2>&5 |
| 11264 | ac_status=$? |
| 11265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11266 | (exit $ac_status); }; }; then |
| 11267 | ac_cv_c_asm_short="yes" |
| 11268 | else |
| 11269 | echo "$as_me: failed program was:" >&5 |
| 11270 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11271 | |
| 11272 | ac_cv_c_asm_short="no" |
| 11273 | fi |
| 11274 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11275 | fi |
| 11276 | echo "$as_me:$LINENO: result: $ac_cv_c_asm_short" >&5 |
| 11277 | echo "${ECHO_T}$ac_cv_c_asm_short" >&6 |
| 11278 | if test "$ac_cv_c_asm_short" = "yes" |
| 11279 | then |
| 11280 | |
| 11281 | cat >>confdefs.h <<\_ACEOF |
| 11282 | #define __ASM_SHORT ".short" |
| 11283 | _ACEOF |
| 11284 | |
| 11285 | else |
| 11286 | cat >>confdefs.h <<\_ACEOF |
| 11287 | #define __ASM_SHORT ".half" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11288 | _ACEOF |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 11289 | |
| 11290 | fi |
| 11291 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11292 | |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 11293 | DLLEXT="" |
| 11294 | |
Alexandre Julliard | fc09423 | 2003-04-14 21:46:41 +0000 | [diff] [blame] | 11295 | DLLFLAGS="-D_REENTRANT" |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 11296 | |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 11297 | DLLIBS="" |
| 11298 | |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 11299 | LDDLLFLAGS="" |
| 11300 | |
| 11301 | LDSHARED="" |
| 11302 | |
Alexandre Julliard | ada5e65 | 2002-12-12 22:03:14 +0000 | [diff] [blame] | 11303 | LIBEXT="so" |
| 11304 | |
| 11305 | IMPLIBEXT="def" |
| 11306 | |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 11307 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 11308 | case $host_os in |
| 11309 | cygwin*|mingw32*) |
| 11310 | if test -n "$ac_tool_prefix"; then |
Alexandre Julliard | ada5e65 | 2002-12-12 22:03:14 +0000 | [diff] [blame] | 11311 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
| 11312 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 |
| 11313 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11314 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 11315 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then |
| 11316 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11317 | else |
| 11318 | if test -n "$DLLTOOL"; then |
| 11319 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
| 11320 | else |
| 11321 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11322 | for as_dir in $PATH |
| 11323 | do |
| 11324 | IFS=$as_save_IFS |
| 11325 | test -z "$as_dir" && as_dir=. |
| 11326 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11327 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 11328 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
| 11329 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11330 | break 2 |
| 11331 | fi |
| 11332 | done |
| 11333 | done |
| 11334 | |
| 11335 | fi |
| 11336 | fi |
| 11337 | DLLTOOL=$ac_cv_prog_DLLTOOL |
| 11338 | if test -n "$DLLTOOL"; then |
| 11339 | echo "$as_me:$LINENO: result: $DLLTOOL" >&5 |
| 11340 | echo "${ECHO_T}$DLLTOOL" >&6 |
| 11341 | else |
| 11342 | echo "$as_me:$LINENO: result: no" >&5 |
| 11343 | echo "${ECHO_T}no" >&6 |
| 11344 | fi |
| 11345 | |
| 11346 | fi |
| 11347 | if test -z "$ac_cv_prog_DLLTOOL"; then |
| 11348 | ac_ct_DLLTOOL=$DLLTOOL |
| 11349 | # Extract the first word of "dlltool", so it can be a program name with args. |
| 11350 | set dummy dlltool; ac_word=$2 |
| 11351 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11352 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 11353 | if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then |
| 11354 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11355 | else |
| 11356 | if test -n "$ac_ct_DLLTOOL"; then |
| 11357 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. |
| 11358 | else |
| 11359 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11360 | for as_dir in $PATH |
| 11361 | do |
| 11362 | IFS=$as_save_IFS |
| 11363 | test -z "$as_dir" && as_dir=. |
| 11364 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11365 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 11366 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
| 11367 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11368 | break 2 |
| 11369 | fi |
| 11370 | done |
| 11371 | done |
| 11372 | |
| 11373 | test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false" |
| 11374 | fi |
| 11375 | fi |
| 11376 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
| 11377 | if test -n "$ac_ct_DLLTOOL"; then |
| 11378 | echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 |
| 11379 | echo "${ECHO_T}$ac_ct_DLLTOOL" >&6 |
| 11380 | else |
| 11381 | echo "$as_me:$LINENO: result: no" >&5 |
| 11382 | echo "${ECHO_T}no" >&6 |
| 11383 | fi |
| 11384 | |
| 11385 | DLLTOOL=$ac_ct_DLLTOOL |
| 11386 | else |
| 11387 | DLLTOOL="$ac_cv_prog_DLLTOOL" |
| 11388 | fi |
| 11389 | |
| 11390 | if test -n "$ac_tool_prefix"; then |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 11391 | # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args. |
| 11392 | set dummy ${ac_tool_prefix}dllwrap; ac_word=$2 |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 11393 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11394 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 11395 | if test "${ac_cv_prog_DLLWRAP+set}" = set; then |
| 11396 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11397 | else |
| 11398 | if test -n "$DLLWRAP"; then |
| 11399 | ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test. |
| 11400 | else |
| 11401 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11402 | for as_dir in $PATH |
| 11403 | do |
| 11404 | IFS=$as_save_IFS |
| 11405 | test -z "$as_dir" && as_dir=. |
| 11406 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11407 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 11408 | ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap" |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 11409 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11410 | break 2 |
| 11411 | fi |
| 11412 | done |
| 11413 | done |
| 11414 | |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 11415 | fi |
| 11416 | fi |
| 11417 | DLLWRAP=$ac_cv_prog_DLLWRAP |
| 11418 | if test -n "$DLLWRAP"; then |
| 11419 | echo "$as_me:$LINENO: result: $DLLWRAP" >&5 |
| 11420 | echo "${ECHO_T}$DLLWRAP" >&6 |
| 11421 | else |
| 11422 | echo "$as_me:$LINENO: result: no" >&5 |
| 11423 | echo "${ECHO_T}no" >&6 |
| 11424 | fi |
| 11425 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 11426 | fi |
| 11427 | if test -z "$ac_cv_prog_DLLWRAP"; then |
| 11428 | ac_ct_DLLWRAP=$DLLWRAP |
| 11429 | # Extract the first word of "dllwrap", so it can be a program name with args. |
| 11430 | set dummy dllwrap; ac_word=$2 |
| 11431 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11432 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 11433 | if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then |
| 11434 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11435 | else |
| 11436 | if test -n "$ac_ct_DLLWRAP"; then |
| 11437 | ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test. |
| 11438 | else |
| 11439 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11440 | for as_dir in $PATH |
| 11441 | do |
| 11442 | IFS=$as_save_IFS |
| 11443 | test -z "$as_dir" && as_dir=. |
| 11444 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11445 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 11446 | ac_cv_prog_ac_ct_DLLWRAP="dllwrap" |
| 11447 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11448 | break 2 |
| 11449 | fi |
| 11450 | done |
| 11451 | done |
| 11452 | |
| 11453 | test -z "$ac_cv_prog_ac_ct_DLLWRAP" && ac_cv_prog_ac_ct_DLLWRAP="false" |
| 11454 | fi |
| 11455 | fi |
| 11456 | ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP |
| 11457 | if test -n "$ac_ct_DLLWRAP"; then |
| 11458 | echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5 |
| 11459 | echo "${ECHO_T}$ac_ct_DLLWRAP" >&6 |
| 11460 | else |
| 11461 | echo "$as_me:$LINENO: result: no" >&5 |
| 11462 | echo "${ECHO_T}no" >&6 |
| 11463 | fi |
| 11464 | |
| 11465 | DLLWRAP=$ac_ct_DLLWRAP |
| 11466 | else |
| 11467 | DLLWRAP="$ac_cv_prog_DLLWRAP" |
| 11468 | fi |
| 11469 | |
| 11470 | if test "$DLLWRAP" = "false"; then |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 11471 | LIBEXT="a" |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 11472 | else |
| 11473 | LIBEXT="dll" |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 11474 | fi |
Alexandre Julliard | ada5e65 | 2002-12-12 22:03:14 +0000 | [diff] [blame] | 11475 | IMPLIBEXT="a" |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 11476 | ;; |
| 11477 | *) |
| 11478 | |
| 11479 | for ac_header in dlfcn.h |
| 11480 | do |
| 11481 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11482 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 11483 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11484 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 11485 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 11486 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11487 | fi |
| 11488 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 11489 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 11490 | else |
| 11491 | # Is the header compilable? |
| 11492 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11493 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 11494 | cat >conftest.$ac_ext <<_ACEOF |
| 11495 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11496 | /* confdefs.h. */ |
| 11497 | _ACEOF |
| 11498 | cat confdefs.h >>conftest.$ac_ext |
| 11499 | cat >>conftest.$ac_ext <<_ACEOF |
| 11500 | /* end confdefs.h. */ |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 11501 | $ac_includes_default |
| 11502 | #include <$ac_header> |
| 11503 | _ACEOF |
| 11504 | rm -f conftest.$ac_objext |
| 11505 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11506 | (eval $ac_compile) 2>&5 |
| 11507 | ac_status=$? |
| 11508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11509 | (exit $ac_status); } && |
| 11510 | { ac_try='test -s conftest.$ac_objext' |
| 11511 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11512 | (eval $ac_try) 2>&5 |
| 11513 | ac_status=$? |
| 11514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11515 | (exit $ac_status); }; }; then |
| 11516 | ac_header_compiler=yes |
| 11517 | else |
| 11518 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11519 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11520 | |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 11521 | ac_header_compiler=no |
| 11522 | fi |
| 11523 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 11524 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11525 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 11526 | |
| 11527 | # Is the header present? |
| 11528 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11529 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 11530 | cat >conftest.$ac_ext <<_ACEOF |
| 11531 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11532 | /* confdefs.h. */ |
| 11533 | _ACEOF |
| 11534 | cat confdefs.h >>conftest.$ac_ext |
| 11535 | cat >>conftest.$ac_ext <<_ACEOF |
| 11536 | /* end confdefs.h. */ |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 11537 | #include <$ac_header> |
| 11538 | _ACEOF |
| 11539 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 11540 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 11541 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 11542 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 11543 | rm -f conftest.er1 |
| 11544 | cat conftest.err >&5 |
| 11545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11546 | (exit $ac_status); } >/dev/null; then |
| 11547 | if test -s conftest.err; then |
| 11548 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11549 | else |
| 11550 | ac_cpp_err= |
| 11551 | fi |
| 11552 | else |
| 11553 | ac_cpp_err=yes |
| 11554 | fi |
| 11555 | if test -z "$ac_cpp_err"; then |
| 11556 | ac_header_preproc=yes |
| 11557 | else |
| 11558 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11559 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11560 | |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 11561 | ac_header_preproc=no |
| 11562 | fi |
| 11563 | rm -f conftest.err conftest.$ac_ext |
| 11564 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11565 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 11566 | |
| 11567 | # So? What about this header? |
| 11568 | case $ac_header_compiler:$ac_header_preproc in |
| 11569 | yes:no ) |
| 11570 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11571 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11572 | { 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] | 11573 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11574 | ( |
| 11575 | cat <<\_ASBOX |
| 11576 | ## ------------------------------------ ## |
| 11577 | ## Report this to bug-autoconf@gnu.org. ## |
| 11578 | ## ------------------------------------ ## |
| 11579 | _ASBOX |
| 11580 | ) | |
| 11581 | sed "s/^/$as_me: WARNING: /" >&2 |
| 11582 | ;; |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 11583 | no:yes ) |
| 11584 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11585 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11586 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11587 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11588 | { 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] | 11589 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11590 | ( |
| 11591 | cat <<\_ASBOX |
| 11592 | ## ------------------------------------ ## |
| 11593 | ## Report this to bug-autoconf@gnu.org. ## |
| 11594 | ## ------------------------------------ ## |
| 11595 | _ASBOX |
| 11596 | ) | |
| 11597 | sed "s/^/$as_me: WARNING: /" >&2 |
| 11598 | ;; |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 11599 | esac |
| 11600 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11601 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 11602 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 11603 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11604 | else |
| 11605 | eval "$as_ac_Header=$ac_header_preproc" |
| 11606 | fi |
| 11607 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 11608 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 11609 | |
| 11610 | fi |
| 11611 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11612 | cat >>confdefs.h <<_ACEOF |
| 11613 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11614 | _ACEOF |
| 11615 | |
| 11616 | for ac_func in dlopen |
| 11617 | do |
| 11618 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11619 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11620 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11621 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 11622 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11623 | else |
| 11624 | cat >conftest.$ac_ext <<_ACEOF |
| 11625 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11626 | /* confdefs.h. */ |
| 11627 | _ACEOF |
| 11628 | cat confdefs.h >>conftest.$ac_ext |
| 11629 | cat >>conftest.$ac_ext <<_ACEOF |
| 11630 | /* end confdefs.h. */ |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 11631 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11632 | which can conflict with char $ac_func (); below. |
| 11633 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11634 | <limits.h> exists even on freestanding compilers. */ |
| 11635 | #ifdef __STDC__ |
| 11636 | # include <limits.h> |
| 11637 | #else |
| 11638 | # include <assert.h> |
| 11639 | #endif |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 11640 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11641 | #ifdef __cplusplus |
| 11642 | extern "C" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11643 | { |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 11644 | #endif |
| 11645 | /* We use char because int might match the return type of a gcc2 |
| 11646 | builtin and then its argument prototype would still apply. */ |
| 11647 | char $ac_func (); |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 11648 | /* The GNU C library defines this for functions which it implements |
| 11649 | to always fail with ENOSYS. Some functions are actually named |
| 11650 | something starting with __ and the normal name is an alias. */ |
| 11651 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 11652 | choke me |
| 11653 | #else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11654 | char (*f) () = $ac_func; |
| 11655 | #endif |
| 11656 | #ifdef __cplusplus |
| 11657 | } |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 11658 | #endif |
| 11659 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11660 | int |
| 11661 | main () |
| 11662 | { |
| 11663 | return f != $ac_func; |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 11664 | ; |
| 11665 | return 0; |
| 11666 | } |
| 11667 | _ACEOF |
| 11668 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11669 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11670 | (eval $ac_link) 2>&5 |
| 11671 | ac_status=$? |
| 11672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11673 | (exit $ac_status); } && |
| 11674 | { ac_try='test -s conftest$ac_exeext' |
| 11675 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11676 | (eval $ac_try) 2>&5 |
| 11677 | ac_status=$? |
| 11678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11679 | (exit $ac_status); }; }; then |
| 11680 | eval "$as_ac_var=yes" |
| 11681 | else |
| 11682 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11683 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11684 | |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 11685 | eval "$as_ac_var=no" |
| 11686 | fi |
| 11687 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11688 | fi |
| 11689 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 11690 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 11691 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11692 | cat >>confdefs.h <<_ACEOF |
| 11693 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11694 | _ACEOF |
| 11695 | |
| 11696 | else |
| 11697 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 11698 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 11699 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 11700 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11701 | else |
| 11702 | ac_check_lib_save_LIBS=$LIBS |
| 11703 | LIBS="-ldl $LIBS" |
| 11704 | cat >conftest.$ac_ext <<_ACEOF |
| 11705 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11706 | /* confdefs.h. */ |
| 11707 | _ACEOF |
| 11708 | cat confdefs.h >>conftest.$ac_ext |
| 11709 | cat >>conftest.$ac_ext <<_ACEOF |
| 11710 | /* end confdefs.h. */ |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 11711 | |
| 11712 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11713 | #ifdef __cplusplus |
| 11714 | extern "C" |
| 11715 | #endif |
| 11716 | /* We use char because int might match the return type of a gcc2 |
| 11717 | builtin and then its argument prototype would still apply. */ |
| 11718 | char dlopen (); |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 11719 | int |
| 11720 | main () |
| 11721 | { |
| 11722 | dlopen (); |
| 11723 | ; |
| 11724 | return 0; |
| 11725 | } |
| 11726 | _ACEOF |
| 11727 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11728 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11729 | (eval $ac_link) 2>&5 |
| 11730 | ac_status=$? |
| 11731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11732 | (exit $ac_status); } && |
| 11733 | { ac_try='test -s conftest$ac_exeext' |
| 11734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11735 | (eval $ac_try) 2>&5 |
| 11736 | ac_status=$? |
| 11737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11738 | (exit $ac_status); }; }; then |
| 11739 | ac_cv_lib_dl_dlopen=yes |
| 11740 | else |
| 11741 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11742 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11743 | |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 11744 | ac_cv_lib_dl_dlopen=no |
| 11745 | fi |
| 11746 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11747 | LIBS=$ac_check_lib_save_LIBS |
| 11748 | fi |
| 11749 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 11750 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 11751 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 11752 | |
| 11753 | cat >>confdefs.h <<\_ACEOF |
| 11754 | #define HAVE_DLOPEN 1 |
| 11755 | _ACEOF |
| 11756 | |
| 11757 | DLLIBS="-ldl" |
| 11758 | else |
| 11759 | LIBEXT="a" |
| 11760 | fi |
| 11761 | |
| 11762 | fi |
| 11763 | done |
| 11764 | |
| 11765 | else |
| 11766 | LIBEXT="a" |
| 11767 | fi |
| 11768 | |
| 11769 | done |
| 11770 | |
| 11771 | |
| 11772 | if test "$LIBEXT" = "so" |
| 11773 | then |
Alexandre Julliard | fc09423 | 2003-04-14 21:46:41 +0000 | [diff] [blame] | 11774 | DLLFLAGS="$DLLFLAGS -fPIC" |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 11775 | DLLEXT=".so" |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 11776 | 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] | 11777 | echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6 |
| 11778 | if test "${ac_cv_c_dll_gnuelf+set}" = set; then |
| 11779 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 11780 | else |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 11781 | ac_wine_try_cflags_saved=$CFLAGS |
| 11782 | CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic" |
| 11783 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11784 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11785 | /* confdefs.h. */ |
| 11786 | _ACEOF |
| 11787 | cat confdefs.h >>conftest.$ac_ext |
| 11788 | cat >>conftest.$ac_ext <<_ACEOF |
| 11789 | /* end confdefs.h. */ |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 11790 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11791 | int |
| 11792 | main () |
| 11793 | { |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 11794 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11795 | ; |
| 11796 | return 0; |
| 11797 | } |
| 11798 | _ACEOF |
| 11799 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11800 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11801 | (eval $ac_link) 2>&5 |
| 11802 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11804 | (exit $ac_status); } && |
| 11805 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11806 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11807 | (eval $ac_try) 2>&5 |
| 11808 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11810 | (exit $ac_status); }; }; then |
Bang Jun-Young | 37e5e7f | 2001-06-06 21:21:27 +0000 | [diff] [blame] | 11811 | ac_cv_c_dll_gnuelf="yes" |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 11812 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11813 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11814 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11815 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11816 | ac_cv_c_dll_gnuelf="no" |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 11817 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11818 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 11819 | CFLAGS=$ac_wine_try_cflags_saved |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11820 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11821 | echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11822 | echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6 |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 11823 | if test "$ac_cv_c_dll_gnuelf" = "yes" |
| 11824 | then |
| 11825 | LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)" |
| 11826 | LDDLLFLAGS="-Wl,-Bsymbolic" |
Alexandre Julliard | f2abe47 | 2002-11-21 04:13:35 +0000 | [diff] [blame] | 11827 | echo "$as_me:$LINENO: checking whether the linker accepts -z defs" >&5 |
| 11828 | echo $ECHO_N "checking whether the linker accepts -z defs... $ECHO_C" >&6 |
| 11829 | if test "${ac_cv_c_dll_zdefs+set}" = set; then |
| 11830 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11831 | else |
| 11832 | ac_wine_try_cflags_saved=$CFLAGS |
| 11833 | CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs" |
| 11834 | cat >conftest.$ac_ext <<_ACEOF |
| 11835 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11836 | /* confdefs.h. */ |
| 11837 | _ACEOF |
| 11838 | cat confdefs.h >>conftest.$ac_ext |
| 11839 | cat >>conftest.$ac_ext <<_ACEOF |
| 11840 | /* end confdefs.h. */ |
Alexandre Julliard | f2abe47 | 2002-11-21 04:13:35 +0000 | [diff] [blame] | 11841 | |
| 11842 | int |
| 11843 | main () |
| 11844 | { |
| 11845 | |
| 11846 | ; |
| 11847 | return 0; |
| 11848 | } |
| 11849 | _ACEOF |
| 11850 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11851 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11852 | (eval $ac_link) 2>&5 |
| 11853 | ac_status=$? |
| 11854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11855 | (exit $ac_status); } && |
| 11856 | { ac_try='test -s conftest$ac_exeext' |
| 11857 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11858 | (eval $ac_try) 2>&5 |
| 11859 | ac_status=$? |
| 11860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11861 | (exit $ac_status); }; }; then |
| 11862 | ac_cv_c_dll_zdefs="yes" |
| 11863 | else |
| 11864 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11865 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11866 | |
Alexandre Julliard | f2abe47 | 2002-11-21 04:13:35 +0000 | [diff] [blame] | 11867 | ac_cv_c_dll_zdefs="no" |
| 11868 | fi |
| 11869 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11870 | CFLAGS=$ac_wine_try_cflags_saved |
| 11871 | fi |
| 11872 | echo "$as_me:$LINENO: result: $ac_cv_c_dll_zdefs" >&5 |
| 11873 | echo "${ECHO_T}$ac_cv_c_dll_zdefs" >&6 |
| 11874 | if test "$ac_cv_c_dll_zdefs" = "yes" |
| 11875 | then |
| 11876 | LDDLLFLAGS="$LDDLLFLAGS,-z,defs" |
| 11877 | fi |
Alexandre Julliard | 4d52d37 | 2003-03-24 19:33:20 +0000 | [diff] [blame] | 11878 | echo "$as_me:$LINENO: checking whether we can relocate the executable to 0x3c000000" >&5 |
| 11879 | echo $ECHO_N "checking whether we can relocate the executable to 0x3c000000... $ECHO_C" >&6 |
| 11880 | if test "${ac_cv_ld_reloc_exec+set}" = set; then |
| 11881 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11882 | else |
| 11883 | saved_CFLAGS="$CFLAGS" |
| 11884 | CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x3c000100" |
| 11885 | if test "$cross_compiling" = yes; then |
| 11886 | ac_cv_ld_reloc_exec="no" |
| 11887 | else |
| 11888 | cat >conftest.$ac_ext <<_ACEOF |
| 11889 | #line $LINENO "configure" |
| 11890 | /* confdefs.h. */ |
| 11891 | _ACEOF |
| 11892 | cat confdefs.h >>conftest.$ac_ext |
| 11893 | cat >>conftest.$ac_ext <<_ACEOF |
| 11894 | /* end confdefs.h. */ |
| 11895 | #include <unistd.h> |
| 11896 | int main() { return (sbrk(32*1024*1024) == (void *)-1); } |
| 11897 | _ACEOF |
| 11898 | rm -f conftest$ac_exeext |
| 11899 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11900 | (eval $ac_link) 2>&5 |
| 11901 | ac_status=$? |
| 11902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11903 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 11904 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11905 | (eval $ac_try) 2>&5 |
| 11906 | ac_status=$? |
| 11907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11908 | (exit $ac_status); }; }; then |
| 11909 | ac_cv_ld_reloc_exec="yes" |
| 11910 | else |
| 11911 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11912 | echo "$as_me: failed program was:" >&5 |
| 11913 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11914 | |
| 11915 | ( exit $ac_status ) |
| 11916 | ac_cv_ld_reloc_exec="no" |
| 11917 | fi |
| 11918 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 11919 | fi |
| 11920 | CFLAGS="$saved_CFLAGS" |
| 11921 | fi |
| 11922 | echo "$as_me:$LINENO: result: $ac_cv_ld_reloc_exec" >&5 |
| 11923 | echo "${ECHO_T}$ac_cv_ld_reloc_exec" >&6 |
| 11924 | if test "$ac_cv_ld_reloc_exec" = "yes" |
| 11925 | then |
| 11926 | LDEXECFLAGS="-Wl,--section-start,.interp=0x3c000100" |
| 11927 | |
| 11928 | fi |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 11929 | else |
| 11930 | 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] | 11931 | echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6 |
| 11932 | if test "${ac_cv_c_dll_unixware+set}" = set; then |
| 11933 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Todd Vierling | 4b992b0 | 1998-12-15 15:26:27 +0000 | [diff] [blame] | 11934 | else |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 11935 | ac_wine_try_cflags_saved=$CFLAGS |
| 11936 | CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic" |
| 11937 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11938 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11939 | /* confdefs.h. */ |
| 11940 | _ACEOF |
| 11941 | cat confdefs.h >>conftest.$ac_ext |
| 11942 | cat >>conftest.$ac_ext <<_ACEOF |
| 11943 | /* end confdefs.h. */ |
Todd Vierling | 4b992b0 | 1998-12-15 15:26:27 +0000 | [diff] [blame] | 11944 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11945 | int |
| 11946 | main () |
| 11947 | { |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 11948 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11949 | ; |
| 11950 | return 0; |
| 11951 | } |
| 11952 | _ACEOF |
| 11953 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11954 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11955 | (eval $ac_link) 2>&5 |
| 11956 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11958 | (exit $ac_status); } && |
| 11959 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11960 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11961 | (eval $ac_try) 2>&5 |
| 11962 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11964 | (exit $ac_status); }; }; then |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 11965 | ac_cv_c_dll_unixware="yes" |
| 11966 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11967 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11968 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11969 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11970 | ac_cv_c_dll_unixware="no" |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 11971 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11972 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 11973 | CFLAGS=$ac_wine_try_cflags_saved |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11974 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11975 | echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11976 | echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6 |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 11977 | if test "$ac_cv_c_dll_unixware" = "yes" |
| 11978 | then |
| 11979 | LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)" |
| 11980 | LDDLLFLAGS="-Wl,-B,symbolic" |
| 11981 | fi |
| 11982 | fi |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 11983 | fi |
Alexandre Julliard | c3c587e | 2002-09-06 19:46:00 +0000 | [diff] [blame] | 11984 | |
| 11985 | CROSSTEST="" |
| 11986 | |
| 11987 | if test "$cross_compiling" = "no" |
| 11988 | then |
Hans Leidekker | b195d9f | 2003-04-12 00:00:57 +0000 | [diff] [blame] | 11989 | for ac_prog in i586-mingw32msvc-gcc i386-mingw32-gcc |
Alexandre Julliard | c3c587e | 2002-09-06 19:46:00 +0000 | [diff] [blame] | 11990 | do |
| 11991 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 11992 | set dummy $ac_prog; ac_word=$2 |
| 11993 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11994 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 11995 | if test "${ac_cv_prog_CROSSCC+set}" = set; then |
| 11996 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11997 | else |
| 11998 | if test -n "$CROSSCC"; then |
| 11999 | ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test. |
| 12000 | else |
| 12001 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12002 | for as_dir in $PATH |
| 12003 | do |
| 12004 | IFS=$as_save_IFS |
| 12005 | test -z "$as_dir" && as_dir=. |
| 12006 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12007 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 12008 | ac_cv_prog_CROSSCC="$ac_prog" |
| 12009 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12010 | break 2 |
| 12011 | fi |
| 12012 | done |
| 12013 | done |
| 12014 | |
| 12015 | fi |
| 12016 | fi |
| 12017 | CROSSCC=$ac_cv_prog_CROSSCC |
| 12018 | if test -n "$CROSSCC"; then |
| 12019 | echo "$as_me:$LINENO: result: $CROSSCC" >&5 |
| 12020 | echo "${ECHO_T}$CROSSCC" >&6 |
| 12021 | else |
| 12022 | echo "$as_me:$LINENO: result: no" >&5 |
| 12023 | echo "${ECHO_T}no" >&6 |
| 12024 | fi |
| 12025 | |
| 12026 | test -n "$CROSSCC" && break |
| 12027 | done |
| 12028 | test -n "$CROSSCC" || CROSSCC="false" |
| 12029 | |
Hans Leidekker | b195d9f | 2003-04-12 00:00:57 +0000 | [diff] [blame] | 12030 | for ac_prog in i586-mingw32msvc-dlltool i386-mingw32-dlltool |
Alexandre Julliard | c3c587e | 2002-09-06 19:46:00 +0000 | [diff] [blame] | 12031 | do |
| 12032 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 12033 | set dummy $ac_prog; ac_word=$2 |
| 12034 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 12035 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 12036 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then |
| 12037 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12038 | else |
| 12039 | if test -n "$DLLTOOL"; then |
| 12040 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
| 12041 | else |
| 12042 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12043 | for as_dir in $PATH |
| 12044 | do |
| 12045 | IFS=$as_save_IFS |
| 12046 | test -z "$as_dir" && as_dir=. |
| 12047 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12048 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 12049 | ac_cv_prog_DLLTOOL="$ac_prog" |
| 12050 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12051 | break 2 |
| 12052 | fi |
| 12053 | done |
| 12054 | done |
| 12055 | |
| 12056 | fi |
| 12057 | fi |
| 12058 | DLLTOOL=$ac_cv_prog_DLLTOOL |
| 12059 | if test -n "$DLLTOOL"; then |
| 12060 | echo "$as_me:$LINENO: result: $DLLTOOL" >&5 |
| 12061 | echo "${ECHO_T}$DLLTOOL" >&6 |
| 12062 | else |
| 12063 | echo "$as_me:$LINENO: result: no" >&5 |
| 12064 | echo "${ECHO_T}no" >&6 |
| 12065 | fi |
| 12066 | |
| 12067 | test -n "$DLLTOOL" && break |
| 12068 | done |
| 12069 | test -n "$DLLTOOL" || DLLTOOL="false" |
| 12070 | |
Alexandre Julliard | 21ee329 | 2003-04-21 22:52:31 +0000 | [diff] [blame] | 12071 | for ac_prog in i586-mingw32msvc-windres i386-mingw32-windres |
| 12072 | do |
| 12073 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 12074 | set dummy $ac_prog; ac_word=$2 |
| 12075 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 12076 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 12077 | if test "${ac_cv_prog_CROSSWINDRES+set}" = set; then |
| 12078 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12079 | else |
| 12080 | if test -n "$CROSSWINDRES"; then |
| 12081 | ac_cv_prog_CROSSWINDRES="$CROSSWINDRES" # Let the user override the test. |
| 12082 | else |
| 12083 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12084 | for as_dir in $PATH |
| 12085 | do |
| 12086 | IFS=$as_save_IFS |
| 12087 | test -z "$as_dir" && as_dir=. |
| 12088 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12089 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 12090 | ac_cv_prog_CROSSWINDRES="$ac_prog" |
| 12091 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12092 | break 2 |
| 12093 | fi |
| 12094 | done |
| 12095 | done |
| 12096 | |
| 12097 | fi |
| 12098 | fi |
| 12099 | CROSSWINDRES=$ac_cv_prog_CROSSWINDRES |
| 12100 | if test -n "$CROSSWINDRES"; then |
| 12101 | echo "$as_me:$LINENO: result: $CROSSWINDRES" >&5 |
| 12102 | echo "${ECHO_T}$CROSSWINDRES" >&6 |
| 12103 | else |
| 12104 | echo "$as_me:$LINENO: result: no" >&5 |
| 12105 | echo "${ECHO_T}no" >&6 |
| 12106 | fi |
| 12107 | |
| 12108 | test -n "$CROSSWINDRES" && break |
| 12109 | done |
| 12110 | test -n "$CROSSWINDRES" || CROSSWINDRES="false" |
| 12111 | |
Alexandre Julliard | c3c587e | 2002-09-06 19:46:00 +0000 | [diff] [blame] | 12112 | if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi |
| 12113 | fi |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 12114 | ;; |
| 12115 | esac |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 12116 | |
Hidenori Takeshima | d48ca94 | 2000-12-22 22:28:00 +0000 | [diff] [blame] | 12117 | if test "$LIBEXT" = "a"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12118 | { { 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] | 12119 | It is currently not possible to build Wine without shared library |
| 12120 | (.so) support to allow transparent switch between .so and .dll files. |
| 12121 | If you are using Linux, you will need a newer binutils. |
| 12122 | " >&5 |
| 12123 | echo "$as_me: error: could not find a way to build shared libraries. |
| 12124 | It is currently not possible to build Wine without shared library |
| 12125 | (.so) support to allow transparent switch between .so and .dll files. |
| 12126 | If you are using Linux, you will need a newer binutils. |
| 12127 | " >&2;} |
| 12128 | { (exit 1); exit 1; }; } |
Hidenori Takeshima | d48ca94 | 2000-12-22 22:28:00 +0000 | [diff] [blame] | 12129 | fi |
| 12130 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 12131 | case $build_os in |
| 12132 | cygwin*|mingw32*) |
Alexandre Julliard | 7ab9a71 | 2003-03-21 05:06:48 +0000 | [diff] [blame] | 12133 | LDPATH="PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$PATH\"" |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 12134 | ;; |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 12135 | *) |
Alexandre Julliard | 7ab9a71 | 2003-03-21 05:06:48 +0000 | [diff] [blame] | 12136 | LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$LD_LIBRARY_PATH\"" |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 12137 | ;; |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 12138 | esac |
| 12139 | |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 12140 | CRTLIBS="" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12141 | |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 12142 | case $host_os in |
| 12143 | mingw32*) |
| 12144 | CRTLIBS="-lmsvcrt" ;; |
| 12145 | esac |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12146 | |
| 12147 | |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 12148 | if test "$LIBEXT" = "so" |
| 12149 | then |
| 12150 | # Extract the first word of "ldd", so it can be a program name with args. |
| 12151 | set dummy ldd; ac_word=$2 |
| 12152 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 12153 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 12154 | if test "${ac_cv_path_LDD+set}" = set; then |
| 12155 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12156 | else |
| 12157 | case $LDD in |
| 12158 | [\\/]* | ?:[\\/]*) |
| 12159 | ac_cv_path_LDD="$LDD" # Let the user override the test with a path. |
| 12160 | ;; |
| 12161 | *) |
| 12162 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 12163 | as_dummy="/sbin:/usr/sbin:$PATH" |
| 12164 | for as_dir in $as_dummy |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 12165 | do |
| 12166 | IFS=$as_save_IFS |
| 12167 | test -z "$as_dir" && as_dir=. |
| 12168 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12169 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 12170 | ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" |
| 12171 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12172 | break 2 |
| 12173 | fi |
| 12174 | done |
| 12175 | done |
| 12176 | |
| 12177 | test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true" |
| 12178 | ;; |
| 12179 | esac |
| 12180 | fi |
| 12181 | LDD=$ac_cv_path_LDD |
| 12182 | |
| 12183 | if test -n "$LDD"; then |
| 12184 | echo "$as_me:$LINENO: result: $LDD" >&5 |
| 12185 | echo "${ECHO_T}$LDD" >&6 |
| 12186 | else |
| 12187 | echo "$as_me:$LINENO: result: no" >&5 |
| 12188 | echo "${ECHO_T}no" >&6 |
| 12189 | fi |
| 12190 | |
| 12191 | |
| 12192 | echo "$as_me:$LINENO: checking for -lX11 soname" >&5 |
| 12193 | echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6 |
| 12194 | if test "${ac_cv_lib_soname_X11+set}" = set; then |
| 12195 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12196 | else |
| 12197 | ac_get_soname_save_LIBS=$LIBS |
| 12198 | LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS" |
| 12199 | cat >conftest.$ac_ext <<_ACEOF |
| 12200 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12201 | /* confdefs.h. */ |
| 12202 | _ACEOF |
| 12203 | cat confdefs.h >>conftest.$ac_ext |
| 12204 | cat >>conftest.$ac_ext <<_ACEOF |
| 12205 | /* end confdefs.h. */ |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 12206 | |
| 12207 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 12208 | #ifdef __cplusplus |
| 12209 | extern "C" |
| 12210 | #endif |
| 12211 | /* We use char because int might match the return type of a gcc2 |
| 12212 | builtin and then its argument prototype would still apply. */ |
| 12213 | char XCreateWindow (); |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 12214 | int |
| 12215 | main () |
| 12216 | { |
| 12217 | XCreateWindow (); |
| 12218 | ; |
| 12219 | return 0; |
| 12220 | } |
| 12221 | _ACEOF |
| 12222 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12223 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12224 | (eval $ac_link) 2>&5 |
| 12225 | ac_status=$? |
| 12226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12227 | (exit $ac_status); } && |
| 12228 | { ac_try='test -s conftest$ac_exeext' |
| 12229 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12230 | (eval $ac_try) 2>&5 |
| 12231 | ac_status=$? |
| 12232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12233 | (exit $ac_status); }; }; then |
| 12234 | ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'` |
| 12235 | if test "x$ac_cv_lib_soname_X11" = "x" |
| 12236 | then |
| 12237 | ac_cv_lib_soname_X11="libX11.so" |
| 12238 | fi |
| 12239 | else |
| 12240 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12241 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12242 | |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 12243 | ac_cv_lib_soname_X11="libX11.so" |
| 12244 | fi |
| 12245 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 12246 | LIBS=$ac_get_soname_save_LIBS |
| 12247 | fi |
| 12248 | echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5 |
| 12249 | echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6 |
| 12250 | if test "x$ac_cv_lib_soname_X11" != xNONE |
| 12251 | then |
| 12252 | cat >>confdefs.h <<_ACEOF |
| 12253 | #define SONAME_LIBX11 "$ac_cv_lib_soname_X11" |
| 12254 | _ACEOF |
| 12255 | fi |
| 12256 | |
| 12257 | echo "$as_me:$LINENO: checking for -lXext soname" >&5 |
| 12258 | echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6 |
| 12259 | if test "${ac_cv_lib_soname_Xext+set}" = set; then |
| 12260 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12261 | else |
| 12262 | ac_get_soname_save_LIBS=$LIBS |
| 12263 | LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS" |
| 12264 | cat >conftest.$ac_ext <<_ACEOF |
| 12265 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12266 | /* confdefs.h. */ |
| 12267 | _ACEOF |
| 12268 | cat confdefs.h >>conftest.$ac_ext |
| 12269 | cat >>conftest.$ac_ext <<_ACEOF |
| 12270 | /* end confdefs.h. */ |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 12271 | |
| 12272 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 12273 | #ifdef __cplusplus |
| 12274 | extern "C" |
| 12275 | #endif |
| 12276 | /* We use char because int might match the return type of a gcc2 |
| 12277 | builtin and then its argument prototype would still apply. */ |
| 12278 | char XextCreateExtension (); |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 12279 | int |
| 12280 | main () |
| 12281 | { |
| 12282 | XextCreateExtension (); |
| 12283 | ; |
| 12284 | return 0; |
| 12285 | } |
| 12286 | _ACEOF |
| 12287 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12288 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12289 | (eval $ac_link) 2>&5 |
| 12290 | ac_status=$? |
| 12291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12292 | (exit $ac_status); } && |
| 12293 | { ac_try='test -s conftest$ac_exeext' |
| 12294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12295 | (eval $ac_try) 2>&5 |
| 12296 | ac_status=$? |
| 12297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12298 | (exit $ac_status); }; }; then |
| 12299 | ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'` |
| 12300 | if test "x$ac_cv_lib_soname_Xext" = "x" |
| 12301 | then |
| 12302 | ac_cv_lib_soname_Xext="libXext.so" |
| 12303 | fi |
| 12304 | else |
| 12305 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12306 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12307 | |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 12308 | ac_cv_lib_soname_Xext="libXext.so" |
| 12309 | fi |
| 12310 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 12311 | LIBS=$ac_get_soname_save_LIBS |
| 12312 | fi |
| 12313 | echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5 |
| 12314 | echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6 |
| 12315 | if test "x$ac_cv_lib_soname_Xext" != xNONE |
| 12316 | then |
| 12317 | cat >>confdefs.h <<_ACEOF |
| 12318 | #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext" |
| 12319 | _ACEOF |
| 12320 | fi |
| 12321 | |
| 12322 | echo "$as_me:$LINENO: checking for -lXrender soname" >&5 |
| 12323 | echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6 |
| 12324 | if test "${ac_cv_lib_soname_Xrender+set}" = set; then |
| 12325 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12326 | else |
| 12327 | ac_get_soname_save_LIBS=$LIBS |
| 12328 | LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
| 12329 | cat >conftest.$ac_ext <<_ACEOF |
| 12330 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12331 | /* confdefs.h. */ |
| 12332 | _ACEOF |
| 12333 | cat confdefs.h >>conftest.$ac_ext |
| 12334 | cat >>conftest.$ac_ext <<_ACEOF |
| 12335 | /* end confdefs.h. */ |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 12336 | |
| 12337 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 12338 | #ifdef __cplusplus |
| 12339 | extern "C" |
| 12340 | #endif |
| 12341 | /* We use char because int might match the return type of a gcc2 |
| 12342 | builtin and then its argument prototype would still apply. */ |
| 12343 | char XRenderQueryExtension (); |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 12344 | int |
| 12345 | main () |
| 12346 | { |
| 12347 | XRenderQueryExtension (); |
| 12348 | ; |
| 12349 | return 0; |
| 12350 | } |
| 12351 | _ACEOF |
| 12352 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12353 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12354 | (eval $ac_link) 2>&5 |
| 12355 | ac_status=$? |
| 12356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12357 | (exit $ac_status); } && |
| 12358 | { ac_try='test -s conftest$ac_exeext' |
| 12359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12360 | (eval $ac_try) 2>&5 |
| 12361 | ac_status=$? |
| 12362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12363 | (exit $ac_status); }; }; then |
| 12364 | ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'` |
| 12365 | if test "x$ac_cv_lib_soname_Xrender" = "x" |
| 12366 | then |
| 12367 | ac_cv_lib_soname_Xrender="libXrender.so" |
| 12368 | fi |
| 12369 | else |
| 12370 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12371 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12372 | |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 12373 | ac_cv_lib_soname_Xrender="libXrender.so" |
| 12374 | fi |
| 12375 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 12376 | LIBS=$ac_get_soname_save_LIBS |
| 12377 | fi |
| 12378 | echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5 |
| 12379 | echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6 |
| 12380 | if test "x$ac_cv_lib_soname_Xrender" != xNONE |
| 12381 | then |
| 12382 | cat >>confdefs.h <<_ACEOF |
| 12383 | #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender" |
| 12384 | _ACEOF |
| 12385 | fi |
| 12386 | |
| 12387 | echo "$as_me:$LINENO: checking for -lfreetype soname" >&5 |
| 12388 | echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6 |
| 12389 | if test "${ac_cv_lib_soname_freetype+set}" = set; then |
| 12390 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12391 | else |
| 12392 | ac_get_soname_save_LIBS=$LIBS |
| 12393 | LIBS="-lfreetype $X_LIBS $LIBS" |
| 12394 | cat >conftest.$ac_ext <<_ACEOF |
| 12395 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12396 | /* confdefs.h. */ |
| 12397 | _ACEOF |
| 12398 | cat confdefs.h >>conftest.$ac_ext |
| 12399 | cat >>conftest.$ac_ext <<_ACEOF |
| 12400 | /* end confdefs.h. */ |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 12401 | |
| 12402 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 12403 | #ifdef __cplusplus |
| 12404 | extern "C" |
| 12405 | #endif |
| 12406 | /* We use char because int might match the return type of a gcc2 |
| 12407 | builtin and then its argument prototype would still apply. */ |
| 12408 | char FT_Init_FreeType (); |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 12409 | int |
| 12410 | main () |
| 12411 | { |
| 12412 | FT_Init_FreeType (); |
| 12413 | ; |
| 12414 | return 0; |
| 12415 | } |
| 12416 | _ACEOF |
| 12417 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12418 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12419 | (eval $ac_link) 2>&5 |
| 12420 | ac_status=$? |
| 12421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12422 | (exit $ac_status); } && |
| 12423 | { ac_try='test -s conftest$ac_exeext' |
| 12424 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12425 | (eval $ac_try) 2>&5 |
| 12426 | ac_status=$? |
| 12427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12428 | (exit $ac_status); }; }; then |
| 12429 | ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'` |
| 12430 | if test "x$ac_cv_lib_soname_freetype" = "x" |
| 12431 | then |
| 12432 | ac_cv_lib_soname_freetype="libfreetype.so" |
| 12433 | fi |
| 12434 | else |
| 12435 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12436 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12437 | |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 12438 | ac_cv_lib_soname_freetype="libfreetype.so" |
| 12439 | fi |
| 12440 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 12441 | LIBS=$ac_get_soname_save_LIBS |
| 12442 | fi |
| 12443 | echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5 |
| 12444 | echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6 |
| 12445 | if test "x$ac_cv_lib_soname_freetype" != xNONE |
| 12446 | then |
| 12447 | cat >>confdefs.h <<_ACEOF |
| 12448 | #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype" |
| 12449 | _ACEOF |
| 12450 | fi |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 12451 | |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 12452 | echo "$as_me:$LINENO: checking for -lGL soname" >&5 |
| 12453 | echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6 |
| 12454 | if test "${ac_cv_lib_soname_GL+set}" = set; then |
| 12455 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12456 | else |
| 12457 | ac_get_soname_save_LIBS=$LIBS |
| 12458 | LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS" |
| 12459 | cat >conftest.$ac_ext <<_ACEOF |
| 12460 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12461 | /* confdefs.h. */ |
| 12462 | _ACEOF |
| 12463 | cat confdefs.h >>conftest.$ac_ext |
| 12464 | cat >>conftest.$ac_ext <<_ACEOF |
| 12465 | /* end confdefs.h. */ |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 12466 | |
| 12467 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 12468 | #ifdef __cplusplus |
| 12469 | extern "C" |
| 12470 | #endif |
| 12471 | /* We use char because int might match the return type of a gcc2 |
| 12472 | builtin and then its argument prototype would still apply. */ |
| 12473 | char glXQueryExtension (); |
| 12474 | int |
| 12475 | main () |
| 12476 | { |
| 12477 | glXQueryExtension (); |
| 12478 | ; |
| 12479 | return 0; |
| 12480 | } |
| 12481 | _ACEOF |
| 12482 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12483 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12484 | (eval $ac_link) 2>&5 |
| 12485 | ac_status=$? |
| 12486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12487 | (exit $ac_status); } && |
| 12488 | { ac_try='test -s conftest$ac_exeext' |
| 12489 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12490 | (eval $ac_try) 2>&5 |
| 12491 | ac_status=$? |
| 12492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12493 | (exit $ac_status); }; }; then |
| 12494 | ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep libGL\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'` |
| 12495 | if test "x$ac_cv_lib_soname_GL" = "x" |
| 12496 | then |
| 12497 | ac_cv_lib_soname_GL="libGL.so" |
| 12498 | fi |
| 12499 | else |
| 12500 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12501 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12502 | |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 12503 | ac_cv_lib_soname_GL="libGL.so" |
| 12504 | fi |
| 12505 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 12506 | LIBS=$ac_get_soname_save_LIBS |
| 12507 | fi |
| 12508 | echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5 |
| 12509 | echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6 |
| 12510 | if test "x$ac_cv_lib_soname_GL" != xNONE |
| 12511 | then |
| 12512 | cat >>confdefs.h <<_ACEOF |
| 12513 | #define SONAME_LIBGL "$ac_cv_lib_soname_GL" |
| 12514 | _ACEOF |
| 12515 | fi |
| 12516 | |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 12517 | echo "$as_me:$LINENO: checking for -lcups soname" >&5 |
| 12518 | echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6 |
| 12519 | if test "${ac_cv_lib_soname_cups+set}" = set; then |
| 12520 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12521 | else |
| 12522 | ac_get_soname_save_LIBS=$LIBS |
| 12523 | LIBS="-lcups $LIBS" |
| 12524 | cat >conftest.$ac_ext <<_ACEOF |
| 12525 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12526 | /* confdefs.h. */ |
| 12527 | _ACEOF |
| 12528 | cat confdefs.h >>conftest.$ac_ext |
| 12529 | cat >>conftest.$ac_ext <<_ACEOF |
| 12530 | /* end confdefs.h. */ |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 12531 | |
| 12532 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 12533 | #ifdef __cplusplus |
| 12534 | extern "C" |
| 12535 | #endif |
| 12536 | /* We use char because int might match the return type of a gcc2 |
| 12537 | builtin and then its argument prototype would still apply. */ |
| 12538 | char cupsGetDefault (); |
| 12539 | int |
| 12540 | main () |
| 12541 | { |
| 12542 | cupsGetDefault (); |
| 12543 | ; |
| 12544 | return 0; |
| 12545 | } |
| 12546 | _ACEOF |
| 12547 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12548 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12549 | (eval $ac_link) 2>&5 |
| 12550 | ac_status=$? |
| 12551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12552 | (exit $ac_status); } && |
| 12553 | { ac_try='test -s conftest$ac_exeext' |
| 12554 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12555 | (eval $ac_try) 2>&5 |
| 12556 | ac_status=$? |
| 12557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12558 | (exit $ac_status); }; }; then |
| 12559 | ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep libcups\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'` |
| 12560 | if test "x$ac_cv_lib_soname_cups" = "x" |
| 12561 | then |
| 12562 | ac_cv_lib_soname_cups="libcups.so" |
| 12563 | fi |
| 12564 | else |
| 12565 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12566 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12567 | |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 12568 | ac_cv_lib_soname_cups="libcups.so" |
| 12569 | fi |
| 12570 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 12571 | LIBS=$ac_get_soname_save_LIBS |
| 12572 | fi |
| 12573 | echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5 |
| 12574 | echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6 |
| 12575 | if test "x$ac_cv_lib_soname_cups" != xNONE |
| 12576 | then |
| 12577 | cat >>confdefs.h <<_ACEOF |
| 12578 | #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups" |
| 12579 | _ACEOF |
| 12580 | fi |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 12581 | |
| 12582 | echo "$as_me:$LINENO: checking for -ljack soname" >&5 |
| 12583 | echo $ECHO_N "checking for -ljack soname... $ECHO_C" >&6 |
| 12584 | if test "${ac_cv_lib_soname_jack+set}" = set; then |
| 12585 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12586 | else |
| 12587 | ac_get_soname_save_LIBS=$LIBS |
| 12588 | LIBS="-ljack $LIBS" |
| 12589 | cat >conftest.$ac_ext <<_ACEOF |
| 12590 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12591 | /* confdefs.h. */ |
| 12592 | _ACEOF |
| 12593 | cat confdefs.h >>conftest.$ac_ext |
| 12594 | cat >>conftest.$ac_ext <<_ACEOF |
| 12595 | /* end confdefs.h. */ |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 12596 | |
| 12597 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 12598 | #ifdef __cplusplus |
| 12599 | extern "C" |
| 12600 | #endif |
| 12601 | /* We use char because int might match the return type of a gcc2 |
| 12602 | builtin and then its argument prototype would still apply. */ |
| 12603 | char jack_client_new (); |
| 12604 | int |
| 12605 | main () |
| 12606 | { |
| 12607 | jack_client_new (); |
| 12608 | ; |
| 12609 | return 0; |
| 12610 | } |
| 12611 | _ACEOF |
| 12612 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12613 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12614 | (eval $ac_link) 2>&5 |
| 12615 | ac_status=$? |
| 12616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12617 | (exit $ac_status); } && |
| 12618 | { ac_try='test -s conftest$ac_exeext' |
| 12619 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12620 | (eval $ac_try) 2>&5 |
| 12621 | ac_status=$? |
| 12622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12623 | (exit $ac_status); }; }; then |
| 12624 | ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep libjack\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'` |
| 12625 | if test "x$ac_cv_lib_soname_jack" = "x" |
| 12626 | then |
| 12627 | ac_cv_lib_soname_jack="libjack.so" |
| 12628 | fi |
| 12629 | else |
| 12630 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12631 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12632 | |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 12633 | ac_cv_lib_soname_jack="libjack.so" |
| 12634 | fi |
| 12635 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 12636 | LIBS=$ac_get_soname_save_LIBS |
| 12637 | fi |
| 12638 | echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5 |
| 12639 | echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6 |
| 12640 | if test "x$ac_cv_lib_soname_jack" != xNONE |
| 12641 | then |
| 12642 | cat >>confdefs.h <<_ACEOF |
| 12643 | #define SONAME_LIBJACK "$ac_cv_lib_soname_jack" |
| 12644 | _ACEOF |
| 12645 | fi |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 12646 | fi |
| 12647 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12648 | |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 12649 | |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12650 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 12651 | # for constant arguments. Useless! |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12652 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12653 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 |
| 12654 | if test "${ac_cv_working_alloca_h+set}" = set; then |
| 12655 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12656 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12657 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12658 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12659 | /* confdefs.h. */ |
| 12660 | _ACEOF |
| 12661 | cat confdefs.h >>conftest.$ac_ext |
| 12662 | cat >>conftest.$ac_ext <<_ACEOF |
| 12663 | /* end confdefs.h. */ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12664 | #include <alloca.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12665 | int |
| 12666 | main () |
| 12667 | { |
| 12668 | char *p = (char *) alloca (2 * sizeof (int)); |
| 12669 | ; |
| 12670 | return 0; |
| 12671 | } |
| 12672 | _ACEOF |
| 12673 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12674 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12675 | (eval $ac_link) 2>&5 |
| 12676 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12678 | (exit $ac_status); } && |
| 12679 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12680 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12681 | (eval $ac_try) 2>&5 |
| 12682 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12684 | (exit $ac_status); }; }; then |
| 12685 | ac_cv_working_alloca_h=yes |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12686 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12687 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12688 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12689 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12690 | ac_cv_working_alloca_h=no |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12691 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12692 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12693 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12694 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12695 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 |
| 12696 | if test $ac_cv_working_alloca_h = yes; then |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 12697 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12698 | cat >>confdefs.h <<\_ACEOF |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12699 | #define HAVE_ALLOCA_H 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12700 | _ACEOF |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12701 | |
| 12702 | fi |
| 12703 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12704 | echo "$as_me:$LINENO: checking for alloca" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12705 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 |
| 12706 | if test "${ac_cv_func_alloca_works+set}" = set; then |
| 12707 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12708 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12709 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12710 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12711 | /* confdefs.h. */ |
| 12712 | _ACEOF |
| 12713 | cat confdefs.h >>conftest.$ac_ext |
| 12714 | cat >>conftest.$ac_ext <<_ACEOF |
| 12715 | /* end confdefs.h. */ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12716 | #ifdef __GNUC__ |
| 12717 | # define alloca __builtin_alloca |
| 12718 | #else |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 12719 | # ifdef _MSC_VER |
| 12720 | # include <malloc.h> |
| 12721 | # define alloca _alloca |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12722 | # else |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 12723 | # if HAVE_ALLOCA_H |
| 12724 | # include <alloca.h> |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12725 | # else |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 12726 | # ifdef _AIX |
| 12727 | #pragma alloca |
| 12728 | # else |
| 12729 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12730 | char *alloca (); |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 12731 | # endif |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12732 | # endif |
| 12733 | # endif |
| 12734 | # endif |
| 12735 | #endif |
| 12736 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12737 | int |
| 12738 | main () |
| 12739 | { |
| 12740 | char *p = (char *) alloca (1); |
| 12741 | ; |
| 12742 | return 0; |
| 12743 | } |
| 12744 | _ACEOF |
| 12745 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12746 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12747 | (eval $ac_link) 2>&5 |
| 12748 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12750 | (exit $ac_status); } && |
| 12751 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12753 | (eval $ac_try) 2>&5 |
| 12754 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12756 | (exit $ac_status); }; }; then |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12757 | ac_cv_func_alloca_works=yes |
| 12758 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12759 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12760 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12761 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12762 | ac_cv_func_alloca_works=no |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12763 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12764 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12765 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12766 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12767 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12768 | |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12769 | if test $ac_cv_func_alloca_works = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12770 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12771 | cat >>confdefs.h <<\_ACEOF |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12772 | #define HAVE_ALLOCA 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12773 | _ACEOF |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12774 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12775 | else |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12776 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12777 | # that cause trouble. Some versions do not even contain alloca or |
| 12778 | # contain a buggy version. If you still want to use their alloca, |
| 12779 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 12780 | |
| 12781 | ALLOCA=alloca.$ac_objext |
| 12782 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12783 | cat >>confdefs.h <<\_ACEOF |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12784 | #define C_ALLOCA 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12785 | _ACEOF |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12786 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12787 | |
| 12788 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12789 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 |
| 12790 | if test "${ac_cv_os_cray+set}" = set; then |
| 12791 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12792 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12793 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12794 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12795 | /* confdefs.h. */ |
| 12796 | _ACEOF |
| 12797 | cat confdefs.h >>conftest.$ac_ext |
| 12798 | cat >>conftest.$ac_ext <<_ACEOF |
| 12799 | /* end confdefs.h. */ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12800 | #if defined(CRAY) && ! defined(CRAY2) |
| 12801 | webecray |
| 12802 | #else |
| 12803 | wenotbecray |
| 12804 | #endif |
| 12805 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12806 | _ACEOF |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12807 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 12808 | $EGREP "webecray" >/dev/null 2>&1; then |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12809 | ac_cv_os_cray=yes |
| 12810 | else |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12811 | ac_cv_os_cray=no |
| 12812 | fi |
| 12813 | rm -f conftest* |
| 12814 | |
| 12815 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12816 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12817 | echo "${ECHO_T}$ac_cv_os_cray" >&6 |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12818 | if test $ac_cv_os_cray = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12819 | for ac_func in _getb67 GETB67 getb67; do |
| 12820 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12821 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12822 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12823 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12824 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 12825 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12826 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12827 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12828 | /* confdefs.h. */ |
| 12829 | _ACEOF |
| 12830 | cat confdefs.h >>conftest.$ac_ext |
| 12831 | cat >>conftest.$ac_ext <<_ACEOF |
| 12832 | /* end confdefs.h. */ |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 12833 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12834 | which can conflict with char $ac_func (); below. |
| 12835 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12836 | <limits.h> exists even on freestanding compilers. */ |
| 12837 | #ifdef __STDC__ |
| 12838 | # include <limits.h> |
| 12839 | #else |
| 12840 | # include <assert.h> |
| 12841 | #endif |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 12842 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12843 | #ifdef __cplusplus |
| 12844 | extern "C" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12845 | { |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12846 | #endif |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 12847 | /* 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] | 12848 | builtin and then its argument prototype would still apply. */ |
| 12849 | char $ac_func (); |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 12850 | /* The GNU C library defines this for functions which it implements |
| 12851 | to always fail with ENOSYS. Some functions are actually named |
| 12852 | something starting with __ and the normal name is an alias. */ |
| 12853 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 12854 | choke me |
| 12855 | #else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12856 | char (*f) () = $ac_func; |
| 12857 | #endif |
| 12858 | #ifdef __cplusplus |
| 12859 | } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 12860 | #endif |
| 12861 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12862 | int |
| 12863 | main () |
| 12864 | { |
| 12865 | return f != $ac_func; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12866 | ; |
| 12867 | return 0; |
| 12868 | } |
| 12869 | _ACEOF |
| 12870 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12871 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12872 | (eval $ac_link) 2>&5 |
| 12873 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12875 | (exit $ac_status); } && |
| 12876 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12877 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12878 | (eval $ac_try) 2>&5 |
| 12879 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12881 | (exit $ac_status); }; }; then |
| 12882 | eval "$as_ac_var=yes" |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12883 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12884 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12885 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12886 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12887 | eval "$as_ac_var=no" |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12888 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12889 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12890 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12891 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12892 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12893 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12894 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12895 | cat >>confdefs.h <<_ACEOF |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12896 | #define CRAY_STACKSEG_END $ac_func |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12897 | _ACEOF |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12898 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12899 | break |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12900 | fi |
| 12901 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12902 | done |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12903 | fi |
| 12904 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12905 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12906 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 |
| 12907 | if test "${ac_cv_c_stack_direction+set}" = set; then |
| 12908 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12909 | else |
| 12910 | if test "$cross_compiling" = yes; then |
| 12911 | ac_cv_c_stack_direction=0 |
| 12912 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12913 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12914 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12915 | /* confdefs.h. */ |
| 12916 | _ACEOF |
| 12917 | cat confdefs.h >>conftest.$ac_ext |
| 12918 | cat >>conftest.$ac_ext <<_ACEOF |
| 12919 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12920 | int |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12921 | find_stack_direction () |
| 12922 | { |
| 12923 | static char *addr = 0; |
| 12924 | auto char dummy; |
| 12925 | if (addr == 0) |
| 12926 | { |
| 12927 | addr = &dummy; |
| 12928 | return find_stack_direction (); |
| 12929 | } |
| 12930 | else |
| 12931 | return (&dummy > addr) ? 1 : -1; |
| 12932 | } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12933 | |
| 12934 | int |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12935 | main () |
| 12936 | { |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12937 | exit (find_stack_direction () < 0); |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12938 | } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12939 | _ACEOF |
| 12940 | rm -f conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12941 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12942 | (eval $ac_link) 2>&5 |
| 12943 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12945 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12946 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12947 | (eval $ac_try) 2>&5 |
| 12948 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12950 | (exit $ac_status); }; }; then |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12951 | ac_cv_c_stack_direction=1 |
| 12952 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12953 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12954 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12955 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12956 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12957 | ( exit $ac_status ) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12958 | ac_cv_c_stack_direction=-1 |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12959 | fi |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 12960 | 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] | 12961 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12962 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12963 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12964 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12965 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12966 | cat >>confdefs.h <<_ACEOF |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12967 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12968 | _ACEOF |
| 12969 | |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12970 | |
| 12971 | fi |
| 12972 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12973 | |
| 12974 | |
| 12975 | |
| 12976 | |
| 12977 | |
| 12978 | |
| 12979 | |
| 12980 | |
| 12981 | |
| 12982 | |
| 12983 | |
| 12984 | |
| 12985 | |
| 12986 | |
| 12987 | |
| 12988 | |
| 12989 | |
| 12990 | |
| 12991 | |
| 12992 | |
| 12993 | |
| 12994 | |
| 12995 | |
| 12996 | |
| 12997 | |
| 12998 | |
| 12999 | |
| 13000 | |
| 13001 | |
| 13002 | |
| 13003 | |
| 13004 | |
| 13005 | |
| 13006 | |
| 13007 | |
| 13008 | |
| 13009 | |
| 13010 | |
| 13011 | |
| 13012 | |
| 13013 | |
| 13014 | |
Steven Edwards | b9627c1 | 2002-05-05 21:03:44 +0000 | [diff] [blame] | 13015 | |
| 13016 | |
Steven Edwards | 0a8e15a | 2002-05-10 01:33:40 +0000 | [diff] [blame] | 13017 | |
| 13018 | |
Alexandre Julliard | 142dab8 | 2002-07-01 18:17:30 +0000 | [diff] [blame] | 13019 | |
Patrik Stridvall | 6caeb72 | 2002-11-25 21:12:26 +0000 | [diff] [blame] | 13020 | |
| 13021 | |
| 13022 | |
| 13023 | |
| 13024 | |
Alexandre Julliard | 8d7b8e5 | 2003-03-23 20:11:45 +0000 | [diff] [blame] | 13025 | |
Alexandre Julliard | c45bbad | 2003-04-01 00:12:02 +0000 | [diff] [blame] | 13026 | |
Alexandre Julliard | 6f7a204 | 2003-04-01 04:39:35 +0000 | [diff] [blame] | 13027 | |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 13028 | for ac_func in \ |
| 13029 | _lwp_create \ |
Alexandre Julliard | 6f7a204 | 2003-04-01 04:39:35 +0000 | [diff] [blame] | 13030 | _lwp_self \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 13031 | _pclose \ |
| 13032 | _popen \ |
Steven Edwards | 0a8e15a | 2002-05-10 01:33:40 +0000 | [diff] [blame] | 13033 | _snprintf \ |
Alexandre Julliard | c45bbad | 2003-04-01 00:12:02 +0000 | [diff] [blame] | 13034 | _spawnvp \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 13035 | _stricmp \ |
| 13036 | _strnicmp \ |
Steven Edwards | be514b9 | 2003-01-14 19:35:03 +0000 | [diff] [blame] | 13037 | _vsnprintf \ |
Steven Edwards | b9627c1 | 2002-05-05 21:03:44 +0000 | [diff] [blame] | 13038 | chsize \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 13039 | clone \ |
Jon Griffiths | d6deb6d | 2000-11-27 01:37:28 +0000 | [diff] [blame] | 13040 | finite \ |
| 13041 | fpclass \ |
Steven Edwards | b9627c1 | 2002-05-05 21:03:44 +0000 | [diff] [blame] | 13042 | ftruncate \ |
Marcus Meissner | 3f1ed52 | 2001-05-14 20:09:37 +0000 | [diff] [blame] | 13043 | ftruncate64 \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 13044 | getnetbyaddr \ |
| 13045 | getnetbyname \ |
Dimitrie O. Paun | 647c1a3 | 2002-12-10 19:16:24 +0000 | [diff] [blame] | 13046 | getopt_long \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 13047 | getpagesize \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 13048 | getprotobyname \ |
| 13049 | getprotobynumber \ |
Alexandre Julliard | 142dab8 | 2002-07-01 18:17:30 +0000 | [diff] [blame] | 13050 | getpwuid \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 13051 | getservbyport \ |
Alexandre Julliard | 8d7b8e5 | 2003-03-23 20:11:45 +0000 | [diff] [blame] | 13052 | gettimeofday \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 13053 | inet_network \ |
Marcus Meissner | 3f1ed52 | 2001-05-14 20:09:37 +0000 | [diff] [blame] | 13054 | lseek64 \ |
Alexandre Julliard | 27bb311 | 2000-11-29 17:48:06 +0000 | [diff] [blame] | 13055 | lstat \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 13056 | memmove \ |
Hidenori Takeshima | a85b0a6 | 2000-11-25 23:54:12 +0000 | [diff] [blame] | 13057 | mmap \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 13058 | pclose \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 13059 | popen \ |
Steven Edwards | b9627c1 | 2002-05-05 21:03:44 +0000 | [diff] [blame] | 13060 | pread \ |
Patrik Stridvall | 6caeb72 | 2002-11-25 21:12:26 +0000 | [diff] [blame] | 13061 | pthread_getspecific \ |
| 13062 | pthread_key_create \ |
| 13063 | pthread_mutex_lock \ |
| 13064 | pthread_mutex_unlock \ |
| 13065 | pthread_setspecific \ |
Alexandre Julliard | f1a0de9 | 2002-01-07 21:00:27 +0000 | [diff] [blame] | 13066 | pwrite \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 13067 | rfork \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 13068 | select \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 13069 | sendmsg \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 13070 | settimeofday \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 13071 | sigaltstack \ |
Steven Edwards | 0a8e15a | 2002-05-10 01:33:40 +0000 | [diff] [blame] | 13072 | snprintf \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 13073 | statfs \ |
Alexandre Julliard | 3b96efc | 1999-09-04 14:36:02 +0000 | [diff] [blame] | 13074 | strcasecmp \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 13075 | strerror \ |
Alexandre Julliard | 3b96efc | 1999-09-04 14:36:02 +0000 | [diff] [blame] | 13076 | strncasecmp \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 13077 | tcgetattr \ |
| 13078 | timegm \ |
| 13079 | usleep \ |
| 13080 | vfscanf \ |
Steven Edwards | be514b9 | 2003-01-14 19:35:03 +0000 | [diff] [blame] | 13081 | vsnprintf \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 13082 | wait4 \ |
| 13083 | waitpid \ |
| 13084 | |
| 13085 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13086 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13087 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13088 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 13089 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 13090 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 13091 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13092 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13093 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13094 | /* confdefs.h. */ |
| 13095 | _ACEOF |
| 13096 | cat confdefs.h >>conftest.$ac_ext |
| 13097 | cat >>conftest.$ac_ext <<_ACEOF |
| 13098 | /* end confdefs.h. */ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 13099 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13100 | which can conflict with char $ac_func (); below. |
| 13101 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 13102 | <limits.h> exists even on freestanding compilers. */ |
| 13103 | #ifdef __STDC__ |
| 13104 | # include <limits.h> |
| 13105 | #else |
| 13106 | # include <assert.h> |
| 13107 | #endif |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 13108 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13109 | #ifdef __cplusplus |
| 13110 | extern "C" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13111 | { |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13112 | #endif |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 13113 | /* 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] | 13114 | builtin and then its argument prototype would still apply. */ |
| 13115 | char $ac_func (); |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 13116 | /* The GNU C library defines this for functions which it implements |
| 13117 | to always fail with ENOSYS. Some functions are actually named |
| 13118 | something starting with __ and the normal name is an alias. */ |
| 13119 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 13120 | choke me |
| 13121 | #else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13122 | char (*f) () = $ac_func; |
| 13123 | #endif |
| 13124 | #ifdef __cplusplus |
| 13125 | } |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 13126 | #endif |
| 13127 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13128 | int |
| 13129 | main () |
| 13130 | { |
| 13131 | return f != $ac_func; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13132 | ; |
| 13133 | return 0; |
| 13134 | } |
| 13135 | _ACEOF |
| 13136 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13137 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13138 | (eval $ac_link) 2>&5 |
| 13139 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13141 | (exit $ac_status); } && |
| 13142 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13143 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13144 | (eval $ac_try) 2>&5 |
| 13145 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13147 | (exit $ac_status); }; }; then |
| 13148 | eval "$as_ac_var=yes" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13149 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13150 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13151 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13152 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13153 | eval "$as_ac_var=no" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13154 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13155 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +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_var'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13158 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 13159 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13160 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13161 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13162 | _ACEOF |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 13163 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13164 | fi |
| 13165 | done |
| 13166 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13167 | |
| 13168 | |
| 13169 | |
| 13170 | |
| 13171 | |
| 13172 | |
| 13173 | |
| 13174 | |
| 13175 | |
| 13176 | |
| 13177 | |
| 13178 | |
| 13179 | |
| 13180 | |
| 13181 | |
| 13182 | |
| 13183 | |
| 13184 | |
| 13185 | |
| 13186 | |
| 13187 | |
| 13188 | |
| 13189 | |
| 13190 | |
| 13191 | |
| 13192 | |
| 13193 | |
| 13194 | |
| 13195 | |
| 13196 | |
| 13197 | |
| 13198 | |
| 13199 | |
| 13200 | |
| 13201 | |
| 13202 | |
| 13203 | |
| 13204 | |
| 13205 | |
| 13206 | |
| 13207 | |
| 13208 | |
| 13209 | |
| 13210 | |
| 13211 | |
| 13212 | |
| 13213 | |
| 13214 | |
| 13215 | |
| 13216 | |
| 13217 | |
| 13218 | |
| 13219 | |
| 13220 | |
| 13221 | |
| 13222 | |
| 13223 | |
| 13224 | |
| 13225 | |
| 13226 | |
| 13227 | |
Laurent Pinchart | 0314a65 | 2002-05-01 22:01:30 +0000 | [diff] [blame] | 13228 | |
Rizsanyi Zsolt | e7c6d17 | 2002-05-01 22:25:41 +0000 | [diff] [blame] | 13229 | |
| 13230 | |
| 13231 | |
Alexandre Julliard | 127ec92 | 2002-05-07 01:51:30 +0000 | [diff] [blame] | 13232 | |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 13233 | |
Patrik Stridvall | 57bf450 | 2002-08-26 21:53:24 +0000 | [diff] [blame] | 13234 | |
| 13235 | |
Dimitrie O. Paun | 647c1a3 | 2002-12-10 19:16:24 +0000 | [diff] [blame] | 13236 | |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 13237 | |
Alexandre Julliard | b693895 | 2003-01-13 18:41:40 +0000 | [diff] [blame] | 13238 | |
Alexandre Julliard | c44555b | 2003-04-02 01:42:06 +0000 | [diff] [blame] | 13239 | |
Juan Lang | 38fa5ad | 2003-05-13 03:32:20 +0000 | [diff] [blame] | 13240 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13241 | for ac_header in \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 13242 | arpa/inet.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 13243 | arpa/nameser.h \ |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 13244 | cups/cups.h \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 13245 | direct.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 13246 | elf.h \ |
| 13247 | float.h \ |
Dimitrie O. Paun | 647c1a3 | 2002-12-10 19:16:24 +0000 | [diff] [blame] | 13248 | getopt.h \ |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 13249 | ieeefp.h \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 13250 | io.h \ |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 13251 | jack/jack.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 13252 | libio.h \ |
Hidenori Takeshima | 01f78aa | 2000-07-09 12:19:09 +0000 | [diff] [blame] | 13253 | libutil.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 13254 | link.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 13255 | linux/cdrom.h \ |
Rizsanyi Zsolt | e7c6d17 | 2002-05-01 22:25:41 +0000 | [diff] [blame] | 13256 | linux/hdreg.h \ |
Marcus Meissner | c9b3b2e | 2000-12-12 00:38:58 +0000 | [diff] [blame] | 13257 | linux/input.h \ |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 13258 | linux/joystick.h \ |
Rizsanyi Zsolt | e7c6d17 | 2002-05-01 22:25:41 +0000 | [diff] [blame] | 13259 | linux/major.h \ |
Laurent Pinchart | 0314a65 | 2002-05-01 22:01:30 +0000 | [diff] [blame] | 13260 | linux/param.h \ |
Lawson Whitney | 533e7ee | 2002-02-19 18:41:56 +0000 | [diff] [blame] | 13261 | linux/serial.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 13262 | linux/ucdrom.h \ |
Hidenori Takeshima | 5d1a638 | 2000-11-26 04:00:53 +0000 | [diff] [blame] | 13263 | netdb.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 13264 | netinet/in.h \ |
Patrik Stridvall | 7a4e599 | 2000-12-01 23:53:46 +0000 | [diff] [blame] | 13265 | netinet/in_systm.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 13266 | netinet/tcp.h \ |
Juan Lang | 38fa5ad | 2003-05-13 03:32:20 +0000 | [diff] [blame] | 13267 | netinet/tcp_fsm.h \ |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 13268 | pty.h \ |
Steven Edwards | ff4525c | 2002-06-24 23:00:25 +0000 | [diff] [blame] | 13269 | pwd.h \ |
Alexandre Julliard | b693895 | 2003-01-13 18:41:40 +0000 | [diff] [blame] | 13270 | regex.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 13271 | sched.h \ |
Rizsanyi Zsolt | e7c6d17 | 2002-05-01 22:25:41 +0000 | [diff] [blame] | 13272 | scsi/sg.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 13273 | socket.h \ |
Bang Jun-Young | eda758e | 2001-12-14 22:47:19 +0000 | [diff] [blame] | 13274 | stdint.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 13275 | strings.h \ |
| 13276 | sys/cdio.h \ |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 13277 | sys/errno.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 13278 | sys/file.h \ |
| 13279 | sys/filio.h \ |
Michal Pasternak | 6098399 | 2002-03-29 18:04:43 +0000 | [diff] [blame] | 13280 | sys/inttypes.h \ |
Alexandre Julliard | c3e06df | 2002-05-14 23:18:23 +0000 | [diff] [blame] | 13281 | sys/ioctl.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 13282 | sys/ipc.h \ |
Eric Pouech | 624cbd7 | 2001-08-10 22:29:21 +0000 | [diff] [blame] | 13283 | sys/link.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 13284 | sys/lwp.h \ |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 13285 | sys/mman.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 13286 | sys/modem.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 13287 | sys/msg.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 13288 | sys/param.h \ |
Patrik Stridvall | 57bf450 | 2002-08-26 21:53:24 +0000 | [diff] [blame] | 13289 | sys/poll.h \ |
Dimitrie O. Paun | 2af03e4 | 2000-11-29 20:04:09 +0000 | [diff] [blame] | 13290 | sys/ptrace.h \ |
Ulrich Weigand | 8a1bdb3 | 2000-01-30 22:22:22 +0000 | [diff] [blame] | 13291 | sys/reg.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 13292 | sys/shm.h \ |
Rizsanyi Zsolt | e7c6d17 | 2002-05-01 22:25:41 +0000 | [diff] [blame] | 13293 | sys/signal.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 13294 | sys/socket.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 13295 | sys/sockio.h \ |
| 13296 | sys/statfs.h \ |
| 13297 | sys/strtio.h \ |
| 13298 | sys/syscall.h \ |
Alexandre Julliard | 127ec92 | 2002-05-07 01:51:30 +0000 | [diff] [blame] | 13299 | sys/sysctl.h \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 13300 | sys/time.h \ |
Patrik Stridvall | 57bf450 | 2002-08-26 21:53:24 +0000 | [diff] [blame] | 13301 | sys/times.h \ |
Steven Edwards | 45e5681 | 2002-10-31 03:41:56 +0000 | [diff] [blame] | 13302 | sys/uio.h \ |
| 13303 | sys/un.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 13304 | sys/v86.h \ |
| 13305 | sys/v86intr.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 13306 | sys/vfs.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 13307 | sys/vm86.h \ |
Rizsanyi Zsolt | e7c6d17 | 2002-05-01 22:25:41 +0000 | [diff] [blame] | 13308 | sys/wait.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 13309 | syscall.h \ |
Alexandre Julliard | c3e06df | 2002-05-14 23:18:23 +0000 | [diff] [blame] | 13310 | termios.h \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 13311 | unistd.h \ |
Patrik Stridvall | 57bf450 | 2002-08-26 21:53:24 +0000 | [diff] [blame] | 13312 | utime.h \ |
Alexandre Julliard | c44555b | 2003-04-02 01:42:06 +0000 | [diff] [blame] | 13313 | valgrind/memcheck.h |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 13314 | |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 13315 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13316 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13317 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 13318 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13319 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 13320 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 13321 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13322 | fi |
| 13323 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 13324 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 13325 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13326 | # Is the header compilable? |
| 13327 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 13328 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 13329 | cat >conftest.$ac_ext <<_ACEOF |
| 13330 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13331 | /* confdefs.h. */ |
| 13332 | _ACEOF |
| 13333 | cat confdefs.h >>conftest.$ac_ext |
| 13334 | cat >>conftest.$ac_ext <<_ACEOF |
| 13335 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13336 | $ac_includes_default |
| 13337 | #include <$ac_header> |
| 13338 | _ACEOF |
| 13339 | rm -f conftest.$ac_objext |
| 13340 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13341 | (eval $ac_compile) 2>&5 |
| 13342 | ac_status=$? |
| 13343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13344 | (exit $ac_status); } && |
| 13345 | { ac_try='test -s conftest.$ac_objext' |
| 13346 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13347 | (eval $ac_try) 2>&5 |
| 13348 | ac_status=$? |
| 13349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13350 | (exit $ac_status); }; }; then |
| 13351 | ac_header_compiler=yes |
| 13352 | else |
| 13353 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13354 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13355 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13356 | ac_header_compiler=no |
| 13357 | fi |
| 13358 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13359 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 13360 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 13361 | |
| 13362 | # Is the header present? |
| 13363 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 13364 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 13365 | cat >conftest.$ac_ext <<_ACEOF |
| 13366 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13367 | /* confdefs.h. */ |
| 13368 | _ACEOF |
| 13369 | cat confdefs.h >>conftest.$ac_ext |
| 13370 | cat >>conftest.$ac_ext <<_ACEOF |
| 13371 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13372 | #include <$ac_header> |
| 13373 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13374 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13375 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 13376 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 13377 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13378 | rm -f conftest.er1 |
| 13379 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13381 | (exit $ac_status); } >/dev/null; then |
| 13382 | if test -s conftest.err; then |
| 13383 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 13384 | else |
| 13385 | ac_cpp_err= |
| 13386 | fi |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 13387 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13388 | ac_cpp_err=yes |
| 13389 | fi |
| 13390 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13391 | ac_header_preproc=yes |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13392 | else |
| 13393 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13394 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13395 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13396 | ac_header_preproc=no |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 13397 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13398 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13399 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 13400 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 13401 | |
| 13402 | # So? What about this header? |
| 13403 | case $ac_header_compiler:$ac_header_preproc in |
| 13404 | yes:no ) |
| 13405 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 13406 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 13407 | { 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] | 13408 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 13409 | ( |
| 13410 | cat <<\_ASBOX |
| 13411 | ## ------------------------------------ ## |
| 13412 | ## Report this to bug-autoconf@gnu.org. ## |
| 13413 | ## ------------------------------------ ## |
| 13414 | _ASBOX |
| 13415 | ) | |
| 13416 | sed "s/^/$as_me: WARNING: /" >&2 |
| 13417 | ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13418 | no:yes ) |
| 13419 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 13420 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 13421 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 13422 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 13423 | { 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] | 13424 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 13425 | ( |
| 13426 | cat <<\_ASBOX |
| 13427 | ## ------------------------------------ ## |
| 13428 | ## Report this to bug-autoconf@gnu.org. ## |
| 13429 | ## ------------------------------------ ## |
| 13430 | _ASBOX |
| 13431 | ) | |
| 13432 | sed "s/^/$as_me: WARNING: /" >&2 |
| 13433 | ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13434 | esac |
| 13435 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 13436 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 13437 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 13438 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13439 | else |
| 13440 | eval "$as_ac_Header=$ac_header_preproc" |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 13441 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13442 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13443 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13444 | |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 13445 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13446 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 13447 | cat >>confdefs.h <<_ACEOF |
| 13448 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 13449 | _ACEOF |
| 13450 | |
| 13451 | fi |
| 13452 | |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 13453 | done |
| 13454 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13455 | 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] | 13456 | echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6 |
| 13457 | if test "${ac_cv_header_stat_broken+set}" = set; then |
| 13458 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13459 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13460 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13461 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13462 | /* confdefs.h. */ |
| 13463 | _ACEOF |
| 13464 | cat confdefs.h >>conftest.$ac_ext |
| 13465 | cat >>conftest.$ac_ext <<_ACEOF |
| 13466 | /* end confdefs.h. */ |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13467 | #include <sys/types.h> |
| 13468 | #include <sys/stat.h> |
| 13469 | |
| 13470 | #if defined(S_ISBLK) && defined(S_IFDIR) |
| 13471 | # if S_ISBLK (S_IFDIR) |
| 13472 | You lose. |
| 13473 | # endif |
| 13474 | #endif |
| 13475 | |
| 13476 | #if defined(S_ISBLK) && defined(S_IFCHR) |
| 13477 | # if S_ISBLK (S_IFCHR) |
| 13478 | You lose. |
| 13479 | # endif |
| 13480 | #endif |
| 13481 | |
| 13482 | #if defined(S_ISLNK) && defined(S_IFREG) |
| 13483 | # if S_ISLNK (S_IFREG) |
| 13484 | You lose. |
| 13485 | # endif |
| 13486 | #endif |
| 13487 | |
| 13488 | #if defined(S_ISSOCK) && defined(S_IFREG) |
| 13489 | # if S_ISSOCK (S_IFREG) |
| 13490 | You lose. |
| 13491 | # endif |
| 13492 | #endif |
| 13493 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13494 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13495 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 13496 | $EGREP "You lose" >/dev/null 2>&1; then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13497 | ac_cv_header_stat_broken=yes |
| 13498 | else |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13499 | ac_cv_header_stat_broken=no |
| 13500 | fi |
| 13501 | rm -f conftest* |
| 13502 | |
| 13503 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13504 | echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13505 | echo "${ECHO_T}$ac_cv_header_stat_broken" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13506 | if test $ac_cv_header_stat_broken = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13507 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13508 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13509 | #define STAT_MACROS_BROKEN 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13510 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13511 | |
| 13512 | fi |
| 13513 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13514 | |
| 13515 | |
Gerald Pfeifer | 6cef4cd | 2002-11-06 22:00:10 +0000 | [diff] [blame] | 13516 | |
| 13517 | |
| 13518 | for ac_header in sys/mount.h sys/user.h |
| 13519 | do |
| 13520 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 13521 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 13522 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 13523 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 13524 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13525 | else |
| 13526 | cat >conftest.$ac_ext <<_ACEOF |
| 13527 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13528 | /* confdefs.h. */ |
| 13529 | _ACEOF |
| 13530 | cat confdefs.h >>conftest.$ac_ext |
| 13531 | cat >>conftest.$ac_ext <<_ACEOF |
| 13532 | /* end confdefs.h. */ |
Patrik Stridvall | 63ae7fe | 2002-11-08 19:34:52 +0000 | [diff] [blame] | 13533 | #include <sys/types.h> |
| 13534 | #if HAVE_SYS_PARAM_H |
| 13535 | # include <sys/param.h> |
Gerald Pfeifer | 6cef4cd | 2002-11-06 22:00:10 +0000 | [diff] [blame] | 13536 | #endif |
| 13537 | |
| 13538 | #include <$ac_header> |
| 13539 | _ACEOF |
| 13540 | rm -f conftest.$ac_objext |
| 13541 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13542 | (eval $ac_compile) 2>&5 |
| 13543 | ac_status=$? |
| 13544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13545 | (exit $ac_status); } && |
| 13546 | { ac_try='test -s conftest.$ac_objext' |
| 13547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13548 | (eval $ac_try) 2>&5 |
| 13549 | ac_status=$? |
| 13550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13551 | (exit $ac_status); }; }; then |
| 13552 | eval "$as_ac_Header=yes" |
| 13553 | else |
| 13554 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13555 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13556 | |
Gerald Pfeifer | 6cef4cd | 2002-11-06 22:00:10 +0000 | [diff] [blame] | 13557 | eval "$as_ac_Header=no" |
| 13558 | fi |
| 13559 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13560 | fi |
| 13561 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 13562 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 13563 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 13564 | cat >>confdefs.h <<_ACEOF |
| 13565 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 13566 | _ACEOF |
| 13567 | |
| 13568 | fi |
| 13569 | |
| 13570 | done |
| 13571 | |
| 13572 | |
| 13573 | |
Juan Lang | 38fa5ad | 2003-05-13 03:32:20 +0000 | [diff] [blame] | 13574 | |
| 13575 | |
| 13576 | |
| 13577 | |
| 13578 | |
| 13579 | for ac_header in net/if.h net/if_arp.h net/if_dl.h net/if_types.h net/route.h resolv.h |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 13580 | do |
| 13581 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 13582 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 13583 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 13584 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 13585 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13586 | else |
| 13587 | cat >conftest.$ac_ext <<_ACEOF |
| 13588 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13589 | /* confdefs.h. */ |
| 13590 | _ACEOF |
| 13591 | cat confdefs.h >>conftest.$ac_ext |
| 13592 | cat >>conftest.$ac_ext <<_ACEOF |
| 13593 | /* end confdefs.h. */ |
Patrik Stridvall | 63ae7fe | 2002-11-08 19:34:52 +0000 | [diff] [blame] | 13594 | #include <sys/types.h> |
Gerald Pfeifer | 87c369d | 2002-07-23 02:02:02 +0000 | [diff] [blame] | 13595 | #if HAVE_SYS_SOCKET_H |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 13596 | # include <sys/socket.h> |
| 13597 | #endif |
| 13598 | |
| 13599 | #include <$ac_header> |
| 13600 | _ACEOF |
| 13601 | rm -f conftest.$ac_objext |
| 13602 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13603 | (eval $ac_compile) 2>&5 |
| 13604 | ac_status=$? |
| 13605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13606 | (exit $ac_status); } && |
| 13607 | { ac_try='test -s conftest.$ac_objext' |
| 13608 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13609 | (eval $ac_try) 2>&5 |
| 13610 | ac_status=$? |
| 13611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13612 | (exit $ac_status); }; }; then |
| 13613 | eval "$as_ac_Header=yes" |
| 13614 | else |
| 13615 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13616 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13617 | |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 13618 | eval "$as_ac_Header=no" |
| 13619 | fi |
| 13620 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13621 | fi |
| 13622 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 13623 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 13624 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 13625 | cat >>confdefs.h <<_ACEOF |
| 13626 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 13627 | _ACEOF |
| 13628 | |
| 13629 | fi |
| 13630 | |
| 13631 | done |
| 13632 | |
| 13633 | |
| 13634 | |
| 13635 | for ac_header in netinet/ip.h |
| 13636 | do |
| 13637 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 13638 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 13639 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 13640 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 13641 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13642 | else |
| 13643 | cat >conftest.$ac_ext <<_ACEOF |
| 13644 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13645 | /* confdefs.h. */ |
| 13646 | _ACEOF |
| 13647 | cat confdefs.h >>conftest.$ac_ext |
| 13648 | cat >>conftest.$ac_ext <<_ACEOF |
| 13649 | /* end confdefs.h. */ |
Patrik Stridvall | 63ae7fe | 2002-11-08 19:34:52 +0000 | [diff] [blame] | 13650 | #include <sys/types.h> |
| 13651 | #if HAVE_SYS_SOCKET_H |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 13652 | # include <sys/socket.h> |
| 13653 | #endif |
| 13654 | #if HAVE_NETINET_IN_SYSTM_H |
| 13655 | # include <netinet/in_systm.h> |
| 13656 | #endif |
| 13657 | |
| 13658 | #include <$ac_header> |
| 13659 | _ACEOF |
| 13660 | rm -f conftest.$ac_objext |
| 13661 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13662 | (eval $ac_compile) 2>&5 |
| 13663 | ac_status=$? |
| 13664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13665 | (exit $ac_status); } && |
| 13666 | { ac_try='test -s conftest.$ac_objext' |
| 13667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13668 | (eval $ac_try) 2>&5 |
| 13669 | ac_status=$? |
| 13670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13671 | (exit $ac_status); }; }; then |
| 13672 | eval "$as_ac_Header=yes" |
| 13673 | else |
| 13674 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13675 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13676 | |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 13677 | eval "$as_ac_Header=no" |
| 13678 | fi |
| 13679 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13680 | fi |
| 13681 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 13682 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 13683 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 13684 | cat >>confdefs.h <<_ACEOF |
| 13685 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 13686 | _ACEOF |
| 13687 | |
| 13688 | fi |
| 13689 | |
| 13690 | done |
| 13691 | |
| 13692 | |
| 13693 | |
Gerald Pfeifer | d2033a5 | 2002-11-12 23:21:55 +0000 | [diff] [blame] | 13694 | for ac_header in ucontext.h |
| 13695 | do |
| 13696 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 13697 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 13698 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 13699 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 13700 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13701 | else |
| 13702 | cat >conftest.$ac_ext <<_ACEOF |
| 13703 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13704 | /* confdefs.h. */ |
| 13705 | _ACEOF |
| 13706 | cat confdefs.h >>conftest.$ac_ext |
| 13707 | cat >>conftest.$ac_ext <<_ACEOF |
| 13708 | /* end confdefs.h. */ |
Gerald Pfeifer | d2033a5 | 2002-11-12 23:21:55 +0000 | [diff] [blame] | 13709 | #include <signal.h> |
| 13710 | |
| 13711 | #include <$ac_header> |
| 13712 | _ACEOF |
| 13713 | rm -f conftest.$ac_objext |
| 13714 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13715 | (eval $ac_compile) 2>&5 |
| 13716 | ac_status=$? |
| 13717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13718 | (exit $ac_status); } && |
| 13719 | { ac_try='test -s conftest.$ac_objext' |
| 13720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13721 | (eval $ac_try) 2>&5 |
| 13722 | ac_status=$? |
| 13723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13724 | (exit $ac_status); }; }; then |
| 13725 | eval "$as_ac_Header=yes" |
| 13726 | else |
| 13727 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13728 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13729 | |
Gerald Pfeifer | d2033a5 | 2002-11-12 23:21:55 +0000 | [diff] [blame] | 13730 | eval "$as_ac_Header=no" |
| 13731 | fi |
| 13732 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13733 | fi |
| 13734 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 13735 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 13736 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 13737 | cat >>confdefs.h <<_ACEOF |
| 13738 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 13739 | _ACEOF |
| 13740 | |
| 13741 | fi |
| 13742 | |
| 13743 | done |
| 13744 | |
| 13745 | |
| 13746 | |
Alexandre Julliard | b38b4c2 | 2003-01-21 00:36:46 +0000 | [diff] [blame] | 13747 | echo "$as_me:$LINENO: checking for GNU style IPX support" >&5 |
| 13748 | echo $ECHO_N "checking for GNU style IPX support... $ECHO_C" >&6 |
| 13749 | if test "${ac_cv_c_ipx_gnu+set}" = set; then |
| 13750 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13751 | else |
| 13752 | cat >conftest.$ac_ext <<_ACEOF |
| 13753 | #line $LINENO "configure" |
| 13754 | /* confdefs.h. */ |
| 13755 | _ACEOF |
| 13756 | cat confdefs.h >>conftest.$ac_ext |
| 13757 | cat >>conftest.$ac_ext <<_ACEOF |
| 13758 | /* end confdefs.h. */ |
| 13759 | #include <sys/types.h> |
| 13760 | #ifdef HAVE_SYS_SOCKET_H |
| 13761 | # include <sys/socket.h> |
| 13762 | #endif |
| 13763 | #include <netipx/ipx.h> |
| 13764 | int |
| 13765 | main () |
| 13766 | { |
| 13767 | ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX |
| 13768 | ; |
| 13769 | return 0; |
| 13770 | } |
| 13771 | _ACEOF |
| 13772 | rm -f conftest.$ac_objext |
| 13773 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13774 | (eval $ac_compile) 2>&5 |
| 13775 | ac_status=$? |
| 13776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13777 | (exit $ac_status); } && |
| 13778 | { ac_try='test -s conftest.$ac_objext' |
| 13779 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13780 | (eval $ac_try) 2>&5 |
| 13781 | ac_status=$? |
| 13782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13783 | (exit $ac_status); }; }; then |
| 13784 | ac_cv_c_ipx_gnu="yes" |
| 13785 | else |
| 13786 | echo "$as_me: failed program was:" >&5 |
| 13787 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13788 | |
| 13789 | ac_cv_c_ipx_gnu="no" |
| 13790 | fi |
| 13791 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13792 | |
| 13793 | fi |
| 13794 | echo "$as_me:$LINENO: result: $ac_cv_c_ipx_gnu" >&5 |
| 13795 | echo "${ECHO_T}$ac_cv_c_ipx_gnu" >&6 |
| 13796 | if test "$ac_cv_c_ipx_gnu" = "yes" |
| 13797 | then |
| 13798 | |
| 13799 | cat >>confdefs.h <<\_ACEOF |
| 13800 | #define HAVE_IPX_GNU 1 |
| 13801 | _ACEOF |
| 13802 | |
| 13803 | fi |
| 13804 | |
| 13805 | if test "$ac_cv_c_ipx_gnu" = "no" |
| 13806 | then |
| 13807 | echo "$as_me:$LINENO: checking for linux style IPX support" >&5 |
| 13808 | echo $ECHO_N "checking for linux style IPX support... $ECHO_C" >&6 |
| 13809 | if test "${ac_cv_c_ipx_linux+set}" = set; then |
| 13810 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13811 | else |
| 13812 | cat >conftest.$ac_ext <<_ACEOF |
| 13813 | #line $LINENO "configure" |
| 13814 | /* confdefs.h. */ |
| 13815 | _ACEOF |
| 13816 | cat confdefs.h >>conftest.$ac_ext |
| 13817 | cat >>conftest.$ac_ext <<_ACEOF |
| 13818 | /* end confdefs.h. */ |
| 13819 | #include <sys/types.h> |
| 13820 | #ifdef HAVE_SYS_SOCKET_H |
| 13821 | # include <sys/socket.h> |
| 13822 | #endif |
| 13823 | #include <asm/types.h> |
| 13824 | #include <linux/ipx.h> |
| 13825 | int |
| 13826 | main () |
| 13827 | { |
| 13828 | ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX |
| 13829 | ; |
| 13830 | return 0; |
| 13831 | } |
| 13832 | _ACEOF |
| 13833 | rm -f conftest.$ac_objext |
| 13834 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13835 | (eval $ac_compile) 2>&5 |
| 13836 | ac_status=$? |
| 13837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13838 | (exit $ac_status); } && |
| 13839 | { ac_try='test -s conftest.$ac_objext' |
| 13840 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13841 | (eval $ac_try) 2>&5 |
| 13842 | ac_status=$? |
| 13843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13844 | (exit $ac_status); }; }; then |
| 13845 | ac_cv_c_ipx_linux="yes" |
| 13846 | else |
| 13847 | echo "$as_me: failed program was:" >&5 |
| 13848 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13849 | |
| 13850 | ac_cv_c_ipx_linux="no" |
| 13851 | fi |
| 13852 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13853 | |
| 13854 | fi |
| 13855 | echo "$as_me:$LINENO: result: $ac_cv_c_ipx_linux" >&5 |
| 13856 | echo "${ECHO_T}$ac_cv_c_ipx_linux" >&6 |
| 13857 | if test "$ac_cv_c_ipx_linux" = "yes" |
| 13858 | then |
| 13859 | |
| 13860 | cat >>confdefs.h <<\_ACEOF |
| 13861 | #define HAVE_IPX_LINUX 1 |
| 13862 | _ACEOF |
| 13863 | |
| 13864 | fi |
| 13865 | fi |
| 13866 | |
| 13867 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13868 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13869 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
| 13870 | if test "${ac_cv_c_const+set}" = set; then |
| 13871 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13872 | else |
| 13873 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13874 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13875 | /* confdefs.h. */ |
| 13876 | _ACEOF |
| 13877 | cat confdefs.h >>conftest.$ac_ext |
| 13878 | cat >>conftest.$ac_ext <<_ACEOF |
| 13879 | /* end confdefs.h. */ |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13880 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13881 | int |
| 13882 | main () |
| 13883 | { |
| 13884 | /* FIXME: Include the comments suggested by Paul. */ |
| 13885 | #ifndef __cplusplus |
| 13886 | /* Ultrix mips cc rejects this. */ |
| 13887 | typedef int charset[2]; |
| 13888 | const charset x; |
| 13889 | /* SunOS 4.1.1 cc rejects this. */ |
| 13890 | char const *const *ccp; |
| 13891 | char **p; |
| 13892 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 13893 | struct point {int x, y;}; |
| 13894 | static struct point const zero = {0,0}; |
| 13895 | /* AIX XL C 1.02.0.0 rejects this. |
| 13896 | It does not let you subtract one const X* pointer from another in |
| 13897 | an arm of an if-expression whose if-part is not a constant |
| 13898 | expression */ |
| 13899 | const char *g = "string"; |
| 13900 | ccp = &g + (g ? g-g : 0); |
| 13901 | /* HPUX 7.0 cc rejects these. */ |
| 13902 | ++ccp; |
| 13903 | p = (char**) ccp; |
| 13904 | ccp = (char const *const *) p; |
| 13905 | { /* SCO 3.2v4 cc rejects this. */ |
| 13906 | char *t; |
| 13907 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13908 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13909 | *t++ = 0; |
| 13910 | } |
| 13911 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 13912 | int x[] = {25, 17}; |
| 13913 | const int *foo = &x[0]; |
| 13914 | ++foo; |
| 13915 | } |
| 13916 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 13917 | typedef const int *iptr; |
| 13918 | iptr p = 0; |
| 13919 | ++p; |
| 13920 | } |
| 13921 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 13922 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 13923 | struct s { int j; const int *ap[3]; }; |
| 13924 | struct s *b; b->j = 5; |
| 13925 | } |
| 13926 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 13927 | const int foo = 10; |
| 13928 | } |
| 13929 | #endif |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13930 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13931 | ; |
| 13932 | return 0; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13933 | } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13934 | _ACEOF |
| 13935 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13936 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13937 | (eval $ac_compile) 2>&5 |
| 13938 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13940 | (exit $ac_status); } && |
| 13941 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13942 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13943 | (eval $ac_try) 2>&5 |
| 13944 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13946 | (exit $ac_status); }; }; then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13947 | ac_cv_c_const=yes |
| 13948 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13949 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13950 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13951 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13952 | ac_cv_c_const=no |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13953 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13954 | rm -f conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13955 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13956 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13957 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13958 | if test $ac_cv_c_const = no; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13959 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13960 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13961 | #define const |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13962 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13963 | |
| 13964 | fi |
| 13965 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13966 | echo "$as_me:$LINENO: checking for inline" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13967 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 |
| 13968 | if test "${ac_cv_c_inline+set}" = set; then |
| 13969 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 13970 | else |
| 13971 | ac_cv_c_inline=no |
| 13972 | for ac_kw in inline __inline__ __inline; do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13973 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13974 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13975 | /* confdefs.h. */ |
| 13976 | _ACEOF |
| 13977 | cat confdefs.h >>conftest.$ac_ext |
| 13978 | cat >>conftest.$ac_ext <<_ACEOF |
| 13979 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13980 | #ifndef __cplusplus |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 13981 | typedef int foo_t; |
| 13982 | static $ac_kw foo_t static_foo () {return 0; } |
| 13983 | $ac_kw foo_t foo () {return 0; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13984 | #endif |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 13985 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13986 | _ACEOF |
| 13987 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13988 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13989 | (eval $ac_compile) 2>&5 |
| 13990 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13992 | (exit $ac_status); } && |
| 13993 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13994 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13995 | (eval $ac_try) 2>&5 |
| 13996 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13998 | (exit $ac_status); }; }; then |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 13999 | ac_cv_c_inline=$ac_kw; break |
| 14000 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14001 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14002 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14003 | |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 14004 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14005 | rm -f conftest.$ac_objext conftest.$ac_ext |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 14006 | done |
| 14007 | |
| 14008 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14009 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14010 | echo "${ECHO_T}$ac_cv_c_inline" >&6 |
| 14011 | case $ac_cv_c_inline in |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 14012 | inline | yes) ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14013 | no) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14014 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14015 | #define inline |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14016 | _ACEOF |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 14017 | ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14018 | *) cat >>confdefs.h <<_ACEOF |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 14019 | #define inline $ac_cv_c_inline |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14020 | _ACEOF |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 14021 | ;; |
| 14022 | esac |
| 14023 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14024 | echo "$as_me:$LINENO: checking for mode_t" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14025 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 |
| 14026 | if test "${ac_cv_type_mode_t+set}" = set; then |
| 14027 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14028 | else |
| 14029 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14030 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14031 | /* confdefs.h. */ |
| 14032 | _ACEOF |
| 14033 | cat confdefs.h >>conftest.$ac_ext |
| 14034 | cat >>conftest.$ac_ext <<_ACEOF |
| 14035 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14036 | $ac_includes_default |
| 14037 | int |
| 14038 | main () |
| 14039 | { |
| 14040 | if ((mode_t *) 0) |
| 14041 | return 0; |
| 14042 | if (sizeof (mode_t)) |
| 14043 | return 0; |
| 14044 | ; |
| 14045 | return 0; |
| 14046 | } |
| 14047 | _ACEOF |
| 14048 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14049 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14050 | (eval $ac_compile) 2>&5 |
| 14051 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14053 | (exit $ac_status); } && |
| 14054 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14055 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14056 | (eval $ac_try) 2>&5 |
| 14057 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14059 | (exit $ac_status); }; }; then |
| 14060 | ac_cv_type_mode_t=yes |
| 14061 | else |
| 14062 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14063 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14064 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14065 | ac_cv_type_mode_t=no |
| 14066 | fi |
| 14067 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14068 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14069 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14070 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 |
| 14071 | if test $ac_cv_type_mode_t = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14072 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14073 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 14074 | #define HAVE_MODE_T 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14075 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14076 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14077 | |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 14078 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14079 | echo "$as_me:$LINENO: checking for off_t" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14080 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 |
| 14081 | if test "${ac_cv_type_off_t+set}" = set; then |
| 14082 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14083 | else |
| 14084 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14085 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14086 | /* confdefs.h. */ |
| 14087 | _ACEOF |
| 14088 | cat confdefs.h >>conftest.$ac_ext |
| 14089 | cat >>conftest.$ac_ext <<_ACEOF |
| 14090 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14091 | $ac_includes_default |
| 14092 | int |
| 14093 | main () |
| 14094 | { |
| 14095 | if ((off_t *) 0) |
| 14096 | return 0; |
| 14097 | if (sizeof (off_t)) |
| 14098 | return 0; |
| 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 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14114 | (exit $ac_status); }; }; then |
| 14115 | ac_cv_type_off_t=yes |
| 14116 | else |
| 14117 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14118 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14119 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14120 | ac_cv_type_off_t=no |
| 14121 | fi |
| 14122 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14123 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14124 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14125 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 |
| 14126 | if test $ac_cv_type_off_t = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14127 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14128 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 14129 | #define HAVE_OFF_T 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14130 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14131 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14132 | |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 14133 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14134 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14135 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
| 14136 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 14137 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14138 | else |
| 14139 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14140 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14141 | /* confdefs.h. */ |
| 14142 | _ACEOF |
| 14143 | cat confdefs.h >>conftest.$ac_ext |
| 14144 | cat >>conftest.$ac_ext <<_ACEOF |
| 14145 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14146 | $ac_includes_default |
| 14147 | int |
| 14148 | main () |
| 14149 | { |
| 14150 | if ((pid_t *) 0) |
| 14151 | return 0; |
| 14152 | if (sizeof (pid_t)) |
| 14153 | return 0; |
| 14154 | ; |
| 14155 | return 0; |
| 14156 | } |
| 14157 | _ACEOF |
| 14158 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14159 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14160 | (eval $ac_compile) 2>&5 |
| 14161 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14163 | (exit $ac_status); } && |
| 14164 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14165 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14166 | (eval $ac_try) 2>&5 |
| 14167 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14169 | (exit $ac_status); }; }; then |
| 14170 | ac_cv_type_pid_t=yes |
| 14171 | else |
| 14172 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14173 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14174 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14175 | ac_cv_type_pid_t=no |
| 14176 | fi |
| 14177 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14178 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14179 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14180 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
| 14181 | if test $ac_cv_type_pid_t = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14182 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14183 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 14184 | #define HAVE_PID_T 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14185 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14186 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14187 | |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 14188 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14189 | echo "$as_me:$LINENO: checking for size_t" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14190 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
| 14191 | if test "${ac_cv_type_size_t+set}" = set; then |
| 14192 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14193 | else |
| 14194 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14195 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14196 | /* confdefs.h. */ |
| 14197 | _ACEOF |
| 14198 | cat confdefs.h >>conftest.$ac_ext |
| 14199 | cat >>conftest.$ac_ext <<_ACEOF |
| 14200 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14201 | $ac_includes_default |
| 14202 | int |
| 14203 | main () |
| 14204 | { |
| 14205 | if ((size_t *) 0) |
| 14206 | return 0; |
| 14207 | if (sizeof (size_t)) |
| 14208 | return 0; |
| 14209 | ; |
| 14210 | return 0; |
| 14211 | } |
| 14212 | _ACEOF |
| 14213 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14214 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14215 | (eval $ac_compile) 2>&5 |
| 14216 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14218 | (exit $ac_status); } && |
| 14219 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14220 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14221 | (eval $ac_try) 2>&5 |
| 14222 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14224 | (exit $ac_status); }; }; then |
| 14225 | ac_cv_type_size_t=yes |
| 14226 | else |
| 14227 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14228 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14229 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14230 | ac_cv_type_size_t=no |
| 14231 | fi |
| 14232 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14233 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14234 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14235 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
| 14236 | if test $ac_cv_type_size_t = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14237 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14238 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 14239 | #define HAVE_SIZE_T 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14240 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 14241 | |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 14242 | |
| 14243 | fi |
| 14244 | echo "$as_me:$LINENO: checking for ssize_t" >&5 |
| 14245 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6 |
| 14246 | if test "${ac_cv_type_ssize_t+set}" = set; then |
| 14247 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14248 | else |
| 14249 | cat >conftest.$ac_ext <<_ACEOF |
| 14250 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14251 | /* confdefs.h. */ |
| 14252 | _ACEOF |
| 14253 | cat confdefs.h >>conftest.$ac_ext |
| 14254 | cat >>conftest.$ac_ext <<_ACEOF |
| 14255 | /* end confdefs.h. */ |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 14256 | $ac_includes_default |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 14257 | int |
| 14258 | main () |
| 14259 | { |
| 14260 | if ((ssize_t *) 0) |
| 14261 | return 0; |
| 14262 | if (sizeof (ssize_t)) |
| 14263 | return 0; |
| 14264 | ; |
| 14265 | return 0; |
| 14266 | } |
| 14267 | _ACEOF |
| 14268 | rm -f conftest.$ac_objext |
| 14269 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14270 | (eval $ac_compile) 2>&5 |
| 14271 | ac_status=$? |
| 14272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14273 | (exit $ac_status); } && |
| 14274 | { ac_try='test -s conftest.$ac_objext' |
| 14275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14276 | (eval $ac_try) 2>&5 |
| 14277 | ac_status=$? |
| 14278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14279 | (exit $ac_status); }; }; then |
| 14280 | ac_cv_type_ssize_t=yes |
| 14281 | else |
| 14282 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14283 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14284 | |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 14285 | ac_cv_type_ssize_t=no |
| 14286 | fi |
| 14287 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14288 | fi |
| 14289 | echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 |
| 14290 | echo "${ECHO_T}$ac_cv_type_ssize_t" >&6 |
| 14291 | if test $ac_cv_type_ssize_t = yes; then |
| 14292 | |
| 14293 | cat >>confdefs.h <<_ACEOF |
| 14294 | #define HAVE_SSIZE_T 1 |
| 14295 | _ACEOF |
| 14296 | |
| 14297 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 14298 | fi |
| 14299 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14300 | echo "$as_me:$LINENO: checking for long long" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14301 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 |
| 14302 | if test "${ac_cv_type_long_long+set}" = set; then |
| 14303 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14304 | else |
| 14305 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14306 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14307 | /* confdefs.h. */ |
| 14308 | _ACEOF |
| 14309 | cat confdefs.h >>conftest.$ac_ext |
| 14310 | cat >>conftest.$ac_ext <<_ACEOF |
| 14311 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14312 | $ac_includes_default |
| 14313 | int |
| 14314 | main () |
| 14315 | { |
| 14316 | if ((long long *) 0) |
| 14317 | return 0; |
| 14318 | if (sizeof (long long)) |
| 14319 | return 0; |
| 14320 | ; |
| 14321 | return 0; |
| 14322 | } |
| 14323 | _ACEOF |
| 14324 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14325 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14326 | (eval $ac_compile) 2>&5 |
| 14327 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14329 | (exit $ac_status); } && |
| 14330 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14331 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14332 | (eval $ac_try) 2>&5 |
| 14333 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14335 | (exit $ac_status); }; }; then |
| 14336 | ac_cv_type_long_long=yes |
| 14337 | else |
| 14338 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14339 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14340 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14341 | ac_cv_type_long_long=no |
| 14342 | fi |
| 14343 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14344 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14345 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14346 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 |
| 14347 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14348 | echo "$as_me:$LINENO: checking size of long long" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14349 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 |
| 14350 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
| 14351 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14352 | else |
| 14353 | if test "$ac_cv_type_long_long" = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14354 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 14355 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 14356 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 14357 | # This bug is HP SR number 8606223364. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14358 | if test "$cross_compiling" = yes; then |
| 14359 | # Depending upon the size, compute the lo and hi bounds. |
| 14360 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14361 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14362 | /* confdefs.h. */ |
| 14363 | _ACEOF |
| 14364 | cat confdefs.h >>conftest.$ac_ext |
| 14365 | cat >>conftest.$ac_ext <<_ACEOF |
| 14366 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14367 | $ac_includes_default |
| 14368 | int |
| 14369 | main () |
| 14370 | { |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14371 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; |
| 14372 | test_array [0] = 0 |
| 14373 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14374 | ; |
| 14375 | return 0; |
| 14376 | } |
| 14377 | _ACEOF |
| 14378 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14379 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14380 | (eval $ac_compile) 2>&5 |
| 14381 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14383 | (exit $ac_status); } && |
| 14384 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14385 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14386 | (eval $ac_try) 2>&5 |
| 14387 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14389 | (exit $ac_status); }; }; then |
| 14390 | ac_lo=0 ac_mid=0 |
| 14391 | while :; do |
| 14392 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14393 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14394 | /* confdefs.h. */ |
| 14395 | _ACEOF |
| 14396 | cat confdefs.h >>conftest.$ac_ext |
| 14397 | cat >>conftest.$ac_ext <<_ACEOF |
| 14398 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14399 | $ac_includes_default |
| 14400 | int |
| 14401 | main () |
| 14402 | { |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14403 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; |
| 14404 | test_array [0] = 0 |
| 14405 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14406 | ; |
| 14407 | return 0; |
| 14408 | } |
| 14409 | _ACEOF |
| 14410 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14411 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14412 | (eval $ac_compile) 2>&5 |
| 14413 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14415 | (exit $ac_status); } && |
| 14416 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14418 | (eval $ac_try) 2>&5 |
| 14419 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14421 | (exit $ac_status); }; }; then |
| 14422 | ac_hi=$ac_mid; break |
| 14423 | else |
| 14424 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14425 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14426 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14427 | ac_lo=`expr $ac_mid + 1` |
| 14428 | if test $ac_lo -le $ac_mid; then |
| 14429 | ac_lo= ac_hi= |
| 14430 | break |
| 14431 | fi |
| 14432 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14433 | fi |
| 14434 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14435 | done |
| 14436 | else |
| 14437 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14438 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14439 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14440 | cat >conftest.$ac_ext <<_ACEOF |
| 14441 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14442 | /* confdefs.h. */ |
| 14443 | _ACEOF |
| 14444 | cat confdefs.h >>conftest.$ac_ext |
| 14445 | cat >>conftest.$ac_ext <<_ACEOF |
| 14446 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14447 | $ac_includes_default |
| 14448 | int |
| 14449 | main () |
| 14450 | { |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14451 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; |
| 14452 | test_array [0] = 0 |
| 14453 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14454 | ; |
| 14455 | return 0; |
| 14456 | } |
| 14457 | _ACEOF |
| 14458 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14459 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14460 | (eval $ac_compile) 2>&5 |
| 14461 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14463 | (exit $ac_status); } && |
| 14464 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14466 | (eval $ac_try) 2>&5 |
| 14467 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14469 | (exit $ac_status); }; }; then |
| 14470 | ac_hi=-1 ac_mid=-1 |
| 14471 | while :; do |
| 14472 | cat >conftest.$ac_ext <<_ACEOF |
| 14473 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14474 | /* confdefs.h. */ |
| 14475 | _ACEOF |
| 14476 | cat confdefs.h >>conftest.$ac_ext |
| 14477 | cat >>conftest.$ac_ext <<_ACEOF |
| 14478 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14479 | $ac_includes_default |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14480 | int |
| 14481 | main () |
| 14482 | { |
| 14483 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; |
| 14484 | test_array [0] = 0 |
| 14485 | |
| 14486 | ; |
| 14487 | return 0; |
| 14488 | } |
| 14489 | _ACEOF |
| 14490 | rm -f conftest.$ac_objext |
| 14491 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14492 | (eval $ac_compile) 2>&5 |
| 14493 | ac_status=$? |
| 14494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14495 | (exit $ac_status); } && |
| 14496 | { ac_try='test -s conftest.$ac_objext' |
| 14497 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14498 | (eval $ac_try) 2>&5 |
| 14499 | ac_status=$? |
| 14500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14501 | (exit $ac_status); }; }; then |
| 14502 | ac_lo=$ac_mid; break |
| 14503 | else |
| 14504 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14505 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14506 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14507 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 14508 | if test $ac_mid -le $ac_hi; then |
| 14509 | ac_lo= ac_hi= |
| 14510 | break |
| 14511 | fi |
| 14512 | ac_mid=`expr 2 '*' $ac_mid` |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14513 | fi |
| 14514 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14515 | done |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14516 | else |
| 14517 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14518 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14519 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14520 | ac_lo= ac_hi= |
| 14521 | fi |
| 14522 | rm -f conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14523 | fi |
| 14524 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14525 | # Binary search between lo and hi bounds. |
| 14526 | while test "x$ac_lo" != "x$ac_hi"; do |
| 14527 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 14528 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14529 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14530 | /* confdefs.h. */ |
| 14531 | _ACEOF |
| 14532 | cat confdefs.h >>conftest.$ac_ext |
| 14533 | cat >>conftest.$ac_ext <<_ACEOF |
| 14534 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14535 | $ac_includes_default |
| 14536 | int |
| 14537 | main () |
| 14538 | { |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14539 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; |
| 14540 | test_array [0] = 0 |
| 14541 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14542 | ; |
| 14543 | return 0; |
| 14544 | } |
| 14545 | _ACEOF |
| 14546 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14547 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14548 | (eval $ac_compile) 2>&5 |
| 14549 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14551 | (exit $ac_status); } && |
| 14552 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14553 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14554 | (eval $ac_try) 2>&5 |
| 14555 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14557 | (exit $ac_status); }; }; then |
| 14558 | ac_hi=$ac_mid |
| 14559 | else |
| 14560 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14561 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14562 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14563 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14564 | fi |
| 14565 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14566 | done |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14567 | case $ac_lo in |
| 14568 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14569 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 |
| 14570 | See \`config.log' for more details." >&5 |
| 14571 | echo "$as_me: error: cannot compute sizeof (long long), 77 |
| 14572 | See \`config.log' for more details." >&2;} |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14573 | { (exit 1); exit 1; }; } ;; |
| 14574 | esac |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 14575 | else |
| 14576 | if test "$cross_compiling" = yes; then |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14577 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 14578 | See \`config.log' for more details." >&5 |
| 14579 | echo "$as_me: error: cannot run test program while cross compiling |
| 14580 | See \`config.log' for more details." >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14581 | { (exit 1); exit 1; }; } |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 14582 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14583 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14584 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14585 | /* confdefs.h. */ |
| 14586 | _ACEOF |
| 14587 | cat confdefs.h >>conftest.$ac_ext |
| 14588 | cat >>conftest.$ac_ext <<_ACEOF |
| 14589 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14590 | $ac_includes_default |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14591 | long longval () { return (long) (sizeof (long long)); } |
| 14592 | unsigned long ulongval () { return (long) (sizeof (long long)); } |
| 14593 | #include <stdio.h> |
| 14594 | #include <stdlib.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14595 | int |
| 14596 | main () |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 14597 | { |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14598 | |
| 14599 | FILE *f = fopen ("conftest.val", "w"); |
| 14600 | if (! f) |
| 14601 | exit (1); |
| 14602 | if (((long) (sizeof (long long))) < 0) |
| 14603 | { |
| 14604 | long i = longval (); |
| 14605 | if (i != ((long) (sizeof (long long)))) |
| 14606 | exit (1); |
| 14607 | fprintf (f, "%ld\n", i); |
| 14608 | } |
| 14609 | else |
| 14610 | { |
| 14611 | unsigned long i = ulongval (); |
| 14612 | if (i != ((long) (sizeof (long long)))) |
| 14613 | exit (1); |
| 14614 | fprintf (f, "%lu\n", i); |
| 14615 | } |
| 14616 | exit (ferror (f) || fclose (f) != 0); |
| 14617 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14618 | ; |
| 14619 | return 0; |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 14620 | } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14621 | _ACEOF |
| 14622 | rm -f conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14623 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14624 | (eval $ac_link) 2>&5 |
| 14625 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14627 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14628 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14629 | (eval $ac_try) 2>&5 |
| 14630 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14632 | (exit $ac_status); }; }; then |
| 14633 | ac_cv_sizeof_long_long=`cat conftest.val` |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 14634 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14635 | echo "$as_me: program exited with status $ac_status" >&5 |
| 14636 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14637 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14638 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14639 | ( exit $ac_status ) |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14640 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 |
| 14641 | See \`config.log' for more details." >&5 |
| 14642 | echo "$as_me: error: cannot compute sizeof (long long), 77 |
| 14643 | See \`config.log' for more details." >&2;} |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14644 | { (exit 1); exit 1; }; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14645 | fi |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 14646 | 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] | 14647 | fi |
| 14648 | fi |
| 14649 | rm -f conftest.val |
| 14650 | else |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 14651 | ac_cv_sizeof_long_long=0 |
| 14652 | fi |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 14653 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14654 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14655 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14656 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 14657 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14658 | _ACEOF |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 14659 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14660 | |
| 14661 | |
| 14662 | 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] | 14663 | echo $ECHO_N "checking whether linux/input.h is for real... $ECHO_C" >&6 |
| 14664 | if test "${wine_cv_linux_input_h+set}" = set; then |
| 14665 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | 74f2b4b | 2001-01-19 21:09:07 +0000 | [diff] [blame] | 14666 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14667 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14668 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14669 | /* confdefs.h. */ |
| 14670 | _ACEOF |
| 14671 | cat confdefs.h >>conftest.$ac_ext |
| 14672 | cat >>conftest.$ac_ext <<_ACEOF |
| 14673 | /* end confdefs.h. */ |
Marcus Meissner | 74f2b4b | 2001-01-19 21:09:07 +0000 | [diff] [blame] | 14674 | |
| 14675 | #include <linux/input.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14676 | |
| 14677 | int |
| 14678 | main () |
| 14679 | { |
Marcus Meissner | 74f2b4b | 2001-01-19 21:09:07 +0000 | [diff] [blame] | 14680 | |
| 14681 | int foo = EVIOCGBIT(EV_ABS,42); |
| 14682 | int bar = BTN_PINKIE; |
| 14683 | int fortytwo = 42; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14684 | |
| 14685 | ; |
| 14686 | return 0; |
| 14687 | } |
| 14688 | _ACEOF |
| 14689 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14690 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14691 | (eval $ac_compile) 2>&5 |
| 14692 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14694 | (exit $ac_status); } && |
| 14695 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14696 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14697 | (eval $ac_try) 2>&5 |
| 14698 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14700 | (exit $ac_status); }; }; then |
Marcus Meissner | 74f2b4b | 2001-01-19 21:09:07 +0000 | [diff] [blame] | 14701 | wine_cv_linux_input_h=yes |
| 14702 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14703 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14704 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14705 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14706 | wine_cv_linux_input_h=no |
Marcus Meissner | 74f2b4b | 2001-01-19 21:09:07 +0000 | [diff] [blame] | 14707 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14708 | rm -f conftest.$ac_objext conftest.$ac_ext |
Marcus Meissner | 74f2b4b | 2001-01-19 21:09:07 +0000 | [diff] [blame] | 14709 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14710 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14711 | echo "$as_me:$LINENO: result: $wine_cv_linux_input_h" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14712 | echo "${ECHO_T}$wine_cv_linux_input_h" >&6 |
Marcus Meissner | 74f2b4b | 2001-01-19 21:09:07 +0000 | [diff] [blame] | 14713 | if test "$wine_cv_linux_input_h" = "yes" |
| 14714 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14715 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14716 | cat >>confdefs.h <<\_ACEOF |
Marcus Meissner | 74f2b4b | 2001-01-19 21:09:07 +0000 | [diff] [blame] | 14717 | #define HAVE_CORRECT_LINUXINPUT_H 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14718 | _ACEOF |
Marcus Meissner | 74f2b4b | 2001-01-19 21:09:07 +0000 | [diff] [blame] | 14719 | |
| 14720 | fi |
| 14721 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14722 | |
| 14723 | 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] | 14724 | echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6 |
| 14725 | if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then |
| 14726 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 14727 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14728 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14729 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14730 | /* confdefs.h. */ |
| 14731 | _ACEOF |
| 14732 | cat confdefs.h >>conftest.$ac_ext |
| 14733 | cat >>conftest.$ac_ext <<_ACEOF |
| 14734 | /* end confdefs.h. */ |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 14735 | |
| 14736 | #include <netdb.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14737 | |
| 14738 | int |
| 14739 | main () |
| 14740 | { |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 14741 | |
| 14742 | char *name=NULL; |
| 14743 | struct hostent he; |
| 14744 | struct hostent *result; |
| 14745 | char *buf=NULL; |
| 14746 | int bufsize=0; |
| 14747 | int res,errnr; |
| 14748 | char *addr=NULL; |
| 14749 | int addrlen=0; |
| 14750 | int addrtype=0; |
| 14751 | res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr); |
| 14752 | res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14753 | |
| 14754 | ; |
| 14755 | return 0; |
| 14756 | } |
| 14757 | _ACEOF |
| 14758 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14759 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14760 | (eval $ac_compile) 2>&5 |
| 14761 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14763 | (exit $ac_status); } && |
| 14764 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14765 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14766 | (eval $ac_try) 2>&5 |
| 14767 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14769 | (exit $ac_status); }; }; then |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 14770 | wine_cv_linux_gethostbyname_r_6=yes |
| 14771 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14772 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14773 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14774 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14775 | wine_cv_linux_gethostbyname_r_6=no |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 14776 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14777 | fi |
| 14778 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14779 | |
| 14780 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14781 | echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14782 | echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6 |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 14783 | if test "$wine_cv_linux_gethostbyname_r_6" = "yes" |
| 14784 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14785 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14786 | cat >>confdefs.h <<\_ACEOF |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 14787 | #define HAVE_LINUX_GETHOSTBYNAME_R_6 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14788 | _ACEOF |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 14789 | |
| 14790 | fi |
| 14791 | |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 14792 | if test "$ac_cv_header_linux_joystick_h" = "yes" |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 14793 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14794 | 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] | 14795 | echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6 |
| 14796 | if test "${wine_cv_linux_joystick_22_api+set}" = set; then |
| 14797 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 14798 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14799 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14800 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14801 | /* confdefs.h. */ |
| 14802 | _ACEOF |
| 14803 | cat confdefs.h >>conftest.$ac_ext |
| 14804 | cat >>conftest.$ac_ext <<_ACEOF |
| 14805 | /* end confdefs.h. */ |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 14806 | |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 14807 | #include <sys/ioctl.h> |
| 14808 | #include <linux/joystick.h> |
| 14809 | |
| 14810 | struct js_event blub; |
Marcus Meissner | 605a9c3 | 1999-11-04 02:04:01 +0000 | [diff] [blame] | 14811 | #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON) |
| 14812 | #error "no 2.2 header" |
| 14813 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14814 | |
| 14815 | int |
| 14816 | main () |
| 14817 | { |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 14818 | /*empty*/ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14819 | ; |
| 14820 | return 0; |
| 14821 | } |
| 14822 | _ACEOF |
| 14823 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14824 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14825 | (eval $ac_compile) 2>&5 |
| 14826 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14828 | (exit $ac_status); } && |
| 14829 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14830 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14831 | (eval $ac_try) 2>&5 |
| 14832 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14834 | (exit $ac_status); }; }; then |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 14835 | wine_cv_linux_joystick_22_api=yes |
| 14836 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14837 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14838 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14839 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14840 | wine_cv_linux_joystick_22_api=no |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 14841 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14842 | rm -f conftest.$ac_objext conftest.$ac_ext |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 14843 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14844 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14845 | echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14846 | echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6 |
Rein Klazes | 87d224a | 2000-04-24 17:33:49 +0000 | [diff] [blame] | 14847 | if test "$wine_cv_linux_joystick_22_api" = "yes" |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 14848 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14849 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14850 | cat >>confdefs.h <<\_ACEOF |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 14851 | #define HAVE_LINUX_22_JOYSTICK_API 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14852 | _ACEOF |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 14853 | |
| 14854 | fi |
| 14855 | fi |
| 14856 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14857 | |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 14858 | if test "$ac_cv_header_sys_vfs_h" = "yes" |
| 14859 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14860 | echo "$as_me:$LINENO: checking whether sys/vfs.h defines statfs" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14861 | echo $ECHO_N "checking whether sys/vfs.h defines statfs... $ECHO_C" >&6 |
| 14862 | if test "${wine_cv_sys_vfs_has_statfs+set}" = set; then |
| 14863 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 14864 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14865 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14866 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14867 | /* confdefs.h. */ |
| 14868 | _ACEOF |
| 14869 | cat confdefs.h >>conftest.$ac_ext |
| 14870 | cat >>conftest.$ac_ext <<_ACEOF |
| 14871 | /* end confdefs.h. */ |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 14872 | |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 14873 | #include <sys/types.h> |
| 14874 | #ifdef HAVE_SYS_PARAM_H |
| 14875 | # include <sys/param.h> |
| 14876 | #endif |
| 14877 | #include <sys/vfs.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14878 | |
| 14879 | int |
| 14880 | main () |
| 14881 | { |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 14882 | |
| 14883 | struct statfs stfs; |
| 14884 | |
| 14885 | memset(&stfs,0,sizeof(stfs)); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14886 | |
| 14887 | ; |
| 14888 | return 0; |
| 14889 | } |
| 14890 | _ACEOF |
| 14891 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14892 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14893 | (eval $ac_compile) 2>&5 |
| 14894 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14896 | (exit $ac_status); } && |
| 14897 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14898 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14899 | (eval $ac_try) 2>&5 |
| 14900 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14902 | (exit $ac_status); }; }; then |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 14903 | wine_cv_sys_vfs_has_statfs=yes |
| 14904 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14905 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14906 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14907 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14908 | wine_cv_sys_vfs_has_statfs=no |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 14909 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14910 | fi |
| 14911 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14912 | |
| 14913 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14914 | echo "$as_me:$LINENO: result: $wine_cv_sys_vfs_has_statfs" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14915 | echo "${ECHO_T}$wine_cv_sys_vfs_has_statfs" >&6 |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 14916 | if test "$wine_cv_sys_vfs_has_statfs" = "yes" |
| 14917 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14918 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14919 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 14920 | #define STATFS_DEFINED_BY_SYS_VFS 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14921 | _ACEOF |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 14922 | |
| 14923 | fi |
| 14924 | fi |
| 14925 | |
| 14926 | if test "$ac_cv_header_sys_statfs_h" = "yes" |
| 14927 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14928 | echo "$as_me:$LINENO: checking whether sys/statfs.h defines statfs" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14929 | echo $ECHO_N "checking whether sys/statfs.h defines statfs... $ECHO_C" >&6 |
| 14930 | if test "${wine_cv_sys_statfs_has_statfs+set}" = set; then |
| 14931 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 14932 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14933 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14934 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14935 | /* confdefs.h. */ |
| 14936 | _ACEOF |
| 14937 | cat confdefs.h >>conftest.$ac_ext |
| 14938 | cat >>conftest.$ac_ext <<_ACEOF |
| 14939 | /* end confdefs.h. */ |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 14940 | |
| 14941 | #include <sys/types.h> |
| 14942 | #ifdef HAVE_SYS_PARAM_H |
| 14943 | # include <sys/param.h> |
| 14944 | #endif |
| 14945 | #include <sys/statfs.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14946 | |
| 14947 | int |
| 14948 | main () |
| 14949 | { |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 14950 | |
| 14951 | struct statfs stfs; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14952 | |
| 14953 | ; |
| 14954 | return 0; |
| 14955 | } |
| 14956 | _ACEOF |
| 14957 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14958 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14959 | (eval $ac_compile) 2>&5 |
| 14960 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14962 | (exit $ac_status); } && |
| 14963 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14964 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14965 | (eval $ac_try) 2>&5 |
| 14966 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14968 | (exit $ac_status); }; }; then |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 14969 | wine_cv_sys_statfs_has_statfs=yes |
| 14970 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14971 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14972 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14973 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14974 | wine_cv_sys_statfs_has_statfs=no |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 14975 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14976 | fi |
| 14977 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14978 | |
| 14979 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14980 | echo "$as_me:$LINENO: result: $wine_cv_sys_statfs_has_statfs" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14981 | echo "${ECHO_T}$wine_cv_sys_statfs_has_statfs" >&6 |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 14982 | if test "$wine_cv_sys_statfs_has_statfs" = "yes" |
| 14983 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14984 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14985 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 14986 | #define STATFS_DEFINED_BY_SYS_STATFS 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14987 | _ACEOF |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 14988 | |
| 14989 | fi |
| 14990 | fi |
| 14991 | |
| 14992 | if test "$ac_cv_header_sys_mount_h" = "yes" |
| 14993 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14994 | echo "$as_me:$LINENO: checking whether sys/mount.h defines statfs" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14995 | echo $ECHO_N "checking whether sys/mount.h defines statfs... $ECHO_C" >&6 |
| 14996 | if test "${wine_cv_sys_mount_has_statfs+set}" = set; then |
| 14997 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 14998 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14999 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15000 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15001 | /* confdefs.h. */ |
| 15002 | _ACEOF |
| 15003 | cat confdefs.h >>conftest.$ac_ext |
| 15004 | cat >>conftest.$ac_ext <<_ACEOF |
| 15005 | /* end confdefs.h. */ |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 15006 | |
| 15007 | #include <sys/types.h> |
| 15008 | #ifdef HAVE_SYS_PARAM_H |
| 15009 | # include <sys/param.h> |
| 15010 | #endif |
| 15011 | #include <sys/mount.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15012 | |
| 15013 | int |
| 15014 | main () |
| 15015 | { |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 15016 | |
| 15017 | struct statfs stfs; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15018 | |
| 15019 | ; |
| 15020 | return 0; |
| 15021 | } |
| 15022 | _ACEOF |
| 15023 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15024 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15025 | (eval $ac_compile) 2>&5 |
| 15026 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15028 | (exit $ac_status); } && |
| 15029 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15031 | (eval $ac_try) 2>&5 |
| 15032 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15034 | (exit $ac_status); }; }; then |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 15035 | wine_cv_sys_mount_has_statfs=yes |
| 15036 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15037 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15038 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15039 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15040 | wine_cv_sys_mount_has_statfs=no |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 15041 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15042 | fi |
| 15043 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15044 | |
| 15045 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15046 | echo "$as_me:$LINENO: result: $wine_cv_sys_mount_has_statfs" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15047 | echo "${ECHO_T}$wine_cv_sys_mount_has_statfs" >&6 |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 15048 | if test "$wine_cv_sys_mount_has_statfs" = "yes" |
| 15049 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15050 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15051 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 15052 | #define STATFS_DEFINED_BY_SYS_MOUNT 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15053 | _ACEOF |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 15054 | |
| 15055 | fi |
| 15056 | fi |
| 15057 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15058 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 15059 | echo "$as_me:$LINENO: checking for struct statfs.f_bfree" >&5 |
| 15060 | echo $ECHO_N "checking for struct statfs.f_bfree... $ECHO_C" >&6 |
| 15061 | if test "${ac_cv_member_struct_statfs_f_bfree+set}" = set; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15062 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 15063 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15064 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15065 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15066 | /* confdefs.h. */ |
| 15067 | _ACEOF |
| 15068 | cat confdefs.h >>conftest.$ac_ext |
| 15069 | cat >>conftest.$ac_ext <<_ACEOF |
| 15070 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15071 | #include <sys/types.h> |
| 15072 | #ifdef HAVE_SYS_PARAM_H |
| 15073 | # include <sys/param.h> |
| 15074 | #endif |
| 15075 | #ifdef STATFS_DEFINED_BY_SYS_MOUNT |
| 15076 | # include <sys/mount.h> |
| 15077 | #else |
| 15078 | # ifdef STATFS_DEFINED_BY_SYS_VFS |
| 15079 | # include <sys/vfs.h> |
| 15080 | # else |
| 15081 | # ifdef STATFS_DEFINED_BY_SYS_STATFS |
| 15082 | # include <sys/statfs.h> |
| 15083 | # endif |
| 15084 | # endif |
| 15085 | #endif |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 15086 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15087 | int |
| 15088 | main () |
| 15089 | { |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 15090 | static struct statfs ac_aggr; |
| 15091 | if (ac_aggr.f_bfree) |
| 15092 | return 0; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15093 | ; |
| 15094 | return 0; |
| 15095 | } |
| 15096 | _ACEOF |
| 15097 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15098 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15099 | (eval $ac_compile) 2>&5 |
| 15100 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15102 | (exit $ac_status); } && |
| 15103 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15104 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15105 | (eval $ac_try) 2>&5 |
| 15106 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15108 | (exit $ac_status); }; }; then |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 15109 | ac_cv_member_struct_statfs_f_bfree=yes |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 15110 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15111 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15112 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15113 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 15114 | cat >conftest.$ac_ext <<_ACEOF |
| 15115 | #line $LINENO "configure" |
| 15116 | /* confdefs.h. */ |
| 15117 | _ACEOF |
| 15118 | cat confdefs.h >>conftest.$ac_ext |
| 15119 | cat >>conftest.$ac_ext <<_ACEOF |
| 15120 | /* end confdefs.h. */ |
| 15121 | #include <sys/types.h> |
| 15122 | #ifdef HAVE_SYS_PARAM_H |
| 15123 | # include <sys/param.h> |
| 15124 | #endif |
| 15125 | #ifdef STATFS_DEFINED_BY_SYS_MOUNT |
| 15126 | # include <sys/mount.h> |
| 15127 | #else |
| 15128 | # ifdef STATFS_DEFINED_BY_SYS_VFS |
| 15129 | # include <sys/vfs.h> |
| 15130 | # else |
| 15131 | # ifdef STATFS_DEFINED_BY_SYS_STATFS |
| 15132 | # include <sys/statfs.h> |
| 15133 | # endif |
| 15134 | # endif |
| 15135 | #endif |
| 15136 | |
| 15137 | int |
| 15138 | main () |
| 15139 | { |
| 15140 | static struct statfs ac_aggr; |
| 15141 | if (sizeof ac_aggr.f_bfree) |
| 15142 | return 0; |
| 15143 | ; |
| 15144 | return 0; |
| 15145 | } |
| 15146 | _ACEOF |
| 15147 | rm -f conftest.$ac_objext |
| 15148 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15149 | (eval $ac_compile) 2>&5 |
| 15150 | ac_status=$? |
| 15151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15152 | (exit $ac_status); } && |
| 15153 | { ac_try='test -s conftest.$ac_objext' |
| 15154 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15155 | (eval $ac_try) 2>&5 |
| 15156 | ac_status=$? |
| 15157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15158 | (exit $ac_status); }; }; then |
| 15159 | ac_cv_member_struct_statfs_f_bfree=yes |
| 15160 | else |
| 15161 | echo "$as_me: failed program was:" >&5 |
| 15162 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15163 | |
| 15164 | ac_cv_member_struct_statfs_f_bfree=no |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 15165 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15166 | rm -f conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 15167 | fi |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 15168 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15169 | fi |
| 15170 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bfree" >&5 |
| 15171 | echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bfree" >&6 |
| 15172 | if test $ac_cv_member_struct_statfs_f_bfree = yes; then |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 15173 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 15174 | cat >>confdefs.h <<_ACEOF |
| 15175 | #define HAVE_STRUCT_STATFS_F_BFREE 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15176 | _ACEOF |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 15177 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 15178 | |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 15179 | fi |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 15180 | echo "$as_me:$LINENO: checking for struct statfs.f_bavail" >&5 |
| 15181 | echo $ECHO_N "checking for struct statfs.f_bavail... $ECHO_C" >&6 |
| 15182 | if test "${ac_cv_member_struct_statfs_f_bavail+set}" = set; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15183 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 15184 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15185 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15186 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15187 | /* confdefs.h. */ |
| 15188 | _ACEOF |
| 15189 | cat confdefs.h >>conftest.$ac_ext |
| 15190 | cat >>conftest.$ac_ext <<_ACEOF |
| 15191 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15192 | #include <sys/types.h> |
| 15193 | #ifdef HAVE_SYS_PARAM_H |
| 15194 | # include <sys/param.h> |
| 15195 | #endif |
| 15196 | #ifdef STATFS_DEFINED_BY_SYS_MOUNT |
| 15197 | # include <sys/mount.h> |
| 15198 | #else |
| 15199 | # ifdef STATFS_DEFINED_BY_SYS_VFS |
| 15200 | # include <sys/vfs.h> |
| 15201 | # else |
| 15202 | # ifdef STATFS_DEFINED_BY_SYS_STATFS |
| 15203 | # include <sys/statfs.h> |
| 15204 | # endif |
| 15205 | # endif |
| 15206 | #endif |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 15207 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15208 | int |
| 15209 | main () |
| 15210 | { |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 15211 | static struct statfs ac_aggr; |
| 15212 | if (ac_aggr.f_bavail) |
| 15213 | return 0; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15214 | ; |
| 15215 | return 0; |
| 15216 | } |
| 15217 | _ACEOF |
| 15218 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15219 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15220 | (eval $ac_compile) 2>&5 |
| 15221 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15223 | (exit $ac_status); } && |
| 15224 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15225 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15226 | (eval $ac_try) 2>&5 |
| 15227 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15229 | (exit $ac_status); }; }; then |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 15230 | ac_cv_member_struct_statfs_f_bavail=yes |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 15231 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15232 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15233 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15234 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 15235 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15236 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15237 | /* confdefs.h. */ |
| 15238 | _ACEOF |
| 15239 | cat confdefs.h >>conftest.$ac_ext |
| 15240 | cat >>conftest.$ac_ext <<_ACEOF |
| 15241 | /* end confdefs.h. */ |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 15242 | #include <sys/types.h> |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 15243 | #ifdef HAVE_SYS_PARAM_H |
| 15244 | # include <sys/param.h> |
Patrik Stridvall | 63ae7fe | 2002-11-08 19:34:52 +0000 | [diff] [blame] | 15245 | #endif |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 15246 | #ifdef STATFS_DEFINED_BY_SYS_MOUNT |
| 15247 | # include <sys/mount.h> |
| 15248 | #else |
| 15249 | # ifdef STATFS_DEFINED_BY_SYS_VFS |
| 15250 | # include <sys/vfs.h> |
| 15251 | # else |
| 15252 | # ifdef STATFS_DEFINED_BY_SYS_STATFS |
| 15253 | # include <sys/statfs.h> |
| 15254 | # endif |
| 15255 | # endif |
| 15256 | #endif |
| 15257 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15258 | int |
| 15259 | main () |
| 15260 | { |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 15261 | static struct statfs ac_aggr; |
| 15262 | if (sizeof ac_aggr.f_bavail) |
| 15263 | return 0; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15264 | ; |
| 15265 | return 0; |
| 15266 | } |
| 15267 | _ACEOF |
| 15268 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15269 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15270 | (eval $ac_compile) 2>&5 |
| 15271 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15273 | (exit $ac_status); } && |
| 15274 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15276 | (eval $ac_try) 2>&5 |
| 15277 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15279 | (exit $ac_status); }; }; then |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 15280 | ac_cv_member_struct_statfs_f_bavail=yes |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 15281 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15282 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15283 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15284 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 15285 | ac_cv_member_struct_statfs_f_bavail=no |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 15286 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15287 | rm -f conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 15288 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15289 | rm -f conftest.$ac_objext conftest.$ac_ext |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 15290 | fi |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 15291 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bavail" >&5 |
| 15292 | echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bavail" >&6 |
| 15293 | if test $ac_cv_member_struct_statfs_f_bavail = yes; then |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 15294 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 15295 | cat >>confdefs.h <<_ACEOF |
| 15296 | #define HAVE_STRUCT_STATFS_F_BAVAIL 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15297 | _ACEOF |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 15298 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 15299 | |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 15300 | fi |
| 15301 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15302 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 15303 | echo "$as_me:$LINENO: checking for struct msghdr.msg_accrights" >&5 |
| 15304 | echo $ECHO_N "checking for struct msghdr.msg_accrights... $ECHO_C" >&6 |
| 15305 | if test "${ac_cv_member_struct_msghdr_msg_accrights+set}" = set; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15306 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 15307 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15308 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15309 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15310 | /* confdefs.h. */ |
| 15311 | _ACEOF |
| 15312 | cat confdefs.h >>conftest.$ac_ext |
| 15313 | cat >>conftest.$ac_ext <<_ACEOF |
| 15314 | /* end confdefs.h. */ |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 15315 | #include <sys/types.h> |
Patrik Stridvall | 63ae7fe | 2002-11-08 19:34:52 +0000 | [diff] [blame] | 15316 | #ifdef HAVE_SYS_SOCKET_H |
| 15317 | # include <sys/socket.h> |
| 15318 | #endif |
| 15319 | #ifdef HAVE_SYS_UN_H |
| 15320 | # include <sys/un.h> |
| 15321 | #endif |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 15322 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15323 | int |
| 15324 | main () |
| 15325 | { |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 15326 | static struct msghdr ac_aggr; |
| 15327 | if (ac_aggr.msg_accrights) |
| 15328 | return 0; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15329 | ; |
| 15330 | return 0; |
| 15331 | } |
| 15332 | _ACEOF |
| 15333 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15334 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15335 | (eval $ac_compile) 2>&5 |
| 15336 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15338 | (exit $ac_status); } && |
| 15339 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15340 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15341 | (eval $ac_try) 2>&5 |
| 15342 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15344 | (exit $ac_status); }; }; then |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 15345 | ac_cv_member_struct_msghdr_msg_accrights=yes |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 15346 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15347 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15348 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15349 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 15350 | cat >conftest.$ac_ext <<_ACEOF |
| 15351 | #line $LINENO "configure" |
| 15352 | /* confdefs.h. */ |
| 15353 | _ACEOF |
| 15354 | cat confdefs.h >>conftest.$ac_ext |
| 15355 | cat >>conftest.$ac_ext <<_ACEOF |
| 15356 | /* end confdefs.h. */ |
| 15357 | #include <sys/types.h> |
| 15358 | #ifdef HAVE_SYS_SOCKET_H |
| 15359 | # include <sys/socket.h> |
| 15360 | #endif |
| 15361 | #ifdef HAVE_SYS_UN_H |
| 15362 | # include <sys/un.h> |
| 15363 | #endif |
| 15364 | |
| 15365 | int |
| 15366 | main () |
| 15367 | { |
| 15368 | static struct msghdr ac_aggr; |
| 15369 | if (sizeof ac_aggr.msg_accrights) |
| 15370 | return 0; |
| 15371 | ; |
| 15372 | return 0; |
| 15373 | } |
| 15374 | _ACEOF |
| 15375 | rm -f conftest.$ac_objext |
| 15376 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15377 | (eval $ac_compile) 2>&5 |
| 15378 | ac_status=$? |
| 15379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15380 | (exit $ac_status); } && |
| 15381 | { ac_try='test -s conftest.$ac_objext' |
| 15382 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15383 | (eval $ac_try) 2>&5 |
| 15384 | ac_status=$? |
| 15385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15386 | (exit $ac_status); }; }; then |
| 15387 | ac_cv_member_struct_msghdr_msg_accrights=yes |
| 15388 | else |
| 15389 | echo "$as_me: failed program was:" >&5 |
| 15390 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15391 | |
| 15392 | ac_cv_member_struct_msghdr_msg_accrights=no |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 15393 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15394 | rm -f conftest.$ac_objext conftest.$ac_ext |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 15395 | fi |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 15396 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15397 | fi |
| 15398 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrights" >&5 |
| 15399 | echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrights" >&6 |
| 15400 | if test $ac_cv_member_struct_msghdr_msg_accrights = yes; then |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 15401 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 15402 | cat >>confdefs.h <<_ACEOF |
| 15403 | #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15404 | _ACEOF |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 15405 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 15406 | |
| 15407 | fi |
| 15408 | echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5 |
| 15409 | echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6 |
| 15410 | if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then |
| 15411 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15412 | else |
| 15413 | cat >conftest.$ac_ext <<_ACEOF |
| 15414 | #line $LINENO "configure" |
| 15415 | /* confdefs.h. */ |
| 15416 | _ACEOF |
| 15417 | cat confdefs.h >>conftest.$ac_ext |
| 15418 | cat >>conftest.$ac_ext <<_ACEOF |
| 15419 | /* end confdefs.h. */ |
| 15420 | #include <sys/types.h> |
| 15421 | #ifdef HAVE_SYS_SOCKET_H |
| 15422 | # include <sys/socket.h> |
| 15423 | #endif |
| 15424 | #ifdef HAVE_SYS_UN_H |
| 15425 | # include <sys/un.h> |
| 15426 | #endif |
| 15427 | |
| 15428 | int |
| 15429 | main () |
| 15430 | { |
| 15431 | static struct sockaddr ac_aggr; |
| 15432 | if (ac_aggr.sa_len) |
| 15433 | return 0; |
| 15434 | ; |
| 15435 | return 0; |
| 15436 | } |
| 15437 | _ACEOF |
| 15438 | rm -f conftest.$ac_objext |
| 15439 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15440 | (eval $ac_compile) 2>&5 |
| 15441 | ac_status=$? |
| 15442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15443 | (exit $ac_status); } && |
| 15444 | { ac_try='test -s conftest.$ac_objext' |
| 15445 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15446 | (eval $ac_try) 2>&5 |
| 15447 | ac_status=$? |
| 15448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15449 | (exit $ac_status); }; }; then |
| 15450 | ac_cv_member_struct_sockaddr_sa_len=yes |
| 15451 | else |
| 15452 | echo "$as_me: failed program was:" >&5 |
| 15453 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15454 | |
| 15455 | cat >conftest.$ac_ext <<_ACEOF |
| 15456 | #line $LINENO "configure" |
| 15457 | /* confdefs.h. */ |
| 15458 | _ACEOF |
| 15459 | cat confdefs.h >>conftest.$ac_ext |
| 15460 | cat >>conftest.$ac_ext <<_ACEOF |
| 15461 | /* end confdefs.h. */ |
| 15462 | #include <sys/types.h> |
| 15463 | #ifdef HAVE_SYS_SOCKET_H |
| 15464 | # include <sys/socket.h> |
| 15465 | #endif |
| 15466 | #ifdef HAVE_SYS_UN_H |
| 15467 | # include <sys/un.h> |
| 15468 | #endif |
| 15469 | |
| 15470 | int |
| 15471 | main () |
| 15472 | { |
| 15473 | static struct sockaddr ac_aggr; |
| 15474 | if (sizeof ac_aggr.sa_len) |
| 15475 | return 0; |
| 15476 | ; |
| 15477 | return 0; |
| 15478 | } |
| 15479 | _ACEOF |
| 15480 | rm -f conftest.$ac_objext |
| 15481 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15482 | (eval $ac_compile) 2>&5 |
| 15483 | ac_status=$? |
| 15484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15485 | (exit $ac_status); } && |
| 15486 | { ac_try='test -s conftest.$ac_objext' |
| 15487 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15488 | (eval $ac_try) 2>&5 |
| 15489 | ac_status=$? |
| 15490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15491 | (exit $ac_status); }; }; then |
| 15492 | ac_cv_member_struct_sockaddr_sa_len=yes |
| 15493 | else |
| 15494 | echo "$as_me: failed program was:" >&5 |
| 15495 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15496 | |
| 15497 | ac_cv_member_struct_sockaddr_sa_len=no |
| 15498 | fi |
| 15499 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15500 | fi |
| 15501 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15502 | fi |
| 15503 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5 |
| 15504 | echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6 |
| 15505 | if test $ac_cv_member_struct_sockaddr_sa_len = yes; then |
| 15506 | |
| 15507 | cat >>confdefs.h <<_ACEOF |
| 15508 | #define HAVE_STRUCT_SOCKADDR_SA_LEN 1 |
| 15509 | _ACEOF |
| 15510 | |
| 15511 | |
| 15512 | fi |
| 15513 | echo "$as_me:$LINENO: checking for struct sockaddr_un.sun_len" >&5 |
| 15514 | echo $ECHO_N "checking for struct sockaddr_un.sun_len... $ECHO_C" >&6 |
| 15515 | if test "${ac_cv_member_struct_sockaddr_un_sun_len+set}" = set; then |
| 15516 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15517 | else |
| 15518 | cat >conftest.$ac_ext <<_ACEOF |
| 15519 | #line $LINENO "configure" |
| 15520 | /* confdefs.h. */ |
| 15521 | _ACEOF |
| 15522 | cat confdefs.h >>conftest.$ac_ext |
| 15523 | cat >>conftest.$ac_ext <<_ACEOF |
| 15524 | /* end confdefs.h. */ |
| 15525 | #include <sys/types.h> |
| 15526 | #ifdef HAVE_SYS_SOCKET_H |
| 15527 | # include <sys/socket.h> |
| 15528 | #endif |
| 15529 | #ifdef HAVE_SYS_UN_H |
| 15530 | # include <sys/un.h> |
| 15531 | #endif |
| 15532 | |
| 15533 | int |
| 15534 | main () |
| 15535 | { |
| 15536 | static struct sockaddr_un ac_aggr; |
| 15537 | if (ac_aggr.sun_len) |
| 15538 | return 0; |
| 15539 | ; |
| 15540 | return 0; |
| 15541 | } |
| 15542 | _ACEOF |
| 15543 | rm -f conftest.$ac_objext |
| 15544 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15545 | (eval $ac_compile) 2>&5 |
| 15546 | ac_status=$? |
| 15547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15548 | (exit $ac_status); } && |
| 15549 | { ac_try='test -s conftest.$ac_objext' |
| 15550 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15551 | (eval $ac_try) 2>&5 |
| 15552 | ac_status=$? |
| 15553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15554 | (exit $ac_status); }; }; then |
| 15555 | ac_cv_member_struct_sockaddr_un_sun_len=yes |
| 15556 | else |
| 15557 | echo "$as_me: failed program was:" >&5 |
| 15558 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15559 | |
| 15560 | cat >conftest.$ac_ext <<_ACEOF |
| 15561 | #line $LINENO "configure" |
| 15562 | /* confdefs.h. */ |
| 15563 | _ACEOF |
| 15564 | cat confdefs.h >>conftest.$ac_ext |
| 15565 | cat >>conftest.$ac_ext <<_ACEOF |
| 15566 | /* end confdefs.h. */ |
| 15567 | #include <sys/types.h> |
| 15568 | #ifdef HAVE_SYS_SOCKET_H |
| 15569 | # include <sys/socket.h> |
| 15570 | #endif |
| 15571 | #ifdef HAVE_SYS_UN_H |
| 15572 | # include <sys/un.h> |
| 15573 | #endif |
| 15574 | |
| 15575 | int |
| 15576 | main () |
| 15577 | { |
| 15578 | static struct sockaddr_un ac_aggr; |
| 15579 | if (sizeof ac_aggr.sun_len) |
| 15580 | return 0; |
| 15581 | ; |
| 15582 | return 0; |
| 15583 | } |
| 15584 | _ACEOF |
| 15585 | rm -f conftest.$ac_objext |
| 15586 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15587 | (eval $ac_compile) 2>&5 |
| 15588 | ac_status=$? |
| 15589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15590 | (exit $ac_status); } && |
| 15591 | { ac_try='test -s conftest.$ac_objext' |
| 15592 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15593 | (eval $ac_try) 2>&5 |
| 15594 | ac_status=$? |
| 15595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15596 | (exit $ac_status); }; }; then |
| 15597 | ac_cv_member_struct_sockaddr_un_sun_len=yes |
| 15598 | else |
| 15599 | echo "$as_me: failed program was:" >&5 |
| 15600 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15601 | |
| 15602 | ac_cv_member_struct_sockaddr_un_sun_len=no |
| 15603 | fi |
| 15604 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15605 | fi |
| 15606 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15607 | fi |
| 15608 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_un_sun_len" >&5 |
| 15609 | echo "${ECHO_T}$ac_cv_member_struct_sockaddr_un_sun_len" >&6 |
| 15610 | if test $ac_cv_member_struct_sockaddr_un_sun_len = yes; then |
| 15611 | |
| 15612 | cat >>confdefs.h <<_ACEOF |
| 15613 | #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1 |
| 15614 | _ACEOF |
| 15615 | |
| 15616 | |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 15617 | fi |
| 15618 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15619 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 15620 | echo "$as_me:$LINENO: checking for siginfo_t.si_fd" >&5 |
| 15621 | echo $ECHO_N "checking for siginfo_t.si_fd... $ECHO_C" >&6 |
| 15622 | if test "${ac_cv_member_siginfo_t_si_fd+set}" = set; then |
| 15623 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15624 | else |
| 15625 | cat >conftest.$ac_ext <<_ACEOF |
| 15626 | #line $LINENO "configure" |
| 15627 | /* confdefs.h. */ |
| 15628 | _ACEOF |
| 15629 | cat confdefs.h >>conftest.$ac_ext |
| 15630 | cat >>conftest.$ac_ext <<_ACEOF |
| 15631 | /* end confdefs.h. */ |
| 15632 | #include <signal.h> |
| 15633 | |
| 15634 | int |
| 15635 | main () |
| 15636 | { |
| 15637 | static siginfo_t ac_aggr; |
| 15638 | if (ac_aggr.si_fd) |
| 15639 | return 0; |
| 15640 | ; |
| 15641 | return 0; |
| 15642 | } |
| 15643 | _ACEOF |
| 15644 | rm -f conftest.$ac_objext |
| 15645 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15646 | (eval $ac_compile) 2>&5 |
| 15647 | ac_status=$? |
| 15648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15649 | (exit $ac_status); } && |
| 15650 | { ac_try='test -s conftest.$ac_objext' |
| 15651 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15652 | (eval $ac_try) 2>&5 |
| 15653 | ac_status=$? |
| 15654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15655 | (exit $ac_status); }; }; then |
| 15656 | ac_cv_member_siginfo_t_si_fd=yes |
| 15657 | else |
| 15658 | echo "$as_me: failed program was:" >&5 |
| 15659 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15660 | |
| 15661 | cat >conftest.$ac_ext <<_ACEOF |
| 15662 | #line $LINENO "configure" |
| 15663 | /* confdefs.h. */ |
| 15664 | _ACEOF |
| 15665 | cat confdefs.h >>conftest.$ac_ext |
| 15666 | cat >>conftest.$ac_ext <<_ACEOF |
| 15667 | /* end confdefs.h. */ |
| 15668 | #include <signal.h> |
| 15669 | |
| 15670 | int |
| 15671 | main () |
| 15672 | { |
| 15673 | static siginfo_t ac_aggr; |
| 15674 | if (sizeof ac_aggr.si_fd) |
| 15675 | return 0; |
| 15676 | ; |
| 15677 | return 0; |
| 15678 | } |
| 15679 | _ACEOF |
| 15680 | rm -f conftest.$ac_objext |
| 15681 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15682 | (eval $ac_compile) 2>&5 |
| 15683 | ac_status=$? |
| 15684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15685 | (exit $ac_status); } && |
| 15686 | { ac_try='test -s conftest.$ac_objext' |
| 15687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15688 | (eval $ac_try) 2>&5 |
| 15689 | ac_status=$? |
| 15690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15691 | (exit $ac_status); }; }; then |
| 15692 | ac_cv_member_siginfo_t_si_fd=yes |
| 15693 | else |
| 15694 | echo "$as_me: failed program was:" >&5 |
| 15695 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15696 | |
| 15697 | ac_cv_member_siginfo_t_si_fd=no |
| 15698 | fi |
| 15699 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15700 | fi |
| 15701 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15702 | fi |
| 15703 | echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_fd" >&5 |
| 15704 | echo "${ECHO_T}$ac_cv_member_siginfo_t_si_fd" >&6 |
| 15705 | if test $ac_cv_member_siginfo_t_si_fd = yes; then |
| 15706 | |
| 15707 | cat >>confdefs.h <<_ACEOF |
| 15708 | #define HAVE_SIGINFO_T_SI_FD 1 |
| 15709 | _ACEOF |
| 15710 | |
| 15711 | |
| 15712 | fi |
| 15713 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15714 | |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 15715 | echo "$as_me:$LINENO: checking for struct option.name" >&5 |
| 15716 | echo $ECHO_N "checking for struct option.name... $ECHO_C" >&6 |
| 15717 | if test "${ac_cv_member_struct_option_name+set}" = set; then |
| 15718 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15719 | else |
| 15720 | cat >conftest.$ac_ext <<_ACEOF |
| 15721 | #line $LINENO "configure" |
| 15722 | /* confdefs.h. */ |
| 15723 | _ACEOF |
| 15724 | cat confdefs.h >>conftest.$ac_ext |
| 15725 | cat >>conftest.$ac_ext <<_ACEOF |
| 15726 | /* end confdefs.h. */ |
| 15727 | #ifdef HAVE_GETOPT_H |
| 15728 | #include <getopt.h> |
| 15729 | #endif |
| 15730 | |
| 15731 | int |
| 15732 | main () |
| 15733 | { |
| 15734 | static struct option ac_aggr; |
| 15735 | if (ac_aggr.name) |
| 15736 | return 0; |
| 15737 | ; |
| 15738 | return 0; |
| 15739 | } |
| 15740 | _ACEOF |
| 15741 | rm -f conftest.$ac_objext |
| 15742 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15743 | (eval $ac_compile) 2>&5 |
| 15744 | ac_status=$? |
| 15745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15746 | (exit $ac_status); } && |
| 15747 | { ac_try='test -s conftest.$ac_objext' |
| 15748 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15749 | (eval $ac_try) 2>&5 |
| 15750 | ac_status=$? |
| 15751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15752 | (exit $ac_status); }; }; then |
| 15753 | ac_cv_member_struct_option_name=yes |
| 15754 | else |
| 15755 | echo "$as_me: failed program was:" >&5 |
| 15756 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15757 | |
| 15758 | cat >conftest.$ac_ext <<_ACEOF |
| 15759 | #line $LINENO "configure" |
| 15760 | /* confdefs.h. */ |
| 15761 | _ACEOF |
| 15762 | cat confdefs.h >>conftest.$ac_ext |
| 15763 | cat >>conftest.$ac_ext <<_ACEOF |
| 15764 | /* end confdefs.h. */ |
| 15765 | #ifdef HAVE_GETOPT_H |
| 15766 | #include <getopt.h> |
| 15767 | #endif |
| 15768 | |
| 15769 | int |
| 15770 | main () |
| 15771 | { |
| 15772 | static struct option ac_aggr; |
| 15773 | if (sizeof ac_aggr.name) |
| 15774 | return 0; |
| 15775 | ; |
| 15776 | return 0; |
| 15777 | } |
| 15778 | _ACEOF |
| 15779 | rm -f conftest.$ac_objext |
| 15780 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15781 | (eval $ac_compile) 2>&5 |
| 15782 | ac_status=$? |
| 15783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15784 | (exit $ac_status); } && |
| 15785 | { ac_try='test -s conftest.$ac_objext' |
| 15786 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15787 | (eval $ac_try) 2>&5 |
| 15788 | ac_status=$? |
| 15789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15790 | (exit $ac_status); }; }; then |
| 15791 | ac_cv_member_struct_option_name=yes |
| 15792 | else |
| 15793 | echo "$as_me: failed program was:" >&5 |
| 15794 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15795 | |
| 15796 | ac_cv_member_struct_option_name=no |
| 15797 | fi |
| 15798 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15799 | fi |
| 15800 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15801 | fi |
| 15802 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_option_name" >&5 |
| 15803 | echo "${ECHO_T}$ac_cv_member_struct_option_name" >&6 |
| 15804 | if test $ac_cv_member_struct_option_name = yes; then |
| 15805 | |
| 15806 | cat >>confdefs.h <<_ACEOF |
| 15807 | #define HAVE_STRUCT_OPTION_NAME 1 |
| 15808 | _ACEOF |
| 15809 | |
| 15810 | |
| 15811 | fi |
| 15812 | |
| 15813 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15814 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 15815 | case $host_cpu in |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 15816 | *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] | 15817 | 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] | 15818 | if test "${ac_cv_cpp_def___i386__+set}" = set; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15819 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 15820 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15821 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15822 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15823 | /* confdefs.h. */ |
| 15824 | _ACEOF |
| 15825 | cat confdefs.h >>conftest.$ac_ext |
| 15826 | cat >>conftest.$ac_ext <<_ACEOF |
| 15827 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15828 | #ifndef __i386__ |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 15829 | yes |
| 15830 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15831 | _ACEOF |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 15832 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15833 | $EGREP "yes" >/dev/null 2>&1; then |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 15834 | ac_cv_cpp_def___i386__=yes |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 15835 | else |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 15836 | ac_cv_cpp_def___i386__=no |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 15837 | fi |
| 15838 | rm -f conftest* |
| 15839 | |
| 15840 | fi |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 15841 | echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5 |
| 15842 | echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6 |
| 15843 | if test $ac_cv_cpp_def___i386__ = yes; then |
| 15844 | CFLAGS="$CFLAGS -D__i386__" |
| 15845 | LINTFLAGS="$LINTFLAGS -D__i386__" |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 15846 | fi |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 15847 | ;; |
| 15848 | *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] | 15849 | 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] | 15850 | if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then |
Steven Edwards | 69b6786 | 2002-12-10 22:48:48 +0000 | [diff] [blame] | 15851 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15852 | else |
| 15853 | cat >conftest.$ac_ext <<_ACEOF |
| 15854 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15855 | /* confdefs.h. */ |
| 15856 | _ACEOF |
| 15857 | cat confdefs.h >>conftest.$ac_ext |
| 15858 | cat >>conftest.$ac_ext <<_ACEOF |
| 15859 | /* end confdefs.h. */ |
Steven Edwards | 69b6786 | 2002-12-10 22:48:48 +0000 | [diff] [blame] | 15860 | #ifndef __ALPHA__ |
| 15861 | yes |
| 15862 | #endif |
| 15863 | _ACEOF |
| 15864 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 15865 | $EGREP "yes" >/dev/null 2>&1; then |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 15866 | ac_cv_cpp_def___ALPHA__=yes |
Steven Edwards | 69b6786 | 2002-12-10 22:48:48 +0000 | [diff] [blame] | 15867 | else |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 15868 | ac_cv_cpp_def___ALPHA__=no |
Steven Edwards | 69b6786 | 2002-12-10 22:48:48 +0000 | [diff] [blame] | 15869 | fi |
| 15870 | rm -f conftest* |
| 15871 | |
| 15872 | fi |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 15873 | echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5 |
| 15874 | echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6 |
| 15875 | if test $ac_cv_cpp_def___ALPHA__ = yes; then |
| 15876 | CFLAGS="$CFLAGS -D__ALPHA__" |
| 15877 | LINTFLAGS="$LINTFLAGS -D__ALPHA__" |
Steven Edwards | 69b6786 | 2002-12-10 22:48:48 +0000 | [diff] [blame] | 15878 | fi |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 15879 | ;; |
| 15880 | *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] | 15881 | 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] | 15882 | if test "${ac_cv_cpp_def___sparc__+set}" = set; then |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 15883 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15884 | else |
| 15885 | cat >conftest.$ac_ext <<_ACEOF |
| 15886 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15887 | /* confdefs.h. */ |
| 15888 | _ACEOF |
| 15889 | cat confdefs.h >>conftest.$ac_ext |
| 15890 | cat >>conftest.$ac_ext <<_ACEOF |
| 15891 | /* end confdefs.h. */ |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 15892 | #ifndef __sparc__ |
| 15893 | yes |
| 15894 | #endif |
| 15895 | _ACEOF |
| 15896 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15897 | $EGREP "yes" >/dev/null 2>&1; then |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 15898 | ac_cv_cpp_def___sparc__=yes |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 15899 | else |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 15900 | ac_cv_cpp_def___sparc__=no |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 15901 | fi |
| 15902 | rm -f conftest* |
| 15903 | |
| 15904 | fi |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 15905 | echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5 |
| 15906 | echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6 |
| 15907 | if test $ac_cv_cpp_def___sparc__ = yes; then |
| 15908 | CFLAGS="$CFLAGS -D__sparc__" |
| 15909 | LINTFLAGS="$LINTFLAGS -D__sparc__" |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 15910 | fi |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 15911 | ;; |
| 15912 | esac |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 15913 | |
| 15914 | case $host_vendor in |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 15915 | *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] | 15916 | 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] | 15917 | if test "${ac_cv_cpp_def___sun__+set}" = set; then |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 15918 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15919 | else |
| 15920 | cat >conftest.$ac_ext <<_ACEOF |
| 15921 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15922 | /* confdefs.h. */ |
| 15923 | _ACEOF |
| 15924 | cat confdefs.h >>conftest.$ac_ext |
| 15925 | cat >>conftest.$ac_ext <<_ACEOF |
| 15926 | /* end confdefs.h. */ |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 15927 | #ifndef __sun__ |
| 15928 | yes |
| 15929 | #endif |
| 15930 | _ACEOF |
| 15931 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15932 | $EGREP "yes" >/dev/null 2>&1; then |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 15933 | ac_cv_cpp_def___sun__=yes |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 15934 | else |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 15935 | ac_cv_cpp_def___sun__=no |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 15936 | fi |
| 15937 | rm -f conftest* |
| 15938 | |
| 15939 | fi |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 15940 | echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5 |
| 15941 | echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6 |
| 15942 | if test $ac_cv_cpp_def___sun__ = yes; then |
| 15943 | CFLAGS="$CFLAGS -D__sun__" |
| 15944 | LINTFLAGS="$LINTFLAGS -D__sun__" |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 15945 | fi |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 15946 | ;; |
| 15947 | esac |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 15948 | |
| 15949 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15950 | |
| 15951 | |
| 15952 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15953 | ac_config_commands="$ac_config_commands controls" |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 15954 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15955 | ac_config_commands="$ac_config_commands dlls/ddraw/d3ddevice" |
Marcus Meissner | a7f5cb5 | 1999-04-16 08:47:41 +0000 | [diff] [blame] | 15956 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15957 | ac_config_commands="$ac_config_commands dlls/ddraw/dclipper" |
Marcus Meissner | a7f5cb5 | 1999-04-16 08:47:41 +0000 | [diff] [blame] | 15958 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15959 | ac_config_commands="$ac_config_commands dlls/ddraw/ddraw" |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 15960 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15961 | ac_config_commands="$ac_config_commands dlls/ddraw/direct3d" |
François Gouget | 1425941 | 2001-11-06 20:57:11 +0000 | [diff] [blame] | 15962 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15963 | ac_config_commands="$ac_config_commands dlls/ddraw/dpalette" |
François Gouget | 1425941 | 2001-11-06 20:57:11 +0000 | [diff] [blame] | 15964 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15965 | ac_config_commands="$ac_config_commands dlls/ddraw/dsurface" |
Alexandre Julliard | 87a2f8d | 2000-04-09 18:20:25 +0000 | [diff] [blame] | 15966 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15967 | ac_config_commands="$ac_config_commands dlls/dinput/joystick" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15968 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15969 | ac_config_commands="$ac_config_commands dlls/dinput/keyboard" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15970 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15971 | ac_config_commands="$ac_config_commands dlls/dinput/mouse" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15972 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15973 | ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv" |
Alexandre Julliard | 8911856 | 2002-03-27 21:13:40 +0000 | [diff] [blame] | 15974 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15975 | ac_config_commands="$ac_config_commands dlls/gdi/mfdrv" |
Alexandre Julliard | 8911856 | 2002-03-27 21:13:40 +0000 | [diff] [blame] | 15976 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15977 | ac_config_commands="$ac_config_commands dlls/kernel/messages" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15978 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15979 | ac_config_commands="$ac_config_commands dlls/user/dde" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15980 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15981 | ac_config_commands="$ac_config_commands dlls/user/resources" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15982 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15983 | ac_config_commands="$ac_config_commands dlls/wineps/data" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15984 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15985 | ac_config_commands="$ac_config_commands files" |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 15986 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15987 | ac_config_commands="$ac_config_commands graphics" |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 15988 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15989 | ac_config_commands="$ac_config_commands graphics/x11drv" |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 15990 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15991 | ac_config_commands="$ac_config_commands if1632" |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 15992 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15993 | ac_config_commands="$ac_config_commands include/wine" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15994 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15995 | ac_config_commands="$ac_config_commands loader" |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 15996 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15997 | ac_config_commands="$ac_config_commands loader/ne" |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 15998 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15999 | ac_config_commands="$ac_config_commands memory" |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 16000 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16001 | ac_config_commands="$ac_config_commands misc" |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 16002 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16003 | ac_config_commands="$ac_config_commands msdos" |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 16004 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16005 | ac_config_commands="$ac_config_commands objects" |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 16006 | |
Alexandre Julliard | 6692d39 | 2003-03-20 01:30:11 +0000 | [diff] [blame] | 16007 | ac_config_commands="$ac_config_commands ole" |
| 16008 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16009 | ac_config_commands="$ac_config_commands programs/regapi/tests" |
Alexandre Julliard | c72f0b2 | 2002-02-28 21:47:58 +0000 | [diff] [blame] | 16010 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16011 | ac_config_commands="$ac_config_commands programs/regedit/tests" |
Andriy Palamarchuk | f5aad76 | 2002-06-20 23:09:33 +0000 | [diff] [blame] | 16012 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16013 | ac_config_commands="$ac_config_commands relay32" |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 16014 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16015 | ac_config_commands="$ac_config_commands scheduler" |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 16016 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16017 | ac_config_commands="$ac_config_commands win32" |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 16018 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16019 | ac_config_commands="$ac_config_commands windows" |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 16020 | |
Alexandre Julliard | 87a2f8d | 2000-04-09 18:20:25 +0000 | [diff] [blame] | 16021 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 16022 | MAKE_RULES=Make.rules |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16023 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16024 | |
Alexandre Julliard | d0edc5f | 2000-03-04 22:31:27 +0000 | [diff] [blame] | 16025 | MAKE_DLL_RULES=dlls/Makedll.rules |
| 16026 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16027 | |
Alexandre Julliard | edeee89 | 2002-08-09 01:22:40 +0000 | [diff] [blame] | 16028 | MAKE_TEST_RULES=dlls/Maketest.rules |
| 16029 | |
| 16030 | |
Alexandre Julliard | 117436e | 2003-05-01 00:39:29 +0000 | [diff] [blame] | 16031 | MAKE_LIB_RULES=libs/Makelib.rules |
| 16032 | |
| 16033 | |
Alexandre Julliard | 626f425 | 2000-11-10 23:35:20 +0000 | [diff] [blame] | 16034 | MAKE_PROG_RULES=programs/Makeprog.rules |
| 16035 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16036 | |
Uwe Bonnes | 2c4fd42 | 2003-05-15 23:58:48 +0000 | [diff] [blame^] | 16037 | ac_config_files="$ac_config_files Make.rules dlls/Makedll.rules dlls/Maketest.rules libs/Makelib.rules programs/Makeprog.rules Makefile dlls/Makefile dlls/advapi32/Makefile dlls/advapi32/tests/Makefile dlls/avicap32/Makefile dlls/avifil32/Makefile dlls/cabinet/Makefile dlls/comcat/Makefile dlls/comctl32/Makefile dlls/comctl32/tests/Makefile dlls/commdlg/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/ctl3d/Makefile dlls/d3d8/Makefile dlls/d3dim/Makefile dlls/d3dx8/Makefile dlls/dciman32/Makefile dlls/ddraw/Makefile dlls/devenum/Makefile dlls/dinput/Makefile dlls/dinput8/Makefile dlls/dmband/Makefile dlls/dmcompos/Makefile dlls/dmime/Makefile dlls/dmloader/Makefile dlls/dmscript/Makefile dlls/dmstyle/Makefile dlls/dmsynth/Makefile dlls/dmusic/Makefile dlls/dmusic32/Makefile dlls/dplay/Makefile dlls/dplayx/Makefile dlls/dpnhpast/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/iphlpapi/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/msvcrtd/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/winspool/tests/Makefile dlls/wintab32/Makefile dlls/wintrust/Makefile dlls/wow32/Makefile dlls/wsock32/Makefile dlls/x11drv/Makefile documentation/Makefile include/Makefile libs/Makefile libs/port/Makefile libs/unicode/Makefile libs/uuid/Makefile libs/wine/Makefile libs/wpp/Makefile miscemu/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/start/Makefile programs/uninstaller/Makefile programs/view/Makefile programs/wcmd/Makefile programs/wineboot/Makefile programs/winecfg/Makefile programs/wineconsole/Makefile programs/winedbg/Makefile programs/winefile/Makefile programs/winemine/Makefile programs/winepath/Makefile programs/winevdm/Makefile programs/winhelp/Makefile programs/winver/Makefile server/Makefile tools/Makefile tools/widl/Makefile tools/winapi/Makefile tools/winebuild/Makefile tools/winedump/Makefile tools/wmc/Makefile tools/wrc/Makefile" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16038 | |
Alexandre Julliard | 626f425 | 2000-11-10 23:35:20 +0000 | [diff] [blame] | 16039 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16040 | cat >confcache <<\_ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16041 | # This file is a shell script that caches the results of configure |
| 16042 | # tests run on this system so they can be shared between configure |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16043 | # scripts and configure runs, see configure's option --config-cache. |
| 16044 | # It is not useful on other systems. If it contains results you don't |
| 16045 | # want to keep, you may remove or edit it. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16046 | # |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16047 | # config.status only pays attention to the cache file if you give it |
| 16048 | # the --recheck option to rerun configure. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16049 | # |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16050 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16051 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 16052 | # following values. |
| 16053 | |
| 16054 | _ACEOF |
| 16055 | |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 16056 | # The following way of writing the cache mishandles newlines in values, |
| 16057 | # but we know of no workaround that is simple, portable, and efficient. |
| 16058 | # So, don't put newlines in cache variables' values. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16059 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 16060 | # 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] | 16061 | { |
| 16062 | (set) 2>&1 | |
| 16063 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 16064 | *ac_space=\ *) |
| 16065 | # `set' does not quote correctly, so add quotes (double-quote |
| 16066 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 16067 | sed -n \ |
| 16068 | "s/'/'\\\\''/g; |
| 16069 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 16070 | ;; |
| 16071 | *) |
| 16072 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 16073 | sed -n \ |
| 16074 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 16075 | ;; |
| 16076 | esac; |
| 16077 | } | |
| 16078 | sed ' |
| 16079 | t clear |
| 16080 | : clear |
| 16081 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 16082 | t end |
| 16083 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 16084 | : end' >>confcache |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16085 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16086 | if test -w $cache_file; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16087 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 16088 | cat confcache >$cache_file |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16089 | else |
| 16090 | echo "not updating unwritable cache $cache_file" |
| 16091 | fi |
| 16092 | fi |
| 16093 | rm -f confcache |
| 16094 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16095 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 16096 | # Let make expand exec_prefix. |
| 16097 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 16098 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16099 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 16100 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 16101 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 16102 | # (actually we leave an empty line to preserve line numbers). |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16103 | if test "x$srcdir" = x.; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16104 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 16105 | s/:*\$(srcdir):*/:/; |
| 16106 | s/:*\${srcdir}:*/:/; |
| 16107 | s/:*@srcdir@:*/:/; |
| 16108 | s/^\([^=]*=[ ]*\):*/\1/; |
| 16109 | s/:*$//; |
| 16110 | s/^[^=]*=[ ]*$//; |
| 16111 | }' |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16112 | fi |
| 16113 | |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 16114 | DEFS=-DHAVE_CONFIG_H |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16115 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16116 | ac_libobjs= |
| 16117 | ac_ltlibobjs= |
| 16118 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 16119 | # 1. Remove the extension, and $U if already installed. |
| 16120 | ac_i=`echo "$ac_i" | |
| 16121 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
| 16122 | # 2. Add them. |
| 16123 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
| 16124 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
| 16125 | done |
| 16126 | LIBOBJS=$ac_libobjs |
| 16127 | |
| 16128 | LTLIBOBJS=$ac_ltlibobjs |
| 16129 | |
| 16130 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16131 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16132 | : ${CONFIG_STATUS=./config.status} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16133 | ac_clean_files_save=$ac_clean_files |
| 16134 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16135 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16136 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 16137 | cat >$CONFIG_STATUS <<_ACEOF |
| 16138 | #! $SHELL |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16139 | # Generated by $as_me. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16140 | # Run this file to recreate the current configuration. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16141 | # Compiler output produced by configure, useful for debugging |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16142 | # configure, is in config.log if it exists. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16143 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16144 | debug=false |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16145 | ac_cs_recheck=false |
| 16146 | ac_cs_silent=false |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16147 | SHELL=\${CONFIG_SHELL-$SHELL} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16148 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16149 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16150 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16151 | ## --------------------- ## |
| 16152 | ## M4sh Initialization. ## |
| 16153 | ## --------------------- ## |
| 16154 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16155 | # Be Bourne compatible |
| 16156 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 16157 | emulate sh |
| 16158 | NULLCMD=: |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16159 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 16160 | # is contrary to our usage. Disable this feature. |
| 16161 | alias -g '${1+"$@"}'='"$@"' |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16162 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 16163 | set -o posix |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 16164 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16165 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16166 | # Support unset when possible. |
| 16167 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
| 16168 | as_unset=unset |
| 16169 | else |
| 16170 | as_unset=false |
| 16171 | fi |
| 16172 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16173 | |
| 16174 | # Work around bugs in pre-3.0 UWIN ksh. |
| 16175 | $as_unset ENV MAIL MAILPATH |
| 16176 | PS1='$ ' |
| 16177 | PS2='> ' |
| 16178 | PS4='+ ' |
| 16179 | |
| 16180 | # NLS nuisances. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16181 | for as_var in \ |
| 16182 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 16183 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 16184 | LC_TELEPHONE LC_TIME |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16185 | do |
| 16186 | if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 16187 | eval $as_var=C; export $as_var |
| 16188 | else |
| 16189 | $as_unset $as_var |
| 16190 | fi |
| 16191 | done |
| 16192 | |
| 16193 | # Required to use basename. |
| 16194 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 16195 | as_expr=expr |
| 16196 | else |
| 16197 | as_expr=false |
| 16198 | fi |
| 16199 | |
| 16200 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 16201 | as_basename=basename |
| 16202 | else |
| 16203 | as_basename=false |
| 16204 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16205 | |
| 16206 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16207 | # Name of the executable. |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16208 | as_me=`$as_basename "$0" || |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16209 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 16210 | X"$0" : 'X\(//\)$' \| \ |
| 16211 | X"$0" : 'X\(/\)$' \| \ |
| 16212 | . : '\(.\)' 2>/dev/null || |
| 16213 | echo X/"$0" | |
| 16214 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 16215 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 16216 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 16217 | s/.*/./; q'` |
| 16218 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16219 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16220 | # PATH needs CR, and LINENO needs CR and PATH. |
| 16221 | # Avoid depending upon Character Ranges. |
| 16222 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 16223 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 16224 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 16225 | as_cr_digits='0123456789' |
| 16226 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 16227 | |
| 16228 | # The user is always right. |
| 16229 | if test "${PATH_SEPARATOR+set}" != set; then |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16230 | echo "#! /bin/sh" >conf$$.sh |
| 16231 | echo "exit 0" >>conf$$.sh |
| 16232 | chmod +x conf$$.sh |
| 16233 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16234 | PATH_SEPARATOR=';' |
| 16235 | else |
| 16236 | PATH_SEPARATOR=: |
| 16237 | fi |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16238 | rm -f conf$$.sh |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16239 | fi |
| 16240 | |
| 16241 | |
| 16242 | as_lineno_1=$LINENO |
| 16243 | as_lineno_2=$LINENO |
| 16244 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 16245 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 16246 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 16247 | # Find who we are. Look in the path if we contain no path at all |
| 16248 | # relative or not. |
| 16249 | case $0 in |
| 16250 | *[\\/]* ) as_myself=$0 ;; |
| 16251 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16252 | for as_dir in $PATH |
| 16253 | do |
| 16254 | IFS=$as_save_IFS |
| 16255 | test -z "$as_dir" && as_dir=. |
| 16256 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 16257 | done |
| 16258 | |
| 16259 | ;; |
| 16260 | esac |
| 16261 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 16262 | # in which case we are not to be found in the path. |
| 16263 | if test "x$as_myself" = x; then |
| 16264 | as_myself=$0 |
| 16265 | fi |
| 16266 | if test ! -f "$as_myself"; then |
| 16267 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 16268 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 16269 | { (exit 1); exit 1; }; } |
| 16270 | fi |
| 16271 | case $CONFIG_SHELL in |
| 16272 | '') |
| 16273 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16274 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 16275 | do |
| 16276 | IFS=$as_save_IFS |
| 16277 | test -z "$as_dir" && as_dir=. |
| 16278 | for as_base in sh bash ksh sh5; do |
| 16279 | case $as_dir in |
| 16280 | /*) |
| 16281 | if ("$as_dir/$as_base" -c ' |
| 16282 | as_lineno_1=$LINENO |
| 16283 | as_lineno_2=$LINENO |
| 16284 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 16285 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 16286 | 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] | 16287 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 16288 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16289 | CONFIG_SHELL=$as_dir/$as_base |
| 16290 | export CONFIG_SHELL |
| 16291 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 16292 | fi;; |
| 16293 | esac |
| 16294 | done |
| 16295 | done |
| 16296 | ;; |
| 16297 | esac |
| 16298 | |
| 16299 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 16300 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 16301 | # line-number line before each line; the second 'sed' does the real |
| 16302 | # work. The second script uses 'N' to pair each line-number line |
| 16303 | # with the numbered line, and appends trailing '-' during |
| 16304 | # substitution so that $LINENO is not a special case at line end. |
| 16305 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 16306 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 16307 | sed '=' <$as_myself | |
| 16308 | sed ' |
| 16309 | N |
| 16310 | s,$,-, |
| 16311 | : loop |
| 16312 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 16313 | t loop |
| 16314 | s,-$,, |
| 16315 | s,^['$as_cr_digits']*\n,, |
| 16316 | ' >$as_me.lineno && |
| 16317 | chmod +x $as_me.lineno || |
| 16318 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 16319 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 16320 | { (exit 1); exit 1; }; } |
| 16321 | |
| 16322 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 16323 | # (the dirname of $[0] is not the place where we might find the |
| 16324 | # original and so on. Autoconf is especially sensible to this). |
| 16325 | . ./$as_me.lineno |
| 16326 | # Exit status is that of the last command. |
| 16327 | exit |
| 16328 | } |
| 16329 | |
| 16330 | |
| 16331 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 16332 | *c*,-n*) ECHO_N= ECHO_C=' |
| 16333 | ' ECHO_T=' ' ;; |
| 16334 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 16335 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 16336 | esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16337 | |
| 16338 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 16339 | as_expr=expr |
| 16340 | else |
| 16341 | as_expr=false |
| 16342 | fi |
| 16343 | |
| 16344 | rm -f conf$$ conf$$.exe conf$$.file |
| 16345 | echo >conf$$.file |
| 16346 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 16347 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 16348 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 16349 | if test -f conf$$.exe; then |
| 16350 | # Don't use ln at all; we don't have any links |
| 16351 | as_ln_s='cp -p' |
| 16352 | else |
| 16353 | as_ln_s='ln -s' |
| 16354 | fi |
| 16355 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 16356 | as_ln_s=ln |
| 16357 | else |
| 16358 | as_ln_s='cp -p' |
| 16359 | fi |
| 16360 | rm -f conf$$ conf$$.exe conf$$.file |
| 16361 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16362 | if mkdir -p . 2>/dev/null; then |
| 16363 | as_mkdir_p=: |
| 16364 | else |
| 16365 | as_mkdir_p=false |
| 16366 | fi |
| 16367 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16368 | as_executable_p="test -f" |
| 16369 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16370 | # Sed expression to map a string onto a valid CPP name. |
| 16371 | 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] | 16372 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16373 | # Sed expression to map a string onto a valid variable name. |
| 16374 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 16375 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16376 | |
| 16377 | # IFS |
| 16378 | # We need space, tab and new line, in precisely that order. |
| 16379 | as_nl=' |
| 16380 | ' |
| 16381 | IFS=" $as_nl" |
| 16382 | |
| 16383 | # CDPATH. |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16384 | $as_unset CDPATH |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16385 | |
| 16386 | exec 6>&1 |
| 16387 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16388 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 16389 | # report actual input values of CONFIG_FILES etc. instead of their |
| 16390 | # values after options handling. Logging --version etc. is OK. |
| 16391 | exec 5>>config.log |
| 16392 | { |
| 16393 | echo |
| 16394 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 16395 | ## Running $as_me. ## |
| 16396 | _ASBOX |
| 16397 | } >&5 |
| 16398 | cat >&5 <<_CSEOF |
| 16399 | |
Alexandre Julliard | c6326f0 | 2003-05-08 22:13:36 +0000 | [diff] [blame] | 16400 | This file was extended by Wine $as_me 20030508, which was |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16401 | generated by GNU Autoconf 2.57. Invocation command line was |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16402 | |
| 16403 | CONFIG_FILES = $CONFIG_FILES |
| 16404 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 16405 | CONFIG_LINKS = $CONFIG_LINKS |
| 16406 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 16407 | $ $0 $@ |
| 16408 | |
| 16409 | _CSEOF |
| 16410 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 16411 | echo >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16412 | _ACEOF |
| 16413 | |
| 16414 | # Files that config.status was made for. |
| 16415 | if test -n "$ac_config_files"; then |
| 16416 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 16417 | fi |
| 16418 | |
| 16419 | if test -n "$ac_config_headers"; then |
| 16420 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 16421 | fi |
| 16422 | |
| 16423 | if test -n "$ac_config_links"; then |
| 16424 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 16425 | fi |
| 16426 | |
| 16427 | if test -n "$ac_config_commands"; then |
| 16428 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 16429 | fi |
| 16430 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16431 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16432 | |
| 16433 | ac_cs_usage="\ |
| 16434 | \`$as_me' instantiates files from templates according to the |
| 16435 | current configuration. |
| 16436 | |
| 16437 | Usage: $0 [OPTIONS] [FILE]... |
| 16438 | |
| 16439 | -h, --help print this help, then exit |
| 16440 | -V, --version print version number, then exit |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16441 | -q, --quiet do not print progress messages |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16442 | -d, --debug don't remove temporary files |
| 16443 | --recheck update $as_me by reconfiguring in the same conditions |
| 16444 | --file=FILE[:TEMPLATE] |
| 16445 | instantiate the configuration file FILE |
| 16446 | --header=FILE[:TEMPLATE] |
| 16447 | instantiate the configuration header FILE |
| 16448 | |
| 16449 | Configuration files: |
| 16450 | $config_files |
| 16451 | |
| 16452 | Configuration headers: |
| 16453 | $config_headers |
| 16454 | |
| 16455 | Configuration commands: |
| 16456 | $config_commands |
| 16457 | |
| 16458 | Report bugs to <bug-autoconf@gnu.org>." |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16459 | _ACEOF |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 16460 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16461 | cat >>$CONFIG_STATUS <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16462 | ac_cs_version="\\ |
Alexandre Julliard | c6326f0 | 2003-05-08 22:13:36 +0000 | [diff] [blame] | 16463 | Wine config.status 20030508 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16464 | configured by $0, generated by GNU Autoconf 2.57, |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16465 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16466 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16467 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
| 16468 | Free Software Foundation, Inc. |
| 16469 | This config.status script is free software; the Free Software Foundation |
| 16470 | gives unlimited permission to copy, distribute and modify it." |
| 16471 | srcdir=$srcdir |
| 16472 | INSTALL="$INSTALL" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16473 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16474 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16475 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16476 | # If no file are specified by the user, then we need to provide default |
| 16477 | # value. By we need to know if files were specified by the user. |
| 16478 | ac_need_defaults=: |
| 16479 | while test $# != 0 |
| 16480 | do |
| 16481 | case $1 in |
| 16482 | --*=*) |
| 16483 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 16484 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16485 | ac_shift=: |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16486 | ;; |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16487 | -*) |
| 16488 | ac_option=$1 |
| 16489 | ac_optarg=$2 |
| 16490 | ac_shift=shift |
| 16491 | ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16492 | *) # This is not an option, so the user has probably given explicit |
| 16493 | # arguments. |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16494 | ac_option=$1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16495 | ac_need_defaults=false;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16496 | esac |
| 16497 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16498 | case $ac_option in |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16499 | # Handling of the options. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16500 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16501 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16502 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 16503 | ac_cs_recheck=: ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16504 | --version | --vers* | -V ) |
| 16505 | echo "$ac_cs_version"; exit 0 ;; |
| 16506 | --he | --h) |
| 16507 | # Conflict between --help and --header |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16508 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16509 | Try \`$0 --help' for more information." >&5 |
| 16510 | echo "$as_me: error: ambiguous option: $1 |
| 16511 | Try \`$0 --help' for more information." >&2;} |
| 16512 | { (exit 1); exit 1; }; };; |
| 16513 | --help | --hel | -h ) |
| 16514 | echo "$ac_cs_usage"; exit 0 ;; |
| 16515 | --debug | --d* | -d ) |
| 16516 | debug=: ;; |
| 16517 | --file | --fil | --fi | --f ) |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16518 | $ac_shift |
| 16519 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16520 | ac_need_defaults=false;; |
| 16521 | --header | --heade | --head | --hea ) |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16522 | $ac_shift |
| 16523 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16524 | ac_need_defaults=false;; |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16525 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 16526 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 16527 | ac_cs_silent=: ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16528 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16529 | # This is an error. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16530 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16531 | Try \`$0 --help' for more information." >&5 |
| 16532 | echo "$as_me: error: unrecognized option: $1 |
| 16533 | Try \`$0 --help' for more information." >&2;} |
| 16534 | { (exit 1); exit 1; }; } ;; |
| 16535 | |
| 16536 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 16537 | |
| 16538 | esac |
| 16539 | shift |
| 16540 | done |
| 16541 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16542 | ac_configure_extra_args= |
| 16543 | |
| 16544 | if $ac_cs_silent; then |
| 16545 | exec 6>/dev/null |
| 16546 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 16547 | fi |
| 16548 | |
| 16549 | _ACEOF |
| 16550 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16551 | if \$ac_cs_recheck; then |
| 16552 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 16553 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 16554 | fi |
| 16555 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16556 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16557 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16558 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16559 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16560 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16561 | |
| 16562 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16563 | for ac_config_target in $ac_config_targets |
| 16564 | do |
| 16565 | case "$ac_config_target" in |
| 16566 | # Handling of arguments. |
| 16567 | "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;; |
| 16568 | "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;; |
Alexandre Julliard | edeee89 | 2002-08-09 01:22:40 +0000 | [diff] [blame] | 16569 | "dlls/Maketest.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;; |
Alexandre Julliard | 117436e | 2003-05-01 00:39:29 +0000 | [diff] [blame] | 16570 | "libs/Makelib.rules" ) CONFIG_FILES="$CONFIG_FILES libs/Makelib.rules" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16571 | "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;; |
| 16572 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16573 | "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;; |
| 16574 | "dlls/advapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;; |
Alexandre Julliard | edeee89 | 2002-08-09 01:22:40 +0000 | [diff] [blame] | 16575 | "dlls/advapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16576 | "dlls/avicap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;; |
| 16577 | "dlls/avifil32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;; |
Patrik Stridvall | d1447fa | 2002-11-19 00:47:12 +0000 | [diff] [blame] | 16578 | "dlls/cabinet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;; |
John K. Hohm | 34909c2 | 2002-05-14 21:50:56 +0000 | [diff] [blame] | 16579 | "dlls/comcat/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16580 | "dlls/comctl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;; |
Uwe Bonnes | 2c4fd42 | 2003-05-15 23:58:48 +0000 | [diff] [blame^] | 16581 | "dlls/comctl32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16582 | "dlls/commdlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/commdlg/Makefile" ;; |
| 16583 | "dlls/crtdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;; |
| 16584 | "dlls/crypt32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;; |
Dmitry Timoshkov | 5a23a00 | 2003-01-02 19:34:14 +0000 | [diff] [blame] | 16585 | "dlls/ctl3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ctl3d/Makefile" ;; |
Sylvain Petreolle | 3a99d8b | 2002-06-25 23:23:03 +0000 | [diff] [blame] | 16586 | "dlls/d3d8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;; |
Enrico Horn | eaae705 | 2003-01-24 01:08:15 +0000 | [diff] [blame] | 16587 | "dlls/d3dim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dim/Makefile" ;; |
Raphael Junqueira | e31ae92 | 2002-12-17 01:15:15 +0000 | [diff] [blame] | 16588 | "dlls/d3dx8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16589 | "dlls/dciman32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;; |
| 16590 | "dlls/ddraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;; |
| 16591 | "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;; |
| 16592 | "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;; |
Ove Kaaven | d2d08f0 | 2002-06-14 00:39:44 +0000 | [diff] [blame] | 16593 | "dlls/dinput8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;; |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 16594 | "dlls/dmband/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmband/Makefile" ;; |
| 16595 | "dlls/dmcompos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmcompos/Makefile" ;; |
| 16596 | "dlls/dmime/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmime/Makefile" ;; |
| 16597 | "dlls/dmloader/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmloader/Makefile" ;; |
| 16598 | "dlls/dmscript/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmscript/Makefile" ;; |
| 16599 | "dlls/dmstyle/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmstyle/Makefile" ;; |
| 16600 | "dlls/dmsynth/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmsynth/Makefile" ;; |
Rok Mandeljc | 2d04be7 | 2003-03-21 00:42:38 +0000 | [diff] [blame] | 16601 | "dlls/dmusic/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic/Makefile" ;; |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 16602 | "dlls/dmusic32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic32/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16603 | "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;; |
| 16604 | "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;; |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 16605 | "dlls/dpnhpast/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dpnhpast/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16606 | "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;; |
Francois Gouget | d523a45 | 2002-12-05 19:19:41 +0000 | [diff] [blame] | 16607 | "dlls/dsound/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16608 | "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;; |
Patrik Stridvall | 928ecb4 | 2002-10-02 19:58:27 +0000 | [diff] [blame] | 16609 | "dlls/gdi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16610 | "dlls/glu32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;; |
| 16611 | "dlls/icmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;; |
| 16612 | "dlls/imagehlp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;; |
| 16613 | "dlls/imm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;; |
Juan Lang | 38fa5ad | 2003-05-13 03:32:20 +0000 | [diff] [blame] | 16614 | "dlls/iphlpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16615 | "dlls/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;; |
Alexandre Julliard | edeee89 | 2002-08-09 01:22:40 +0000 | [diff] [blame] | 16616 | "dlls/kernel/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16617 | "dlls/lzexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/Makefile" ;; |
| 16618 | "dlls/mapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;; |
| 16619 | "dlls/mpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;; |
| 16620 | "dlls/msacm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/Makefile" ;; |
Hidenori Takeshima | 0307f6d | 2002-03-23 20:18:11 +0000 | [diff] [blame] | 16621 | "dlls/msacm/imaadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/imaadp32/Makefile" ;; |
Eric Pouech | bed67fc | 2002-05-22 02:00:05 +0000 | [diff] [blame] | 16622 | "dlls/msacm/msadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msadp32/Makefile" ;; |
Hidenori Takeshima | bcb9c46 | 2002-03-22 19:16:10 +0000 | [diff] [blame] | 16623 | "dlls/msacm/msg711/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msg711/Makefile" ;; |
Eric Pouech | b706b23 | 2002-06-04 17:53:46 +0000 | [diff] [blame] | 16624 | "dlls/msacm/winemp3/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/winemp3/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16625 | "dlls/msdmo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;; |
| 16626 | "dlls/msimg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;; |
Mike McCormack | f6be044 | 2002-04-08 23:56:14 +0000 | [diff] [blame] | 16627 | "dlls/msisys/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msisys/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16628 | "dlls/msnet32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16629 | "dlls/msvcrt/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;; |
Uwe Bonnes | a768fa3 | 2002-10-30 23:49:03 +0000 | [diff] [blame] | 16630 | "dlls/msvcrt/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16631 | "dlls/msvcrt20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;; |
Adam Gundy | 19a1513 | 2003-04-04 19:37:57 +0000 | [diff] [blame] | 16632 | "dlls/msvcrtd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16633 | "dlls/msvideo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/Makefile" ;; |
Michael Günnewig | 288b8ee | 2002-10-08 00:40:05 +0000 | [diff] [blame] | 16634 | "dlls/msvideo/msrle32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/msrle32/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16635 | "dlls/netapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;; |
Andriy Palamarchuk | b812c90 | 2002-09-11 02:35:17 +0000 | [diff] [blame] | 16636 | "dlls/netapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16637 | "dlls/ntdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;; |
Jon Griffiths | 1da2971 | 2002-08-15 22:08:40 +0000 | [diff] [blame] | 16638 | "dlls/ntdll/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16639 | "dlls/odbc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;; |
| 16640 | "dlls/ole32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;; |
| 16641 | "dlls/oleaut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;; |
Alexandre Julliard | edeee89 | 2002-08-09 01:22:40 +0000 | [diff] [blame] | 16642 | "dlls/oleaut32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16643 | "dlls/olecli/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olecli/Makefile" ;; |
| 16644 | "dlls/oledlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;; |
| 16645 | "dlls/olepro32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;; |
| 16646 | "dlls/olesvr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olesvr/Makefile" ;; |
| 16647 | "dlls/opengl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;; |
| 16648 | "dlls/psapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;; |
| 16649 | "dlls/qcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;; |
| 16650 | "dlls/quartz/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;; |
| 16651 | "dlls/rasapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;; |
| 16652 | "dlls/richedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/richedit/Makefile" ;; |
| 16653 | "dlls/rpcrt4/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;; |
Greg Turner | ac89cc2 | 2002-10-07 21:54:07 +0000 | [diff] [blame] | 16654 | "dlls/rpcrt4/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16655 | "dlls/serialui/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;; |
| 16656 | "dlls/setupapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;; |
| 16657 | "dlls/shdocvw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;; |
| 16658 | "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;; |
Andriy Palamarchuk | 5b5bea0 | 2002-08-27 01:34:33 +0000 | [diff] [blame] | 16659 | "dlls/shell32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16660 | "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;; |
| 16661 | "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;; |
Alexandre Julliard | edeee89 | 2002-08-09 01:22:40 +0000 | [diff] [blame] | 16662 | "dlls/shlwapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;; |
Patrik Stridvall | 4c692b9 | 2002-04-29 18:43:35 +0000 | [diff] [blame] | 16663 | "dlls/snmpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16664 | "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;; |
| 16665 | "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;; |
| 16666 | "dlls/ttydrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ttydrv/Makefile" ;; |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 16667 | "dlls/twain/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/twain/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16668 | "dlls/url/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;; |
| 16669 | "dlls/urlmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;; |
Patrik Stridvall | 9398d9c | 2002-11-12 01:13:10 +0000 | [diff] [blame] | 16670 | "dlls/urlmon/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16671 | "dlls/user/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;; |
Alexandre Julliard | edeee89 | 2002-08-09 01:22:40 +0000 | [diff] [blame] | 16672 | "dlls/user/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16673 | "dlls/version/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;; |
| 16674 | "dlls/win32s/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/win32s/Makefile" ;; |
| 16675 | "dlls/winaspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winaspi/Makefile" ;; |
| 16676 | "dlls/winedos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;; |
| 16677 | "dlls/wineps/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wineps/Makefile" ;; |
| 16678 | "dlls/wininet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;; |
Alexandre Julliard | edeee89 | 2002-08-09 01:22:40 +0000 | [diff] [blame] | 16679 | "dlls/wininet/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16680 | "dlls/winmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;; |
| 16681 | "dlls/winmm/joystick/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;; |
| 16682 | "dlls/winmm/mcianim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcianim/Makefile" ;; |
| 16683 | "dlls/winmm/mciavi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciavi/Makefile" ;; |
| 16684 | "dlls/winmm/mcicda/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcicda/Makefile" ;; |
| 16685 | "dlls/winmm/mciseq/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciseq/Makefile" ;; |
| 16686 | "dlls/winmm/mciwave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciwave/Makefile" ;; |
| 16687 | "dlls/winmm/midimap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/midimap/Makefile" ;; |
Francois Gouget | 4ce2837 | 2002-11-04 23:47:49 +0000 | [diff] [blame] | 16688 | "dlls/winmm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16689 | "dlls/winmm/wavemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wavemap/Makefile" ;; |
Eric Pouech | a120ce0 | 2002-06-28 17:40:16 +0000 | [diff] [blame] | 16690 | "dlls/winmm/winealsa/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;; |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 16691 | "dlls/winmm/winearts/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;; |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 16692 | "dlls/winmm/wineaudioio/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;; |
| 16693 | "dlls/winmm/winenas/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;; |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 16694 | "dlls/winmm/winejack/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winejack/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16695 | "dlls/winmm/wineoss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;; |
| 16696 | "dlls/winnls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winnls/Makefile" ;; |
| 16697 | "dlls/winsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/Makefile" ;; |
Alexandre Julliard | edeee89 | 2002-08-09 01:22:40 +0000 | [diff] [blame] | 16698 | "dlls/winsock/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16699 | "dlls/winspool/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/Makefile" ;; |
Stefan Leichter | 88b1106 | 2003-01-15 00:50:48 +0000 | [diff] [blame] | 16700 | "dlls/winspool/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/tests/Makefile" ;; |
Patrik Stridvall | 5caddc7 | 2002-12-17 01:49:16 +0000 | [diff] [blame] | 16701 | "dlls/wintab32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16702 | "dlls/wintrust/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;; |
| 16703 | "dlls/wow32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;; |
| 16704 | "dlls/wsock32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;; |
| 16705 | "dlls/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/x11drv/Makefile" ;; |
| 16706 | "documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16707 | "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; |
Alexandre Julliard | 6a9fe36 | 2003-03-19 22:09:16 +0000 | [diff] [blame] | 16708 | "libs/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;; |
| 16709 | "libs/port/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/port/Makefile" ;; |
Alexandre Julliard | 7ab9a71 | 2003-03-21 05:06:48 +0000 | [diff] [blame] | 16710 | "libs/unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/unicode/Makefile" ;; |
Alexandre Julliard | 6692d39 | 2003-03-20 01:30:11 +0000 | [diff] [blame] | 16711 | "libs/uuid/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/uuid/Makefile" ;; |
Alexandre Julliard | 2d1c790 | 2003-03-22 20:40:48 +0000 | [diff] [blame] | 16712 | "libs/wine/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wine/Makefile" ;; |
Alexandre Julliard | e1a9b10 | 2003-05-01 03:16:21 +0000 | [diff] [blame] | 16713 | "libs/wpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wpp/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16714 | "miscemu/Makefile" ) CONFIG_FILES="$CONFIG_FILES miscemu/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16715 | "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;; |
| 16716 | "programs/avitools/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/avitools/Makefile" ;; |
| 16717 | "programs/clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;; |
| 16718 | "programs/cmdlgtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;; |
| 16719 | "programs/control/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;; |
Alexandre Julliard | acfda14 | 2002-05-20 19:18:16 +0000 | [diff] [blame] | 16720 | "programs/expand/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16721 | "programs/notepad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;; |
| 16722 | "programs/osversioncheck/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/osversioncheck/Makefile" ;; |
| 16723 | "programs/progman/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;; |
| 16724 | "programs/regapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regapi/Makefile" ;; |
Andriy Palamarchuk | 4e2e176 | 2002-04-11 23:58:40 +0000 | [diff] [blame] | 16725 | "programs/regedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;; |
Andriy Palamarchuk | 2f0d85c | 2002-04-29 23:47:39 +0000 | [diff] [blame] | 16726 | "programs/regsvr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16727 | "programs/regtest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regtest/Makefile" ;; |
Alexandre Julliard | d77294a | 2002-12-02 21:17:04 +0000 | [diff] [blame] | 16728 | "programs/rpcss/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;; |
Alberto Massari | 15e8e0a | 2002-11-15 01:41:20 +0000 | [diff] [blame] | 16729 | "programs/rundll32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;; |
Dan Kegel | ba02ae4 | 2003-01-21 20:14:36 +0000 | [diff] [blame] | 16730 | "programs/start/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/start/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16731 | "programs/uninstaller/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;; |
| 16732 | "programs/view/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;; |
| 16733 | "programs/wcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;; |
Shachar Shemesh | 175d059 | 2003-01-04 02:52:05 +0000 | [diff] [blame] | 16734 | "programs/wineboot/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;; |
Dimitrie O. Paun | 82ce2cc | 2003-03-31 19:41:55 +0000 | [diff] [blame] | 16735 | "programs/winecfg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winecfg/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16736 | "programs/wineconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;; |
Alexandre Julliard | f264bd3 | 2002-09-13 17:54:27 +0000 | [diff] [blame] | 16737 | "programs/winedbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;; |
Alexandre Julliard | 65a4216 | 2002-06-04 21:29:40 +0000 | [diff] [blame] | 16738 | "programs/winefile/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16739 | "programs/winemine/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;; |
Mike Wetherell | 0d8a9fa | 2002-05-05 20:31:54 +0000 | [diff] [blame] | 16740 | "programs/winepath/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;; |
Alexandre Julliard | fedc411 | 2003-04-27 00:47:58 +0000 | [diff] [blame] | 16741 | "programs/winevdm/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winevdm/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16742 | "programs/winhelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;; |
| 16743 | "programs/winver/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16744 | "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;; |
| 16745 | "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; |
Alexandre Julliard | 7d4ee77 | 2002-07-16 03:20:45 +0000 | [diff] [blame] | 16746 | "tools/widl/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16747 | "tools/winapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;; |
| 16748 | "tools/winebuild/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;; |
| 16749 | "tools/winedump/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;; |
| 16750 | "tools/wmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;; |
| 16751 | "tools/wrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;; |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 16752 | "controls" ) CONFIG_COMMANDS="$CONFIG_COMMANDS controls" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16753 | "dlls/ddraw/d3ddevice" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/d3ddevice" ;; |
| 16754 | "dlls/ddraw/dclipper" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dclipper" ;; |
| 16755 | "dlls/ddraw/ddraw" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/ddraw" ;; |
| 16756 | "dlls/ddraw/direct3d" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/direct3d" ;; |
| 16757 | "dlls/ddraw/dpalette" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dpalette" ;; |
| 16758 | "dlls/ddraw/dsurface" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dsurface" ;; |
| 16759 | "dlls/dinput/joystick" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/joystick" ;; |
| 16760 | "dlls/dinput/keyboard" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/keyboard" ;; |
| 16761 | "dlls/dinput/mouse" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/mouse" ;; |
Alexandre Julliard | 8911856 | 2002-03-27 21:13:40 +0000 | [diff] [blame] | 16762 | "dlls/gdi/enhmfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;; |
| 16763 | "dlls/gdi/mfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16764 | "dlls/kernel/messages" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;; |
| 16765 | "dlls/user/dde" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/dde" ;; |
| 16766 | "dlls/user/resources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;; |
| 16767 | "dlls/wineps/data" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps/data" ;; |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 16768 | "files" ) CONFIG_COMMANDS="$CONFIG_COMMANDS files" ;; |
| 16769 | "graphics" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics" ;; |
| 16770 | "graphics/x11drv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics/x11drv" ;; |
| 16771 | "if1632" ) CONFIG_COMMANDS="$CONFIG_COMMANDS if1632" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16772 | "include/wine" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;; |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 16773 | "loader" ) CONFIG_COMMANDS="$CONFIG_COMMANDS loader" ;; |
| 16774 | "loader/ne" ) CONFIG_COMMANDS="$CONFIG_COMMANDS loader/ne" ;; |
| 16775 | "memory" ) CONFIG_COMMANDS="$CONFIG_COMMANDS memory" ;; |
| 16776 | "misc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS misc" ;; |
| 16777 | "msdos" ) CONFIG_COMMANDS="$CONFIG_COMMANDS msdos" ;; |
| 16778 | "objects" ) CONFIG_COMMANDS="$CONFIG_COMMANDS objects" ;; |
Alexandre Julliard | 6692d39 | 2003-03-20 01:30:11 +0000 | [diff] [blame] | 16779 | "ole" ) CONFIG_COMMANDS="$CONFIG_COMMANDS ole" ;; |
Alexandre Julliard | c72f0b2 | 2002-02-28 21:47:58 +0000 | [diff] [blame] | 16780 | "programs/regapi/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regapi/tests" ;; |
Andriy Palamarchuk | f5aad76 | 2002-06-20 23:09:33 +0000 | [diff] [blame] | 16781 | "programs/regedit/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regedit/tests" ;; |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 16782 | "relay32" ) CONFIG_COMMANDS="$CONFIG_COMMANDS relay32" ;; |
| 16783 | "scheduler" ) CONFIG_COMMANDS="$CONFIG_COMMANDS scheduler" ;; |
| 16784 | "win32" ) CONFIG_COMMANDS="$CONFIG_COMMANDS win32" ;; |
| 16785 | "windows" ) CONFIG_COMMANDS="$CONFIG_COMMANDS windows" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16786 | "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16787 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16788 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 16789 | { (exit 1); exit 1; }; };; |
| 16790 | esac |
| 16791 | done |
| 16792 | |
| 16793 | # If the user did not use the arguments to specify the items to instantiate, |
| 16794 | # then the envvar interface is used. Set only those that are not. |
| 16795 | # We use the long form for the default assignment because of an extremely |
| 16796 | # bizarre bug on SunOS 4.1.3. |
| 16797 | if $ac_need_defaults; then |
| 16798 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 16799 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 16800 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 16801 | fi |
| 16802 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16803 | # Have a temporary directory for convenience. Make it in the build tree |
| 16804 | # simply because there is no reason to put it here, and in addition, |
| 16805 | # creating and moving files from /tmp can sometimes cause problems. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16806 | # Create a temporary directory, and hook for its removal unless debugging. |
| 16807 | $debug || |
| 16808 | { |
| 16809 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 16810 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 16811 | } |
| 16812 | |
| 16813 | # Create a (secure) tmp directory for tmp files. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16814 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16815 | { |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16816 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16817 | test -n "$tmp" && test -d "$tmp" |
| 16818 | } || |
| 16819 | { |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16820 | tmp=./confstat$$-$RANDOM |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16821 | (umask 077 && mkdir $tmp) |
| 16822 | } || |
| 16823 | { |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16824 | echo "$me: cannot create a temporary directory in ." >&2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16825 | { (exit 1); exit 1; } |
| 16826 | } |
| 16827 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16828 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16829 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16830 | cat >>$CONFIG_STATUS <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16831 | |
| 16832 | # |
| 16833 | # CONFIG_FILES section. |
| 16834 | # |
| 16835 | |
| 16836 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 16837 | # This happens for instance when ./config.status config.h |
| 16838 | if test -n "\$CONFIG_FILES"; then |
| 16839 | # Protect against being on the right side of a sed subst in config.status. |
| 16840 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 16841 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 16842 | s,@SHELL@,$SHELL,;t t |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16843 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 16844 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 16845 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 16846 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 16847 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 16848 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16849 | s,@exec_prefix@,$exec_prefix,;t t |
| 16850 | s,@prefix@,$prefix,;t t |
| 16851 | s,@program_transform_name@,$program_transform_name,;t t |
| 16852 | s,@bindir@,$bindir,;t t |
| 16853 | s,@sbindir@,$sbindir,;t t |
| 16854 | s,@libexecdir@,$libexecdir,;t t |
| 16855 | s,@datadir@,$datadir,;t t |
| 16856 | s,@sysconfdir@,$sysconfdir,;t t |
| 16857 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 16858 | s,@localstatedir@,$localstatedir,;t t |
| 16859 | s,@libdir@,$libdir,;t t |
| 16860 | s,@includedir@,$includedir,;t t |
| 16861 | s,@oldincludedir@,$oldincludedir,;t t |
| 16862 | s,@infodir@,$infodir,;t t |
| 16863 | s,@mandir@,$mandir,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16864 | s,@build_alias@,$build_alias,;t t |
| 16865 | s,@host_alias@,$host_alias,;t t |
| 16866 | s,@target_alias@,$target_alias,;t t |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16867 | s,@DEFS@,$DEFS,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16868 | s,@ECHO_C@,$ECHO_C,;t t |
| 16869 | s,@ECHO_N@,$ECHO_N,;t t |
| 16870 | s,@ECHO_T@,$ECHO_T,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16871 | s,@LIBS@,$LIBS,;t t |
Alexandre Julliard | c728efc | 2002-10-02 02:34:09 +0000 | [diff] [blame] | 16872 | s,@WIN16_FILES@,$WIN16_FILES,;t t |
| 16873 | s,@WIN16_INSTALL@,$WIN16_INSTALL,;t t |
Alexandre Julliard | 6a9cea9 | 2003-04-03 02:54:54 +0000 | [diff] [blame] | 16874 | s,@LIBPTHREAD@,$LIBPTHREAD,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16875 | s,@build@,$build,;t t |
| 16876 | s,@build_cpu@,$build_cpu,;t t |
| 16877 | s,@build_vendor@,$build_vendor,;t t |
| 16878 | s,@build_os@,$build_os,;t t |
| 16879 | s,@host@,$host,;t t |
| 16880 | s,@host_cpu@,$host_cpu,;t t |
| 16881 | s,@host_vendor@,$host_vendor,;t t |
| 16882 | s,@host_os@,$host_os,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16883 | s,@SET_MAKE@,$SET_MAKE,;t t |
| 16884 | s,@CC@,$CC,;t t |
| 16885 | s,@CFLAGS@,$CFLAGS,;t t |
| 16886 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 16887 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 16888 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 16889 | s,@EXEEXT@,$EXEEXT,;t t |
| 16890 | s,@OBJEXT@,$OBJEXT,;t t |
| 16891 | s,@CPP@,$CPP,;t t |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 16892 | s,@TOOLSDIR@,$TOOLSDIR,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16893 | s,@X_CFLAGS@,$X_CFLAGS,;t t |
| 16894 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t |
| 16895 | s,@X_LIBS@,$X_LIBS,;t t |
| 16896 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t |
| 16897 | s,@YACC@,$YACC,;t t |
| 16898 | s,@LEX@,$LEX,;t t |
| 16899 | s,@LEXLIB@,$LEXLIB,;t t |
| 16900 | s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t |
| 16901 | s,@XYACC@,$XYACC,;t t |
| 16902 | s,@XLEX@,$XLEX,;t t |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 16903 | s,@AS@,$AS,;t t |
| 16904 | s,@ac_ct_AS@,$ac_ct_AS,;t t |
Alexandre Julliard | eb5f89c | 2002-05-24 21:22:10 +0000 | [diff] [blame] | 16905 | s,@LD@,$LD,;t t |
| 16906 | s,@ac_ct_LD@,$ac_ct_LD,;t t |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 16907 | s,@AR@,$AR,;t t |
| 16908 | s,@ac_ct_AR@,$ac_ct_AR,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16909 | s,@RANLIB@,$RANLIB,;t t |
| 16910 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 16911 | s,@STRIP@,$STRIP,;t t |
| 16912 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
| 16913 | s,@WINDRES@,$WINDRES,;t t |
| 16914 | s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16915 | s,@LN_S@,$LN_S,;t t |
Alexandre Julliard | df234a9 | 2002-05-22 02:10:39 +0000 | [diff] [blame] | 16916 | s,@LN@,$LN,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16917 | s,@C2MAN@,$C2MAN,;t t |
| 16918 | s,@LDCONFIG@,$LDCONFIG,;t t |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16919 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 16920 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 16921 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16922 | s,@LINT@,$LINT,;t t |
| 16923 | s,@LINTFLAGS@,$LINTFLAGS,;t t |
Vincent Béron | 1d8cb6e | 2002-11-23 01:20:02 +0000 | [diff] [blame] | 16924 | s,@DB2HTML@,$DB2HTML,;t t |
| 16925 | s,@DB2PDF@,$DB2PDF,;t t |
| 16926 | s,@DB2PS@,$DB2PS,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16927 | s,@JPEGLIB@,$JPEGLIB,;t t |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16928 | s,@EGREP@,$EGREP,;t t |
Marcus Meissner | 728bedc | 2003-01-09 06:04:33 +0000 | [diff] [blame] | 16929 | s,@GIFLIB@,$GIFLIB,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16930 | s,@XLIB@,$XLIB,;t t |
| 16931 | s,@XFILES@,$XFILES,;t t |
| 16932 | s,@OPENGLFILES@,$OPENGLFILES,;t t |
| 16933 | s,@GLU32FILES@,$GLU32FILES,;t t |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 16934 | s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 16935 | s,@NASLIBS@,$NASLIBS,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16936 | s,@CURSESLIBS@,$CURSESLIBS,;t t |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 16937 | s,@sane_devel@,$sane_devel,;t t |
| 16938 | s,@SANELIBS@,$SANELIBS,;t t |
| 16939 | s,@SANEINCL@,$SANEINCL,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16940 | s,@ft_devel@,$ft_devel,;t t |
| 16941 | s,@ft_devel2@,$ft_devel2,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16942 | s,@FREETYPEINCL@,$FREETYPEINCL,;t t |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 16943 | s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t |
| 16944 | s,@ARTSLIBS@,$ARTSLIBS,;t t |
| 16945 | s,@ARTSINCL@,$ARTSINCL,;t t |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 16946 | s,@ALSALIBS@,$ALSALIBS,;t t |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 16947 | s,@AUDIOIOLIBS@,$AUDIOIOLIBS,;t t |
Alexandre Julliard | fc09423 | 2003-04-14 21:46:41 +0000 | [diff] [blame] | 16948 | s,@EXTRACFLAGS@,$EXTRACFLAGS,;t t |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 16949 | s,@DLLEXT@,$DLLEXT,;t t |
| 16950 | s,@DLLFLAGS@,$DLLFLAGS,;t t |
| 16951 | s,@DLLIBS@,$DLLIBS,;t t |
| 16952 | s,@LDDLLFLAGS@,$LDDLLFLAGS,;t t |
| 16953 | s,@LDSHARED@,$LDSHARED,;t t |
Alexandre Julliard | ada5e65 | 2002-12-12 22:03:14 +0000 | [diff] [blame] | 16954 | s,@LIBEXT@,$LIBEXT,;t t |
| 16955 | s,@IMPLIBEXT@,$IMPLIBEXT,;t t |
| 16956 | s,@DLLTOOL@,$DLLTOOL,;t t |
| 16957 | s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16958 | s,@DLLWRAP@,$DLLWRAP,;t t |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 16959 | s,@ac_ct_DLLWRAP@,$ac_ct_DLLWRAP,;t t |
Alexandre Julliard | 4d52d37 | 2003-03-24 19:33:20 +0000 | [diff] [blame] | 16960 | s,@LDEXECFLAGS@,$LDEXECFLAGS,;t t |
Alexandre Julliard | c3c587e | 2002-09-06 19:46:00 +0000 | [diff] [blame] | 16961 | s,@CROSSTEST@,$CROSSTEST,;t t |
| 16962 | s,@CROSSCC@,$CROSSCC,;t t |
Alexandre Julliard | 21ee329 | 2003-04-21 22:52:31 +0000 | [diff] [blame] | 16963 | s,@CROSSWINDRES@,$CROSSWINDRES,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16964 | s,@LDPATH@,$LDPATH,;t t |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 16965 | s,@CRTLIBS@,$CRTLIBS,;t t |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 16966 | s,@LDD@,$LDD,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16967 | s,@ALLOCA@,$ALLOCA,;t t |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16968 | s,@LIBOBJS@,$LIBOBJS,;t t |
| 16969 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16970 | /@MAKE_RULES@/r $MAKE_RULES |
| 16971 | s,@MAKE_RULES@,,;t t |
| 16972 | /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES |
| 16973 | s,@MAKE_DLL_RULES@,,;t t |
Alexandre Julliard | edeee89 | 2002-08-09 01:22:40 +0000 | [diff] [blame] | 16974 | /@MAKE_TEST_RULES@/r $MAKE_TEST_RULES |
| 16975 | s,@MAKE_TEST_RULES@,,;t t |
Alexandre Julliard | 117436e | 2003-05-01 00:39:29 +0000 | [diff] [blame] | 16976 | /@MAKE_LIB_RULES@/r $MAKE_LIB_RULES |
| 16977 | s,@MAKE_LIB_RULES@,,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16978 | /@MAKE_PROG_RULES@/r $MAKE_PROG_RULES |
| 16979 | s,@MAKE_PROG_RULES@,,;t t |
| 16980 | CEOF |
| 16981 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16982 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16983 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16984 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16985 | # Split the substitutions into bite-sized pieces for seds with |
| 16986 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 16987 | ac_max_sed_lines=48 |
| 16988 | ac_sed_frag=1 # Number of current file. |
| 16989 | ac_beg=1 # First line for current file. |
| 16990 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 16991 | ac_more_lines=: |
| 16992 | ac_sed_cmds= |
| 16993 | while $ac_more_lines; do |
| 16994 | if test $ac_beg -gt 1; then |
| 16995 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 16996 | else |
| 16997 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 16998 | fi |
| 16999 | if test ! -s $tmp/subs.frag; then |
| 17000 | ac_more_lines=false |
| 17001 | else |
| 17002 | # The purpose of the label and of the branching condition is to |
| 17003 | # speed up the sed processing (if there are no `@' at all, there |
| 17004 | # is no need to browse any of the substitutions). |
| 17005 | # These are the two extra sed commands mentioned above. |
| 17006 | (echo ':t |
| 17007 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 17008 | if test -z "$ac_sed_cmds"; then |
| 17009 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
| 17010 | else |
| 17011 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
| 17012 | fi |
| 17013 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 17014 | ac_beg=$ac_end |
| 17015 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 17016 | fi |
| 17017 | done |
| 17018 | if test -z "$ac_sed_cmds"; then |
| 17019 | ac_sed_cmds=cat |
| 17020 | fi |
| 17021 | fi # test -n "$CONFIG_FILES" |
| 17022 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17023 | _ACEOF |
| 17024 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17025 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 17026 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 17027 | case $ac_file in |
| 17028 | - | *:- | *:-:* ) # input from stdin |
| 17029 | cat >$tmp/stdin |
| 17030 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 17031 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 17032 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 17033 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 17034 | * ) ac_file_in=$ac_file.in ;; |
| 17035 | esac |
| 17036 | |
| 17037 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17038 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 17039 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17040 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 17041 | X"$ac_file" : 'X\(//\)$' \| \ |
| 17042 | X"$ac_file" : 'X\(/\)' \| \ |
| 17043 | . : '\(.\)' 2>/dev/null || |
| 17044 | echo X"$ac_file" | |
| 17045 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 17046 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 17047 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 17048 | /^X\(\/\).*/{ s//\1/; q; } |
| 17049 | s/.*/./; q'` |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 17050 | { if $as_mkdir_p; then |
| 17051 | mkdir -p "$ac_dir" |
| 17052 | else |
| 17053 | as_dir="$ac_dir" |
| 17054 | as_dirs= |
| 17055 | while test ! -d "$as_dir"; do |
| 17056 | as_dirs="$as_dir $as_dirs" |
| 17057 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 17058 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 17059 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 17060 | X"$as_dir" : 'X\(//\)$' \| \ |
| 17061 | X"$as_dir" : 'X\(/\)' \| \ |
| 17062 | . : '\(.\)' 2>/dev/null || |
| 17063 | echo X"$as_dir" | |
| 17064 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 17065 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 17066 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 17067 | /^X\(\/\).*/{ s//\1/; q; } |
| 17068 | s/.*/./; q'` |
| 17069 | done |
| 17070 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 17071 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 17072 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 17073 | { (exit 1); exit 1; }; }; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17074 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17075 | ac_builddir=. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 17076 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17077 | if test "$ac_dir" != .; then |
| 17078 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 17079 | # A "../" for each directory in $ac_dir_suffix. |
| 17080 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 17081 | else |
| 17082 | ac_dir_suffix= ac_top_builddir= |
| 17083 | fi |
| 17084 | |
| 17085 | case $srcdir in |
| 17086 | .) # No --srcdir option. We are building in place. |
| 17087 | ac_srcdir=. |
| 17088 | if test -z "$ac_top_builddir"; then |
| 17089 | ac_top_srcdir=. |
| 17090 | else |
| 17091 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 17092 | fi ;; |
| 17093 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 17094 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 17095 | ac_top_srcdir=$srcdir ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 17096 | *) # Relative path. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17097 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 17098 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 17099 | esac |
| 17100 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 17101 | # absolute. |
| 17102 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 17103 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17104 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 17105 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 17106 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 17107 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17108 | case $INSTALL in |
| 17109 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17110 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 17111 | esac |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 17112 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17113 | if test x"$ac_file" != x-; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17114 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17115 | echo "$as_me: creating $ac_file" >&6;} |
| 17116 | rm -f "$ac_file" |
| 17117 | fi |
| 17118 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 17119 | # use $as_me), people would be surprised to read: |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17120 | # /* config.h. Generated by config.status. */ |
| 17121 | if test x"$ac_file" = x-; then |
| 17122 | configure_input= |
| 17123 | else |
| 17124 | configure_input="$ac_file. " |
| 17125 | fi |
| 17126 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
| 17127 | sed 's,.*/,,'` by configure." |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 17128 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17129 | # First look for the input files in the build tree, otherwise in the |
| 17130 | # src tree. |
| 17131 | ac_file_inputs=`IFS=: |
| 17132 | for f in $ac_file_in; do |
| 17133 | case $f in |
| 17134 | -) echo $tmp/stdin ;; |
| 17135 | [\\/$]*) |
| 17136 | # Absolute (can't be DOS-style, as IFS=:) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17137 | 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] | 17138 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 17139 | { (exit 1); exit 1; }; } |
| 17140 | echo $f;; |
| 17141 | *) # Relative |
| 17142 | if test -f "$f"; then |
| 17143 | # Build tree |
| 17144 | echo $f |
| 17145 | elif test -f "$srcdir/$f"; then |
| 17146 | # Source tree |
| 17147 | echo $srcdir/$f |
| 17148 | else |
| 17149 | # /dev/null tree |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17150 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17151 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 17152 | { (exit 1); exit 1; }; } |
| 17153 | fi;; |
| 17154 | esac |
| 17155 | done` || { (exit 1); exit 1; } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17156 | _ACEOF |
| 17157 | cat >>$CONFIG_STATUS <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17158 | sed "$ac_vpsub |
| 17159 | $extrasub |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17160 | _ACEOF |
| 17161 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17162 | :t |
| 17163 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 17164 | s,@configure_input@,$configure_input,;t t |
| 17165 | s,@srcdir@,$ac_srcdir,;t t |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17166 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17167 | s,@top_srcdir@,$ac_top_srcdir,;t t |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17168 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 17169 | s,@builddir@,$ac_builddir,;t t |
| 17170 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 17171 | s,@top_builddir@,$ac_top_builddir,;t t |
| 17172 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17173 | s,@INSTALL@,$ac_INSTALL,;t t |
| 17174 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 17175 | rm -f $tmp/stdin |
| 17176 | if test x"$ac_file" != x-; then |
| 17177 | mv $tmp/out $ac_file |
| 17178 | else |
| 17179 | cat $tmp/out |
| 17180 | rm -f $tmp/out |
| 17181 | fi |
| 17182 | |
| 17183 | done |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17184 | _ACEOF |
| 17185 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17186 | |
| 17187 | # |
| 17188 | # CONFIG_HEADER section. |
| 17189 | # |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 17190 | |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 17191 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 17192 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
| 17193 | # |
| 17194 | # ac_d sets the value in "#define NAME VALUE" lines. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17195 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 17196 | ac_dB='[ ].*$,\1#\2' |
| 17197 | ac_dC=' ' |
| 17198 | ac_dD=',;t' |
| 17199 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| 17200 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 17201 | ac_uB='$,\1#\2define\3' |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 17202 | ac_uC=' ' |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17203 | ac_uD=',;t' |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 17204 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17205 | 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] | 17206 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17207 | case $ac_file in |
| 17208 | - | *:- | *:-:* ) # input from stdin |
| 17209 | cat >$tmp/stdin |
| 17210 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 17211 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 17212 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 17213 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 17214 | * ) ac_file_in=$ac_file.in ;; |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 17215 | esac |
| 17216 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17217 | 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] | 17218 | echo "$as_me: creating $ac_file" >&6;} |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 17219 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17220 | # First look for the input files in the build tree, otherwise in the |
| 17221 | # src tree. |
| 17222 | ac_file_inputs=`IFS=: |
| 17223 | for f in $ac_file_in; do |
| 17224 | case $f in |
| 17225 | -) echo $tmp/stdin ;; |
| 17226 | [\\/$]*) |
| 17227 | # Absolute (can't be DOS-style, as IFS=:) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17228 | 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] | 17229 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 17230 | { (exit 1); exit 1; }; } |
| 17231 | echo $f;; |
| 17232 | *) # Relative |
| 17233 | if test -f "$f"; then |
| 17234 | # Build tree |
| 17235 | echo $f |
| 17236 | elif test -f "$srcdir/$f"; then |
| 17237 | # Source tree |
| 17238 | echo $srcdir/$f |
| 17239 | else |
| 17240 | # /dev/null tree |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17241 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17242 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 17243 | { (exit 1); exit 1; }; } |
| 17244 | fi;; |
| 17245 | esac |
| 17246 | done` || { (exit 1); exit 1; } |
| 17247 | # Remove the trailing spaces. |
| 17248 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 17249 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17250 | _ACEOF |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 17251 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17252 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 17253 | # `conftest.undefs', that substitutes the proper values into |
| 17254 | # config.h.in to produce config.h. The first handles `#define' |
| 17255 | # templates, and the second `#undef' templates. |
| 17256 | # And first: Protect against being on the right side of a sed subst in |
| 17257 | # config.status. Protect against being in an unquoted here document |
| 17258 | # in config.status. |
| 17259 | rm -f conftest.defines conftest.undefs |
| 17260 | # Using a here document instead of a string reduces the quoting nightmare. |
| 17261 | # Putting comments in sed scripts is not portable. |
| 17262 | # |
| 17263 | # `end' is used to avoid that the second main sed command (meant for |
| 17264 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 17265 | # See the Autoconf documentation for `clear'. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17266 | cat >confdef2sed.sed <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17267 | s/[\\&,]/\\&/g |
| 17268 | s,[\\$`],\\&,g |
| 17269 | t clear |
| 17270 | : clear |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17271 | 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] | 17272 | t end |
| 17273 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
| 17274 | : end |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17275 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17276 | # If some macros were called several times there might be several times |
| 17277 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 17278 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 17279 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 17280 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 17281 | rm -f confdef2sed.sed |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 17282 | |
| 17283 | # This sed command replaces #undef with comments. This is necessary, for |
| 17284 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 17285 | # on some systems where configure will not decide to define it. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17286 | cat >>conftest.undefs <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17287 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17288 | _ACEOF |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 17289 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17290 | # Break up conftest.defines because some shells have a limit on the size |
| 17291 | # of here documents, and old seds have small limits too (100 cmds). |
| 17292 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 17293 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17294 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 17295 | echo ' :' >>$CONFIG_STATUS |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 17296 | rm -f conftest.tail |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17297 | while grep . conftest.defines >/dev/null |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 17298 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17299 | # Write a limited-size here document to $tmp/defines.sed. |
| 17300 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 17301 | # Speed up: don't consider the non `#define' lines. |
| 17302 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
| 17303 | # Work around the forget-to-reset-the-flag bug. |
| 17304 | echo 't clr' >>$CONFIG_STATUS |
| 17305 | echo ': clr' >>$CONFIG_STATUS |
| 17306 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 17307 | echo 'CEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17308 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 17309 | rm -f $tmp/in |
| 17310 | mv $tmp/out $tmp/in |
| 17311 | ' >>$CONFIG_STATUS |
| 17312 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 17313 | rm -f conftest.defines |
| 17314 | mv conftest.tail conftest.defines |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 17315 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17316 | rm -f conftest.defines |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 17317 | echo ' fi # grep' >>$CONFIG_STATUS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17318 | echo >>$CONFIG_STATUS |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 17319 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17320 | # Break up conftest.undefs because some shells have a limit on the size |
| 17321 | # of here documents, and old seds have small limits too (100 cmds). |
| 17322 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 17323 | rm -f conftest.tail |
| 17324 | while grep . conftest.undefs >/dev/null |
| 17325 | do |
| 17326 | # Write a limited-size here document to $tmp/undefs.sed. |
| 17327 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 17328 | # Speed up: don't consider the non `#undef' |
| 17329 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
| 17330 | # Work around the forget-to-reset-the-flag bug. |
| 17331 | echo 't clr' >>$CONFIG_STATUS |
| 17332 | echo ': clr' >>$CONFIG_STATUS |
| 17333 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 17334 | echo 'CEOF |
| 17335 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 17336 | rm -f $tmp/in |
| 17337 | mv $tmp/out $tmp/in |
| 17338 | ' >>$CONFIG_STATUS |
| 17339 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 17340 | rm -f conftest.undefs |
| 17341 | mv conftest.tail conftest.undefs |
| 17342 | done |
| 17343 | rm -f conftest.undefs |
| 17344 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17345 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17346 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 17347 | # use $as_me), people would be surprised to read: |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17348 | # /* config.h. Generated by config.status. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17349 | if test x"$ac_file" = x-; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17350 | echo "/* Generated by configure. */" >$tmp/config.h |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 17351 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17352 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 17353 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17354 | cat $tmp/in >>$tmp/config.h |
| 17355 | rm -f $tmp/in |
| 17356 | if test x"$ac_file" != x-; then |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17357 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17358 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17359 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 17360 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17361 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 17362 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17363 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 17364 | X"$ac_file" : 'X\(//\)$' \| \ |
| 17365 | X"$ac_file" : 'X\(/\)' \| \ |
| 17366 | . : '\(.\)' 2>/dev/null || |
| 17367 | echo X"$ac_file" | |
| 17368 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 17369 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 17370 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 17371 | /^X\(\/\).*/{ s//\1/; q; } |
| 17372 | s/.*/./; q'` |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 17373 | { if $as_mkdir_p; then |
| 17374 | mkdir -p "$ac_dir" |
| 17375 | else |
| 17376 | as_dir="$ac_dir" |
| 17377 | as_dirs= |
| 17378 | while test ! -d "$as_dir"; do |
| 17379 | as_dirs="$as_dir $as_dirs" |
| 17380 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 17381 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 17382 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 17383 | X"$as_dir" : 'X\(//\)$' \| \ |
| 17384 | X"$as_dir" : 'X\(/\)' \| \ |
| 17385 | . : '\(.\)' 2>/dev/null || |
| 17386 | echo X"$as_dir" | |
| 17387 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 17388 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 17389 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 17390 | /^X\(\/\).*/{ s//\1/; q; } |
| 17391 | s/.*/./; q'` |
| 17392 | done |
| 17393 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 17394 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 17395 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 17396 | { (exit 1); exit 1; }; }; } |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 17397 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17398 | rm -f $ac_file |
| 17399 | mv $tmp/config.h $ac_file |
| 17400 | fi |
| 17401 | else |
| 17402 | cat $tmp/config.h |
| 17403 | rm -f $tmp/config.h |
| 17404 | fi |
| 17405 | done |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17406 | _ACEOF |
| 17407 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 17408 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17409 | # |
| 17410 | # CONFIG_COMMANDS section. |
| 17411 | # |
| 17412 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
| 17413 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
| 17414 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17415 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
| 17416 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 17417 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
| 17418 | X"$ac_dest" : 'X\(//\)$' \| \ |
| 17419 | X"$ac_dest" : 'X\(/\)' \| \ |
| 17420 | . : '\(.\)' 2>/dev/null || |
| 17421 | echo X"$ac_dest" | |
| 17422 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 17423 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 17424 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 17425 | /^X\(\/\).*/{ s//\1/; q; } |
| 17426 | s/.*/./; q'` |
| 17427 | ac_builddir=. |
Alexandre Julliard | 87a2f8d | 2000-04-09 18:20:25 +0000 | [diff] [blame] | 17428 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17429 | if test "$ac_dir" != .; then |
| 17430 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 17431 | # A "../" for each directory in $ac_dir_suffix. |
| 17432 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17433 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17434 | ac_dir_suffix= ac_top_builddir= |
| 17435 | fi |
| 17436 | |
| 17437 | case $srcdir in |
| 17438 | .) # No --srcdir option. We are building in place. |
| 17439 | ac_srcdir=. |
| 17440 | if test -z "$ac_top_builddir"; then |
| 17441 | ac_top_srcdir=. |
| 17442 | else |
| 17443 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 17444 | fi ;; |
| 17445 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 17446 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 17447 | ac_top_srcdir=$srcdir ;; |
| 17448 | *) # Relative path. |
| 17449 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 17450 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 17451 | esac |
| 17452 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 17453 | # absolute. |
| 17454 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 17455 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17456 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 17457 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 17458 | |
| 17459 | |
| 17460 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
| 17461 | echo "$as_me: executing $ac_dest commands" >&6;} |
| 17462 | case $ac_dest in |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 17463 | controls ) test -d "controls" || ({ echo "$as_me:$LINENO: creating controls" >&5 |
| 17464 | echo "$as_me: creating controls" >&6;} && mkdir "controls") ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17465 | dlls/ddraw/d3ddevice ) test -d "dlls/ddraw/d3ddevice" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/d3ddevice" >&5 |
| 17466 | echo "$as_me: creating dlls/ddraw/d3ddevice" >&6;} && mkdir "dlls/ddraw/d3ddevice") ;; |
| 17467 | dlls/ddraw/dclipper ) test -d "dlls/ddraw/dclipper" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dclipper" >&5 |
| 17468 | echo "$as_me: creating dlls/ddraw/dclipper" >&6;} && mkdir "dlls/ddraw/dclipper") ;; |
| 17469 | dlls/ddraw/ddraw ) test -d "dlls/ddraw/ddraw" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/ddraw" >&5 |
| 17470 | echo "$as_me: creating dlls/ddraw/ddraw" >&6;} && mkdir "dlls/ddraw/ddraw") ;; |
| 17471 | dlls/ddraw/direct3d ) test -d "dlls/ddraw/direct3d" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/direct3d" >&5 |
| 17472 | echo "$as_me: creating dlls/ddraw/direct3d" >&6;} && mkdir "dlls/ddraw/direct3d") ;; |
| 17473 | dlls/ddraw/dpalette ) test -d "dlls/ddraw/dpalette" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dpalette" >&5 |
| 17474 | echo "$as_me: creating dlls/ddraw/dpalette" >&6;} && mkdir "dlls/ddraw/dpalette") ;; |
| 17475 | dlls/ddraw/dsurface ) test -d "dlls/ddraw/dsurface" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dsurface" >&5 |
| 17476 | echo "$as_me: creating dlls/ddraw/dsurface" >&6;} && mkdir "dlls/ddraw/dsurface") ;; |
| 17477 | dlls/dinput/joystick ) test -d "dlls/dinput/joystick" || ({ echo "$as_me:$LINENO: creating dlls/dinput/joystick" >&5 |
| 17478 | echo "$as_me: creating dlls/dinput/joystick" >&6;} && mkdir "dlls/dinput/joystick") ;; |
| 17479 | dlls/dinput/keyboard ) test -d "dlls/dinput/keyboard" || ({ echo "$as_me:$LINENO: creating dlls/dinput/keyboard" >&5 |
| 17480 | echo "$as_me: creating dlls/dinput/keyboard" >&6;} && mkdir "dlls/dinput/keyboard") ;; |
| 17481 | dlls/dinput/mouse ) test -d "dlls/dinput/mouse" || ({ echo "$as_me:$LINENO: creating dlls/dinput/mouse" >&5 |
| 17482 | echo "$as_me: creating dlls/dinput/mouse" >&6;} && mkdir "dlls/dinput/mouse") ;; |
| 17483 | dlls/gdi/enhmfdrv ) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5 |
| 17484 | echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;; |
| 17485 | dlls/gdi/mfdrv ) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5 |
| 17486 | echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17487 | dlls/kernel/messages ) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5 |
| 17488 | echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17489 | dlls/user/dde ) test -d "dlls/user/dde" || ({ echo "$as_me:$LINENO: creating dlls/user/dde" >&5 |
| 17490 | echo "$as_me: creating dlls/user/dde" >&6;} && mkdir "dlls/user/dde") ;; |
| 17491 | dlls/user/resources ) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5 |
| 17492 | echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17493 | dlls/wineps/data ) test -d "dlls/wineps/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps/data" >&5 |
| 17494 | echo "$as_me: creating dlls/wineps/data" >&6;} && mkdir "dlls/wineps/data") ;; |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 17495 | files ) test -d "files" || ({ echo "$as_me:$LINENO: creating files" >&5 |
| 17496 | echo "$as_me: creating files" >&6;} && mkdir "files") ;; |
| 17497 | graphics ) test -d "graphics" || ({ echo "$as_me:$LINENO: creating graphics" >&5 |
| 17498 | echo "$as_me: creating graphics" >&6;} && mkdir "graphics") ;; |
| 17499 | graphics/x11drv ) test -d "graphics/x11drv" || ({ echo "$as_me:$LINENO: creating graphics/x11drv" >&5 |
| 17500 | echo "$as_me: creating graphics/x11drv" >&6;} && mkdir "graphics/x11drv") ;; |
| 17501 | if1632 ) test -d "if1632" || ({ echo "$as_me:$LINENO: creating if1632" >&5 |
| 17502 | echo "$as_me: creating if1632" >&6;} && mkdir "if1632") ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17503 | include/wine ) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5 |
| 17504 | echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;; |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 17505 | loader ) test -d "loader" || ({ echo "$as_me:$LINENO: creating loader" >&5 |
| 17506 | echo "$as_me: creating loader" >&6;} && mkdir "loader") ;; |
| 17507 | loader/ne ) test -d "loader/ne" || ({ echo "$as_me:$LINENO: creating loader/ne" >&5 |
| 17508 | echo "$as_me: creating loader/ne" >&6;} && mkdir "loader/ne") ;; |
| 17509 | memory ) test -d "memory" || ({ echo "$as_me:$LINENO: creating memory" >&5 |
| 17510 | echo "$as_me: creating memory" >&6;} && mkdir "memory") ;; |
| 17511 | misc ) test -d "misc" || ({ echo "$as_me:$LINENO: creating misc" >&5 |
| 17512 | echo "$as_me: creating misc" >&6;} && mkdir "misc") ;; |
| 17513 | msdos ) test -d "msdos" || ({ echo "$as_me:$LINENO: creating msdos" >&5 |
| 17514 | echo "$as_me: creating msdos" >&6;} && mkdir "msdos") ;; |
| 17515 | objects ) test -d "objects" || ({ echo "$as_me:$LINENO: creating objects" >&5 |
| 17516 | echo "$as_me: creating objects" >&6;} && mkdir "objects") ;; |
Alexandre Julliard | 6692d39 | 2003-03-20 01:30:11 +0000 | [diff] [blame] | 17517 | ole ) test -d "ole" || ({ echo "$as_me:$LINENO: creating ole" >&5 |
| 17518 | echo "$as_me: creating ole" >&6;} && mkdir "ole") ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17519 | programs/regapi/tests ) test -d "programs/regapi/tests" || ({ echo "$as_me:$LINENO: creating programs/regapi/tests" >&5 |
| 17520 | echo "$as_me: creating programs/regapi/tests" >&6;} && mkdir "programs/regapi/tests") ;; |
Andriy Palamarchuk | f5aad76 | 2002-06-20 23:09:33 +0000 | [diff] [blame] | 17521 | programs/regedit/tests ) test -d "programs/regedit/tests" || ({ echo "$as_me:$LINENO: creating programs/regedit/tests" >&5 |
| 17522 | echo "$as_me: creating programs/regedit/tests" >&6;} && mkdir "programs/regedit/tests") ;; |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 17523 | relay32 ) test -d "relay32" || ({ echo "$as_me:$LINENO: creating relay32" >&5 |
| 17524 | echo "$as_me: creating relay32" >&6;} && mkdir "relay32") ;; |
| 17525 | scheduler ) test -d "scheduler" || ({ echo "$as_me:$LINENO: creating scheduler" >&5 |
| 17526 | echo "$as_me: creating scheduler" >&6;} && mkdir "scheduler") ;; |
| 17527 | win32 ) test -d "win32" || ({ echo "$as_me:$LINENO: creating win32" >&5 |
| 17528 | echo "$as_me: creating win32" >&6;} && mkdir "win32") ;; |
| 17529 | windows ) test -d "windows" || ({ echo "$as_me:$LINENO: creating windows" >&5 |
| 17530 | echo "$as_me: creating windows" >&6;} && mkdir "windows") ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17531 | esac |
| 17532 | done |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17533 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 17534 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17535 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | 87a2f8d | 2000-04-09 18:20:25 +0000 | [diff] [blame] | 17536 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17537 | { (exit 0); exit 0; } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17538 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 17539 | chmod +x $CONFIG_STATUS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17540 | ac_clean_files=$ac_clean_files_save |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 17541 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17542 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17543 | # configure is writing to config.log, and then calls config.status. |
| 17544 | # config.status does its own redirection, appending to config.log. |
| 17545 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 17546 | # by configure, so config.status won't be able to write to it; its |
| 17547 | # output is simply discarded. So we exec the FD to /dev/null, |
| 17548 | # effectively closing config.log, so it can be properly (re)opened and |
| 17549 | # appended to by config.status. When coming back to configure, we |
| 17550 | # need to make the FD available again. |
| 17551 | if test "$no_create" != yes; then |
| 17552 | ac_cs_success=: |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17553 | ac_config_status_args= |
| 17554 | test "$silent" = yes && |
| 17555 | ac_config_status_args="$ac_config_status_args --quiet" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17556 | exec 5>/dev/null |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17557 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17558 | exec 5>>config.log |
| 17559 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 17560 | # would make configure fail if this is the last instruction. |
| 17561 | $ac_cs_success || { (exit 1); exit 1; } |
| 17562 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 17563 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17564 | |
Ove Kaaven | 8b4431f | 1999-01-23 13:59:11 +0000 | [diff] [blame] | 17565 | if test "$have_x" = "no" |
| 17566 | then |
| 17567 | echo |
| 17568 | echo "*** Warning: X development files not found. Wine will be built without" |
| 17569 | echo "*** X support, which currently does not work, and would probably not be" |
| 17570 | 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] | 17571 | echo "*** Xlib/Xfree86 at the very least." |
Ove Kaaven | 8b4431f | 1999-01-23 13:59:11 +0000 | [diff] [blame] | 17572 | fi |
| 17573 | |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 17574 | if test "$wine_cv_opengl_version_OK" = "no" |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 17575 | then |
| 17576 | echo |
| 17577 | echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D" |
Lionel Ulmer | 5eee0bf | 2000-03-24 21:20:33 +0000 | [diff] [blame] | 17578 | echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)." |
| 17579 | fi |
| 17580 | |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 17581 | if test "$wine_cv_msg_freetype" = "yes" |
| 17582 | then |
| 17583 | echo |
| 17584 | echo "*** Note: Your system appears to have the FreeType 2 runtime libraries" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17585 | echo "*** installed, but 'freetype-config' is not in your PATH. Install the" |
| 17586 | echo "*** freetype-devel package (or its equivalent on your distribution) to" |
| 17587 | echo "*** enable Wine to use TrueType fonts." |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 17588 | fi |
| 17589 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 17590 | echo |
Steffen Moeller | 1511bae | 1999-02-17 15:27:03 +0000 | [diff] [blame] | 17591 | echo "Configure finished. Do 'make depend && make' to compile Wine." |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 17592 | echo |
| 17593 | |