Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | |
| 3 | # From configure.in configure.in 1.00 |
| 4 | # Guess values for system-dependent variables and create Makefiles. |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 5 | # Generated automatically using autoconf version 2.12 |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 6 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 7 | # |
| 8 | # This configure script is free software; the Free Software Foundation |
| 9 | # gives unlimited permission to copy, distribute and modify it. |
| 10 | |
| 11 | # Defaults: |
| 12 | ac_help= |
| 13 | ac_default_prefix=/usr/local |
| 14 | # Any additions from configure.in: |
| 15 | ac_help="$ac_help |
Alexandre Julliard | a0b2b1d | 1997-11-16 17:38:29 +0000 | [diff] [blame] | 16 | --disable-emulator build only the Wine library, not the emulator" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 17 | ac_help="$ac_help |
Alexandre Julliard | a0b2b1d | 1997-11-16 17:38:29 +0000 | [diff] [blame] | 18 | --enable-dll build the Wine library as a DLL" |
Alexandre Julliard | 7e56f68 | 1996-01-31 19:02:28 +0000 | [diff] [blame] | 19 | ac_help="$ac_help |
Alexandre Julliard | 642d313 | 1998-07-12 19:29:36 +0000 | [diff] [blame] | 20 | --disable-lib build the Wine without building libwine.a" |
| 21 | ac_help="$ac_help |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 22 | --disable-debug compile out all debugging messages" |
| 23 | ac_help="$ac_help |
| 24 | --disable-trace compile out TRACE messages" |
| 25 | ac_help="$ac_help |
Patrik Stridvall | f638aef | 1998-12-07 09:36:13 +0000 | [diff] [blame] | 26 | --without-reentrant-x compile for use with non-reentrant X libraries" |
Alexandre Julliard | a11d7b1 | 1998-03-01 20:05:02 +0000 | [diff] [blame] | 27 | ac_help="$ac_help |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 28 | --with-x use the X Window System" |
| 29 | |
| 30 | # Initialize some variables set by options. |
| 31 | # The variables have the same names as the options, with |
| 32 | # dashes changed to underlines. |
| 33 | build=NONE |
| 34 | cache_file=./config.cache |
| 35 | exec_prefix=NONE |
| 36 | host=NONE |
| 37 | no_create= |
| 38 | nonopt=NONE |
| 39 | no_recursion= |
| 40 | prefix=NONE |
| 41 | program_prefix=NONE |
| 42 | program_suffix=NONE |
| 43 | program_transform_name=s,x,x, |
| 44 | silent= |
| 45 | site= |
| 46 | srcdir= |
| 47 | target=NONE |
| 48 | verbose= |
| 49 | x_includes=NONE |
| 50 | x_libraries=NONE |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 51 | bindir='${exec_prefix}/bin' |
| 52 | sbindir='${exec_prefix}/sbin' |
| 53 | libexecdir='${exec_prefix}/libexec' |
| 54 | datadir='${prefix}/share' |
| 55 | sysconfdir='${prefix}/etc' |
| 56 | sharedstatedir='${prefix}/com' |
| 57 | localstatedir='${prefix}/var' |
| 58 | libdir='${exec_prefix}/lib' |
| 59 | includedir='${prefix}/include' |
| 60 | oldincludedir='/usr/include' |
| 61 | infodir='${prefix}/info' |
| 62 | mandir='${prefix}/man' |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 63 | |
| 64 | # Initialize some other variables. |
| 65 | subdirs= |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 66 | MFLAGS= MAKEFLAGS= |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 67 | # Maximum number of lines to put in a shell here document. |
| 68 | ac_max_here_lines=12 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 69 | |
| 70 | ac_prev= |
| 71 | for ac_option |
| 72 | do |
| 73 | |
| 74 | # If the previous option needs an argument, assign it. |
| 75 | if test -n "$ac_prev"; then |
| 76 | eval "$ac_prev=\$ac_option" |
| 77 | ac_prev= |
| 78 | continue |
| 79 | fi |
| 80 | |
| 81 | case "$ac_option" in |
| 82 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
| 83 | *) ac_optarg= ;; |
| 84 | esac |
| 85 | |
| 86 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 87 | |
| 88 | case "$ac_option" in |
| 89 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 90 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 91 | ac_prev=bindir ;; |
| 92 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 93 | bindir="$ac_optarg" ;; |
| 94 | |
| 95 | -build | --build | --buil | --bui | --bu) |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 96 | ac_prev=build ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 97 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 98 | build="$ac_optarg" ;; |
| 99 | |
| 100 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 101 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 102 | ac_prev=cache_file ;; |
| 103 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 104 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 105 | cache_file="$ac_optarg" ;; |
| 106 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 107 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 108 | ac_prev=datadir ;; |
| 109 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 110 | | --da=*) |
| 111 | datadir="$ac_optarg" ;; |
| 112 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 113 | -disable-* | --disable-*) |
| 114 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
| 115 | # Reject names that are not valid shell variable names. |
| 116 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
| 117 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
| 118 | fi |
| 119 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
| 120 | eval "enable_${ac_feature}=no" ;; |
| 121 | |
| 122 | -enable-* | --enable-*) |
| 123 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
| 124 | # Reject names that are not valid shell variable names. |
| 125 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
| 126 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
| 127 | fi |
| 128 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
| 129 | case "$ac_option" in |
| 130 | *=*) ;; |
| 131 | *) ac_optarg=yes ;; |
| 132 | esac |
| 133 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
| 134 | |
| 135 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 136 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 137 | | --exec | --exe | --ex) |
| 138 | ac_prev=exec_prefix ;; |
| 139 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 140 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 141 | | --exec=* | --exe=* | --ex=*) |
| 142 | exec_prefix="$ac_optarg" ;; |
| 143 | |
| 144 | -gas | --gas | --ga | --g) |
| 145 | # Obsolete; use --with-gas. |
| 146 | with_gas=yes ;; |
| 147 | |
| 148 | -help | --help | --hel | --he) |
| 149 | # Omit some internal or obsolete options to make the list less imposing. |
| 150 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 151 | cat << EOF |
| 152 | Usage: configure [options] [host] |
| 153 | Options: [defaults in brackets after descriptions] |
| 154 | Configuration: |
| 155 | --cache-file=FILE cache test results in FILE |
| 156 | --help print this message |
| 157 | --no-create do not create output files |
| 158 | --quiet, --silent do not print \`checking...' messages |
| 159 | --version print the version of autoconf that created configure |
| 160 | Directory and file names: |
| 161 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 162 | [$ac_default_prefix] |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 163 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 164 | [same as prefix] |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 165 | --bindir=DIR user executables in DIR [EPREFIX/bin] |
| 166 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] |
| 167 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] |
| 168 | --datadir=DIR read-only architecture-independent data in DIR |
| 169 | [PREFIX/share] |
| 170 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
| 171 | --sharedstatedir=DIR modifiable architecture-independent data in DIR |
| 172 | [PREFIX/com] |
| 173 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
| 174 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] |
| 175 | --includedir=DIR C header files in DIR [PREFIX/include] |
| 176 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] |
| 177 | --infodir=DIR info documentation in DIR [PREFIX/info] |
| 178 | --mandir=DIR man documentation in DIR [PREFIX/man] |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 179 | --srcdir=DIR find the sources in DIR [configure dir or ..] |
| 180 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 181 | --program-suffix=SUFFIX append SUFFIX to installed program names |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 182 | --program-transform-name=PROGRAM |
| 183 | run sed PROGRAM on installed program names |
| 184 | EOF |
| 185 | cat << EOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 186 | Host type: |
| 187 | --build=BUILD configure for building on BUILD [BUILD=HOST] |
| 188 | --host=HOST configure for HOST [guessed] |
| 189 | --target=TARGET configure for TARGET [TARGET=HOST] |
| 190 | Features and packages: |
| 191 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 192 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 193 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 194 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 195 | --x-includes=DIR X include files are in DIR |
| 196 | --x-libraries=DIR X library files are in DIR |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 197 | EOF |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 198 | if test -n "$ac_help"; then |
| 199 | echo "--enable and --with options recognized:$ac_help" |
| 200 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 201 | exit 0 ;; |
| 202 | |
| 203 | -host | --host | --hos | --ho) |
| 204 | ac_prev=host ;; |
| 205 | -host=* | --host=* | --hos=* | --ho=*) |
| 206 | host="$ac_optarg" ;; |
| 207 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 208 | -includedir | --includedir | --includedi | --included | --include \ |
| 209 | | --includ | --inclu | --incl | --inc) |
| 210 | ac_prev=includedir ;; |
| 211 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 212 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 213 | includedir="$ac_optarg" ;; |
| 214 | |
| 215 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 216 | ac_prev=infodir ;; |
| 217 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 218 | infodir="$ac_optarg" ;; |
| 219 | |
| 220 | -libdir | --libdir | --libdi | --libd) |
| 221 | ac_prev=libdir ;; |
| 222 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 223 | libdir="$ac_optarg" ;; |
| 224 | |
| 225 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 226 | | --libexe | --libex | --libe) |
| 227 | ac_prev=libexecdir ;; |
| 228 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 229 | | --libexe=* | --libex=* | --libe=*) |
| 230 | libexecdir="$ac_optarg" ;; |
| 231 | |
| 232 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 233 | | --localstate | --localstat | --localsta | --localst \ |
| 234 | | --locals | --local | --loca | --loc | --lo) |
| 235 | ac_prev=localstatedir ;; |
| 236 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 237 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 238 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
| 239 | localstatedir="$ac_optarg" ;; |
| 240 | |
| 241 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 242 | ac_prev=mandir ;; |
| 243 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 244 | mandir="$ac_optarg" ;; |
| 245 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 246 | -nfp | --nfp | --nf) |
| 247 | # Obsolete; use --without-fp. |
| 248 | with_fp=no ;; |
| 249 | |
| 250 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 251 | | --no-cr | --no-c) |
| 252 | no_create=yes ;; |
| 253 | |
| 254 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 255 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 256 | no_recursion=yes ;; |
| 257 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 258 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 259 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 260 | | --oldin | --oldi | --old | --ol | --o) |
| 261 | ac_prev=oldincludedir ;; |
| 262 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 263 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 264 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 265 | oldincludedir="$ac_optarg" ;; |
| 266 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 267 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 268 | ac_prev=prefix ;; |
| 269 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 270 | prefix="$ac_optarg" ;; |
| 271 | |
| 272 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 273 | | --program-pre | --program-pr | --program-p) |
| 274 | ac_prev=program_prefix ;; |
| 275 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 276 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 277 | program_prefix="$ac_optarg" ;; |
| 278 | |
| 279 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 280 | | --program-suf | --program-su | --program-s) |
| 281 | ac_prev=program_suffix ;; |
| 282 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 283 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 284 | program_suffix="$ac_optarg" ;; |
| 285 | |
| 286 | -program-transform-name | --program-transform-name \ |
| 287 | | --program-transform-nam | --program-transform-na \ |
| 288 | | --program-transform-n | --program-transform- \ |
| 289 | | --program-transform | --program-transfor \ |
| 290 | | --program-transfo | --program-transf \ |
| 291 | | --program-trans | --program-tran \ |
| 292 | | --progr-tra | --program-tr | --program-t) |
| 293 | ac_prev=program_transform_name ;; |
| 294 | -program-transform-name=* | --program-transform-name=* \ |
| 295 | | --program-transform-nam=* | --program-transform-na=* \ |
| 296 | | --program-transform-n=* | --program-transform-=* \ |
| 297 | | --program-transform=* | --program-transfor=* \ |
| 298 | | --program-transfo=* | --program-transf=* \ |
| 299 | | --program-trans=* | --program-tran=* \ |
| 300 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 301 | program_transform_name="$ac_optarg" ;; |
| 302 | |
| 303 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 304 | | -silent | --silent | --silen | --sile | --sil) |
| 305 | silent=yes ;; |
| 306 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 307 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 308 | ac_prev=sbindir ;; |
| 309 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 310 | | --sbi=* | --sb=*) |
| 311 | sbindir="$ac_optarg" ;; |
| 312 | |
| 313 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 314 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 315 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 316 | | --sha | --sh) |
| 317 | ac_prev=sharedstatedir ;; |
| 318 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 319 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 320 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 321 | | --sha=* | --sh=*) |
| 322 | sharedstatedir="$ac_optarg" ;; |
| 323 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 324 | -site | --site | --sit) |
| 325 | ac_prev=site ;; |
| 326 | -site=* | --site=* | --sit=*) |
| 327 | site="$ac_optarg" ;; |
| 328 | |
| 329 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 330 | ac_prev=srcdir ;; |
| 331 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 332 | srcdir="$ac_optarg" ;; |
| 333 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 334 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 335 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 336 | ac_prev=sysconfdir ;; |
| 337 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 338 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 339 | sysconfdir="$ac_optarg" ;; |
| 340 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 341 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 342 | ac_prev=target ;; |
| 343 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 344 | target="$ac_optarg" ;; |
| 345 | |
| 346 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 347 | verbose=yes ;; |
| 348 | |
| 349 | -version | --version | --versio | --versi | --vers) |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 350 | echo "configure generated by autoconf version 2.12" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 351 | exit 0 ;; |
| 352 | |
| 353 | -with-* | --with-*) |
| 354 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
| 355 | # Reject names that are not valid shell variable names. |
| 356 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
| 357 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
| 358 | fi |
| 359 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 360 | case "$ac_option" in |
| 361 | *=*) ;; |
| 362 | *) ac_optarg=yes ;; |
| 363 | esac |
| 364 | eval "with_${ac_package}='$ac_optarg'" ;; |
| 365 | |
| 366 | -without-* | --without-*) |
| 367 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
| 368 | # Reject names that are not valid shell variable names. |
| 369 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
| 370 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
| 371 | fi |
| 372 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 373 | eval "with_${ac_package}=no" ;; |
| 374 | |
| 375 | --x) |
| 376 | # Obsolete; use --with-x. |
| 377 | with_x=yes ;; |
| 378 | |
| 379 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 380 | | --x-incl | --x-inc | --x-in | --x-i) |
| 381 | ac_prev=x_includes ;; |
| 382 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 383 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 384 | x_includes="$ac_optarg" ;; |
| 385 | |
| 386 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 387 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 388 | ac_prev=x_libraries ;; |
| 389 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 390 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 391 | x_libraries="$ac_optarg" ;; |
| 392 | |
| 393 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
| 394 | ;; |
| 395 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 396 | *) |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 397 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
| 398 | echo "configure: warning: $ac_option: invalid host type" 1>&2 |
| 399 | fi |
| 400 | if test "x$nonopt" != xNONE; then |
| 401 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } |
| 402 | fi |
| 403 | nonopt="$ac_option" |
| 404 | ;; |
| 405 | |
| 406 | esac |
| 407 | done |
| 408 | |
| 409 | if test -n "$ac_prev"; then |
| 410 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
| 411 | fi |
| 412 | |
| 413 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
| 414 | |
| 415 | # File descriptor usage: |
| 416 | # 0 standard input |
| 417 | # 1 file creation |
| 418 | # 2 errors and warnings |
| 419 | # 3 some systems may open it to /dev/tty |
| 420 | # 4 used on the Kubota Titan |
| 421 | # 6 checking for... messages and results |
| 422 | # 5 compiler messages saved in config.log |
| 423 | if test "$silent" = yes; then |
| 424 | exec 6>/dev/null |
| 425 | else |
| 426 | exec 6>&1 |
| 427 | fi |
| 428 | exec 5>./config.log |
| 429 | |
| 430 | echo "\ |
| 431 | This file contains any messages produced by compilers while |
| 432 | running configure, to aid debugging if configure makes a mistake. |
| 433 | " 1>&5 |
| 434 | |
| 435 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 436 | # Also quote any args containing shell metacharacters. |
| 437 | ac_configure_args= |
| 438 | for ac_arg |
| 439 | do |
| 440 | case "$ac_arg" in |
| 441 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 442 | | --no-cr | --no-c) ;; |
| 443 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 444 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
| 445 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
| 446 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 447 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; |
| 448 | esac |
| 449 | done |
| 450 | |
| 451 | # NLS nuisances. |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 452 | # Only set these to C if already set. These must not be set unconditionally |
| 453 | # because not all systems understand e.g. LANG=C (notably SCO). |
| 454 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
| 455 | # Non-C LC_CTYPE values break the ctype check. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 456 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 457 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
| 458 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
| 459 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 460 | |
| 461 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 462 | rm -rf conftest* confdefs.h |
| 463 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 464 | echo > confdefs.h |
| 465 | |
| 466 | # A filename unique to this package, relative to the directory that |
| 467 | # configure is in, which we can look for to find out if srcdir is correct. |
| 468 | ac_unique_file=controls/edit.c |
| 469 | |
| 470 | # Find the source files, if location was not specified. |
| 471 | if test -z "$srcdir"; then |
| 472 | ac_srcdir_defaulted=yes |
| 473 | # Try the directory containing this script, then its parent. |
| 474 | ac_prog=$0 |
| 475 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
| 476 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
| 477 | srcdir=$ac_confdir |
| 478 | if test ! -r $srcdir/$ac_unique_file; then |
| 479 | srcdir=.. |
| 480 | fi |
| 481 | else |
| 482 | ac_srcdir_defaulted=no |
| 483 | fi |
| 484 | if test ! -r $srcdir/$ac_unique_file; then |
| 485 | if test "$ac_srcdir_defaulted" = yes; then |
| 486 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
| 487 | else |
| 488 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
| 489 | fi |
| 490 | fi |
| 491 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
| 492 | |
| 493 | # Prefer explicitly selected file to automatically selected ones. |
| 494 | if test -z "$CONFIG_SITE"; then |
| 495 | if test "x$prefix" != xNONE; then |
| 496 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 497 | else |
| 498 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 499 | fi |
| 500 | fi |
| 501 | for ac_site_file in $CONFIG_SITE; do |
| 502 | if test -r "$ac_site_file"; then |
| 503 | echo "loading site script $ac_site_file" |
| 504 | . "$ac_site_file" |
| 505 | fi |
| 506 | done |
| 507 | |
| 508 | if test -r "$cache_file"; then |
| 509 | echo "loading cache $cache_file" |
| 510 | . $cache_file |
| 511 | else |
| 512 | echo "creating cache $cache_file" |
| 513 | > $cache_file |
| 514 | fi |
| 515 | |
| 516 | ac_ext=c |
| 517 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 518 | ac_cpp='$CPP $CPPFLAGS' |
| 519 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 520 | ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 521 | cross_compiling=$ac_cv_prog_cc_cross |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 522 | |
| 523 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
| 524 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
| 525 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
| 526 | ac_n= ac_c=' |
| 527 | ' ac_t=' ' |
| 528 | else |
| 529 | ac_n=-n ac_c= ac_t= |
| 530 | fi |
| 531 | else |
| 532 | ac_n= ac_c='\c' ac_t= |
| 533 | fi |
| 534 | |
| 535 | |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 536 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 537 | ac_aux_dir= |
| 538 | for ac_dir in tools $srcdir/tools; do |
| 539 | if test -f $ac_dir/install-sh; then |
| 540 | ac_aux_dir=$ac_dir |
| 541 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 542 | break |
| 543 | elif test -f $ac_dir/install.sh; then |
| 544 | ac_aux_dir=$ac_dir |
| 545 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 546 | break |
| 547 | fi |
| 548 | done |
| 549 | if test -z "$ac_aux_dir"; then |
| 550 | { echo "configure: error: can not find install-sh or install.sh in tools $srcdir/tools" 1>&2; exit 1; } |
| 551 | fi |
| 552 | ac_config_guess=$ac_aux_dir/config.guess |
| 553 | ac_config_sub=$ac_aux_dir/config.sub |
| 554 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. |
| 555 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 556 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 557 | # We want these before the checks, so the checks can modify their values. |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 558 | LIBS="$LIBS -lm" |
Alexandre Julliard | c6c0944 | 1997-01-12 18:32:19 +0000 | [diff] [blame] | 559 | test -z "$PROGEXT" && PROGEXT="" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 560 | |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 561 | |
Alexandre Julliard | a0b2b1d | 1997-11-16 17:38:29 +0000 | [diff] [blame] | 562 | MAIN_TARGET=emu |
| 563 | LIB_TARGET=libwine.a |
Todd Vierling | 8beb15a | 1998-12-18 17:30:52 +0000 | [diff] [blame] | 564 | ALT_LINK="-L\$(TOPOBJDIR) -lwine" |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 565 | TRACE_MSGS=yes # the TRACE() macro |
| 566 | DEBUG_MSGS=yes # the TRACE(), WARN(), and FIXME() macros. |
Alexandre Julliard | a0b2b1d | 1997-11-16 17:38:29 +0000 | [diff] [blame] | 567 | |
| 568 | # Check whether --enable-emulator or --disable-emulator was given. |
| 569 | if test "${enable_emulator+set}" = set; then |
| 570 | enableval="$enable_emulator" |
| 571 | if test "$enableval" = "no"; then MAIN_TARGET="lib"; fi |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 572 | fi |
| 573 | |
| 574 | |
Alexandre Julliard | a0b2b1d | 1997-11-16 17:38:29 +0000 | [diff] [blame] | 575 | # Check whether --enable-dll or --disable-dll was given. |
| 576 | if test "${enable_dll+set}" = set; then |
| 577 | enableval="$enable_dll" |
| 578 | if test "$enableval" = "no"; then : ; else LIB_TARGET="libwine.so.1.0"; fi |
Alexandre Julliard | 7e56f68 | 1996-01-31 19:02:28 +0000 | [diff] [blame] | 579 | fi |
| 580 | |
| 581 | |
Alexandre Julliard | 642d313 | 1998-07-12 19:29:36 +0000 | [diff] [blame] | 582 | # Check whether --enable-lib or --disable-lib was given. |
| 583 | if test "${enable_lib+set}" = set; then |
| 584 | enableval="$enable_lib" |
Ove Kaaven | 11e1a5e | 1998-11-06 10:01:45 +0000 | [diff] [blame] | 585 | if test "$enableval" = "no"; then ALT_LINK="\$(LIBOBJS) \$(X11OBJS)"; LIB_TARGET=""; fi |
Alexandre Julliard | 642d313 | 1998-07-12 19:29:36 +0000 | [diff] [blame] | 586 | fi |
| 587 | |
| 588 | |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 589 | |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 590 | # Check whether --enable-debug or --disable-debug was given. |
| 591 | if test "${enable_debug+set}" = set; then |
| 592 | enableval="$enable_debug" |
| 593 | if test "$enableval" = "no"; then DEBUG_MSGS="no"; fi |
| 594 | fi |
| 595 | |
| 596 | |
| 597 | # Check whether --enable-trace or --disable-trace was given. |
| 598 | if test "${enable_trace+set}" = set; then |
| 599 | enableval="$enable_trace" |
| 600 | if test "$enableval" = "no"; then TRACE_MSGS="no"; fi |
| 601 | fi |
| 602 | |
| 603 | |
Alexandre Julliard | a11d7b1 | 1998-03-01 20:05:02 +0000 | [diff] [blame] | 604 | # Check whether --with-reentrant-x or --without-reentrant-x was given. |
| 605 | if test "${with_reentrant_x+set}" = set; then |
| 606 | withval="$with_reentrant_x" |
| 607 | : |
| 608 | fi |
| 609 | |
| 610 | |
Alexandre Julliard | b7258be | 1995-09-01 15:57:28 +0000 | [diff] [blame] | 611 | |
Alexandre Julliard | b7258be | 1995-09-01 15:57:28 +0000 | [diff] [blame] | 612 | |
| 613 | |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 614 | |
Uwe Bonnes | 2a4707a | 1998-10-11 14:57:08 +0000 | [diff] [blame] | 615 | |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 616 | if test "$DEBUG_MSGS" = "no" |
| 617 | then |
| 618 | cat >> confdefs.h <<\EOF |
| 619 | #define NO_DEBUG_MSGS 1 |
| 620 | EOF |
| 621 | |
| 622 | cat >> confdefs.h <<\EOF |
| 623 | #define NO_TRACE_MSGS 1 |
| 624 | EOF |
| 625 | |
| 626 | else |
| 627 | if test "$TRACE_MSGS" = "no" |
| 628 | then |
| 629 | cat >> confdefs.h <<\EOF |
| 630 | #define NO_TRACE_MSGS 1 |
| 631 | EOF |
| 632 | |
| 633 | fi |
| 634 | fi |
| 635 | |
Alexandre Julliard | a0b2b1d | 1997-11-16 17:38:29 +0000 | [diff] [blame] | 636 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 637 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 638 | echo "configure:639: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 639 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 640 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
| 641 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 642 | else |
| 643 | cat > conftestmake <<\EOF |
| 644 | all: |
| 645 | @echo 'ac_maketemp="${MAKE}"' |
| 646 | EOF |
| 647 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 648 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
| 649 | if test -n "$ac_maketemp"; then |
| 650 | eval ac_cv_prog_make_${ac_make}_set=yes |
| 651 | else |
| 652 | eval ac_cv_prog_make_${ac_make}_set=no |
| 653 | fi |
| 654 | rm -f conftestmake |
| 655 | fi |
| 656 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
| 657 | echo "$ac_t""yes" 1>&6 |
| 658 | SET_MAKE= |
| 659 | else |
| 660 | echo "$ac_t""no" 1>&6 |
| 661 | SET_MAKE="MAKE=${MAKE-make}" |
| 662 | fi |
| 663 | |
| 664 | # Extract the first word of "gcc", so it can be a program name with args. |
| 665 | set dummy gcc; ac_word=$2 |
| 666 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 667 | echo "configure:668: checking for $ac_word" >&5 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 668 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 669 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 670 | else |
| 671 | if test -n "$CC"; then |
| 672 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 673 | else |
| 674 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 675 | for ac_dir in $PATH; do |
| 676 | test -z "$ac_dir" && ac_dir=. |
| 677 | if test -f $ac_dir/$ac_word; then |
| 678 | ac_cv_prog_CC="gcc" |
| 679 | break |
| 680 | fi |
| 681 | done |
| 682 | IFS="$ac_save_ifs" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 683 | fi |
| 684 | fi |
| 685 | CC="$ac_cv_prog_CC" |
| 686 | if test -n "$CC"; then |
| 687 | echo "$ac_t""$CC" 1>&6 |
| 688 | else |
| 689 | echo "$ac_t""no" 1>&6 |
| 690 | fi |
| 691 | |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 692 | if test -z "$CC"; then |
| 693 | # Extract the first word of "cc", so it can be a program name with args. |
| 694 | set dummy cc; ac_word=$2 |
| 695 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 696 | echo "configure:697: checking for $ac_word" >&5 |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 697 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 698 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 699 | else |
| 700 | if test -n "$CC"; then |
| 701 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 702 | else |
| 703 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 704 | ac_prog_rejected=no |
| 705 | for ac_dir in $PATH; do |
| 706 | test -z "$ac_dir" && ac_dir=. |
| 707 | if test -f $ac_dir/$ac_word; then |
| 708 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
| 709 | ac_prog_rejected=yes |
| 710 | continue |
| 711 | fi |
| 712 | ac_cv_prog_CC="cc" |
| 713 | break |
| 714 | fi |
| 715 | done |
| 716 | IFS="$ac_save_ifs" |
| 717 | if test $ac_prog_rejected = yes; then |
| 718 | # We found a bogon in the path, so make sure we never use it. |
| 719 | set dummy $ac_cv_prog_CC |
| 720 | shift |
| 721 | if test $# -gt 0; then |
| 722 | # We chose a different compiler from the bogus one. |
| 723 | # However, it has the same basename, so the bogon will be chosen |
| 724 | # first if we set CC to just the basename; use the full file name. |
| 725 | shift |
| 726 | set dummy "$ac_dir/$ac_word" "$@" |
| 727 | shift |
| 728 | ac_cv_prog_CC="$@" |
| 729 | fi |
| 730 | fi |
| 731 | fi |
| 732 | fi |
| 733 | CC="$ac_cv_prog_CC" |
| 734 | if test -n "$CC"; then |
| 735 | echo "$ac_t""$CC" 1>&6 |
| 736 | else |
| 737 | echo "$ac_t""no" 1>&6 |
| 738 | fi |
| 739 | |
| 740 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
| 741 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 742 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 743 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 744 | echo "configure:745: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 745 | |
| 746 | ac_ext=c |
| 747 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 748 | ac_cpp='$CPP $CPPFLAGS' |
| 749 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 750 | ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 751 | cross_compiling=$ac_cv_prog_cc_cross |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 752 | |
| 753 | cat > conftest.$ac_ext <<EOF |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 754 | #line 755 "configure" |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 755 | #include "confdefs.h" |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 756 | main(){return(0);} |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 757 | EOF |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 758 | if { (eval echo configure:759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 759 | ac_cv_prog_cc_works=yes |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 760 | # If we can't run a trivial program, we are probably using a cross compiler. |
| 761 | if (./conftest; exit) 2>/dev/null; then |
| 762 | ac_cv_prog_cc_cross=no |
| 763 | else |
| 764 | ac_cv_prog_cc_cross=yes |
| 765 | fi |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 766 | else |
| 767 | echo "configure: failed program was:" >&5 |
| 768 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 769 | ac_cv_prog_cc_works=no |
| 770 | fi |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 771 | rm -fr conftest* |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 772 | |
| 773 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
| 774 | if test $ac_cv_prog_cc_works = no; then |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 775 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 776 | fi |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 777 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 778 | echo "configure:779: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 779 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
| 780 | cross_compiling=$ac_cv_prog_cc_cross |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 781 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 782 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 783 | echo "configure:784: checking whether we are using GNU C" >&5 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 784 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
| 785 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 786 | else |
| 787 | cat > conftest.c <<EOF |
| 788 | #ifdef __GNUC__ |
| 789 | yes; |
| 790 | #endif |
| 791 | EOF |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 792 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:793: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 793 | ac_cv_prog_gcc=yes |
| 794 | else |
| 795 | ac_cv_prog_gcc=no |
| 796 | fi |
| 797 | fi |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 798 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 799 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 800 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 801 | if test $ac_cv_prog_gcc = yes; then |
| 802 | GCC=yes |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 803 | ac_test_CFLAGS="${CFLAGS+set}" |
| 804 | ac_save_CFLAGS="$CFLAGS" |
| 805 | CFLAGS= |
| 806 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 807 | echo "configure:808: checking whether ${CC-cc} accepts -g" >&5 |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 808 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 809 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 810 | else |
| 811 | echo 'void f(){}' > conftest.c |
| 812 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 813 | ac_cv_prog_cc_g=yes |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 814 | else |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 815 | ac_cv_prog_cc_g=no |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 816 | fi |
| 817 | rm -f conftest* |
| 818 | |
| 819 | fi |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 820 | |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 821 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 822 | if test "$ac_test_CFLAGS" = set; then |
| 823 | CFLAGS="$ac_save_CFLAGS" |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 824 | elif test $ac_cv_prog_cc_g = yes; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 825 | CFLAGS="-g -O2" |
| 826 | else |
| 827 | CFLAGS="-O2" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 828 | fi |
| 829 | else |
| 830 | GCC= |
| 831 | test "${CFLAGS+set}" = set || CFLAGS="-g" |
| 832 | fi |
| 833 | |
| 834 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 835 | echo "configure:836: checking how to run the C preprocessor" >&5 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 836 | # On Suns, sometimes $CPP names a directory. |
| 837 | if test -n "$CPP" && test -d "$CPP"; then |
| 838 | CPP= |
| 839 | fi |
| 840 | if test -z "$CPP"; then |
| 841 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
| 842 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 843 | else |
| 844 | # This must be in double quotes, not single quotes, because CPP may get |
| 845 | # substituted into the Makefile and "${CC-cc}" will confuse make. |
| 846 | CPP="${CC-cc} -E" |
| 847 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 848 | # not just through cpp. |
| 849 | cat > conftest.$ac_ext <<EOF |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 850 | #line 851 "configure" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 851 | #include "confdefs.h" |
| 852 | #include <assert.h> |
| 853 | Syntax Error |
| 854 | EOF |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 855 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 856 | { (eval echo configure:857: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 857 | ac_err=`grep -v '^ *+' conftest.out` |
| 858 | if test -z "$ac_err"; then |
| 859 | : |
| 860 | else |
| 861 | echo "$ac_err" >&5 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 862 | echo "configure: failed program was:" >&5 |
| 863 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 864 | rm -rf conftest* |
| 865 | CPP="${CC-cc} -E -traditional-cpp" |
| 866 | cat > conftest.$ac_ext <<EOF |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 867 | #line 868 "configure" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 868 | #include "confdefs.h" |
| 869 | #include <assert.h> |
| 870 | Syntax Error |
| 871 | EOF |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 872 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 873 | { (eval echo configure:874: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 874 | ac_err=`grep -v '^ *+' conftest.out` |
| 875 | if test -z "$ac_err"; then |
| 876 | : |
| 877 | else |
| 878 | echo "$ac_err" >&5 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 879 | echo "configure: failed program was:" >&5 |
| 880 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 881 | rm -rf conftest* |
| 882 | CPP=/lib/cpp |
| 883 | fi |
| 884 | rm -f conftest* |
| 885 | fi |
| 886 | rm -f conftest* |
| 887 | ac_cv_prog_CPP="$CPP" |
| 888 | fi |
| 889 | CPP="$ac_cv_prog_CPP" |
| 890 | else |
| 891 | ac_cv_prog_CPP="$CPP" |
| 892 | fi |
| 893 | echo "$ac_t""$CPP" 1>&6 |
| 894 | |
| 895 | # If we find X, set shell vars x_includes and x_libraries to the |
| 896 | # paths, otherwise set no_x=yes. |
| 897 | # Uses ac_ vars as temps to allow command line to override cache and checks. |
| 898 | # --without-x overrides everything else, but does not touch the cache. |
| 899 | echo $ac_n "checking for X""... $ac_c" 1>&6 |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 900 | echo "configure:901: checking for X" >&5 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 901 | |
| 902 | # Check whether --with-x or --without-x was given. |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 903 | if test "${with_x+set}" = set; then |
| 904 | withval="$with_x" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 905 | : |
| 906 | fi |
| 907 | |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 908 | # $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] | 909 | if test "x$with_x" = xno; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 910 | # The user explicitly disabled X. |
| 911 | have_x=disabled |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 912 | else |
| 913 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 914 | # Both variables are already set. |
| 915 | have_x=yes |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 916 | else |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 917 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 918 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 919 | else |
| 920 | # One or both of the vars are not set, and there is no cached value. |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 921 | ac_x_includes=NO ac_x_libraries=NO |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 922 | rm -fr conftestdir |
| 923 | if mkdir conftestdir; then |
| 924 | cd conftestdir |
| 925 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
| 926 | cat > Imakefile <<'EOF' |
| 927 | acfindx: |
| 928 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' |
| 929 | EOF |
| 930 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 931 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 932 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 933 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
| 934 | for ac_extension in a so sl; do |
| 935 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
| 936 | test -f $ac_im_libdir/libX11.$ac_extension; then |
| 937 | ac_im_usrlibdir=$ac_im_libdir; break |
| 938 | fi |
| 939 | done |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 940 | # Screen out bogus values from the imake configuration. They are |
| 941 | # bogus both because they are the default anyway, and because |
| 942 | # using them would break gcc on systems where it needs fixed includes. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 943 | case "$ac_im_incroot" in |
| 944 | /usr/include) ;; |
| 945 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; |
| 946 | esac |
| 947 | case "$ac_im_usrlibdir" in |
| 948 | /usr/lib | /lib) ;; |
| 949 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; |
| 950 | esac |
| 951 | fi |
| 952 | cd .. |
| 953 | rm -fr conftestdir |
| 954 | fi |
| 955 | |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 956 | if test "$ac_x_includes" = NO; then |
| 957 | # Guess where to find include files, by looking for this one X11 .h file. |
| 958 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h |
| 959 | |
| 960 | # First, try using that file with no special directory specified. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 961 | cat > conftest.$ac_ext <<EOF |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 962 | #line 963 "configure" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 963 | #include "confdefs.h" |
| 964 | #include <$x_direct_test_include> |
| 965 | EOF |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 966 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 967 | { (eval echo configure:968: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 968 | ac_err=`grep -v '^ *+' conftest.out` |
| 969 | if test -z "$ac_err"; then |
| 970 | rm -rf conftest* |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 971 | # We can compile using X headers with no special include directory. |
| 972 | ac_x_includes= |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 973 | else |
| 974 | echo "$ac_err" >&5 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 975 | echo "configure: failed program was:" >&5 |
| 976 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 977 | rm -rf conftest* |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 978 | # Look for the header file in a standard set of common directories. |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 979 | # Check X11 before X11Rn because it is often a symlink to the current release. |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 980 | for ac_dir in \ |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 981 | /usr/X11/include \ |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 982 | /usr/X11R6/include \ |
| 983 | /usr/X11R5/include \ |
| 984 | /usr/X11R4/include \ |
| 985 | \ |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 986 | /usr/include/X11 \ |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 987 | /usr/include/X11R6 \ |
| 988 | /usr/include/X11R5 \ |
| 989 | /usr/include/X11R4 \ |
| 990 | \ |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 991 | /usr/local/X11/include \ |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 992 | /usr/local/X11R6/include \ |
| 993 | /usr/local/X11R5/include \ |
| 994 | /usr/local/X11R4/include \ |
| 995 | \ |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 996 | /usr/local/include/X11 \ |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 997 | /usr/local/include/X11R6 \ |
| 998 | /usr/local/include/X11R5 \ |
| 999 | /usr/local/include/X11R4 \ |
| 1000 | \ |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1001 | /usr/X386/include \ |
| 1002 | /usr/x386/include \ |
| 1003 | /usr/XFree86/include/X11 \ |
| 1004 | \ |
| 1005 | /usr/include \ |
| 1006 | /usr/local/include \ |
| 1007 | /usr/unsupported/include \ |
| 1008 | /usr/athena/include \ |
| 1009 | /usr/local/x11r5/include \ |
| 1010 | /usr/lpp/Xamples/include \ |
| 1011 | \ |
| 1012 | /usr/openwin/include \ |
| 1013 | /usr/openwin/share/include \ |
| 1014 | ; \ |
| 1015 | do |
| 1016 | if test -r "$ac_dir/$x_direct_test_include"; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1017 | ac_x_includes=$ac_dir |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1018 | break |
| 1019 | fi |
| 1020 | done |
| 1021 | fi |
| 1022 | rm -f conftest* |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1023 | fi # $ac_x_includes = NO |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1024 | |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1025 | if test "$ac_x_libraries" = NO; then |
| 1026 | # Check for the libraries. |
| 1027 | |
| 1028 | test -z "$x_direct_test_library" && x_direct_test_library=Xt |
| 1029 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc |
| 1030 | |
| 1031 | # See if we find them without any special options. |
| 1032 | # Don't add to $LIBS permanently. |
| 1033 | ac_save_LIBS="$LIBS" |
| 1034 | LIBS="-l$x_direct_test_library $LIBS" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1035 | cat > conftest.$ac_ext <<EOF |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 1036 | #line 1037 "configure" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1037 | #include "confdefs.h" |
| 1038 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1039 | int main() { |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1040 | ${x_direct_test_function}() |
| 1041 | ; return 0; } |
| 1042 | EOF |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 1043 | if { (eval echo configure:1044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1044 | rm -rf conftest* |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1045 | LIBS="$ac_save_LIBS" |
| 1046 | # We can link X programs with no special library path. |
| 1047 | ac_x_libraries= |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1048 | else |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1049 | echo "configure: failed program was:" >&5 |
| 1050 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1051 | rm -rf conftest* |
| 1052 | LIBS="$ac_save_LIBS" |
| 1053 | # First see if replacing the include by lib works. |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1054 | # Check X11 before X11Rn because it is often a symlink to the current release. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1055 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1056 | /usr/X11/lib \ |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1057 | /usr/X11R6/lib \ |
| 1058 | /usr/X11R5/lib \ |
| 1059 | /usr/X11R4/lib \ |
| 1060 | \ |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1061 | /usr/lib/X11 \ |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1062 | /usr/lib/X11R6 \ |
| 1063 | /usr/lib/X11R5 \ |
| 1064 | /usr/lib/X11R4 \ |
| 1065 | \ |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1066 | /usr/local/X11/lib \ |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1067 | /usr/local/X11R6/lib \ |
| 1068 | /usr/local/X11R5/lib \ |
| 1069 | /usr/local/X11R4/lib \ |
| 1070 | \ |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1071 | /usr/local/lib/X11 \ |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1072 | /usr/local/lib/X11R6 \ |
| 1073 | /usr/local/lib/X11R5 \ |
| 1074 | /usr/local/lib/X11R4 \ |
| 1075 | \ |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1076 | /usr/X386/lib \ |
| 1077 | /usr/x386/lib \ |
| 1078 | /usr/XFree86/lib/X11 \ |
| 1079 | \ |
| 1080 | /usr/lib \ |
| 1081 | /usr/local/lib \ |
| 1082 | /usr/unsupported/lib \ |
| 1083 | /usr/athena/lib \ |
| 1084 | /usr/local/x11r5/lib \ |
| 1085 | /usr/lpp/Xamples/lib \ |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1086 | /lib/usr/lib/X11 \ |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1087 | \ |
| 1088 | /usr/openwin/lib \ |
| 1089 | /usr/openwin/share/lib \ |
| 1090 | ; \ |
| 1091 | do |
| 1092 | for ac_extension in a so sl; do |
| 1093 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1094 | ac_x_libraries=$ac_dir |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1095 | break 2 |
| 1096 | fi |
| 1097 | done |
| 1098 | done |
| 1099 | fi |
| 1100 | rm -f conftest* |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1101 | fi # $ac_x_libraries = NO |
| 1102 | |
| 1103 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then |
| 1104 | # Didn't find X anywhere. Cache the known absence of X. |
| 1105 | ac_cv_have_x="have_x=no" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1106 | else |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1107 | # Record where we found X for the cache. |
| 1108 | ac_cv_have_x="have_x=yes \ |
| 1109 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1110 | fi |
| 1111 | fi |
| 1112 | fi |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1113 | eval "$ac_cv_have_x" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1114 | fi # $with_x != no |
| 1115 | |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1116 | if test "$have_x" != yes; then |
| 1117 | echo "$ac_t""$have_x" 1>&6 |
| 1118 | no_x=yes |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1119 | else |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1120 | # 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] | 1121 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
| 1122 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1123 | # Update the cache value to reflect the command line values. |
| 1124 | ac_cv_have_x="have_x=yes \ |
| 1125 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1126 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 |
| 1127 | fi |
| 1128 | |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1129 | if test "$no_x" = yes; then |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1130 | # Not all programs may use this symbol, but it does not hurt to define it. |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1131 | cat >> confdefs.h <<\EOF |
| 1132 | #define X_DISPLAY_MISSING 1 |
| 1133 | EOF |
| 1134 | |
| 1135 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1136 | else |
| 1137 | if test -n "$x_includes"; then |
| 1138 | X_CFLAGS="$X_CFLAGS -I$x_includes" |
| 1139 | fi |
| 1140 | |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1141 | # It would also be nice to do this for all -L options, not just this one. |
| 1142 | if test -n "$x_libraries"; then |
| 1143 | X_LIBS="$X_LIBS -L$x_libraries" |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1144 | # For Solaris; some versions of Sun CC require a space after -R and |
| 1145 | # others require no space. Words are not sufficient . . . . |
| 1146 | case "`(uname -sr) 2>/dev/null`" in |
| 1147 | "SunOS 5"*) |
| 1148 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 1149 | echo "configure:1150: checking whether -R must be followed by a space" >&5 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1150 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
| 1151 | cat > conftest.$ac_ext <<EOF |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 1152 | #line 1153 "configure" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1153 | #include "confdefs.h" |
| 1154 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1155 | int main() { |
| 1156 | |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1157 | ; return 0; } |
| 1158 | EOF |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 1159 | if { (eval echo configure:1160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1160 | rm -rf conftest* |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1161 | ac_R_nospace=yes |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1162 | else |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1163 | echo "configure: failed program was:" >&5 |
| 1164 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1165 | rm -rf conftest* |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1166 | ac_R_nospace=no |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1167 | fi |
| 1168 | rm -f conftest* |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1169 | if test $ac_R_nospace = yes; then |
| 1170 | echo "$ac_t""no" 1>&6 |
| 1171 | X_LIBS="$X_LIBS -R$x_libraries" |
| 1172 | else |
| 1173 | LIBS="$ac_xsave_LIBS -R $x_libraries" |
| 1174 | cat > conftest.$ac_ext <<EOF |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 1175 | #line 1176 "configure" |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1176 | #include "confdefs.h" |
| 1177 | |
| 1178 | int main() { |
| 1179 | |
| 1180 | ; return 0; } |
| 1181 | EOF |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 1182 | if { (eval echo configure:1183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1183 | rm -rf conftest* |
| 1184 | ac_R_space=yes |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1185 | else |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1186 | echo "configure: failed program was:" >&5 |
| 1187 | cat conftest.$ac_ext >&5 |
| 1188 | rm -rf conftest* |
| 1189 | ac_R_space=no |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1190 | fi |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1191 | rm -f conftest* |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1192 | if test $ac_R_space = yes; then |
| 1193 | echo "$ac_t""yes" 1>&6 |
| 1194 | X_LIBS="$X_LIBS -R $x_libraries" |
| 1195 | else |
| 1196 | echo "$ac_t""neither works" 1>&6 |
| 1197 | fi |
| 1198 | fi |
| 1199 | LIBS="$ac_xsave_LIBS" |
| 1200 | esac |
| 1201 | fi |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1202 | |
| 1203 | # Check for system-dependent libraries X programs must link with. |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1204 | # Do this before checking for the system-independent R6 libraries |
| 1205 | # (-lICE), since we may need -lsocket or whatever for X linking. |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1206 | |
| 1207 | if test "$ISC" = yes; then |
| 1208 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" |
| 1209 | else |
| 1210 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X |
| 1211 | # libraries were built with DECnet support. And karl@cs.umb.edu says |
| 1212 | # the Alpha needs dnet_stub (dnet does not exist). |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1213 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 1214 | echo "configure:1215: checking for dnet_ntoa in -ldnet" >&5 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1215 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1216 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1217 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1218 | else |
| 1219 | ac_save_LIBS="$LIBS" |
| 1220 | LIBS="-ldnet $LIBS" |
| 1221 | cat > conftest.$ac_ext <<EOF |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 1222 | #line 1223 "configure" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1223 | #include "confdefs.h" |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 1224 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 1225 | /* We use char because int might match the return type of a gcc2 |
| 1226 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 1227 | char dnet_ntoa(); |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1228 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1229 | int main() { |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1230 | dnet_ntoa() |
| 1231 | ; return 0; } |
| 1232 | EOF |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 1233 | if { (eval echo configure:1234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1234 | rm -rf conftest* |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1235 | eval "ac_cv_lib_$ac_lib_var=yes" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1236 | else |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1237 | echo "configure: failed program was:" >&5 |
| 1238 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1239 | rm -rf conftest* |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1240 | eval "ac_cv_lib_$ac_lib_var=no" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1241 | fi |
| 1242 | rm -f conftest* |
| 1243 | LIBS="$ac_save_LIBS" |
| 1244 | |
| 1245 | fi |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1246 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1247 | echo "$ac_t""yes" 1>&6 |
| 1248 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
| 1249 | else |
| 1250 | echo "$ac_t""no" 1>&6 |
| 1251 | fi |
| 1252 | |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 1253 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1254 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 1255 | echo "configure:1256: checking for dnet_ntoa in -ldnet_stub" >&5 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1256 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1257 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1258 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1259 | else |
| 1260 | ac_save_LIBS="$LIBS" |
| 1261 | LIBS="-ldnet_stub $LIBS" |
| 1262 | cat > conftest.$ac_ext <<EOF |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 1263 | #line 1264 "configure" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1264 | #include "confdefs.h" |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 1265 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 1266 | /* We use char because int might match the return type of a gcc2 |
| 1267 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 1268 | char dnet_ntoa(); |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1269 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1270 | int main() { |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1271 | dnet_ntoa() |
| 1272 | ; return 0; } |
| 1273 | EOF |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 1274 | if { (eval echo configure:1275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1275 | rm -rf conftest* |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1276 | eval "ac_cv_lib_$ac_lib_var=yes" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1277 | else |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1278 | echo "configure: failed program was:" >&5 |
| 1279 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1280 | rm -rf conftest* |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1281 | eval "ac_cv_lib_$ac_lib_var=no" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1282 | fi |
| 1283 | rm -f conftest* |
| 1284 | LIBS="$ac_save_LIBS" |
| 1285 | |
| 1286 | fi |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1287 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1288 | echo "$ac_t""yes" 1>&6 |
| 1289 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
| 1290 | else |
| 1291 | echo "$ac_t""no" 1>&6 |
| 1292 | fi |
| 1293 | |
| 1294 | fi |
| 1295 | |
| 1296 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
| 1297 | # to get the SysV transport functions. |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1298 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) |
| 1299 | # needs -lnsl. |
| 1300 | # The nsl library prevents programs from opening the X display |
| 1301 | # on Irix 5.2, according to dickey@clark.net. |
| 1302 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 1303 | echo "configure:1304: checking for gethostbyname" >&5 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1304 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
| 1305 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1306 | else |
| 1307 | cat > conftest.$ac_ext <<EOF |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 1308 | #line 1309 "configure" |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1309 | #include "confdefs.h" |
| 1310 | /* System header to define __stub macros and hopefully few prototypes, |
| 1311 | which can conflict with char gethostbyname(); below. */ |
| 1312 | #include <assert.h> |
| 1313 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1314 | /* We use char because int might match the return type of a gcc2 |
| 1315 | builtin and then its argument prototype would still apply. */ |
| 1316 | char gethostbyname(); |
| 1317 | |
| 1318 | int main() { |
| 1319 | |
| 1320 | /* The GNU C library defines this for functions which it implements |
| 1321 | to always fail with ENOSYS. Some functions are actually named |
| 1322 | something starting with __ and the normal name is an alias. */ |
| 1323 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) |
| 1324 | choke me |
| 1325 | #else |
| 1326 | gethostbyname(); |
| 1327 | #endif |
| 1328 | |
| 1329 | ; return 0; } |
| 1330 | EOF |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 1331 | if { (eval echo configure:1332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1332 | rm -rf conftest* |
| 1333 | eval "ac_cv_func_gethostbyname=yes" |
| 1334 | else |
| 1335 | echo "configure: failed program was:" >&5 |
| 1336 | cat conftest.$ac_ext >&5 |
| 1337 | rm -rf conftest* |
| 1338 | eval "ac_cv_func_gethostbyname=no" |
| 1339 | fi |
| 1340 | rm -f conftest* |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1341 | fi |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 1342 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1343 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then |
| 1344 | echo "$ac_t""yes" 1>&6 |
| 1345 | : |
| 1346 | else |
| 1347 | echo "$ac_t""no" 1>&6 |
| 1348 | fi |
| 1349 | |
| 1350 | if test $ac_cv_func_gethostbyname = no; then |
| 1351 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 1352 | echo "configure:1353: checking for gethostbyname in -lnsl" >&5 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1353 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1354 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1355 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1356 | else |
| 1357 | ac_save_LIBS="$LIBS" |
| 1358 | LIBS="-lnsl $LIBS" |
| 1359 | cat > conftest.$ac_ext <<EOF |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 1360 | #line 1361 "configure" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1361 | #include "confdefs.h" |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 1362 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 1363 | /* We use char because int might match the return type of a gcc2 |
| 1364 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1365 | char gethostbyname(); |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1366 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1367 | int main() { |
| 1368 | gethostbyname() |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1369 | ; return 0; } |
| 1370 | EOF |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 1371 | if { (eval echo configure:1372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1372 | rm -rf conftest* |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1373 | eval "ac_cv_lib_$ac_lib_var=yes" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1374 | else |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1375 | echo "configure: failed program was:" >&5 |
| 1376 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1377 | rm -rf conftest* |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1378 | eval "ac_cv_lib_$ac_lib_var=no" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1379 | fi |
| 1380 | rm -f conftest* |
| 1381 | LIBS="$ac_save_LIBS" |
| 1382 | |
| 1383 | fi |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1384 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1385 | echo "$ac_t""yes" 1>&6 |
| 1386 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" |
| 1387 | else |
| 1388 | echo "$ac_t""no" 1>&6 |
| 1389 | fi |
| 1390 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1391 | fi |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1392 | |
| 1393 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1394 | # socket/setsockopt and other routines are undefined under SCO ODT |
| 1395 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary |
| 1396 | # on later versions), says simon@lia.di.epfl.ch: it contains |
| 1397 | # gethostby* variants that don't use the nameserver (or something). |
| 1398 | # -lsocket must be given before -lnsl if both are needed. |
| 1399 | # We assume that if connect needs -lnsl, so does gethostbyname. |
| 1400 | echo $ac_n "checking for connect""... $ac_c" 1>&6 |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 1401 | echo "configure:1402: checking for connect" >&5 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1402 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
| 1403 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1404 | else |
| 1405 | cat > conftest.$ac_ext <<EOF |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 1406 | #line 1407 "configure" |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1407 | #include "confdefs.h" |
| 1408 | /* System header to define __stub macros and hopefully few prototypes, |
| 1409 | which can conflict with char connect(); below. */ |
| 1410 | #include <assert.h> |
| 1411 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1412 | /* We use char because int might match the return type of a gcc2 |
| 1413 | builtin and then its argument prototype would still apply. */ |
| 1414 | char connect(); |
| 1415 | |
| 1416 | int main() { |
| 1417 | |
| 1418 | /* The GNU C library defines this for functions which it implements |
| 1419 | to always fail with ENOSYS. Some functions are actually named |
| 1420 | something starting with __ and the normal name is an alias. */ |
| 1421 | #if defined (__stub_connect) || defined (__stub___connect) |
| 1422 | choke me |
| 1423 | #else |
| 1424 | connect(); |
| 1425 | #endif |
| 1426 | |
| 1427 | ; return 0; } |
| 1428 | EOF |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 1429 | if { (eval echo configure:1430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1430 | rm -rf conftest* |
| 1431 | eval "ac_cv_func_connect=yes" |
| 1432 | else |
| 1433 | echo "configure: failed program was:" >&5 |
| 1434 | cat conftest.$ac_ext >&5 |
| 1435 | rm -rf conftest* |
| 1436 | eval "ac_cv_func_connect=no" |
| 1437 | fi |
| 1438 | rm -f conftest* |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1439 | fi |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 1440 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1441 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then |
| 1442 | echo "$ac_t""yes" 1>&6 |
| 1443 | : |
| 1444 | else |
| 1445 | echo "$ac_t""no" 1>&6 |
| 1446 | fi |
| 1447 | |
| 1448 | if test $ac_cv_func_connect = no; then |
| 1449 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 1450 | echo "configure:1451: checking for connect in -lsocket" >&5 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1451 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1452 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1453 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1454 | else |
| 1455 | ac_save_LIBS="$LIBS" |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1456 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1457 | cat > conftest.$ac_ext <<EOF |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 1458 | #line 1459 "configure" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1459 | #include "confdefs.h" |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 1460 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 1461 | /* We use char because int might match the return type of a gcc2 |
| 1462 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1463 | char connect(); |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1464 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1465 | int main() { |
| 1466 | connect() |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1467 | ; return 0; } |
| 1468 | EOF |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 1469 | if { (eval echo configure:1470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1470 | rm -rf conftest* |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1471 | eval "ac_cv_lib_$ac_lib_var=yes" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1472 | else |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1473 | echo "configure: failed program was:" >&5 |
| 1474 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1475 | rm -rf conftest* |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1476 | eval "ac_cv_lib_$ac_lib_var=no" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1477 | fi |
| 1478 | rm -f conftest* |
| 1479 | LIBS="$ac_save_LIBS" |
| 1480 | |
| 1481 | fi |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1482 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1483 | echo "$ac_t""yes" 1>&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1484 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1485 | else |
| 1486 | echo "$ac_t""no" 1>&6 |
| 1487 | fi |
| 1488 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1489 | fi |
| 1490 | |
| 1491 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. |
| 1492 | echo $ac_n "checking for remove""... $ac_c" 1>&6 |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 1493 | echo "configure:1494: checking for remove" >&5 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1494 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
| 1495 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1496 | else |
| 1497 | cat > conftest.$ac_ext <<EOF |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 1498 | #line 1499 "configure" |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1499 | #include "confdefs.h" |
| 1500 | /* System header to define __stub macros and hopefully few prototypes, |
| 1501 | which can conflict with char remove(); below. */ |
| 1502 | #include <assert.h> |
| 1503 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1504 | /* We use char because int might match the return type of a gcc2 |
| 1505 | builtin and then its argument prototype would still apply. */ |
| 1506 | char remove(); |
| 1507 | |
| 1508 | int main() { |
| 1509 | |
| 1510 | /* The GNU C library defines this for functions which it implements |
| 1511 | to always fail with ENOSYS. Some functions are actually named |
| 1512 | something starting with __ and the normal name is an alias. */ |
| 1513 | #if defined (__stub_remove) || defined (__stub___remove) |
| 1514 | choke me |
| 1515 | #else |
| 1516 | remove(); |
| 1517 | #endif |
| 1518 | |
| 1519 | ; return 0; } |
| 1520 | EOF |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 1521 | if { (eval echo configure:1522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1522 | rm -rf conftest* |
| 1523 | eval "ac_cv_func_remove=yes" |
| 1524 | else |
| 1525 | echo "configure: failed program was:" >&5 |
| 1526 | cat conftest.$ac_ext >&5 |
| 1527 | rm -rf conftest* |
| 1528 | eval "ac_cv_func_remove=no" |
| 1529 | fi |
| 1530 | rm -f conftest* |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1531 | fi |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 1532 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1533 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then |
| 1534 | echo "$ac_t""yes" 1>&6 |
| 1535 | : |
| 1536 | else |
| 1537 | echo "$ac_t""no" 1>&6 |
| 1538 | fi |
| 1539 | |
| 1540 | if test $ac_cv_func_remove = no; then |
| 1541 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 1542 | echo "configure:1543: checking for remove in -lposix" >&5 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1543 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 1544 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 1545 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1546 | else |
| 1547 | ac_save_LIBS="$LIBS" |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1548 | LIBS="-lposix $LIBS" |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 1549 | cat > conftest.$ac_ext <<EOF |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 1550 | #line 1551 "configure" |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 1551 | #include "confdefs.h" |
| 1552 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1553 | /* We use char because int might match the return type of a gcc2 |
| 1554 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1555 | char remove(); |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 1556 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1557 | int main() { |
| 1558 | remove() |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 1559 | ; return 0; } |
| 1560 | EOF |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 1561 | if { (eval echo configure:1562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 1562 | rm -rf conftest* |
| 1563 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 1564 | else |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1565 | echo "configure: failed program was:" >&5 |
| 1566 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 1567 | rm -rf conftest* |
| 1568 | eval "ac_cv_lib_$ac_lib_var=no" |
| 1569 | fi |
| 1570 | rm -f conftest* |
| 1571 | LIBS="$ac_save_LIBS" |
| 1572 | |
| 1573 | fi |
| 1574 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 1575 | echo "$ac_t""yes" 1>&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1576 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 1577 | else |
| 1578 | echo "$ac_t""no" 1>&6 |
| 1579 | fi |
| 1580 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1581 | fi |
| 1582 | |
| 1583 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
| 1584 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 1585 | echo "configure:1586: checking for shmat" >&5 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1586 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
| 1587 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1588 | else |
| 1589 | cat > conftest.$ac_ext <<EOF |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 1590 | #line 1591 "configure" |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1591 | #include "confdefs.h" |
| 1592 | /* System header to define __stub macros and hopefully few prototypes, |
| 1593 | which can conflict with char shmat(); below. */ |
| 1594 | #include <assert.h> |
| 1595 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1596 | /* We use char because int might match the return type of a gcc2 |
| 1597 | builtin and then its argument prototype would still apply. */ |
| 1598 | char shmat(); |
| 1599 | |
| 1600 | int main() { |
| 1601 | |
| 1602 | /* The GNU C library defines this for functions which it implements |
| 1603 | to always fail with ENOSYS. Some functions are actually named |
| 1604 | something starting with __ and the normal name is an alias. */ |
| 1605 | #if defined (__stub_shmat) || defined (__stub___shmat) |
| 1606 | choke me |
| 1607 | #else |
| 1608 | shmat(); |
| 1609 | #endif |
| 1610 | |
| 1611 | ; return 0; } |
| 1612 | EOF |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 1613 | if { (eval echo configure:1614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1614 | rm -rf conftest* |
| 1615 | eval "ac_cv_func_shmat=yes" |
| 1616 | else |
| 1617 | echo "configure: failed program was:" >&5 |
| 1618 | cat conftest.$ac_ext >&5 |
| 1619 | rm -rf conftest* |
| 1620 | eval "ac_cv_func_shmat=no" |
| 1621 | fi |
| 1622 | rm -f conftest* |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1623 | fi |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 1624 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1625 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then |
| 1626 | echo "$ac_t""yes" 1>&6 |
| 1627 | : |
| 1628 | else |
| 1629 | echo "$ac_t""no" 1>&6 |
| 1630 | fi |
| 1631 | |
| 1632 | if test $ac_cv_func_shmat = no; then |
| 1633 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 1634 | echo "configure:1635: checking for shmat in -lipc" >&5 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1635 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
| 1636 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 1637 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1638 | else |
| 1639 | ac_save_LIBS="$LIBS" |
| 1640 | LIBS="-lipc $LIBS" |
| 1641 | cat > conftest.$ac_ext <<EOF |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 1642 | #line 1643 "configure" |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1643 | #include "confdefs.h" |
| 1644 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1645 | /* We use char because int might match the return type of a gcc2 |
| 1646 | builtin and then its argument prototype would still apply. */ |
| 1647 | char shmat(); |
| 1648 | |
| 1649 | int main() { |
| 1650 | shmat() |
| 1651 | ; return 0; } |
| 1652 | EOF |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 1653 | if { (eval echo configure:1654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1654 | rm -rf conftest* |
| 1655 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 1656 | else |
| 1657 | echo "configure: failed program was:" >&5 |
| 1658 | cat conftest.$ac_ext >&5 |
| 1659 | rm -rf conftest* |
| 1660 | eval "ac_cv_lib_$ac_lib_var=no" |
| 1661 | fi |
| 1662 | rm -f conftest* |
| 1663 | LIBS="$ac_save_LIBS" |
| 1664 | |
| 1665 | fi |
| 1666 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 1667 | echo "$ac_t""yes" 1>&6 |
| 1668 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
| 1669 | else |
| 1670 | echo "$ac_t""no" 1>&6 |
| 1671 | fi |
| 1672 | |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1673 | fi |
| 1674 | fi |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1675 | |
| 1676 | # Check for libraries that X11R6 Xt/Xaw programs need. |
| 1677 | ac_save_LDFLAGS="$LDFLAGS" |
| 1678 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
| 1679 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to |
| 1680 | # check for ICE first), but we must link in the order -lSM -lICE or |
| 1681 | # we get undefined symbols. So assume we have SM if we have ICE. |
| 1682 | # These have to be linked with before -lX11, unlike the other |
| 1683 | # libraries we check for below, so use a different variable. |
| 1684 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. |
| 1685 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 1686 | echo "configure:1687: checking for IceConnectionNumber in -lICE" >&5 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1687 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
| 1688 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 1689 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1690 | else |
| 1691 | ac_save_LIBS="$LIBS" |
| 1692 | LIBS="-lICE $LIBS" |
| 1693 | cat > conftest.$ac_ext <<EOF |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 1694 | #line 1695 "configure" |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1695 | #include "confdefs.h" |
| 1696 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1697 | /* We use char because int might match the return type of a gcc2 |
| 1698 | builtin and then its argument prototype would still apply. */ |
| 1699 | char IceConnectionNumber(); |
| 1700 | |
| 1701 | int main() { |
| 1702 | IceConnectionNumber() |
| 1703 | ; return 0; } |
| 1704 | EOF |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 1705 | if { (eval echo configure:1706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1706 | rm -rf conftest* |
| 1707 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 1708 | else |
| 1709 | echo "configure: failed program was:" >&5 |
| 1710 | cat conftest.$ac_ext >&5 |
| 1711 | rm -rf conftest* |
| 1712 | eval "ac_cv_lib_$ac_lib_var=no" |
| 1713 | fi |
| 1714 | rm -f conftest* |
| 1715 | LIBS="$ac_save_LIBS" |
| 1716 | |
| 1717 | fi |
| 1718 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 1719 | echo "$ac_t""yes" 1>&6 |
| 1720 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
| 1721 | else |
| 1722 | echo "$ac_t""no" 1>&6 |
| 1723 | fi |
| 1724 | |
| 1725 | LDFLAGS="$ac_save_LDFLAGS" |
| 1726 | |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1727 | fi |
| 1728 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1729 | for ac_prog in 'bison -y' byacc |
| 1730 | do |
| 1731 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1732 | set dummy $ac_prog; ac_word=$2 |
| 1733 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 1734 | echo "configure:1735: checking for $ac_word" >&5 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1735 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
| 1736 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1737 | else |
| 1738 | if test -n "$YACC"; then |
| 1739 | ac_cv_prog_YACC="$YACC" # Let the user override the test. |
| 1740 | else |
| 1741 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 1742 | for ac_dir in $PATH; do |
| 1743 | test -z "$ac_dir" && ac_dir=. |
| 1744 | if test -f $ac_dir/$ac_word; then |
| 1745 | ac_cv_prog_YACC="$ac_prog" |
| 1746 | break |
| 1747 | fi |
| 1748 | done |
| 1749 | IFS="$ac_save_ifs" |
| 1750 | fi |
| 1751 | fi |
| 1752 | YACC="$ac_cv_prog_YACC" |
| 1753 | if test -n "$YACC"; then |
| 1754 | echo "$ac_t""$YACC" 1>&6 |
| 1755 | else |
| 1756 | echo "$ac_t""no" 1>&6 |
| 1757 | fi |
| 1758 | |
| 1759 | test -n "$YACC" && break |
| 1760 | done |
| 1761 | test -n "$YACC" || YACC="yacc" |
| 1762 | |
| 1763 | # Extract the first word of "flex", so it can be a program name with args. |
| 1764 | set dummy flex; ac_word=$2 |
| 1765 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 1766 | echo "configure:1767: checking for $ac_word" >&5 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1767 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
| 1768 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1769 | else |
| 1770 | if test -n "$LEX"; then |
| 1771 | ac_cv_prog_LEX="$LEX" # Let the user override the test. |
| 1772 | else |
| 1773 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 1774 | for ac_dir in $PATH; do |
| 1775 | test -z "$ac_dir" && ac_dir=. |
| 1776 | if test -f $ac_dir/$ac_word; then |
| 1777 | ac_cv_prog_LEX="flex" |
| 1778 | break |
| 1779 | fi |
| 1780 | done |
| 1781 | IFS="$ac_save_ifs" |
| 1782 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" |
| 1783 | fi |
| 1784 | fi |
| 1785 | LEX="$ac_cv_prog_LEX" |
| 1786 | if test -n "$LEX"; then |
| 1787 | echo "$ac_t""$LEX" 1>&6 |
| 1788 | else |
| 1789 | echo "$ac_t""no" 1>&6 |
| 1790 | fi |
| 1791 | |
| 1792 | if test -z "$LEXLIB" |
| 1793 | then |
| 1794 | case "$LEX" in |
| 1795 | flex*) ac_lib=fl ;; |
| 1796 | *) ac_lib=l ;; |
| 1797 | esac |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1798 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 1799 | echo "configure:1800: checking for yywrap in -l$ac_lib" >&5 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1800 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1801 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1802 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1803 | else |
| 1804 | ac_save_LIBS="$LIBS" |
| 1805 | LIBS="-l$ac_lib $LIBS" |
| 1806 | cat > conftest.$ac_ext <<EOF |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 1807 | #line 1808 "configure" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1808 | #include "confdefs.h" |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 1809 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 1810 | /* We use char because int might match the return type of a gcc2 |
| 1811 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 1812 | char yywrap(); |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1813 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1814 | int main() { |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1815 | yywrap() |
| 1816 | ; return 0; } |
| 1817 | EOF |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 1818 | if { (eval echo configure:1819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1819 | rm -rf conftest* |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1820 | eval "ac_cv_lib_$ac_lib_var=yes" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1821 | else |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1822 | echo "configure: failed program was:" >&5 |
| 1823 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1824 | rm -rf conftest* |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1825 | eval "ac_cv_lib_$ac_lib_var=no" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1826 | fi |
| 1827 | rm -f conftest* |
| 1828 | LIBS="$ac_save_LIBS" |
| 1829 | |
| 1830 | fi |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1831 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1832 | echo "$ac_t""yes" 1>&6 |
| 1833 | LEXLIB="-l$ac_lib" |
| 1834 | else |
| 1835 | echo "$ac_t""no" 1>&6 |
| 1836 | fi |
| 1837 | |
| 1838 | fi |
| 1839 | |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1840 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 1841 | set dummy ranlib; ac_word=$2 |
| 1842 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 1843 | echo "configure:1844: checking for $ac_word" >&5 |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1844 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
| 1845 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1846 | else |
| 1847 | if test -n "$RANLIB"; then |
| 1848 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 1849 | else |
| 1850 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 1851 | for ac_dir in $PATH; do |
| 1852 | test -z "$ac_dir" && ac_dir=. |
| 1853 | if test -f $ac_dir/$ac_word; then |
| 1854 | ac_cv_prog_RANLIB="ranlib" |
| 1855 | break |
| 1856 | fi |
| 1857 | done |
| 1858 | IFS="$ac_save_ifs" |
| 1859 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1860 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1861 | fi |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1862 | RANLIB="$ac_cv_prog_RANLIB" |
| 1863 | if test -n "$RANLIB"; then |
| 1864 | echo "$ac_t""$RANLIB" 1>&6 |
| 1865 | else |
| 1866 | echo "$ac_t""no" 1>&6 |
| 1867 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1868 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1869 | # Find a good install program. We prefer a C program (faster), |
| 1870 | # so one script is as good as another. But avoid the broken or |
| 1871 | # incompatible versions: |
| 1872 | # SysV /etc/install, /usr/sbin/install |
| 1873 | # SunOS /usr/etc/install |
| 1874 | # IRIX /sbin/install |
| 1875 | # AIX /bin/install |
| 1876 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 1877 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 1878 | # ./install, which can be erroneously created by make from ./install.sh. |
| 1879 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 1880 | echo "configure:1881: checking for a BSD compatible install" >&5 |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1881 | if test -z "$INSTALL"; then |
| 1882 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
| 1883 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1884 | else |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 1885 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:" |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1886 | for ac_dir in $PATH; do |
| 1887 | # Account for people who put trailing slashes in PATH elements. |
| 1888 | case "$ac_dir/" in |
| 1889 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; |
| 1890 | *) |
| 1891 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 1892 | for ac_prog in ginstall installbsd scoinst install; do |
| 1893 | if test -f $ac_dir/$ac_prog; then |
| 1894 | if test $ac_prog = install && |
| 1895 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
| 1896 | # AIX install. It has an incompatible calling convention. |
| 1897 | # OSF/1 installbsd also uses dspmsg, but is usable. |
| 1898 | : |
| 1899 | else |
| 1900 | ac_cv_path_install="$ac_dir/$ac_prog -c" |
| 1901 | break 2 |
| 1902 | fi |
| 1903 | fi |
| 1904 | done |
| 1905 | ;; |
| 1906 | esac |
| 1907 | done |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 1908 | IFS="$ac_save_IFS" |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1909 | |
| 1910 | fi |
| 1911 | if test "${ac_cv_path_install+set}" = set; then |
| 1912 | INSTALL="$ac_cv_path_install" |
| 1913 | else |
| 1914 | # As a last resort, use the slow shell script. We don't cache a |
| 1915 | # path for INSTALL within a source directory, because that will |
| 1916 | # break other packages using the cache if that directory is |
| 1917 | # removed, or if the path is relative. |
| 1918 | INSTALL="$ac_install_sh" |
| 1919 | fi |
| 1920 | fi |
| 1921 | echo "$ac_t""$INSTALL" 1>&6 |
| 1922 | |
| 1923 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 1924 | # It thinks the first close brace ends the variable substitution. |
| 1925 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 1926 | |
| 1927 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 1928 | |
Alexandre Julliard | 641ee76 | 1997-08-04 16:34:36 +0000 | [diff] [blame] | 1929 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 1930 | echo "configure:1931: checking whether ln -s works" >&5 |
Alexandre Julliard | 641ee76 | 1997-08-04 16:34:36 +0000 | [diff] [blame] | 1931 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
| 1932 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1933 | else |
| 1934 | rm -f conftestdata |
| 1935 | if ln -s X conftestdata 2>/dev/null |
| 1936 | then |
| 1937 | rm -f conftestdata |
| 1938 | ac_cv_prog_LN_S="ln -s" |
| 1939 | else |
| 1940 | ac_cv_prog_LN_S=ln |
| 1941 | fi |
| 1942 | fi |
| 1943 | LN_S="$ac_cv_prog_LN_S" |
| 1944 | if test "$ac_cv_prog_LN_S" = "ln -s"; then |
| 1945 | echo "$ac_t""yes" 1>&6 |
| 1946 | else |
| 1947 | echo "$ac_t""no" 1>&6 |
| 1948 | fi |
| 1949 | |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 1950 | # Extract the first word of "c2man", so it can be a program name with args. |
| 1951 | set dummy c2man; ac_word=$2 |
| 1952 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 1953 | echo "configure:1954: checking for $ac_word" >&5 |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 1954 | if eval "test \"`echo '$''{'ac_cv_prog_C2MAN'+set}'`\" = set"; then |
| 1955 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1956 | else |
| 1957 | if test -n "$C2MAN"; then |
| 1958 | ac_cv_prog_C2MAN="$C2MAN" # Let the user override the test. |
| 1959 | else |
| 1960 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 1961 | for ac_dir in $PATH; do |
| 1962 | test -z "$ac_dir" && ac_dir=. |
| 1963 | if test -f $ac_dir/$ac_word; then |
| 1964 | ac_cv_prog_C2MAN="c2man" |
| 1965 | break |
| 1966 | fi |
| 1967 | done |
| 1968 | IFS="$ac_save_ifs" |
| 1969 | test -z "$ac_cv_prog_C2MAN" && ac_cv_prog_C2MAN="true" |
| 1970 | fi |
| 1971 | fi |
| 1972 | C2MAN="$ac_cv_prog_C2MAN" |
| 1973 | if test -n "$C2MAN"; then |
| 1974 | echo "$ac_t""$C2MAN" 1>&6 |
| 1975 | else |
| 1976 | echo "$ac_t""no" 1>&6 |
| 1977 | fi |
| 1978 | |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 1979 | |
| 1980 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1981 | echo $ac_n "checking for i386_set_ldt in -li386""... $ac_c" 1>&6 |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 1982 | echo "configure:1983: checking for i386_set_ldt in -li386" >&5 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1983 | ac_lib_var=`echo i386'_'i386_set_ldt | sed 'y%./+-%__p_%'` |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1984 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 1985 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1986 | else |
| 1987 | ac_save_LIBS="$LIBS" |
| 1988 | LIBS="-li386 $LIBS" |
| 1989 | cat > conftest.$ac_ext <<EOF |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 1990 | #line 1991 "configure" |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 1991 | #include "confdefs.h" |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 1992 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 1993 | /* We use char because int might match the return type of a gcc2 |
| 1994 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 1995 | char i386_set_ldt(); |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 1996 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1997 | int main() { |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 1998 | i386_set_ldt() |
| 1999 | ; return 0; } |
| 2000 | EOF |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 2001 | if { (eval echo configure:2002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 2002 | rm -rf conftest* |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 2003 | eval "ac_cv_lib_$ac_lib_var=yes" |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 2004 | else |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2005 | echo "configure: failed program was:" >&5 |
| 2006 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 2007 | rm -rf conftest* |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 2008 | eval "ac_cv_lib_$ac_lib_var=no" |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 2009 | fi |
| 2010 | rm -f conftest* |
| 2011 | LIBS="$ac_save_LIBS" |
| 2012 | |
| 2013 | fi |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 2014 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 2015 | echo "$ac_t""yes" 1>&6 |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 2016 | ac_tr_lib=HAVE_LIB`echo i386 | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 2017 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
| 2018 | cat >> confdefs.h <<EOF |
| 2019 | #define $ac_tr_lib 1 |
| 2020 | EOF |
| 2021 | |
| 2022 | LIBS="-li386 $LIBS" |
| 2023 | |
| 2024 | else |
| 2025 | echo "$ac_t""no" 1>&6 |
| 2026 | fi |
| 2027 | |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 2028 | echo $ac_n "checking for _oss_ioctl in -lossaudio""... $ac_c" 1>&6 |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 2029 | echo "configure:2030: checking for _oss_ioctl in -lossaudio" >&5 |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 2030 | ac_lib_var=`echo ossaudio'_'_oss_ioctl | sed 'y%./+-%__p_%'` |
| 2031 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 2032 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2033 | else |
| 2034 | ac_save_LIBS="$LIBS" |
| 2035 | LIBS="-lossaudio $LIBS" |
| 2036 | cat > conftest.$ac_ext <<EOF |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 2037 | #line 2038 "configure" |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 2038 | #include "confdefs.h" |
| 2039 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2040 | /* We use char because int might match the return type of a gcc2 |
| 2041 | builtin and then its argument prototype would still apply. */ |
| 2042 | char _oss_ioctl(); |
| 2043 | |
| 2044 | int main() { |
| 2045 | _oss_ioctl() |
| 2046 | ; return 0; } |
| 2047 | EOF |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 2048 | if { (eval echo configure:2049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 2049 | rm -rf conftest* |
| 2050 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 2051 | else |
| 2052 | echo "configure: failed program was:" >&5 |
| 2053 | cat conftest.$ac_ext >&5 |
| 2054 | rm -rf conftest* |
| 2055 | eval "ac_cv_lib_$ac_lib_var=no" |
| 2056 | fi |
| 2057 | rm -f conftest* |
| 2058 | LIBS="$ac_save_LIBS" |
| 2059 | |
| 2060 | fi |
| 2061 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 2062 | echo "$ac_t""yes" 1>&6 |
| 2063 | ac_tr_lib=HAVE_LIB`echo ossaudio | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 2064 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
| 2065 | cat >> confdefs.h <<EOF |
| 2066 | #define $ac_tr_lib 1 |
| 2067 | EOF |
| 2068 | |
| 2069 | LIBS="-lossaudio $LIBS" |
| 2070 | |
| 2071 | else |
| 2072 | echo "$ac_t""no" 1>&6 |
| 2073 | fi |
| 2074 | |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 2075 | echo $ac_n "checking for iswalnum in -lw""... $ac_c" 1>&6 |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 2076 | echo "configure:2077: checking for iswalnum in -lw" >&5 |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 2077 | ac_lib_var=`echo w'_'iswalnum | sed 'y%./+-%__p_%'` |
| 2078 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 2079 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2080 | else |
| 2081 | ac_save_LIBS="$LIBS" |
| 2082 | LIBS="-lw $LIBS" |
| 2083 | cat > conftest.$ac_ext <<EOF |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 2084 | #line 2085 "configure" |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 2085 | #include "confdefs.h" |
| 2086 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2087 | /* We use char because int might match the return type of a gcc2 |
| 2088 | builtin and then its argument prototype would still apply. */ |
| 2089 | char iswalnum(); |
| 2090 | |
| 2091 | int main() { |
| 2092 | iswalnum() |
| 2093 | ; return 0; } |
| 2094 | EOF |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 2095 | if { (eval echo configure:2096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 2096 | rm -rf conftest* |
| 2097 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 2098 | else |
| 2099 | echo "configure: failed program was:" >&5 |
| 2100 | cat conftest.$ac_ext >&5 |
| 2101 | rm -rf conftest* |
| 2102 | eval "ac_cv_lib_$ac_lib_var=no" |
| 2103 | fi |
| 2104 | rm -f conftest* |
| 2105 | LIBS="$ac_save_LIBS" |
| 2106 | |
| 2107 | fi |
| 2108 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 2109 | echo "$ac_t""yes" 1>&6 |
| 2110 | ac_tr_lib=HAVE_LIB`echo w | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 2111 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
| 2112 | cat >> confdefs.h <<EOF |
| 2113 | #define $ac_tr_lib 1 |
| 2114 | EOF |
| 2115 | |
| 2116 | LIBS="-lw $LIBS" |
| 2117 | |
| 2118 | else |
| 2119 | echo "$ac_t""no" 1>&6 |
| 2120 | fi |
| 2121 | |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 2122 | for ac_func in gethostbyname |
| 2123 | do |
| 2124 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 2125 | echo "configure:2126: checking for $ac_func" >&5 |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 2126 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 2127 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2128 | else |
| 2129 | cat > conftest.$ac_ext <<EOF |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 2130 | #line 2131 "configure" |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 2131 | #include "confdefs.h" |
| 2132 | /* System header to define __stub macros and hopefully few prototypes, |
| 2133 | which can conflict with char $ac_func(); below. */ |
| 2134 | #include <assert.h> |
| 2135 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2136 | /* We use char because int might match the return type of a gcc2 |
| 2137 | builtin and then its argument prototype would still apply. */ |
| 2138 | char $ac_func(); |
| 2139 | |
| 2140 | int main() { |
| 2141 | |
| 2142 | /* The GNU C library defines this for functions which it implements |
| 2143 | to always fail with ENOSYS. Some functions are actually named |
| 2144 | something starting with __ and the normal name is an alias. */ |
| 2145 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 2146 | choke me |
| 2147 | #else |
| 2148 | $ac_func(); |
| 2149 | #endif |
| 2150 | |
| 2151 | ; return 0; } |
| 2152 | EOF |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 2153 | if { (eval echo configure:2154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 2154 | rm -rf conftest* |
| 2155 | eval "ac_cv_func_$ac_func=yes" |
| 2156 | else |
| 2157 | echo "configure: failed program was:" >&5 |
| 2158 | cat conftest.$ac_ext >&5 |
| 2159 | rm -rf conftest* |
| 2160 | eval "ac_cv_func_$ac_func=no" |
| 2161 | fi |
| 2162 | rm -f conftest* |
| 2163 | fi |
| 2164 | |
| 2165 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 2166 | echo "$ac_t""yes" 1>&6 |
| 2167 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 2168 | cat >> confdefs.h <<EOF |
| 2169 | #define $ac_tr_func 1 |
| 2170 | EOF |
| 2171 | |
| 2172 | else |
| 2173 | echo "$ac_t""no" 1>&6 |
| 2174 | fi |
| 2175 | done |
| 2176 | |
| 2177 | if test "$ac_cv_func_gethostbyname" = "no" |
| 2178 | then |
| 2179 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 2180 | echo "configure:2181: checking for gethostbyname in -lnsl" >&5 |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 2181 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
| 2182 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 2183 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2184 | else |
| 2185 | ac_save_LIBS="$LIBS" |
| 2186 | LIBS="-lnsl $LIBS" |
| 2187 | cat > conftest.$ac_ext <<EOF |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 2188 | #line 2189 "configure" |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 2189 | #include "confdefs.h" |
| 2190 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2191 | /* We use char because int might match the return type of a gcc2 |
| 2192 | builtin and then its argument prototype would still apply. */ |
| 2193 | char gethostbyname(); |
| 2194 | |
| 2195 | int main() { |
| 2196 | gethostbyname() |
| 2197 | ; return 0; } |
| 2198 | EOF |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 2199 | if { (eval echo configure:2200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 2200 | rm -rf conftest* |
| 2201 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 2202 | else |
| 2203 | echo "configure: failed program was:" >&5 |
| 2204 | cat conftest.$ac_ext >&5 |
| 2205 | rm -rf conftest* |
| 2206 | eval "ac_cv_lib_$ac_lib_var=no" |
| 2207 | fi |
| 2208 | rm -f conftest* |
| 2209 | LIBS="$ac_save_LIBS" |
| 2210 | |
| 2211 | fi |
| 2212 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 2213 | echo "$ac_t""yes" 1>&6 |
| 2214 | ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 2215 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
| 2216 | cat >> confdefs.h <<EOF |
| 2217 | #define $ac_tr_lib 1 |
| 2218 | EOF |
| 2219 | |
| 2220 | LIBS="-lnsl $LIBS" |
| 2221 | |
| 2222 | else |
| 2223 | echo "$ac_t""no" 1>&6 |
| 2224 | fi |
| 2225 | |
| 2226 | fi |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 2227 | for ac_func in connect |
| 2228 | do |
| 2229 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
| 2230 | echo "configure:2231: checking for $ac_func" >&5 |
| 2231 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 2232 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2233 | else |
| 2234 | cat > conftest.$ac_ext <<EOF |
| 2235 | #line 2236 "configure" |
| 2236 | #include "confdefs.h" |
| 2237 | /* System header to define __stub macros and hopefully few prototypes, |
| 2238 | which can conflict with char $ac_func(); below. */ |
| 2239 | #include <assert.h> |
| 2240 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2241 | /* We use char because int might match the return type of a gcc2 |
| 2242 | builtin and then its argument prototype would still apply. */ |
| 2243 | char $ac_func(); |
| 2244 | |
| 2245 | int main() { |
| 2246 | |
| 2247 | /* The GNU C library defines this for functions which it implements |
| 2248 | to always fail with ENOSYS. Some functions are actually named |
| 2249 | something starting with __ and the normal name is an alias. */ |
| 2250 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 2251 | choke me |
| 2252 | #else |
| 2253 | $ac_func(); |
| 2254 | #endif |
| 2255 | |
| 2256 | ; return 0; } |
| 2257 | EOF |
| 2258 | if { (eval echo configure:2259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 2259 | rm -rf conftest* |
| 2260 | eval "ac_cv_func_$ac_func=yes" |
| 2261 | else |
| 2262 | echo "configure: failed program was:" >&5 |
| 2263 | cat conftest.$ac_ext >&5 |
| 2264 | rm -rf conftest* |
| 2265 | eval "ac_cv_func_$ac_func=no" |
| 2266 | fi |
| 2267 | rm -f conftest* |
| 2268 | fi |
| 2269 | |
| 2270 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 2271 | echo "$ac_t""yes" 1>&6 |
| 2272 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 2273 | cat >> confdefs.h <<EOF |
| 2274 | #define $ac_tr_func 1 |
| 2275 | EOF |
| 2276 | |
| 2277 | else |
| 2278 | echo "$ac_t""no" 1>&6 |
| 2279 | fi |
| 2280 | done |
| 2281 | |
| 2282 | if test "$ac_cv_func_connect" = "no" |
| 2283 | then |
| 2284 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 |
| 2285 | echo "configure:2286: checking for connect in -lsocket" >&5 |
| 2286 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
| 2287 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 2288 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2289 | else |
| 2290 | ac_save_LIBS="$LIBS" |
| 2291 | LIBS="-lsocket $LIBS" |
| 2292 | cat > conftest.$ac_ext <<EOF |
| 2293 | #line 2294 "configure" |
| 2294 | #include "confdefs.h" |
| 2295 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2296 | /* We use char because int might match the return type of a gcc2 |
| 2297 | builtin and then its argument prototype would still apply. */ |
| 2298 | char connect(); |
| 2299 | |
| 2300 | int main() { |
| 2301 | connect() |
| 2302 | ; return 0; } |
| 2303 | EOF |
| 2304 | if { (eval echo configure:2305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 2305 | rm -rf conftest* |
| 2306 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 2307 | else |
| 2308 | echo "configure: failed program was:" >&5 |
| 2309 | cat conftest.$ac_ext >&5 |
| 2310 | rm -rf conftest* |
| 2311 | eval "ac_cv_lib_$ac_lib_var=no" |
| 2312 | fi |
| 2313 | rm -f conftest* |
| 2314 | LIBS="$ac_save_LIBS" |
| 2315 | |
| 2316 | fi |
| 2317 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 2318 | echo "$ac_t""yes" 1>&6 |
| 2319 | ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 2320 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
| 2321 | cat >> confdefs.h <<EOF |
| 2322 | #define $ac_tr_lib 1 |
| 2323 | EOF |
| 2324 | |
| 2325 | LIBS="-lsocket $LIBS" |
| 2326 | |
| 2327 | else |
| 2328 | echo "$ac_t""no" 1>&6 |
| 2329 | fi |
| 2330 | |
| 2331 | fi |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 2332 | echo $ac_n "checking for setrunelocale in -lxpg4""... $ac_c" 1>&6 |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 2333 | echo "configure:2334: checking for setrunelocale in -lxpg4" >&5 |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 2334 | ac_lib_var=`echo xpg4'_'setrunelocale | sed 'y%./+-%__p_%'` |
| 2335 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 2336 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2337 | else |
| 2338 | ac_save_LIBS="$LIBS" |
| 2339 | LIBS="-lxpg4 $LIBS" |
| 2340 | cat > conftest.$ac_ext <<EOF |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 2341 | #line 2342 "configure" |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 2342 | #include "confdefs.h" |
| 2343 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2344 | /* We use char because int might match the return type of a gcc2 |
| 2345 | builtin and then its argument prototype would still apply. */ |
| 2346 | char setrunelocale(); |
| 2347 | |
| 2348 | int main() { |
| 2349 | setrunelocale() |
| 2350 | ; return 0; } |
| 2351 | EOF |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 2352 | if { (eval echo configure:2353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 2353 | rm -rf conftest* |
| 2354 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 2355 | else |
| 2356 | echo "configure: failed program was:" >&5 |
| 2357 | cat conftest.$ac_ext >&5 |
| 2358 | rm -rf conftest* |
| 2359 | eval "ac_cv_lib_$ac_lib_var=no" |
| 2360 | fi |
| 2361 | rm -f conftest* |
| 2362 | LIBS="$ac_save_LIBS" |
| 2363 | |
| 2364 | fi |
| 2365 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 2366 | echo "$ac_t""yes" 1>&6 |
| 2367 | ac_tr_lib=HAVE_LIB`echo xpg4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 2368 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
| 2369 | cat >> confdefs.h <<EOF |
| 2370 | #define $ac_tr_lib 1 |
| 2371 | EOF |
| 2372 | |
| 2373 | LIBS="-lxpg4 $LIBS" |
| 2374 | |
| 2375 | else |
| 2376 | echo "$ac_t""no" 1>&6 |
| 2377 | fi |
| 2378 | |
Marcus Meissner | 8220bc9 | 1998-10-11 11:10:27 +0000 | [diff] [blame] | 2379 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 2380 | echo "configure:2381: checking for dlopen in -ldl" >&5 |
Marcus Meissner | 8220bc9 | 1998-10-11 11:10:27 +0000 | [diff] [blame] | 2381 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
| 2382 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 2383 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2384 | else |
| 2385 | ac_save_LIBS="$LIBS" |
| 2386 | LIBS="-ldl $LIBS" |
| 2387 | cat > conftest.$ac_ext <<EOF |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 2388 | #line 2389 "configure" |
Marcus Meissner | 8220bc9 | 1998-10-11 11:10:27 +0000 | [diff] [blame] | 2389 | #include "confdefs.h" |
| 2390 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2391 | /* We use char because int might match the return type of a gcc2 |
| 2392 | builtin and then its argument prototype would still apply. */ |
| 2393 | char dlopen(); |
| 2394 | |
| 2395 | int main() { |
| 2396 | dlopen() |
| 2397 | ; return 0; } |
| 2398 | EOF |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 2399 | if { (eval echo configure:2400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
Marcus Meissner | 8220bc9 | 1998-10-11 11:10:27 +0000 | [diff] [blame] | 2400 | rm -rf conftest* |
| 2401 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 2402 | else |
| 2403 | echo "configure: failed program was:" >&5 |
| 2404 | cat conftest.$ac_ext >&5 |
| 2405 | rm -rf conftest* |
| 2406 | eval "ac_cv_lib_$ac_lib_var=no" |
| 2407 | fi |
| 2408 | rm -f conftest* |
| 2409 | LIBS="$ac_save_LIBS" |
| 2410 | |
| 2411 | fi |
| 2412 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 2413 | echo "$ac_t""yes" 1>&6 |
| 2414 | ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 2415 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
| 2416 | cat >> confdefs.h <<EOF |
| 2417 | #define $ac_tr_lib 1 |
| 2418 | EOF |
| 2419 | |
| 2420 | LIBS="-ldl $LIBS" |
| 2421 | |
| 2422 | else |
| 2423 | echo "$ac_t""no" 1>&6 |
| 2424 | fi |
| 2425 | |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 2426 | |
| 2427 | if test "$have_x" = "yes" |
| 2428 | then |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 2429 | XLIB="-lXext -lX11" |
Ove Kaaven | 1eb593c | 1999-02-14 09:34:46 +0000 | [diff] [blame] | 2430 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 2431 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 2432 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 2433 | for ac_hdr in X11/xpm.h |
Lionel Ulmer | a1d6d24 | 1999-01-30 15:54:43 +0000 | [diff] [blame] | 2434 | do |
| 2435 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 2436 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 2437 | echo "configure:2438: checking for $ac_hdr" >&5 |
Lionel Ulmer | a1d6d24 | 1999-01-30 15:54:43 +0000 | [diff] [blame] | 2438 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 2439 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2440 | else |
| 2441 | cat > conftest.$ac_ext <<EOF |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 2442 | #line 2443 "configure" |
Lionel Ulmer | a1d6d24 | 1999-01-30 15:54:43 +0000 | [diff] [blame] | 2443 | #include "confdefs.h" |
| 2444 | #include <$ac_hdr> |
| 2445 | EOF |
| 2446 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 2447 | { (eval echo configure:2448: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Lionel Ulmer | a1d6d24 | 1999-01-30 15:54:43 +0000 | [diff] [blame] | 2448 | ac_err=`grep -v '^ *+' conftest.out` |
| 2449 | if test -z "$ac_err"; then |
| 2450 | rm -rf conftest* |
| 2451 | eval "ac_cv_header_$ac_safe=yes" |
| 2452 | else |
| 2453 | echo "$ac_err" >&5 |
| 2454 | echo "configure: failed program was:" >&5 |
| 2455 | cat conftest.$ac_ext >&5 |
| 2456 | rm -rf conftest* |
| 2457 | eval "ac_cv_header_$ac_safe=no" |
| 2458 | fi |
| 2459 | rm -f conftest* |
| 2460 | fi |
| 2461 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 2462 | echo "$ac_t""yes" 1>&6 |
| 2463 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 2464 | cat >> confdefs.h <<EOF |
| 2465 | #define $ac_tr_hdr 1 |
| 2466 | EOF |
| 2467 | |
| 2468 | else |
| 2469 | echo "$ac_t""no" 1>&6 |
| 2470 | fi |
| 2471 | done |
| 2472 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 2473 | if test "$ac_cv_header_X11_xpm_h" = "yes" |
| 2474 | then |
| 2475 | echo $ac_n "checking for XpmCreatePixmapFromData in -lXpm""... $ac_c" 1>&6 |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 2476 | echo "configure:2477: checking for XpmCreatePixmapFromData in -lXpm" >&5 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 2477 | ac_lib_var=`echo Xpm'_'XpmCreatePixmapFromData | sed 'y%./+-%__p_%'` |
| 2478 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 2479 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2480 | else |
| 2481 | ac_save_LIBS="$LIBS" |
| 2482 | LIBS="-lXpm $X_LIBS -lXext -lX11 $LIBS" |
| 2483 | cat > conftest.$ac_ext <<EOF |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 2484 | #line 2485 "configure" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 2485 | #include "confdefs.h" |
| 2486 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2487 | /* We use char because int might match the return type of a gcc2 |
| 2488 | builtin and then its argument prototype would still apply. */ |
| 2489 | char XpmCreatePixmapFromData(); |
| 2490 | |
| 2491 | int main() { |
| 2492 | XpmCreatePixmapFromData() |
| 2493 | ; return 0; } |
| 2494 | EOF |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 2495 | if { (eval echo configure:2496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 2496 | rm -rf conftest* |
| 2497 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 2498 | else |
| 2499 | echo "configure: failed program was:" >&5 |
| 2500 | cat conftest.$ac_ext >&5 |
| 2501 | rm -rf conftest* |
| 2502 | eval "ac_cv_lib_$ac_lib_var=no" |
| 2503 | fi |
| 2504 | rm -f conftest* |
| 2505 | LIBS="$ac_save_LIBS" |
| 2506 | |
| 2507 | fi |
| 2508 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 2509 | echo "$ac_t""yes" 1>&6 |
| 2510 | cat >> confdefs.h <<\EOF |
| 2511 | #define HAVE_LIBXXPM 1 |
| 2512 | EOF |
| 2513 | X_PRE_LIBS="$X_PRE_LIBS -lXpm" |
| 2514 | else |
| 2515 | echo "$ac_t""no" 1>&6 |
| 2516 | fi |
| 2517 | |
| 2518 | fi |
| 2519 | |
| 2520 | for ac_hdr in X11/Xlib.h X11/extensions/XShm.h |
| 2521 | do |
| 2522 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 2523 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 2524 | echo "configure:2525: checking for $ac_hdr" >&5 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 2525 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 2526 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2527 | else |
| 2528 | cat > conftest.$ac_ext <<EOF |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 2529 | #line 2530 "configure" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 2530 | #include "confdefs.h" |
| 2531 | #include <$ac_hdr> |
| 2532 | EOF |
| 2533 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 2534 | { (eval echo configure:2535: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 2535 | ac_err=`grep -v '^ *+' conftest.out` |
| 2536 | if test -z "$ac_err"; then |
| 2537 | rm -rf conftest* |
| 2538 | eval "ac_cv_header_$ac_safe=yes" |
| 2539 | else |
| 2540 | echo "$ac_err" >&5 |
| 2541 | echo "configure: failed program was:" >&5 |
| 2542 | cat conftest.$ac_ext >&5 |
| 2543 | rm -rf conftest* |
| 2544 | eval "ac_cv_header_$ac_safe=no" |
| 2545 | fi |
| 2546 | rm -f conftest* |
| 2547 | fi |
| 2548 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 2549 | echo "$ac_t""yes" 1>&6 |
| 2550 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 2551 | cat >> confdefs.h <<EOF |
| 2552 | #define $ac_tr_hdr 1 |
| 2553 | EOF |
| 2554 | |
| 2555 | else |
| 2556 | echo "$ac_t""no" 1>&6 |
| 2557 | fi |
| 2558 | done |
| 2559 | |
| 2560 | if test "$ac_cv_header_X11_Xlib_h" = "yes" -a "$ac_cv_header_X11_extensions_XShm_h" = "yes" |
| 2561 | then |
| 2562 | echo $ac_n "checking for XShmQueryExtension in -lXext""... $ac_c" 1>&6 |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 2563 | echo "configure:2564: checking for XShmQueryExtension in -lXext" >&5 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 2564 | ac_lib_var=`echo Xext'_'XShmQueryExtension | sed 'y%./+-%__p_%'` |
| 2565 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 2566 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2567 | else |
| 2568 | ac_save_LIBS="$LIBS" |
| 2569 | LIBS="-lXext $X_LIBS -lXext -lX11 $LIBS" |
| 2570 | cat > conftest.$ac_ext <<EOF |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 2571 | #line 2572 "configure" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 2572 | #include "confdefs.h" |
| 2573 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2574 | /* We use char because int might match the return type of a gcc2 |
| 2575 | builtin and then its argument prototype would still apply. */ |
| 2576 | char XShmQueryExtension(); |
| 2577 | |
| 2578 | int main() { |
| 2579 | XShmQueryExtension() |
| 2580 | ; return 0; } |
| 2581 | EOF |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 2582 | if { (eval echo configure:2583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 2583 | rm -rf conftest* |
| 2584 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 2585 | else |
| 2586 | echo "configure: failed program was:" >&5 |
| 2587 | cat conftest.$ac_ext >&5 |
| 2588 | rm -rf conftest* |
| 2589 | eval "ac_cv_lib_$ac_lib_var=no" |
| 2590 | fi |
| 2591 | rm -f conftest* |
| 2592 | LIBS="$ac_save_LIBS" |
| 2593 | |
| 2594 | fi |
| 2595 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 2596 | echo "$ac_t""yes" 1>&6 |
| 2597 | cat >> confdefs.h <<\EOF |
| 2598 | #define HAVE_LIBXXSHM 1 |
| 2599 | EOF |
| 2600 | |
| 2601 | else |
| 2602 | echo "$ac_t""no" 1>&6 |
| 2603 | fi |
| 2604 | |
| 2605 | fi |
| 2606 | for ac_hdr in X11/Xlib.h X11/extensions/xf86dga.h |
| 2607 | do |
| 2608 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 2609 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 2610 | echo "configure:2611: checking for $ac_hdr" >&5 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 2611 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 2612 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2613 | else |
| 2614 | cat > conftest.$ac_ext <<EOF |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 2615 | #line 2616 "configure" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 2616 | #include "confdefs.h" |
| 2617 | #include <$ac_hdr> |
| 2618 | EOF |
| 2619 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 2620 | { (eval echo configure:2621: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 2621 | ac_err=`grep -v '^ *+' conftest.out` |
| 2622 | if test -z "$ac_err"; then |
| 2623 | rm -rf conftest* |
| 2624 | eval "ac_cv_header_$ac_safe=yes" |
| 2625 | else |
| 2626 | echo "$ac_err" >&5 |
| 2627 | echo "configure: failed program was:" >&5 |
| 2628 | cat conftest.$ac_ext >&5 |
| 2629 | rm -rf conftest* |
| 2630 | eval "ac_cv_header_$ac_safe=no" |
| 2631 | fi |
| 2632 | rm -f conftest* |
| 2633 | fi |
| 2634 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 2635 | echo "$ac_t""yes" 1>&6 |
| 2636 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 2637 | cat >> confdefs.h <<EOF |
| 2638 | #define $ac_tr_hdr 1 |
| 2639 | EOF |
| 2640 | |
| 2641 | else |
| 2642 | echo "$ac_t""no" 1>&6 |
| 2643 | fi |
| 2644 | done |
| 2645 | |
| 2646 | if test "$ac_cv_header_X11_Xlib_h" = "yes" -a "$ac_cv_header_X11_extensions_xf86dga_h" = "yes" |
| 2647 | then |
| 2648 | echo $ac_n "checking for XF86DGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6 |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 2649 | echo "configure:2650: checking for XF86DGAQueryExtension in -lXxf86dga" >&5 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 2650 | ac_lib_var=`echo Xxf86dga'_'XF86DGAQueryExtension | sed 'y%./+-%__p_%'` |
| 2651 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 2652 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2653 | else |
| 2654 | ac_save_LIBS="$LIBS" |
| 2655 | LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $LIBS" |
| 2656 | cat > conftest.$ac_ext <<EOF |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 2657 | #line 2658 "configure" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 2658 | #include "confdefs.h" |
| 2659 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2660 | /* We use char because int might match the return type of a gcc2 |
| 2661 | builtin and then its argument prototype would still apply. */ |
| 2662 | char XF86DGAQueryExtension(); |
| 2663 | |
| 2664 | int main() { |
| 2665 | XF86DGAQueryExtension() |
| 2666 | ; return 0; } |
| 2667 | EOF |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 2668 | if { (eval echo configure:2669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 2669 | rm -rf conftest* |
| 2670 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 2671 | else |
| 2672 | echo "configure: failed program was:" >&5 |
| 2673 | cat conftest.$ac_ext >&5 |
| 2674 | rm -rf conftest* |
| 2675 | eval "ac_cv_lib_$ac_lib_var=no" |
| 2676 | fi |
| 2677 | rm -f conftest* |
| 2678 | LIBS="$ac_save_LIBS" |
| 2679 | |
| 2680 | fi |
| 2681 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 2682 | echo "$ac_t""yes" 1>&6 |
| 2683 | cat >> confdefs.h <<\EOF |
| 2684 | #define HAVE_LIBXXF86DGA 1 |
| 2685 | EOF |
| 2686 | X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga" |
| 2687 | else |
| 2688 | echo "$ac_t""no" 1>&6 |
| 2689 | fi |
| 2690 | |
| 2691 | fi |
| 2692 | |
| 2693 | for ac_hdr in X11/Xlib.h X11/extensions/xf86vmode.h |
| 2694 | do |
| 2695 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 2696 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 2697 | echo "configure:2698: checking for $ac_hdr" >&5 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 2698 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 2699 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2700 | else |
| 2701 | cat > conftest.$ac_ext <<EOF |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 2702 | #line 2703 "configure" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 2703 | #include "confdefs.h" |
| 2704 | #include <$ac_hdr> |
| 2705 | EOF |
| 2706 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 2707 | { (eval echo configure:2708: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 2708 | ac_err=`grep -v '^ *+' conftest.out` |
| 2709 | if test -z "$ac_err"; then |
| 2710 | rm -rf conftest* |
| 2711 | eval "ac_cv_header_$ac_safe=yes" |
| 2712 | else |
| 2713 | echo "$ac_err" >&5 |
| 2714 | echo "configure: failed program was:" >&5 |
| 2715 | cat conftest.$ac_ext >&5 |
| 2716 | rm -rf conftest* |
| 2717 | eval "ac_cv_header_$ac_safe=no" |
| 2718 | fi |
| 2719 | rm -f conftest* |
| 2720 | fi |
| 2721 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 2722 | echo "$ac_t""yes" 1>&6 |
| 2723 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 2724 | cat >> confdefs.h <<EOF |
| 2725 | #define $ac_tr_hdr 1 |
| 2726 | EOF |
| 2727 | |
| 2728 | else |
| 2729 | echo "$ac_t""no" 1>&6 |
| 2730 | fi |
| 2731 | done |
| 2732 | |
| 2733 | if test "$ac_cv_header_X11_Xlib_h" = "yes" -a "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes" |
| 2734 | then |
| 2735 | echo $ac_n "checking for XF86VidModeQueryExtension in -lXxf86vm""... $ac_c" 1>&6 |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 2736 | echo "configure:2737: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 2737 | ac_lib_var=`echo Xxf86vm'_'XF86VidModeQueryExtension | sed 'y%./+-%__p_%'` |
| 2738 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 2739 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2740 | else |
| 2741 | ac_save_LIBS="$LIBS" |
| 2742 | LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $LIBS" |
| 2743 | cat > conftest.$ac_ext <<EOF |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 2744 | #line 2745 "configure" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 2745 | #include "confdefs.h" |
| 2746 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2747 | /* We use char because int might match the return type of a gcc2 |
| 2748 | builtin and then its argument prototype would still apply. */ |
| 2749 | char XF86VidModeQueryExtension(); |
| 2750 | |
| 2751 | int main() { |
| 2752 | XF86VidModeQueryExtension() |
| 2753 | ; return 0; } |
| 2754 | EOF |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 2755 | if { (eval echo configure:2756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 2756 | rm -rf conftest* |
| 2757 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 2758 | else |
| 2759 | echo "configure: failed program was:" >&5 |
| 2760 | cat conftest.$ac_ext >&5 |
| 2761 | rm -rf conftest* |
| 2762 | eval "ac_cv_lib_$ac_lib_var=no" |
| 2763 | fi |
| 2764 | rm -f conftest* |
| 2765 | LIBS="$ac_save_LIBS" |
| 2766 | |
| 2767 | fi |
| 2768 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 2769 | echo "$ac_t""yes" 1>&6 |
| 2770 | cat >> confdefs.h <<\EOF |
| 2771 | #define HAVE_LIBXXF86VM 1 |
| 2772 | EOF |
| 2773 | X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm" |
| 2774 | else |
| 2775 | echo "$ac_t""no" 1>&6 |
| 2776 | fi |
| 2777 | |
| 2778 | fi |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 2779 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 2780 | for ac_hdr in GL/gl.h GL/osmesa.h |
| 2781 | do |
| 2782 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 2783 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 2784 | echo "configure:2785: checking for $ac_hdr" >&5 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 2785 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 2786 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2787 | else |
| 2788 | cat > conftest.$ac_ext <<EOF |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 2789 | #line 2790 "configure" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 2790 | #include "confdefs.h" |
| 2791 | #include <$ac_hdr> |
| 2792 | EOF |
| 2793 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 2794 | { (eval echo configure:2795: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 2795 | ac_err=`grep -v '^ *+' conftest.out` |
| 2796 | if test -z "$ac_err"; then |
| 2797 | rm -rf conftest* |
| 2798 | eval "ac_cv_header_$ac_safe=yes" |
| 2799 | else |
| 2800 | echo "$ac_err" >&5 |
| 2801 | echo "configure: failed program was:" >&5 |
| 2802 | cat conftest.$ac_ext >&5 |
| 2803 | rm -rf conftest* |
| 2804 | eval "ac_cv_header_$ac_safe=no" |
| 2805 | fi |
| 2806 | rm -f conftest* |
| 2807 | fi |
| 2808 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 2809 | echo "$ac_t""yes" 1>&6 |
| 2810 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 2811 | cat >> confdefs.h <<EOF |
| 2812 | #define $ac_tr_hdr 1 |
| 2813 | EOF |
| 2814 | |
| 2815 | else |
| 2816 | echo "$ac_t""no" 1>&6 |
| 2817 | fi |
| 2818 | done |
| 2819 | |
| 2820 | if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_osmesa_h" = "yes" |
| 2821 | then |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 2822 | echo $ac_n "checking "for up-to-date Mesa version"""... $ac_c" 1>&6 |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 2823 | echo "configure:2824: checking "for up-to-date Mesa version"" >&5 |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 2824 | if eval "test \"`echo '$''{'wine_cv_mesa_version_OK'+set}'`\" = set"; then |
| 2825 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2826 | else |
| 2827 | cat > conftest.$ac_ext <<EOF |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 2828 | #line 2829 "configure" |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 2829 | #include "confdefs.h" |
| 2830 | #include <GL/gl.h> |
| 2831 | int main() { |
| 2832 | GLenum test = GL_UNSIGNED_SHORT_5_6_5; |
| 2833 | ; return 0; } |
| 2834 | EOF |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 2835 | if { (eval echo configure:2836: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 2836 | rm -rf conftest* |
| 2837 | wine_cv_mesa_version_OK="yes" |
| 2838 | else |
| 2839 | echo "configure: failed program was:" >&5 |
| 2840 | cat conftest.$ac_ext >&5 |
| 2841 | rm -rf conftest* |
| 2842 | wine_cv_mesa_version_OK="no" |
| 2843 | |
| 2844 | fi |
| 2845 | rm -f conftest* |
| 2846 | |
| 2847 | fi |
| 2848 | |
| 2849 | echo "$ac_t""$wine_cv_mesa_version_OK" 1>&6 |
| 2850 | |
| 2851 | if test "$wine_cv_mesa_version_OK" = "yes" |
| 2852 | then |
| 2853 | echo $ac_n "checking for OSMesaCreateContext in -lMesaGL""... $ac_c" 1>&6 |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 2854 | echo "configure:2855: checking for OSMesaCreateContext in -lMesaGL" >&5 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 2855 | ac_lib_var=`echo MesaGL'_'OSMesaCreateContext | sed 'y%./+-%__p_%'` |
| 2856 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 2857 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2858 | else |
| 2859 | ac_save_LIBS="$LIBS" |
| 2860 | LIBS="-lMesaGL $X_LIBS -lXext -lX11 -lm $LIBS" |
| 2861 | cat > conftest.$ac_ext <<EOF |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 2862 | #line 2863 "configure" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 2863 | #include "confdefs.h" |
| 2864 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2865 | /* We use char because int might match the return type of a gcc2 |
| 2866 | builtin and then its argument prototype would still apply. */ |
| 2867 | char OSMesaCreateContext(); |
| 2868 | |
| 2869 | int main() { |
| 2870 | OSMesaCreateContext() |
| 2871 | ; return 0; } |
| 2872 | EOF |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 2873 | if { (eval echo configure:2874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 2874 | rm -rf conftest* |
| 2875 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 2876 | else |
| 2877 | echo "configure: failed program was:" >&5 |
| 2878 | cat conftest.$ac_ext >&5 |
| 2879 | rm -rf conftest* |
| 2880 | eval "ac_cv_lib_$ac_lib_var=no" |
| 2881 | fi |
| 2882 | rm -f conftest* |
| 2883 | LIBS="$ac_save_LIBS" |
| 2884 | |
| 2885 | fi |
| 2886 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 2887 | echo "$ac_t""yes" 1>&6 |
| 2888 | cat >> confdefs.h <<\EOF |
| 2889 | #define HAVE_LIBMESAGL 1 |
| 2890 | EOF |
| 2891 | X_PRE_LIBS="$X_PRE_LIBS -lMesaGL" |
| 2892 | else |
| 2893 | echo "$ac_t""no" 1>&6 |
| 2894 | fi |
| 2895 | |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 2896 | fi |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 2897 | fi |
Ove Kaaven | 1eb593c | 1999-02-14 09:34:46 +0000 | [diff] [blame] | 2898 | |
| 2899 | CPPFLAGS="$ac_save_CPPFLAGS" |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 2900 | else |
| 2901 | XLIB="" |
| 2902 | X_CFLAGS="" |
| 2903 | X_LIBS="" |
| 2904 | fi |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 2905 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 2906 | for ac_hdr in ncurses.h |
| 2907 | do |
| 2908 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 2909 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 2910 | echo "configure:2911: checking for $ac_hdr" >&5 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 2911 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 2912 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2913 | else |
| 2914 | cat > conftest.$ac_ext <<EOF |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 2915 | #line 2916 "configure" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 2916 | #include "confdefs.h" |
| 2917 | #include <$ac_hdr> |
| 2918 | EOF |
| 2919 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 2920 | { (eval echo configure:2921: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 2921 | ac_err=`grep -v '^ *+' conftest.out` |
| 2922 | if test -z "$ac_err"; then |
| 2923 | rm -rf conftest* |
| 2924 | eval "ac_cv_header_$ac_safe=yes" |
| 2925 | else |
| 2926 | echo "$ac_err" >&5 |
| 2927 | echo "configure: failed program was:" >&5 |
| 2928 | cat conftest.$ac_ext >&5 |
| 2929 | rm -rf conftest* |
| 2930 | eval "ac_cv_header_$ac_safe=no" |
| 2931 | fi |
| 2932 | rm -f conftest* |
| 2933 | fi |
| 2934 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 2935 | echo "$ac_t""yes" 1>&6 |
| 2936 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 2937 | cat >> confdefs.h <<EOF |
| 2938 | #define $ac_tr_hdr 1 |
| 2939 | EOF |
| 2940 | |
| 2941 | else |
| 2942 | echo "$ac_t""no" 1>&6 |
| 2943 | fi |
| 2944 | done |
| 2945 | |
| 2946 | if test "$ac_cv_header_ncurses_h" = "yes" |
| 2947 | then |
| 2948 | echo $ac_n "checking for waddch in -lncurses""... $ac_c" 1>&6 |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 2949 | echo "configure:2950: checking for waddch in -lncurses" >&5 |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 2950 | ac_lib_var=`echo ncurses'_'waddch | sed 'y%./+-%__p_%'` |
| 2951 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 2952 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2953 | else |
| 2954 | ac_save_LIBS="$LIBS" |
| 2955 | LIBS="-lncurses $LIBS" |
| 2956 | cat > conftest.$ac_ext <<EOF |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 2957 | #line 2958 "configure" |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 2958 | #include "confdefs.h" |
| 2959 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2960 | /* We use char because int might match the return type of a gcc2 |
| 2961 | builtin and then its argument prototype would still apply. */ |
| 2962 | char waddch(); |
| 2963 | |
| 2964 | int main() { |
| 2965 | waddch() |
| 2966 | ; return 0; } |
| 2967 | EOF |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 2968 | if { (eval echo configure:2969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 2969 | rm -rf conftest* |
| 2970 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 2971 | else |
| 2972 | echo "configure: failed program was:" >&5 |
| 2973 | cat conftest.$ac_ext >&5 |
| 2974 | rm -rf conftest* |
| 2975 | eval "ac_cv_lib_$ac_lib_var=no" |
| 2976 | fi |
| 2977 | rm -f conftest* |
| 2978 | LIBS="$ac_save_LIBS" |
| 2979 | |
| 2980 | fi |
| 2981 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 2982 | echo "$ac_t""yes" 1>&6 |
| 2983 | ac_tr_lib=HAVE_LIB`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 2984 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
| 2985 | cat >> confdefs.h <<EOF |
| 2986 | #define $ac_tr_lib 1 |
| 2987 | EOF |
| 2988 | |
| 2989 | LIBS="-lncurses $LIBS" |
| 2990 | |
| 2991 | else |
| 2992 | echo "$ac_t""no" 1>&6 |
| 2993 | fi |
| 2994 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 2995 | fi |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 2996 | if test "$ac_cv_lib_ncurses_waddch" = "yes" |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 2997 | then |
| 2998 | echo $ac_n "checking for resizeterm in -lncurses""... $ac_c" 1>&6 |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 2999 | echo "configure:3000: checking for resizeterm in -lncurses" >&5 |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 3000 | ac_lib_var=`echo ncurses'_'resizeterm | sed 'y%./+-%__p_%'` |
| 3001 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 3002 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3003 | else |
| 3004 | ac_save_LIBS="$LIBS" |
| 3005 | LIBS="-lncurses $LIBS" |
| 3006 | cat > conftest.$ac_ext <<EOF |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 3007 | #line 3008 "configure" |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 3008 | #include "confdefs.h" |
| 3009 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3010 | /* We use char because int might match the return type of a gcc2 |
| 3011 | builtin and then its argument prototype would still apply. */ |
| 3012 | char resizeterm(); |
| 3013 | |
| 3014 | int main() { |
| 3015 | resizeterm() |
| 3016 | ; return 0; } |
| 3017 | EOF |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 3018 | if { (eval echo configure:3019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 3019 | rm -rf conftest* |
| 3020 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3021 | else |
| 3022 | echo "configure: failed program was:" >&5 |
| 3023 | cat conftest.$ac_ext >&5 |
| 3024 | rm -rf conftest* |
| 3025 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3026 | fi |
| 3027 | rm -f conftest* |
| 3028 | LIBS="$ac_save_LIBS" |
| 3029 | |
| 3030 | fi |
| 3031 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3032 | echo "$ac_t""yes" 1>&6 |
| 3033 | cat >> confdefs.h <<\EOF |
| 3034 | #define HAVE_RESIZETERM 1 |
| 3035 | EOF |
| 3036 | |
| 3037 | else |
| 3038 | echo "$ac_t""no" 1>&6 |
| 3039 | fi |
| 3040 | |
Michael Veksler | f544507 | 1999-02-25 17:11:05 +0000 | [diff] [blame] | 3041 | echo $ac_n "checking for getbkgd in -lncurses""... $ac_c" 1>&6 |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 3042 | echo "configure:3043: checking for getbkgd in -lncurses" >&5 |
Michael Veksler | f544507 | 1999-02-25 17:11:05 +0000 | [diff] [blame] | 3043 | ac_lib_var=`echo ncurses'_'getbkgd | sed 'y%./+-%__p_%'` |
| 3044 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 3045 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3046 | else |
| 3047 | ac_save_LIBS="$LIBS" |
| 3048 | LIBS="-lncurses $LIBS" |
| 3049 | cat > conftest.$ac_ext <<EOF |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 3050 | #line 3051 "configure" |
Michael Veksler | f544507 | 1999-02-25 17:11:05 +0000 | [diff] [blame] | 3051 | #include "confdefs.h" |
| 3052 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3053 | /* We use char because int might match the return type of a gcc2 |
| 3054 | builtin and then its argument prototype would still apply. */ |
| 3055 | char getbkgd(); |
| 3056 | |
| 3057 | int main() { |
| 3058 | getbkgd() |
| 3059 | ; return 0; } |
| 3060 | EOF |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 3061 | if { (eval echo configure:3062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
Michael Veksler | f544507 | 1999-02-25 17:11:05 +0000 | [diff] [blame] | 3062 | rm -rf conftest* |
| 3063 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3064 | else |
| 3065 | echo "configure: failed program was:" >&5 |
| 3066 | cat conftest.$ac_ext >&5 |
| 3067 | rm -rf conftest* |
| 3068 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3069 | fi |
| 3070 | rm -f conftest* |
| 3071 | LIBS="$ac_save_LIBS" |
| 3072 | |
| 3073 | fi |
| 3074 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3075 | echo "$ac_t""yes" 1>&6 |
| 3076 | cat >> confdefs.h <<\EOF |
| 3077 | #define HAVE_GETBKGD 1 |
| 3078 | EOF |
| 3079 | |
| 3080 | else |
| 3081 | echo "$ac_t""no" 1>&6 |
| 3082 | fi |
| 3083 | |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 3084 | else |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 3085 | for ac_hdr in curses.h |
| 3086 | do |
| 3087 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 3088 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 3089 | echo "configure:3090: checking for $ac_hdr" >&5 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 3090 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 3091 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3092 | else |
| 3093 | cat > conftest.$ac_ext <<EOF |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 3094 | #line 3095 "configure" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 3095 | #include "confdefs.h" |
| 3096 | #include <$ac_hdr> |
| 3097 | EOF |
| 3098 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 3099 | { (eval echo configure:3100: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 3100 | ac_err=`grep -v '^ *+' conftest.out` |
| 3101 | if test -z "$ac_err"; then |
| 3102 | rm -rf conftest* |
| 3103 | eval "ac_cv_header_$ac_safe=yes" |
| 3104 | else |
| 3105 | echo "$ac_err" >&5 |
| 3106 | echo "configure: failed program was:" >&5 |
| 3107 | cat conftest.$ac_ext >&5 |
| 3108 | rm -rf conftest* |
| 3109 | eval "ac_cv_header_$ac_safe=no" |
| 3110 | fi |
| 3111 | rm -f conftest* |
| 3112 | fi |
| 3113 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 3114 | echo "$ac_t""yes" 1>&6 |
| 3115 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 3116 | cat >> confdefs.h <<EOF |
| 3117 | #define $ac_tr_hdr 1 |
| 3118 | EOF |
| 3119 | |
| 3120 | else |
| 3121 | echo "$ac_t""no" 1>&6 |
| 3122 | fi |
| 3123 | done |
| 3124 | |
| 3125 | if test "$ac_cv_header_curses_h" = "yes" |
| 3126 | then |
| 3127 | echo $ac_n "checking for waddch in -lcurses""... $ac_c" 1>&6 |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 3128 | echo "configure:3129: checking for waddch in -lcurses" >&5 |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 3129 | ac_lib_var=`echo curses'_'waddch | sed 'y%./+-%__p_%'` |
| 3130 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 3131 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3132 | else |
| 3133 | ac_save_LIBS="$LIBS" |
| 3134 | LIBS="-lcurses $LIBS" |
| 3135 | cat > conftest.$ac_ext <<EOF |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 3136 | #line 3137 "configure" |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 3137 | #include "confdefs.h" |
| 3138 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3139 | /* We use char because int might match the return type of a gcc2 |
| 3140 | builtin and then its argument prototype would still apply. */ |
| 3141 | char waddch(); |
| 3142 | |
| 3143 | int main() { |
| 3144 | waddch() |
| 3145 | ; return 0; } |
| 3146 | EOF |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 3147 | if { (eval echo configure:3148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 3148 | rm -rf conftest* |
| 3149 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3150 | else |
| 3151 | echo "configure: failed program was:" >&5 |
| 3152 | cat conftest.$ac_ext >&5 |
| 3153 | rm -rf conftest* |
| 3154 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3155 | fi |
| 3156 | rm -f conftest* |
| 3157 | LIBS="$ac_save_LIBS" |
| 3158 | |
| 3159 | fi |
| 3160 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3161 | echo "$ac_t""yes" 1>&6 |
| 3162 | ac_tr_lib=HAVE_LIB`echo curses | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 3163 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
| 3164 | cat >> confdefs.h <<EOF |
| 3165 | #define $ac_tr_lib 1 |
| 3166 | EOF |
| 3167 | |
| 3168 | LIBS="-lcurses $LIBS" |
| 3169 | |
| 3170 | else |
| 3171 | echo "$ac_t""no" 1>&6 |
| 3172 | fi |
| 3173 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 3174 | echo $ac_n "checking for resizeterm in -lcurses""... $ac_c" 1>&6 |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 3175 | echo "configure:3176: checking for resizeterm in -lcurses" >&5 |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 3176 | ac_lib_var=`echo curses'_'resizeterm | sed 'y%./+-%__p_%'` |
| 3177 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 3178 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3179 | else |
| 3180 | ac_save_LIBS="$LIBS" |
| 3181 | LIBS="-lcurses $LIBS" |
| 3182 | cat > conftest.$ac_ext <<EOF |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 3183 | #line 3184 "configure" |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 3184 | #include "confdefs.h" |
| 3185 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3186 | /* We use char because int might match the return type of a gcc2 |
| 3187 | builtin and then its argument prototype would still apply. */ |
| 3188 | char resizeterm(); |
| 3189 | |
| 3190 | int main() { |
| 3191 | resizeterm() |
| 3192 | ; return 0; } |
| 3193 | EOF |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 3194 | if { (eval echo configure:3195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 3195 | rm -rf conftest* |
| 3196 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3197 | else |
| 3198 | echo "configure: failed program was:" >&5 |
| 3199 | cat conftest.$ac_ext >&5 |
| 3200 | rm -rf conftest* |
| 3201 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3202 | fi |
| 3203 | rm -f conftest* |
| 3204 | LIBS="$ac_save_LIBS" |
| 3205 | |
| 3206 | fi |
| 3207 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3208 | echo "$ac_t""yes" 1>&6 |
| 3209 | cat >> confdefs.h <<\EOF |
| 3210 | #define HAVE_RESIZETERM 1 |
| 3211 | EOF |
| 3212 | |
| 3213 | else |
| 3214 | echo "$ac_t""no" 1>&6 |
| 3215 | fi |
| 3216 | |
Michael Veksler | f544507 | 1999-02-25 17:11:05 +0000 | [diff] [blame] | 3217 | echo $ac_n "checking for getbkgd in -lcurses""... $ac_c" 1>&6 |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 3218 | echo "configure:3219: checking for getbkgd in -lcurses" >&5 |
Michael Veksler | f544507 | 1999-02-25 17:11:05 +0000 | [diff] [blame] | 3219 | ac_lib_var=`echo curses'_'getbkgd | sed 'y%./+-%__p_%'` |
| 3220 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 3221 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3222 | else |
| 3223 | ac_save_LIBS="$LIBS" |
| 3224 | LIBS="-lcurses $LIBS" |
| 3225 | cat > conftest.$ac_ext <<EOF |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 3226 | #line 3227 "configure" |
Michael Veksler | f544507 | 1999-02-25 17:11:05 +0000 | [diff] [blame] | 3227 | #include "confdefs.h" |
| 3228 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3229 | /* We use char because int might match the return type of a gcc2 |
| 3230 | builtin and then its argument prototype would still apply. */ |
| 3231 | char getbkgd(); |
| 3232 | |
| 3233 | int main() { |
| 3234 | getbkgd() |
| 3235 | ; return 0; } |
| 3236 | EOF |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 3237 | if { (eval echo configure:3238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
Michael Veksler | f544507 | 1999-02-25 17:11:05 +0000 | [diff] [blame] | 3238 | rm -rf conftest* |
| 3239 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3240 | else |
| 3241 | echo "configure: failed program was:" >&5 |
| 3242 | cat conftest.$ac_ext >&5 |
| 3243 | rm -rf conftest* |
| 3244 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3245 | fi |
| 3246 | rm -f conftest* |
| 3247 | LIBS="$ac_save_LIBS" |
| 3248 | |
| 3249 | fi |
| 3250 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3251 | echo "$ac_t""yes" 1>&6 |
| 3252 | cat >> confdefs.h <<\EOF |
| 3253 | #define HAVE_GETBKGD 1 |
| 3254 | EOF |
| 3255 | |
| 3256 | else |
| 3257 | echo "$ac_t""no" 1>&6 |
| 3258 | fi |
| 3259 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 3260 | fi |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 3261 | fi |
| 3262 | |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 3263 | echo $ac_n "checking "for GNU style IPX support"""... $ac_c" 1>&6 |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 3264 | echo "configure:3265: checking "for GNU style IPX support"" >&5 |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 3265 | if eval "test \"`echo '$''{'ac_cv_c_ipx_gnu'+set}'`\" = set"; then |
| 3266 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3267 | else |
| 3268 | cat > conftest.$ac_ext <<EOF |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 3269 | #line 3270 "configure" |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 3270 | #include "confdefs.h" |
| 3271 | #include <sys/socket.h> |
| 3272 | #include <netipx/ipx.h> |
| 3273 | int main() { |
| 3274 | ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX |
| 3275 | ; return 0; } |
| 3276 | EOF |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 3277 | if { (eval echo configure:3278: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 3278 | rm -rf conftest* |
| 3279 | cat >> confdefs.h <<\EOF |
| 3280 | #define HAVE_IPX_GNU 1 |
| 3281 | EOF |
| 3282 | |
| 3283 | ac_cv_c_ipx_gnu="yes" |
| 3284 | else |
| 3285 | echo "configure: failed program was:" >&5 |
| 3286 | cat conftest.$ac_ext >&5 |
| 3287 | rm -rf conftest* |
| 3288 | ac_cv_c_ipx_gnu="no" |
| 3289 | fi |
| 3290 | rm -f conftest* |
| 3291 | |
| 3292 | fi |
| 3293 | |
| 3294 | echo "$ac_t""$ac_cv_c_ipx_gnu" 1>&6 |
| 3295 | |
| 3296 | if test "$ac_cv_c_ipx_gnu" = "no" |
| 3297 | then |
| 3298 | echo $ac_n "checking "for linux style IPX support"""... $ac_c" 1>&6 |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 3299 | echo "configure:3300: checking "for linux style IPX support"" >&5 |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 3300 | if eval "test \"`echo '$''{'ac_cv_c_ipx_linux'+set}'`\" = set"; then |
| 3301 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3302 | else |
| 3303 | cat > conftest.$ac_ext <<EOF |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 3304 | #line 3305 "configure" |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 3305 | #include "confdefs.h" |
| 3306 | #include <sys/socket.h> |
| 3307 | #include <asm/types.h> |
| 3308 | #include <linux/ipx.h> |
| 3309 | int main() { |
| 3310 | ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX |
| 3311 | ; return 0; } |
| 3312 | EOF |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 3313 | if { (eval echo configure:3314: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 3314 | rm -rf conftest* |
| 3315 | cat >> confdefs.h <<\EOF |
| 3316 | #define HAVE_IPX_LINUX 1 |
| 3317 | EOF |
| 3318 | |
| 3319 | ac_cv_c_ipx_linux="yes" |
| 3320 | else |
| 3321 | echo "configure: failed program was:" >&5 |
| 3322 | cat conftest.$ac_ext >&5 |
| 3323 | rm -rf conftest* |
| 3324 | ac_cv_c_ipx_linux="no" |
| 3325 | fi |
| 3326 | rm -f conftest* |
| 3327 | |
| 3328 | fi |
| 3329 | |
| 3330 | echo "$ac_t""$ac_cv_c_ipx_linux" 1>&6 |
| 3331 | fi |
| 3332 | |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 3333 | for ac_hdr in sys/soundcard.h machine/soundcard.h soundcard.h |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 3334 | do |
| 3335 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 3336 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 3337 | echo "configure:3338: checking for $ac_hdr" >&5 |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 3338 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 3339 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3340 | else |
| 3341 | cat > conftest.$ac_ext <<EOF |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 3342 | #line 3343 "configure" |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 3343 | #include "confdefs.h" |
| 3344 | #include <$ac_hdr> |
| 3345 | EOF |
| 3346 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 3347 | { (eval echo configure:3348: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 3348 | ac_err=`grep -v '^ *+' conftest.out` |
| 3349 | if test -z "$ac_err"; then |
| 3350 | rm -rf conftest* |
| 3351 | eval "ac_cv_header_$ac_safe=yes" |
| 3352 | else |
| 3353 | echo "$ac_err" >&5 |
| 3354 | echo "configure: failed program was:" >&5 |
| 3355 | cat conftest.$ac_ext >&5 |
| 3356 | rm -rf conftest* |
| 3357 | eval "ac_cv_header_$ac_safe=no" |
| 3358 | fi |
| 3359 | rm -f conftest* |
| 3360 | fi |
| 3361 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 3362 | echo "$ac_t""yes" 1>&6 |
| 3363 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 3364 | cat >> confdefs.h <<EOF |
| 3365 | #define $ac_tr_hdr 1 |
| 3366 | EOF |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 3367 | break |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 3368 | else |
| 3369 | echo "$ac_t""no" 1>&6 |
| 3370 | fi |
| 3371 | done |
| 3372 | |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 3373 | |
| 3374 | echo $ac_n "checking "for Open Sound System"""... $ac_c" 1>&6 |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 3375 | echo "configure:3376: checking "for Open Sound System"" >&5 |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 3376 | if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem'+set}'`\" = set"; then |
| 3377 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3378 | else |
| 3379 | cat > conftest.$ac_ext <<EOF |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 3380 | #line 3381 "configure" |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 3381 | #include "confdefs.h" |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 3382 | |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 3383 | #if defined(HAVE_SYS_SOUNDCARD_H) |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 3384 | #include <sys/soundcard.h> |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 3385 | #elif defined(HAVE_MACHINE_SOUNDCARD_H) |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 3386 | #include <machine/soundcard.h> |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 3387 | #elif defined(HAVE_SOUNDCARD_H) |
| 3388 | #include <soundcard.h> |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 3389 | #endif |
| 3390 | |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 3391 | int main() { |
| 3392 | |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 3393 | |
Alexandre Julliard | 60ce85c | 1998-02-01 18:33:27 +0000 | [diff] [blame] | 3394 | /* check for one of the Open Sound System specific SNDCTL_ defines */ |
| 3395 | #if !defined(SNDCTL_DSP_STEREO) |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 3396 | #error No open sound system |
| 3397 | #endif |
| 3398 | |
| 3399 | ; return 0; } |
| 3400 | EOF |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 3401 | if { (eval echo configure:3402: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 3402 | rm -rf conftest* |
| 3403 | ac_cv_c_opensoundsystem="yes" |
| 3404 | else |
| 3405 | echo "configure: failed program was:" >&5 |
| 3406 | cat conftest.$ac_ext >&5 |
| 3407 | rm -rf conftest* |
| 3408 | ac_cv_c_opensoundsystem="no" |
| 3409 | fi |
| 3410 | rm -f conftest* |
| 3411 | fi |
| 3412 | |
| 3413 | echo "$ac_t""$ac_cv_c_opensoundsystem" 1>&6 |
| 3414 | |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 3415 | if test "$ac_cv_c_opensoundsystem" = "yes" |
| 3416 | then |
| 3417 | cat >> confdefs.h <<\EOF |
| 3418 | #define HAVE_OSS 1 |
| 3419 | EOF |
| 3420 | |
| 3421 | fi |
| 3422 | |
Alexandre Julliard | 641ee76 | 1997-08-04 16:34:36 +0000 | [diff] [blame] | 3423 | if test "$ac_cv_prog_LN_S" = "ln -s"; then : ; else LN_S=cp ; fi |
| 3424 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3425 | |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 3426 | if test "x${GCC}" = "xyes" |
| 3427 | then |
| 3428 | CFLAGS="$CFLAGS -Wall" |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 3429 | echo $ac_n "checking "for gcc strength-reduce bug"""... $ac_c" 1>&6 |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame^] | 3430 | echo "configure:3431: checking "for gcc strength-reduce bug"" >&5 |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 3431 | if eval "test \"`echo '$''{'ac_cv_c_gcc_strength_bug'+set}'`\" = set"; then |
| 3432 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3433 | else |
| 3434 | if test "$cross_compiling" = yes; then |
| 3435 | ac_cv_c_gcc_strength_bug="yes" |
| 3436 | else |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3437 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame^] | 3438 | #line 3439 "configure" |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 3439 | #include "confdefs.h" |
| 3440 | |
| 3441 | int main(void) { |
Alexandre Julliard | d2e1c1a | 1996-03-09 16:12:43 +0000 | [diff] [blame] | 3442 | static int Array[3]; |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 3443 | unsigned int B = 3; |
| 3444 | int i; |
Alexandre Julliard | d2e1c1a | 1996-03-09 16:12:43 +0000 | [diff] [blame] | 3445 | for(i=0; i<B; i++) Array[i] = i - 3; |
| 3446 | exit( Array[1] != -2 ); |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 3447 | } |
| 3448 | EOF |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame^] | 3449 | if { (eval echo configure:3450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 3450 | then |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 3451 | ac_cv_c_gcc_strength_bug="no" |
| 3452 | else |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3453 | echo "configure: failed program was:" >&5 |
| 3454 | cat conftest.$ac_ext >&5 |
| 3455 | rm -fr conftest* |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 3456 | ac_cv_c_gcc_strength_bug="yes" |
| 3457 | fi |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3458 | rm -fr conftest* |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 3459 | fi |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3460 | |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 3461 | fi |
| 3462 | |
| 3463 | echo "$ac_t""$ac_cv_c_gcc_strength_bug" 1>&6 |
| 3464 | if test "$ac_cv_c_gcc_strength_bug" = "yes" |
| 3465 | then |
| 3466 | CFLAGS="$CFLAGS -fno-strength-reduce" |
| 3467 | fi |
| 3468 | fi |
| 3469 | |
| 3470 | |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 3471 | echo $ac_n "checking "whether external symbols need an underscore prefix"""... $ac_c" 1>&6 |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame^] | 3472 | echo "configure:3473: checking "whether external symbols need an underscore prefix"" >&5 |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 3473 | if eval "test \"`echo '$''{'ac_cv_c_extern_prefix'+set}'`\" = set"; then |
| 3474 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3475 | else |
| 3476 | saved_libs=$LIBS |
| 3477 | LIBS="conftest_asm.s $LIBS" |
| 3478 | cat > conftest_asm.s <<EOF |
| 3479 | .globl _ac_test |
| 3480 | _ac_test: |
| 3481 | .long 0 |
| 3482 | EOF |
| 3483 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame^] | 3484 | #line 3485 "configure" |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 3485 | #include "confdefs.h" |
| 3486 | extern int ac_test; |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3487 | int main() { |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 3488 | if (ac_test) return 1 |
| 3489 | ; return 0; } |
| 3490 | EOF |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame^] | 3491 | if { (eval echo configure:3492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 3492 | rm -rf conftest* |
| 3493 | ac_cv_c_extern_prefix="yes" |
| 3494 | else |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3495 | echo "configure: failed program was:" >&5 |
| 3496 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 3497 | rm -rf conftest* |
| 3498 | ac_cv_c_extern_prefix="no" |
| 3499 | fi |
| 3500 | rm -f conftest* |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 3501 | LIBS=$saved_libs |
| 3502 | fi |
| 3503 | |
| 3504 | echo "$ac_t""$ac_cv_c_extern_prefix" 1>&6 |
| 3505 | if test "$ac_cv_c_extern_prefix" = "yes" |
| 3506 | then |
| 3507 | cat >> confdefs.h <<\EOF |
| 3508 | #define NEED_UNDERSCORE_PREFIX 1 |
| 3509 | EOF |
| 3510 | |
| 3511 | fi |
| 3512 | |
| 3513 | |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 3514 | echo $ac_n "checking "whether assembler accepts .string"""... $ac_c" 1>&6 |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame^] | 3515 | echo "configure:3516: checking "whether assembler accepts .string"" >&5 |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 3516 | if eval "test \"`echo '$''{'ac_cv_c_asm_string'+set}'`\" = set"; then |
| 3517 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3518 | else |
| 3519 | saved_libs=$LIBS |
| 3520 | LIBS="conftest_asm.s $LIBS" |
| 3521 | cat > conftest_asm.s <<EOF |
| 3522 | .string "test" |
| 3523 | EOF |
| 3524 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame^] | 3525 | #line 3526 "configure" |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 3526 | #include "confdefs.h" |
| 3527 | |
| 3528 | int main() { |
| 3529 | |
| 3530 | ; return 0; } |
| 3531 | EOF |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame^] | 3532 | if { (eval echo configure:3533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 3533 | rm -rf conftest* |
| 3534 | ac_cv_c_asm_string="yes" |
| 3535 | else |
| 3536 | echo "configure: failed program was:" >&5 |
| 3537 | cat conftest.$ac_ext >&5 |
| 3538 | rm -rf conftest* |
| 3539 | ac_cv_c_asm_string="no" |
| 3540 | fi |
| 3541 | rm -f conftest* |
| 3542 | LIBS=$saved_libs |
| 3543 | fi |
| 3544 | |
| 3545 | echo "$ac_t""$ac_cv_c_asm_string" 1>&6 |
| 3546 | if test "$ac_cv_c_asm_string" = "yes" |
| 3547 | then |
| 3548 | cat >> confdefs.h <<\EOF |
| 3549 | #define HAVE_ASM_STRING 1 |
| 3550 | EOF |
| 3551 | |
| 3552 | fi |
| 3553 | |
| 3554 | |
Alexandre Julliard | a0b2b1d | 1997-11-16 17:38:29 +0000 | [diff] [blame] | 3555 | DLLFLAGS="" |
Todd Vierling | 4b992b0 | 1998-12-15 15:26:27 +0000 | [diff] [blame] | 3556 | LDSHARED="" |
Alexandre Julliard | a0b2b1d | 1997-11-16 17:38:29 +0000 | [diff] [blame] | 3557 | if test "$LIB_TARGET" = "libwine.so.1.0" |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 3558 | then |
Todd Vierling | 4b992b0 | 1998-12-15 15:26:27 +0000 | [diff] [blame] | 3559 | echo $ac_n "checking "whether we can build a Linux dll"""... $ac_c" 1>&6 |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame^] | 3560 | echo "configure:3561: checking "whether we can build a Linux dll"" >&5 |
Todd Vierling | 4b992b0 | 1998-12-15 15:26:27 +0000 | [diff] [blame] | 3561 | if eval "test \"`echo '$''{'ac_cv_c_dll_linux'+set}'`\" = set"; then |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 3562 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3563 | else |
| 3564 | saved_cflags=$CFLAGS |
| 3565 | CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0" |
| 3566 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame^] | 3567 | #line 3568 "configure" |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 3568 | #include "confdefs.h" |
| 3569 | |
| 3570 | int main() { |
| 3571 | return 1 |
| 3572 | ; return 0; } |
| 3573 | EOF |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame^] | 3574 | if { (eval echo configure:3575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 3575 | rm -rf conftest* |
Todd Vierling | 4b992b0 | 1998-12-15 15:26:27 +0000 | [diff] [blame] | 3576 | ac_cv_c_dll_linux="yes" |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 3577 | else |
| 3578 | echo "configure: failed program was:" >&5 |
| 3579 | cat conftest.$ac_ext >&5 |
| 3580 | rm -rf conftest* |
Todd Vierling | 4b992b0 | 1998-12-15 15:26:27 +0000 | [diff] [blame] | 3581 | ac_cv_c_dll_linux="no" |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 3582 | fi |
| 3583 | rm -f conftest* |
| 3584 | CFLAGS=$saved_cflags |
| 3585 | |
| 3586 | fi |
| 3587 | |
Todd Vierling | 4b992b0 | 1998-12-15 15:26:27 +0000 | [diff] [blame] | 3588 | echo "$ac_t""$ac_cv_c_dll_linux" 1>&6 |
| 3589 | if test "$ac_cv_c_dll_linux" = "yes" |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 3590 | then |
Alexandre Julliard | a0b2b1d | 1997-11-16 17:38:29 +0000 | [diff] [blame] | 3591 | DLLFLAGS="-fPIC" |
Todd Vierling | 4b992b0 | 1998-12-15 15:26:27 +0000 | [diff] [blame] | 3592 | LDSHARED="\$(CC) -shared -Wl,-soname,libwine.so" |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 3593 | else |
Todd Vierling | 4b992b0 | 1998-12-15 15:26:27 +0000 | [diff] [blame] | 3594 | echo $ac_n "checking "whether we can build a NetBSD dll"""... $ac_c" 1>&6 |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame^] | 3595 | echo "configure:3596: checking "whether we can build a NetBSD dll"" >&5 |
Todd Vierling | 4b992b0 | 1998-12-15 15:26:27 +0000 | [diff] [blame] | 3596 | if eval "test \"`echo '$''{'ac_cv_c_dll_netbsd'+set}'`\" = set"; then |
| 3597 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3598 | else |
| 3599 | saved_cflags=$CFLAGS |
| 3600 | CFLAGS="$CFLAGS -fPIC -Bshareable -Bforcearchive" |
| 3601 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame^] | 3602 | #line 3603 "configure" |
Todd Vierling | 4b992b0 | 1998-12-15 15:26:27 +0000 | [diff] [blame] | 3603 | #include "confdefs.h" |
| 3604 | |
| 3605 | int main() { |
| 3606 | return 1 |
| 3607 | ; return 0; } |
| 3608 | EOF |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame^] | 3609 | if { (eval echo configure:3610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
Todd Vierling | 4b992b0 | 1998-12-15 15:26:27 +0000 | [diff] [blame] | 3610 | rm -rf conftest* |
| 3611 | ac_cv_c_dll_netbsd="yes" |
| 3612 | else |
| 3613 | echo "configure: failed program was:" >&5 |
| 3614 | cat conftest.$ac_ext >&5 |
| 3615 | rm -rf conftest* |
| 3616 | ac_cv_c_dll_netbsd="no" |
| 3617 | fi |
| 3618 | rm -f conftest* |
| 3619 | CFLAGS=$saved_cflags |
| 3620 | |
| 3621 | fi |
| 3622 | |
| 3623 | echo "$ac_t""$ac_cv_c_dll_netbsd" 1>&6 |
| 3624 | if test "$ac_cv_c_dll_netbsd" = "yes" |
| 3625 | then |
| 3626 | DLLFLAGS="-fPIC" |
| 3627 | LDSHARED="ld -Bshareable -Bforcearchive" |
| 3628 | fi |
| 3629 | fi |
| 3630 | if test "$ac_cv_c_dll_linux" = "no" -a "$ac_cv_c_dll_netbsd" = "no" |
| 3631 | then |
Alexandre Julliard | a0b2b1d | 1997-11-16 17:38:29 +0000 | [diff] [blame] | 3632 | LIB_TARGET="libwine.a" |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 3633 | fi |
| 3634 | fi |
| 3635 | |
| 3636 | |
Alexandre Julliard | a0b2b1d | 1997-11-16 17:38:29 +0000 | [diff] [blame] | 3637 | |
Todd Vierling | 4b992b0 | 1998-12-15 15:26:27 +0000 | [diff] [blame] | 3638 | |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 3639 | wine_cv_libc_reentrant=no |
| 3640 | echo $ac_n "checking "for reentrant libc: __errno_location"""... $ac_c" 1>&6 |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame^] | 3641 | echo "configure:3642: checking "for reentrant libc: __errno_location"" >&5 |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 3642 | if eval "test \"`echo '$''{'wine_cv_libc_r__errno_location'+set}'`\" = set"; then |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 3643 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3644 | else |
| 3645 | if test "$cross_compiling" = yes; then |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 3646 | wine_cv_libc_r__errno_location=yes |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 3647 | else |
| 3648 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame^] | 3649 | #line 3650 "configure" |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 3650 | #include "confdefs.h" |
| 3651 | int myerrno = 0; |
| 3652 | char buf[256]; |
| 3653 | int *__errno_location(){return &myerrno;} |
| 3654 | main(){connect(0,buf,255); exit(!myerrno);} |
| 3655 | EOF |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame^] | 3656 | if { (eval echo configure:3657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 3657 | then |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 3658 | wine_cv_libc_r__errno_location=yes |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 3659 | else |
| 3660 | echo "configure: failed program was:" >&5 |
| 3661 | cat conftest.$ac_ext >&5 |
| 3662 | rm -fr conftest* |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 3663 | wine_cv_libc_r__errno_location=no |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 3664 | fi |
| 3665 | rm -fr conftest* |
| 3666 | fi |
Marcus Meissner | c260638 | 1999-04-11 15:20:29 +0000 | [diff] [blame] | 3667 | |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 3668 | |
| 3669 | fi |
| 3670 | |
| 3671 | echo "$ac_t""$wine_cv_libc_r__errno_location" 1>&6 |
| 3672 | if test "$wine_cv_libc_r__errno_location" = "yes" |
| 3673 | then |
| 3674 | cat >> confdefs.h <<\EOF |
| 3675 | #define HAVE__ERRNO_LOCATION 1 |
| 3676 | EOF |
| 3677 | |
| 3678 | wine_cv_libc_reentrant=__errno_location |
| 3679 | fi |
| 3680 | echo $ac_n "checking "for reentrant libc: __error"""... $ac_c" 1>&6 |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame^] | 3681 | echo "configure:3682: checking "for reentrant libc: __error"" >&5 |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 3682 | if eval "test \"`echo '$''{'wine_cv_libc_r__error'+set}'`\" = set"; then |
| 3683 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3684 | else |
| 3685 | if test "$cross_compiling" = yes; then |
| 3686 | wine_cv_libc_r__error=yes |
Marcus Meissner | c260638 | 1999-04-11 15:20:29 +0000 | [diff] [blame] | 3687 | else |
| 3688 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame^] | 3689 | #line 3690 "configure" |
Marcus Meissner | c260638 | 1999-04-11 15:20:29 +0000 | [diff] [blame] | 3690 | #include "confdefs.h" |
| 3691 | int myerrno = 0; |
| 3692 | char buf[256]; |
| 3693 | int *__error(){return &myerrno;} |
| 3694 | main(){connect(0,buf,255); exit(!myerrno);} |
| 3695 | EOF |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame^] | 3696 | if { (eval echo configure:3697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
Marcus Meissner | c260638 | 1999-04-11 15:20:29 +0000 | [diff] [blame] | 3697 | then |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 3698 | wine_cv_libc_r__error=yes |
Marcus Meissner | c260638 | 1999-04-11 15:20:29 +0000 | [diff] [blame] | 3699 | else |
| 3700 | echo "configure: failed program was:" >&5 |
| 3701 | cat conftest.$ac_ext >&5 |
| 3702 | rm -fr conftest* |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 3703 | wine_cv_libc_r__error=no |
Marcus Meissner | c260638 | 1999-04-11 15:20:29 +0000 | [diff] [blame] | 3704 | fi |
| 3705 | rm -fr conftest* |
| 3706 | fi |
| 3707 | |
Marcus Meissner | c260638 | 1999-04-11 15:20:29 +0000 | [diff] [blame] | 3708 | |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 3709 | fi |
| 3710 | |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 3711 | echo "$ac_t""$wine_cv_libc_r__error" 1>&6 |
| 3712 | if test "$wine_cv_libc_r__error" = "yes" |
| 3713 | then |
| 3714 | cat >> confdefs.h <<\EOF |
| 3715 | #define HAVE__ERROR 1 |
| 3716 | EOF |
| 3717 | |
| 3718 | wine_cv_libc_reentrant=__error |
| 3719 | fi |
| 3720 | echo $ac_n "checking "for reentrant libc: ___errno"""... $ac_c" 1>&6 |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame^] | 3721 | echo "configure:3722: checking "for reentrant libc: ___errno"" >&5 |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 3722 | if eval "test \"`echo '$''{'wine_cv_libc_r___errno'+set}'`\" = set"; then |
| 3723 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3724 | else |
| 3725 | if test "$cross_compiling" = yes; then |
| 3726 | wine_cv_libc_r___errno=yes |
| 3727 | else |
| 3728 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame^] | 3729 | #line 3730 "configure" |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 3730 | #include "confdefs.h" |
| 3731 | int myerrno = 0; |
| 3732 | char buf[256]; |
| 3733 | int *___errno(){return &myerrno;} |
| 3734 | main(){connect(0,buf,255); exit(!myerrno);} |
| 3735 | EOF |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame^] | 3736 | if { (eval echo configure:3737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 3737 | then |
| 3738 | wine_cv_libc_r___errno=yes |
| 3739 | else |
| 3740 | echo "configure: failed program was:" >&5 |
| 3741 | cat conftest.$ac_ext >&5 |
| 3742 | rm -fr conftest* |
| 3743 | wine_cv_libc_r___errno=no |
| 3744 | fi |
| 3745 | rm -fr conftest* |
| 3746 | fi |
| 3747 | |
| 3748 | |
| 3749 | fi |
| 3750 | |
| 3751 | echo "$ac_t""$wine_cv_libc_r___errno" 1>&6 |
| 3752 | if test "$wine_cv_libc_r___errno" = "yes" |
| 3753 | then |
| 3754 | cat >> confdefs.h <<\EOF |
| 3755 | #define HAVE___ERRNO 1 |
| 3756 | EOF |
| 3757 | |
| 3758 | wine_cv_libc_reentrant=___errno |
| 3759 | fi |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 3760 | if test "$wine_cv_libc_reentrant" = "no" |
| 3761 | then |
| 3762 | cat >> confdefs.h <<\EOF |
| 3763 | #define NO_REENTRANT_LIBC 1 |
| 3764 | EOF |
| 3765 | |
| 3766 | fi |
| 3767 | |
| 3768 | |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 3769 | if test "$have_x" = "yes" -a "$wine_cv_libc_reentrant" != "no" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 3770 | then |
Alexandre Julliard | a11d7b1 | 1998-03-01 20:05:02 +0000 | [diff] [blame] | 3771 | echo $ac_n "checking "for reentrant X libraries"""... $ac_c" 1>&6 |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame^] | 3772 | echo "configure:3773: checking "for reentrant X libraries"" >&5 |
Alexandre Julliard | a11d7b1 | 1998-03-01 20:05:02 +0000 | [diff] [blame] | 3773 | if eval "test \"`echo '$''{'wine_cv_x_reentrant'+set}'`\" = set"; then |
| 3774 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3775 | else |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 3776 | if test "x$with_reentrant_x" = "xno" |
Alexandre Julliard | a11d7b1 | 1998-03-01 20:05:02 +0000 | [diff] [blame] | 3777 | then |
| 3778 | wine_cv_x_reentrant=no |
| 3779 | else |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 3780 | libX11_check=none |
Alexandre Julliard | a11d7b1 | 1998-03-01 20:05:02 +0000 | [diff] [blame] | 3781 | for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 3782 | if test -r $dir/libX11.so; then |
Alexandre Julliard | a11d7b1 | 1998-03-01 20:05:02 +0000 | [diff] [blame] | 3783 | libX11_check="-D $dir/libX11.so" |
| 3784 | break 1 |
| 3785 | fi |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 3786 | if test -r $dir/libX11.a; then |
Alexandre Julliard | a11d7b1 | 1998-03-01 20:05:02 +0000 | [diff] [blame] | 3787 | libX11_check="$dir/libX11.a" |
| 3788 | break 1 |
| 3789 | fi |
| 3790 | done |
| 3791 | if test "$libX11_check" != "none"; then |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 3792 | if nm $libX11_check | grep $wine_cv_libc_reentrant >/dev/null 2>&1 |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 3793 | then |
Alexandre Julliard | a11d7b1 | 1998-03-01 20:05:02 +0000 | [diff] [blame] | 3794 | wine_cv_x_reentrant=yes |
| 3795 | else |
| 3796 | wine_cv_x_reentrant=no |
| 3797 | fi |
| 3798 | else |
| 3799 | wine_cv_x_reentrant=unknown |
| 3800 | fi |
| 3801 | fi |
| 3802 | fi |
| 3803 | |
| 3804 | echo "$ac_t""$wine_cv_x_reentrant" 1>&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 3805 | else |
| 3806 | wine_cv_x_reentrant=no |
| 3807 | fi |
Alexandre Julliard | a11d7b1 | 1998-03-01 20:05:02 +0000 | [diff] [blame] | 3808 | if test "$wine_cv_x_reentrant" = "no" |
| 3809 | then |
| 3810 | cat >> confdefs.h <<\EOF |
| 3811 | #define NO_REENTRANT_X11 1 |
| 3812 | EOF |
| 3813 | |
| 3814 | fi |
| 3815 | |
| 3816 | |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame^] | 3817 | for ac_func in \ |
| 3818 | _lwp_create \ |
| 3819 | clone \ |
| 3820 | getpagesize \ |
| 3821 | memmove \ |
| 3822 | rfork \ |
| 3823 | sendmsg \ |
| 3824 | sigaltstack \ |
| 3825 | strerror \ |
| 3826 | stricmp \ |
| 3827 | tcgetattr \ |
| 3828 | timegm \ |
| 3829 | usleep \ |
| 3830 | vfscanf \ |
| 3831 | wait4 \ |
| 3832 | waitpid \ |
| 3833 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3834 | do |
| 3835 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame^] | 3836 | echo "configure:3837: checking for $ac_func" >&5 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3837 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 3838 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3839 | else |
| 3840 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame^] | 3841 | #line 3842 "configure" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3842 | #include "confdefs.h" |
| 3843 | /* System header to define __stub macros and hopefully few prototypes, |
| 3844 | which can conflict with char $ac_func(); below. */ |
| 3845 | #include <assert.h> |
| 3846 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 3847 | /* We use char because int might match the return type of a gcc2 |
| 3848 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 3849 | char $ac_func(); |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3850 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3851 | int main() { |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3852 | |
| 3853 | /* The GNU C library defines this for functions which it implements |
| 3854 | to always fail with ENOSYS. Some functions are actually named |
| 3855 | something starting with __ and the normal name is an alias. */ |
| 3856 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 3857 | choke me |
| 3858 | #else |
| 3859 | $ac_func(); |
| 3860 | #endif |
| 3861 | |
| 3862 | ; return 0; } |
| 3863 | EOF |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame^] | 3864 | if { (eval echo configure:3865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3865 | rm -rf conftest* |
| 3866 | eval "ac_cv_func_$ac_func=yes" |
| 3867 | else |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3868 | echo "configure: failed program was:" >&5 |
| 3869 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3870 | rm -rf conftest* |
| 3871 | eval "ac_cv_func_$ac_func=no" |
| 3872 | fi |
| 3873 | rm -f conftest* |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3874 | fi |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 3875 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3876 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 3877 | echo "$ac_t""yes" 1>&6 |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 3878 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3879 | cat >> confdefs.h <<EOF |
| 3880 | #define $ac_tr_func 1 |
| 3881 | EOF |
| 3882 | |
| 3883 | else |
| 3884 | echo "$ac_t""no" 1>&6 |
| 3885 | fi |
| 3886 | done |
| 3887 | |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame^] | 3888 | |
| 3889 | |
| 3890 | for ac_hdr in \ |
| 3891 | arpa/nameser.h \ |
| 3892 | curses.h \ |
| 3893 | dlfcn.h \ |
| 3894 | elf.h \ |
| 3895 | float.h \ |
| 3896 | libio.h \ |
| 3897 | linux/cdrom.h \ |
| 3898 | linux/ucdrom.h \ |
| 3899 | ncurses.h \ |
| 3900 | net/if.h \ |
| 3901 | netinet/in.h \ |
| 3902 | resolv.h \ |
| 3903 | strings.h \ |
| 3904 | sys/cdio.h \ |
| 3905 | sys/file.h \ |
| 3906 | sys/filio.h \ |
| 3907 | sys/lwp.h \ |
| 3908 | sys/modem.h \ |
| 3909 | sys/mount.h \ |
| 3910 | sys/param.h \ |
| 3911 | sys/sockio.h \ |
| 3912 | sys/statfs.h \ |
| 3913 | sys/strtio.h \ |
| 3914 | sys/syscall.h \ |
| 3915 | sys/vfs.h \ |
| 3916 | syscall.h \ |
| 3917 | ucontext.h \ |
| 3918 | unistd.h \ |
| 3919 | wctype.h \ |
| 3920 | |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 3921 | do |
| 3922 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 3923 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame^] | 3924 | echo "configure:3925: checking for $ac_hdr" >&5 |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 3925 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 3926 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3927 | else |
| 3928 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame^] | 3929 | #line 3930 "configure" |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 3930 | #include "confdefs.h" |
| 3931 | #include <$ac_hdr> |
| 3932 | EOF |
| 3933 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame^] | 3934 | { (eval echo configure:3935: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 3935 | ac_err=`grep -v '^ *+' conftest.out` |
| 3936 | if test -z "$ac_err"; then |
| 3937 | rm -rf conftest* |
| 3938 | eval "ac_cv_header_$ac_safe=yes" |
| 3939 | else |
| 3940 | echo "$ac_err" >&5 |
| 3941 | echo "configure: failed program was:" >&5 |
| 3942 | cat conftest.$ac_ext >&5 |
| 3943 | rm -rf conftest* |
| 3944 | eval "ac_cv_header_$ac_safe=no" |
| 3945 | fi |
| 3946 | rm -f conftest* |
| 3947 | fi |
| 3948 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 3949 | echo "$ac_t""yes" 1>&6 |
| 3950 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 3951 | cat >> confdefs.h <<EOF |
| 3952 | #define $ac_tr_hdr 1 |
| 3953 | EOF |
| 3954 | |
| 3955 | else |
| 3956 | echo "$ac_t""no" 1>&6 |
| 3957 | fi |
| 3958 | done |
| 3959 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3960 | echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6 |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame^] | 3961 | echo "configure:3962: checking whether stat file-mode macros are broken" >&5 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3962 | if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then |
| 3963 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3964 | else |
| 3965 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame^] | 3966 | #line 3967 "configure" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3967 | #include "confdefs.h" |
| 3968 | #include <sys/types.h> |
| 3969 | #include <sys/stat.h> |
| 3970 | |
| 3971 | #if defined(S_ISBLK) && defined(S_IFDIR) |
| 3972 | # if S_ISBLK (S_IFDIR) |
| 3973 | You lose. |
| 3974 | # endif |
| 3975 | #endif |
| 3976 | |
| 3977 | #if defined(S_ISBLK) && defined(S_IFCHR) |
| 3978 | # if S_ISBLK (S_IFCHR) |
| 3979 | You lose. |
| 3980 | # endif |
| 3981 | #endif |
| 3982 | |
| 3983 | #if defined(S_ISLNK) && defined(S_IFREG) |
| 3984 | # if S_ISLNK (S_IFREG) |
| 3985 | You lose. |
| 3986 | # endif |
| 3987 | #endif |
| 3988 | |
| 3989 | #if defined(S_ISSOCK) && defined(S_IFREG) |
| 3990 | # if S_ISSOCK (S_IFREG) |
| 3991 | You lose. |
| 3992 | # endif |
| 3993 | #endif |
| 3994 | |
| 3995 | EOF |
| 3996 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3997 | egrep "You lose" >/dev/null 2>&1; then |
| 3998 | rm -rf conftest* |
| 3999 | ac_cv_header_stat_broken=yes |
| 4000 | else |
| 4001 | rm -rf conftest* |
| 4002 | ac_cv_header_stat_broken=no |
| 4003 | fi |
| 4004 | rm -f conftest* |
| 4005 | |
| 4006 | fi |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 4007 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4008 | echo "$ac_t""$ac_cv_header_stat_broken" 1>&6 |
| 4009 | if test $ac_cv_header_stat_broken = yes; then |
| 4010 | cat >> confdefs.h <<\EOF |
| 4011 | #define STAT_MACROS_BROKEN 1 |
| 4012 | EOF |
| 4013 | |
| 4014 | fi |
| 4015 | |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame^] | 4016 | |
| 4017 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4018 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame^] | 4019 | echo "configure:4020: checking for working const" >&5 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4020 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
| 4021 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4022 | else |
| 4023 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame^] | 4024 | #line 4025 "configure" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4025 | #include "confdefs.h" |
| 4026 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4027 | int main() { |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4028 | |
| 4029 | /* Ultrix mips cc rejects this. */ |
| 4030 | typedef int charset[2]; const charset x; |
| 4031 | /* SunOS 4.1.1 cc rejects this. */ |
| 4032 | char const *const *ccp; |
| 4033 | char **p; |
| 4034 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 4035 | struct point {int x, y;}; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 4036 | static struct point const zero = {0,0}; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4037 | /* AIX XL C 1.02.0.0 rejects this. |
| 4038 | It does not let you subtract one const X* pointer from another in an arm |
| 4039 | of an if-expression whose if-part is not a constant expression */ |
| 4040 | const char *g = "string"; |
| 4041 | ccp = &g + (g ? g-g : 0); |
| 4042 | /* HPUX 7.0 cc rejects these. */ |
| 4043 | ++ccp; |
| 4044 | p = (char**) ccp; |
| 4045 | ccp = (char const *const *) p; |
| 4046 | { /* SCO 3.2v4 cc rejects this. */ |
| 4047 | char *t; |
| 4048 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 4049 | |
| 4050 | *t++ = 0; |
| 4051 | } |
| 4052 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 4053 | int x[] = {25, 17}; |
| 4054 | const int *foo = &x[0]; |
| 4055 | ++foo; |
| 4056 | } |
| 4057 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 4058 | typedef const int *iptr; |
| 4059 | iptr p = 0; |
| 4060 | ++p; |
| 4061 | } |
| 4062 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 4063 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 4064 | struct s { int j; const int *ap[3]; }; |
| 4065 | struct s *b; b->j = 5; |
| 4066 | } |
| 4067 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 4068 | const int foo = 10; |
| 4069 | } |
| 4070 | |
| 4071 | ; return 0; } |
| 4072 | EOF |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame^] | 4073 | if { (eval echo configure:4074: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4074 | rm -rf conftest* |
| 4075 | ac_cv_c_const=yes |
| 4076 | else |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4077 | echo "configure: failed program was:" >&5 |
| 4078 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4079 | rm -rf conftest* |
| 4080 | ac_cv_c_const=no |
| 4081 | fi |
| 4082 | rm -f conftest* |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4083 | fi |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 4084 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4085 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
| 4086 | if test $ac_cv_c_const = no; then |
| 4087 | cat >> confdefs.h <<\EOF |
| 4088 | #define const |
| 4089 | EOF |
| 4090 | |
| 4091 | fi |
| 4092 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4093 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame^] | 4094 | echo "configure:4095: checking for ANSI C header files" >&5 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4095 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
| 4096 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4097 | else |
| 4098 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame^] | 4099 | #line 4100 "configure" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4100 | #include "confdefs.h" |
| 4101 | #include <stdlib.h> |
| 4102 | #include <stdarg.h> |
| 4103 | #include <string.h> |
| 4104 | #include <float.h> |
| 4105 | EOF |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 4106 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame^] | 4107 | { (eval echo configure:4108: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4108 | ac_err=`grep -v '^ *+' conftest.out` |
| 4109 | if test -z "$ac_err"; then |
| 4110 | rm -rf conftest* |
| 4111 | ac_cv_header_stdc=yes |
| 4112 | else |
| 4113 | echo "$ac_err" >&5 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4114 | echo "configure: failed program was:" >&5 |
| 4115 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4116 | rm -rf conftest* |
| 4117 | ac_cv_header_stdc=no |
| 4118 | fi |
| 4119 | rm -f conftest* |
| 4120 | |
| 4121 | if test $ac_cv_header_stdc = yes; then |
| 4122 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 4123 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame^] | 4124 | #line 4125 "configure" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4125 | #include "confdefs.h" |
| 4126 | #include <string.h> |
| 4127 | EOF |
| 4128 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4129 | egrep "memchr" >/dev/null 2>&1; then |
| 4130 | : |
| 4131 | else |
| 4132 | rm -rf conftest* |
| 4133 | ac_cv_header_stdc=no |
| 4134 | fi |
| 4135 | rm -f conftest* |
| 4136 | |
| 4137 | fi |
| 4138 | |
| 4139 | if test $ac_cv_header_stdc = yes; then |
| 4140 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 4141 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame^] | 4142 | #line 4143 "configure" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4143 | #include "confdefs.h" |
| 4144 | #include <stdlib.h> |
| 4145 | EOF |
| 4146 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4147 | egrep "free" >/dev/null 2>&1; then |
| 4148 | : |
| 4149 | else |
| 4150 | rm -rf conftest* |
| 4151 | ac_cv_header_stdc=no |
| 4152 | fi |
| 4153 | rm -f conftest* |
| 4154 | |
| 4155 | fi |
| 4156 | |
| 4157 | if test $ac_cv_header_stdc = yes; then |
| 4158 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 4159 | if test "$cross_compiling" = yes; then |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 4160 | : |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4161 | else |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4162 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame^] | 4163 | #line 4164 "configure" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4164 | #include "confdefs.h" |
| 4165 | #include <ctype.h> |
| 4166 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4167 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4168 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4169 | int main () { int i; for (i = 0; i < 256; i++) |
| 4170 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
| 4171 | exit (0); } |
| 4172 | |
| 4173 | EOF |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame^] | 4174 | if { (eval echo configure:4175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 4175 | then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4176 | : |
| 4177 | else |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4178 | echo "configure: failed program was:" >&5 |
| 4179 | cat conftest.$ac_ext >&5 |
| 4180 | rm -fr conftest* |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4181 | ac_cv_header_stdc=no |
| 4182 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4183 | rm -fr conftest* |
| 4184 | fi |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4185 | |
| 4186 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4187 | fi |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 4188 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4189 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
| 4190 | if test $ac_cv_header_stdc = yes; then |
| 4191 | cat >> confdefs.h <<\EOF |
| 4192 | #define STDC_HEADERS 1 |
| 4193 | EOF |
| 4194 | |
| 4195 | fi |
| 4196 | |
| 4197 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame^] | 4198 | echo "configure:4199: checking for size_t" >&5 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4199 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
| 4200 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4201 | else |
| 4202 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame^] | 4203 | #line 4204 "configure" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4204 | #include "confdefs.h" |
| 4205 | #include <sys/types.h> |
| 4206 | #if STDC_HEADERS |
| 4207 | #include <stdlib.h> |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4208 | #include <stddef.h> |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4209 | #endif |
| 4210 | EOF |
| 4211 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4212 | egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4213 | rm -rf conftest* |
| 4214 | ac_cv_type_size_t=yes |
| 4215 | else |
| 4216 | rm -rf conftest* |
| 4217 | ac_cv_type_size_t=no |
| 4218 | fi |
| 4219 | rm -f conftest* |
| 4220 | |
| 4221 | fi |
| 4222 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 |
| 4223 | if test $ac_cv_type_size_t = no; then |
| 4224 | cat >> confdefs.h <<\EOF |
| 4225 | #define size_t unsigned |
| 4226 | EOF |
| 4227 | |
| 4228 | fi |
| 4229 | |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 4230 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame^] | 4231 | echo "configure:4232: checking size of long long" >&5 |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 4232 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
| 4233 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4234 | else |
| 4235 | if test "$cross_compiling" = yes; then |
| 4236 | ac_cv_sizeof_long_long=0 |
| 4237 | else |
| 4238 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame^] | 4239 | #line 4240 "configure" |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 4240 | #include "confdefs.h" |
| 4241 | #include <stdio.h> |
| 4242 | main() |
| 4243 | { |
| 4244 | FILE *f=fopen("conftestval", "w"); |
| 4245 | if (!f) exit(1); |
| 4246 | fprintf(f, "%d\n", sizeof(long long)); |
| 4247 | exit(0); |
| 4248 | } |
| 4249 | EOF |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame^] | 4250 | if { (eval echo configure:4251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 4251 | then |
| 4252 | ac_cv_sizeof_long_long=`cat conftestval` |
| 4253 | else |
| 4254 | echo "configure: failed program was:" >&5 |
| 4255 | cat conftest.$ac_ext >&5 |
| 4256 | rm -fr conftest* |
| 4257 | ac_cv_sizeof_long_long=0 |
| 4258 | fi |
| 4259 | rm -fr conftest* |
| 4260 | fi |
| 4261 | |
| 4262 | fi |
| 4263 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 |
| 4264 | cat >> confdefs.h <<EOF |
| 4265 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
| 4266 | EOF |
| 4267 | |
| 4268 | |
| 4269 | |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 4270 | |
| 4271 | if test "$ac_cv_header_sys_vfs_h" = "yes" |
| 4272 | then |
| 4273 | echo $ac_n "checking "whether sys/vfs.h defines statfs"""... $ac_c" 1>&6 |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame^] | 4274 | echo "configure:4275: checking "whether sys/vfs.h defines statfs"" >&5 |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 4275 | if eval "test \"`echo '$''{'wine_cv_sys_vfs_has_statfs'+set}'`\" = set"; then |
| 4276 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4277 | else |
| 4278 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame^] | 4279 | #line 4280 "configure" |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 4280 | #include "confdefs.h" |
| 4281 | |
| 4282 | #include <sys/types.h> |
| 4283 | #ifdef HAVE_SYS_PARAM_H |
| 4284 | # include <sys/param.h> |
| 4285 | #endif |
| 4286 | #include <sys/vfs.h> |
| 4287 | |
| 4288 | int main() { |
| 4289 | |
| 4290 | struct statfs stfs; |
| 4291 | |
| 4292 | memset(&stfs,0,sizeof(stfs)); |
| 4293 | |
| 4294 | ; return 0; } |
| 4295 | EOF |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame^] | 4296 | if { (eval echo configure:4297: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 4297 | rm -rf conftest* |
| 4298 | wine_cv_sys_vfs_has_statfs=yes |
| 4299 | else |
| 4300 | echo "configure: failed program was:" >&5 |
| 4301 | cat conftest.$ac_ext >&5 |
| 4302 | rm -rf conftest* |
| 4303 | wine_cv_sys_vfs_has_statfs=no |
| 4304 | |
| 4305 | fi |
| 4306 | rm -f conftest* |
| 4307 | |
| 4308 | fi |
| 4309 | |
| 4310 | echo "$ac_t""$wine_cv_sys_vfs_has_statfs" 1>&6 |
| 4311 | if test "$wine_cv_sys_vfs_has_statfs" = "yes" |
| 4312 | then |
| 4313 | cat >> confdefs.h <<\EOF |
| 4314 | #define STATFS_DEFINED_BY_SYS_VFS 1 |
| 4315 | EOF |
| 4316 | |
| 4317 | fi |
| 4318 | fi |
| 4319 | |
| 4320 | if test "$ac_cv_header_sys_statfs_h" = "yes" |
| 4321 | then |
| 4322 | echo $ac_n "checking "whether sys/statfs.h defines statfs"""... $ac_c" 1>&6 |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame^] | 4323 | echo "configure:4324: checking "whether sys/statfs.h defines statfs"" >&5 |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 4324 | if eval "test \"`echo '$''{'wine_cv_sys_statfs_has_statfs'+set}'`\" = set"; then |
| 4325 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4326 | else |
| 4327 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame^] | 4328 | #line 4329 "configure" |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 4329 | #include "confdefs.h" |
| 4330 | |
| 4331 | #include <sys/types.h> |
| 4332 | #ifdef HAVE_SYS_PARAM_H |
| 4333 | # include <sys/param.h> |
| 4334 | #endif |
| 4335 | #include <sys/statfs.h> |
| 4336 | |
| 4337 | int main() { |
| 4338 | |
| 4339 | struct statfs stfs; |
| 4340 | |
| 4341 | ; return 0; } |
| 4342 | EOF |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame^] | 4343 | if { (eval echo configure:4344: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 4344 | rm -rf conftest* |
| 4345 | wine_cv_sys_statfs_has_statfs=yes |
| 4346 | else |
| 4347 | echo "configure: failed program was:" >&5 |
| 4348 | cat conftest.$ac_ext >&5 |
| 4349 | rm -rf conftest* |
| 4350 | wine_cv_sys_statfs_has_statfs=no |
| 4351 | |
| 4352 | fi |
| 4353 | rm -f conftest* |
| 4354 | |
| 4355 | fi |
| 4356 | |
| 4357 | echo "$ac_t""$wine_cv_sys_statfs_has_statfs" 1>&6 |
| 4358 | if test "$wine_cv_sys_statfs_has_statfs" = "yes" |
| 4359 | then |
| 4360 | cat >> confdefs.h <<\EOF |
| 4361 | #define STATFS_DEFINED_BY_SYS_STATFS 1 |
| 4362 | EOF |
| 4363 | |
| 4364 | fi |
| 4365 | fi |
| 4366 | |
| 4367 | if test "$ac_cv_header_sys_mount_h" = "yes" |
| 4368 | then |
| 4369 | echo $ac_n "checking "whether sys/mount.h defines statfs"""... $ac_c" 1>&6 |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame^] | 4370 | echo "configure:4371: checking "whether sys/mount.h defines statfs"" >&5 |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 4371 | if eval "test \"`echo '$''{'wine_cv_sys_mount_has_statfs'+set}'`\" = set"; then |
| 4372 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4373 | else |
| 4374 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame^] | 4375 | #line 4376 "configure" |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 4376 | #include "confdefs.h" |
| 4377 | |
| 4378 | #include <sys/types.h> |
| 4379 | #ifdef HAVE_SYS_PARAM_H |
| 4380 | # include <sys/param.h> |
| 4381 | #endif |
| 4382 | #include <sys/mount.h> |
| 4383 | |
| 4384 | int main() { |
| 4385 | |
| 4386 | struct statfs stfs; |
| 4387 | |
| 4388 | ; return 0; } |
| 4389 | EOF |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame^] | 4390 | if { (eval echo configure:4391: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 4391 | rm -rf conftest* |
| 4392 | wine_cv_sys_mount_has_statfs=yes |
| 4393 | else |
| 4394 | echo "configure: failed program was:" >&5 |
| 4395 | cat conftest.$ac_ext >&5 |
| 4396 | rm -rf conftest* |
| 4397 | wine_cv_sys_mount_has_statfs=no |
| 4398 | |
| 4399 | fi |
| 4400 | rm -f conftest* |
| 4401 | |
| 4402 | fi |
| 4403 | |
| 4404 | echo "$ac_t""$wine_cv_sys_mount_has_statfs" 1>&6 |
| 4405 | if test "$wine_cv_sys_mount_has_statfs" = "yes" |
| 4406 | then |
| 4407 | cat >> confdefs.h <<\EOF |
| 4408 | #define STATFS_DEFINED_BY_SYS_MOUNT 1 |
| 4409 | EOF |
| 4410 | |
| 4411 | fi |
| 4412 | fi |
| 4413 | |
| 4414 | |
| 4415 | echo $ac_n "checking "for statfs.f_bfree"""... $ac_c" 1>&6 |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame^] | 4416 | echo "configure:4417: checking "for statfs.f_bfree"" >&5 |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 4417 | if eval "test \"`echo '$''{'wine_cv_statfs_bfree'+set}'`\" = set"; then |
| 4418 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4419 | else |
| 4420 | if test "x$statfs_bfree" = "xno" |
| 4421 | then |
| 4422 | wine_cv_statfs_bfree=no |
| 4423 | else |
| 4424 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame^] | 4425 | #line 4426 "configure" |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 4426 | #include "confdefs.h" |
| 4427 | |
| 4428 | #include <sys/types.h> |
| 4429 | #ifdef HAVE_SYS_PARAM_H |
| 4430 | # include <sys/param.h> |
| 4431 | #endif |
| 4432 | #ifdef STATFS_DEFINED_BY_SYS_MOUNT |
| 4433 | # include <sys/mount.h> |
| 4434 | #else |
| 4435 | # ifdef STATFS_DEFINED_BY_SYS_VFS |
| 4436 | # include <sys/vfs.h> |
| 4437 | # else |
| 4438 | # ifdef STATFS_DEFINED_BY_SYS_STATFS |
| 4439 | # include <sys/statfs.h> |
| 4440 | # endif |
| 4441 | # endif |
| 4442 | #endif |
| 4443 | |
| 4444 | int main() { |
| 4445 | |
| 4446 | struct statfs stfs; |
| 4447 | |
| 4448 | stfs.f_bfree++; |
| 4449 | |
| 4450 | ; return 0; } |
| 4451 | EOF |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame^] | 4452 | if { (eval echo configure:4453: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 4453 | rm -rf conftest* |
| 4454 | wine_cv_statfs_bfree=yes |
| 4455 | else |
| 4456 | echo "configure: failed program was:" >&5 |
| 4457 | cat conftest.$ac_ext >&5 |
| 4458 | rm -rf conftest* |
| 4459 | wine_cv_statfs_bfree=no |
| 4460 | |
| 4461 | fi |
| 4462 | rm -f conftest* |
| 4463 | fi |
| 4464 | fi |
| 4465 | |
| 4466 | echo "$ac_t""$wine_cv_statfs_bfree" 1>&6 |
| 4467 | if test "$wine_cv_statfs_bfree" = "yes" |
| 4468 | then |
| 4469 | cat >> confdefs.h <<\EOF |
| 4470 | #define STATFS_HAS_BFREE 1 |
| 4471 | EOF |
| 4472 | |
| 4473 | fi |
| 4474 | |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 4475 | echo $ac_n "checking "for statfs.f_bavail"""... $ac_c" 1>&6 |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame^] | 4476 | echo "configure:4477: checking "for statfs.f_bavail"" >&5 |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 4477 | if eval "test \"`echo '$''{'wine_cv_statfs_bavail'+set}'`\" = set"; then |
| 4478 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4479 | else |
| 4480 | if test "x$statfs_bavail" = "xno" |
| 4481 | then |
| 4482 | wine_cv_statfs_bavail=no |
| 4483 | else |
| 4484 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame^] | 4485 | #line 4486 "configure" |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 4486 | #include "confdefs.h" |
| 4487 | |
Alexandre Julliard | 46ea8b3 | 1998-05-03 19:01:20 +0000 | [diff] [blame] | 4488 | #include <sys/types.h> |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 4489 | #ifdef HAVE_SYS_PARAM_H |
| 4490 | # include <sys/param.h> |
| 4491 | #endif |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 4492 | #ifdef STATFS_DEFINED_BY_SYS_MOUNT |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 4493 | # include <sys/mount.h> |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 4494 | #else |
| 4495 | # ifdef STATFS_DEFINED_BY_SYS_VFS |
| 4496 | # include <sys/vfs.h> |
| 4497 | # else |
| 4498 | # ifdef STATFS_DEFINED_BY_SYS_STATFS |
| 4499 | # include <sys/statfs.h> |
| 4500 | # endif |
| 4501 | # endif |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 4502 | #endif |
| 4503 | |
| 4504 | int main() { |
| 4505 | |
| 4506 | struct statfs stfs; |
| 4507 | |
| 4508 | stfs.f_bavail++; |
| 4509 | |
| 4510 | ; return 0; } |
| 4511 | EOF |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame^] | 4512 | if { (eval echo configure:4513: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 4513 | rm -rf conftest* |
| 4514 | wine_cv_statfs_bavail=yes |
| 4515 | else |
| 4516 | echo "configure: failed program was:" >&5 |
| 4517 | cat conftest.$ac_ext >&5 |
| 4518 | rm -rf conftest* |
| 4519 | wine_cv_statfs_bavail=no |
| 4520 | |
| 4521 | fi |
| 4522 | rm -f conftest* |
| 4523 | fi |
| 4524 | fi |
| 4525 | |
| 4526 | echo "$ac_t""$wine_cv_statfs_bavail" 1>&6 |
| 4527 | if test "$wine_cv_statfs_bavail" = "yes" |
| 4528 | then |
| 4529 | cat >> confdefs.h <<\EOF |
| 4530 | #define STATFS_HAS_BAVAIL 1 |
| 4531 | EOF |
| 4532 | |
| 4533 | fi |
| 4534 | |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 4535 | |
| 4536 | echo $ac_n "checking "for working sigaltstack"""... $ac_c" 1>&6 |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame^] | 4537 | echo "configure:4538: checking "for working sigaltstack"" >&5 |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 4538 | if eval "test \"`echo '$''{'ac_cv_c_working_sigaltstack'+set}'`\" = set"; then |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 4539 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4540 | else |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 4541 | if test "$cross_compiling" = yes; then |
| 4542 | ac_cv_c_working_sigaltstack="no" |
| 4543 | |
| 4544 | else |
| 4545 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame^] | 4546 | #line 4547 "configure" |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 4547 | #include "confdefs.h" |
| 4548 | |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 4549 | #include <stdio.h> |
| 4550 | #include <time.h> /* <sys/time.h> ? bad magic without end */ |
Alexandre Julliard | 46ea8b3 | 1998-05-03 19:01:20 +0000 | [diff] [blame] | 4551 | #include <sys/types.h> |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 4552 | #include <sys/signal.h> |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 4553 | #ifdef HAVE_SYS_PARAM_H |
| 4554 | # include <sys/param.h> |
| 4555 | #endif |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 4556 | #ifdef HAVE_SYSCALL_H |
| 4557 | # include <syscall.h> |
| 4558 | #else |
| 4559 | # ifdef HAVE_SYS_SYSCALL_H |
| 4560 | # include <sys/syscall.h> |
| 4561 | # endif |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 4562 | #endif |
| 4563 | |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 4564 | unsigned char *xaltstack; |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 4565 | |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 4566 | int |
| 4567 | main(int argc,char **argv) { |
| 4568 | struct sigaltstack ss; |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 4569 | |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 4570 | xaltstack = malloc(16384); |
| 4571 | ss.ss_sp = xaltstack; |
| 4572 | ss.ss_size = 16384; |
| 4573 | ss.ss_flags = 0; |
| 4574 | if (sigaltstack(&ss, NULL) < 0) { |
| 4575 | /* this catches the glibc case */ |
| 4576 | perror("sigaltstack"); |
| 4577 | return (1); /* aka exit(1) aka fail */ |
| 4578 | } |
| 4579 | /* assume it works. */ |
| 4580 | return 0; /* OK */ |
| 4581 | } |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 4582 | |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 4583 | EOF |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame^] | 4584 | if { (eval echo configure:4585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 4585 | then |
| 4586 | ac_cv_c_working_sigaltstack="yes" |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 4587 | else |
| 4588 | echo "configure: failed program was:" >&5 |
| 4589 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 4590 | rm -fr conftest* |
| 4591 | ac_cv_c_working_sigaltstack="no" |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 4592 | fi |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 4593 | rm -fr conftest* |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 4594 | fi |
| 4595 | |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 4596 | fi |
| 4597 | |
| 4598 | echo "$ac_t""$ac_cv_c_working_sigaltstack" 1>&6 |
| 4599 | |
| 4600 | if test "$ac_cv_c_working_sigaltstack" = "yes" |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 4601 | then |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 4602 | cat >> confdefs.h <<\EOF |
| 4603 | #define HAVE_WORKING_SIGALTSTACK 1 |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 4604 | EOF |
| 4605 | |
| 4606 | fi |
| 4607 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4608 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4609 | |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 4610 | echo $ac_n "checking "for msg_accrights in struct msghdr"""... $ac_c" 1>&6 |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame^] | 4611 | echo "configure:4612: checking "for msg_accrights in struct msghdr"" >&5 |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 4612 | if eval "test \"`echo '$''{'ac_cv_c_msg_accrights'+set}'`\" = set"; then |
| 4613 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4614 | else |
| 4615 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame^] | 4616 | #line 4617 "configure" |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 4617 | #include "confdefs.h" |
| 4618 | #include <sys/types.h> |
| 4619 | #include <sys/socket.h> |
| 4620 | int main() { |
| 4621 | struct msghdr hdr; hdr.msg_accrights=0 |
| 4622 | ; return 0; } |
| 4623 | EOF |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame^] | 4624 | if { (eval echo configure:4625: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 4625 | rm -rf conftest* |
| 4626 | ac_cv_c_msg_accrights="yes" |
| 4627 | else |
| 4628 | echo "configure: failed program was:" >&5 |
| 4629 | cat conftest.$ac_ext >&5 |
| 4630 | rm -rf conftest* |
| 4631 | ac_cv_c_msg_accrights="no" |
| 4632 | fi |
| 4633 | rm -f conftest* |
| 4634 | fi |
| 4635 | |
| 4636 | echo "$ac_t""$ac_cv_c_msg_accrights" 1>&6 |
| 4637 | if test "$ac_cv_c_msg_accrights" = "yes" |
| 4638 | then |
| 4639 | cat >> confdefs.h <<\EOF |
| 4640 | #define HAVE_MSGHDR_ACCRIGHTS 1 |
| 4641 | EOF |
| 4642 | |
| 4643 | fi |
| 4644 | |
Marcus Meissner | a7f5cb5 | 1999-04-16 08:47:41 +0000 | [diff] [blame] | 4645 | GCC_NO_BUILTIN="" |
| 4646 | if test "$GCC" = "yes" |
| 4647 | then |
| 4648 | GCC_NO_BUILTIN="-fno-builtin" |
| 4649 | fi |
| 4650 | |
| 4651 | |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 4652 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 4653 | MAKE_RULES=Make.rules |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4654 | |
| 4655 | |
| 4656 | trap '' 1 2 15 |
| 4657 | cat > confcache <<\EOF |
| 4658 | # This file is a shell script that caches the results of configure |
| 4659 | # tests run on this system so they can be shared between configure |
| 4660 | # scripts and configure runs. It is not useful on other systems. |
| 4661 | # If it contains results you don't want to keep, you may remove or edit it. |
| 4662 | # |
| 4663 | # By default, configure uses ./config.cache as the cache file, |
| 4664 | # creating it if it does not exist already. You can give configure |
| 4665 | # the --cache-file=FILE option to use a different cache file; that is |
| 4666 | # what configure does when it calls configure scripts in |
| 4667 | # subdirectories, so they share the cache. |
| 4668 | # Giving --cache-file=/dev/null disables caching, for debugging configure. |
| 4669 | # config.status only pays attention to the cache file if you give it the |
| 4670 | # --recheck option to rerun configure. |
| 4671 | # |
| 4672 | EOF |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 4673 | # The following way of writing the cache mishandles newlines in values, |
| 4674 | # but we know of no workaround that is simple, portable, and efficient. |
| 4675 | # So, don't put newlines in cache variables' values. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4676 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 4677 | # and sets the high bit in the cache file unless we assign to the vars. |
| 4678 | (set) 2>&1 | |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 4679 | case `(ac_space=' '; set) 2>&1` in |
| 4680 | *ac_space=\ *) |
| 4681 | # `set' does not quote correctly, so add quotes (double-quote substitution |
| 4682 | # turns \\\\ into \\, and sed turns \\ into \). |
| 4683 | sed -n \ |
| 4684 | -e "s/'/'\\\\''/g" \ |
| 4685 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
| 4686 | ;; |
| 4687 | *) |
| 4688 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 4689 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
| 4690 | ;; |
| 4691 | esac >> confcache |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4692 | if cmp -s $cache_file confcache; then |
| 4693 | : |
| 4694 | else |
| 4695 | if test -w $cache_file; then |
| 4696 | echo "updating cache $cache_file" |
| 4697 | cat confcache > $cache_file |
| 4698 | else |
| 4699 | echo "not updating unwritable cache $cache_file" |
| 4700 | fi |
| 4701 | fi |
| 4702 | rm -f confcache |
| 4703 | |
| 4704 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
| 4705 | |
| 4706 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 4707 | # Let make expand exec_prefix. |
| 4708 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 4709 | |
| 4710 | # Any assignment to VPATH causes Sun make to only execute |
| 4711 | # the first set of double-colon rules, so remove it if not needed. |
| 4712 | # If there is a colon in the path, we need to keep it. |
| 4713 | if test "x$srcdir" = x.; then |
| 4714 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
| 4715 | fi |
| 4716 | |
| 4717 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
| 4718 | |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 4719 | DEFS=-DHAVE_CONFIG_H |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4720 | |
| 4721 | # Without the "./", some shells look in PATH for config.status. |
| 4722 | : ${CONFIG_STATUS=./config.status} |
| 4723 | |
| 4724 | echo creating $CONFIG_STATUS |
| 4725 | rm -f $CONFIG_STATUS |
| 4726 | cat > $CONFIG_STATUS <<EOF |
| 4727 | #! /bin/sh |
| 4728 | # Generated automatically by configure. |
| 4729 | # Run this file to recreate the current configuration. |
| 4730 | # This directory was configured as follows, |
| 4731 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 4732 | # |
| 4733 | # $0 $ac_configure_args |
| 4734 | # |
| 4735 | # Compiler output produced by configure, useful for debugging |
| 4736 | # configure, is in ./config.log if it exists. |
| 4737 | |
| 4738 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
| 4739 | for ac_option |
| 4740 | do |
| 4741 | case "\$ac_option" in |
| 4742 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 4743 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
| 4744 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; |
| 4745 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 4746 | echo "$CONFIG_STATUS generated by autoconf version 2.12" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4747 | exit 0 ;; |
| 4748 | -help | --help | --hel | --he | --h) |
| 4749 | echo "\$ac_cs_usage"; exit 0 ;; |
| 4750 | *) echo "\$ac_cs_usage"; exit 1 ;; |
| 4751 | esac |
| 4752 | done |
| 4753 | |
| 4754 | ac_given_srcdir=$srcdir |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 4755 | ac_given_INSTALL="$INSTALL" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4756 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 4757 | trap 'rm -fr `echo " |
| 4758 | Make.rules |
| 4759 | Makefile |
Joseph Pranevich | 791cd6a | 1998-12-02 19:58:08 +0000 | [diff] [blame] | 4760 | console/Makefile |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 4761 | controls/Makefile |
| 4762 | debugger/Makefile |
Alexandre Julliard | 85ed45e | 1998-08-22 19:03:56 +0000 | [diff] [blame] | 4763 | dlls/Makefile |
Juergen Schmied | f7b0de3 | 1999-01-03 12:48:29 +0000 | [diff] [blame] | 4764 | dlls/advapi32/Makefile |
Marcus Meissner | b3d1a22 | 1999-03-13 18:07:44 +0000 | [diff] [blame] | 4765 | dlls/avifil32/Makefile |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 4766 | dlls/comctl32/Makefile |
Klaas van Gend | c912749 | 1999-02-28 20:05:11 +0000 | [diff] [blame] | 4767 | dlls/commdlg/Makefile |
Patrik Stridvall | 8295c86 | 1998-10-11 17:09:05 +0000 | [diff] [blame] | 4768 | dlls/imagehlp/Makefile |
| 4769 | dlls/msacm/Makefile |
| 4770 | dlls/msacm32/Makefile |
Marcus Meissner | 51505b1 | 1998-11-01 14:00:21 +0000 | [diff] [blame] | 4771 | dlls/ntdll/Makefile |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 4772 | dlls/psapi/Makefile |
Marcus Meissner | 30ef877 | 1998-12-11 13:26:26 +0000 | [diff] [blame] | 4773 | dlls/rasapi32/Makefile |
Alexandre Julliard | 85ed45e | 1998-08-22 19:03:56 +0000 | [diff] [blame] | 4774 | dlls/shell32/Makefile |
Andreas Mohr | 5aa96c1 | 1999-03-14 12:34:25 +0000 | [diff] [blame] | 4775 | dlls/tapi32/Makefile |
Ulrich Weigand | d43a46a | 1999-01-31 10:11:04 +0000 | [diff] [blame] | 4776 | dlls/ver/Makefile |
| 4777 | dlls/version/Makefile |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 4778 | dlls/winaspi/Makefile |
| 4779 | dlls/wnaspi32/Makefile |
Alexandre Julliard | d37eb36 | 1997-07-20 16:23:21 +0000 | [diff] [blame] | 4780 | documentation/Makefile |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 4781 | files/Makefile |
Alexandre Julliard | 0e270f4 | 1996-08-24 18:26:35 +0000 | [diff] [blame] | 4782 | graphics/Makefile |
Alexandre Julliard | bf9130a | 1996-10-13 17:45:47 +0000 | [diff] [blame] | 4783 | graphics/metafiledrv/Makefile |
Alexandre Julliard | ebfc0fe | 1998-06-28 18:40:26 +0000 | [diff] [blame] | 4784 | graphics/psdrv/Makefile |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 4785 | graphics/ttydrv/Makefile |
Alexandre Julliard | 0e270f4 | 1996-08-24 18:26:35 +0000 | [diff] [blame] | 4786 | graphics/win16drv/Makefile |
| 4787 | graphics/x11drv/Makefile |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 4788 | if1632/Makefile |
James Juran | c70dc83 | 1999-02-13 12:18:33 +0000 | [diff] [blame] | 4789 | include/Makefile |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 4790 | ipc/Makefile |
| 4791 | library/Makefile |
| 4792 | libtest/Makefile |
| 4793 | loader/Makefile |
Alexandre Julliard | 46ea8b3 | 1998-05-03 19:01:20 +0000 | [diff] [blame] | 4794 | loader/ne/Makefile |
Alexandre Julliard | 767e6f6 | 1998-08-09 12:47:43 +0000 | [diff] [blame] | 4795 | loader/dos/Makefile |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 4796 | memory/Makefile |
| 4797 | misc/Makefile |
| 4798 | miscemu/Makefile |
Alexandre Julliard | 9ea19e5 | 1997-01-01 17:29:55 +0000 | [diff] [blame] | 4799 | msdos/Makefile |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 4800 | multimedia/Makefile |
| 4801 | objects/Makefile |
Alexandre Julliard | e658d82 | 1997-11-30 17:45:40 +0000 | [diff] [blame] | 4802 | ole/Makefile |
Alexandre Julliard | 02ed4c2 | 1996-03-02 19:34:10 +0000 | [diff] [blame] | 4803 | programs/Makefile |
Alexandre Julliard | a11d7b1 | 1998-03-01 20:05:02 +0000 | [diff] [blame] | 4804 | programs/clock/Makefile |
Eric Williams | 30008a0 | 1999-02-05 17:40:47 +0000 | [diff] [blame] | 4805 | programs/cmdlgtst/Makefile |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 4806 | programs/control/Makefile |
Marcus Meissner | 32b32d8 | 1999-01-29 15:12:10 +0000 | [diff] [blame] | 4807 | programs/avitools/Makefile |
Alexandre Julliard | 44ed71f | 1997-12-21 19:17:50 +0000 | [diff] [blame] | 4808 | programs/notepad/Makefile |
Alexandre Julliard | 02ed4c2 | 1996-03-02 19:34:10 +0000 | [diff] [blame] | 4809 | programs/progman/Makefile |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 4810 | programs/regtest/Makefile |
Sylvain St.Germain | 1bb0e66 | 1999-03-14 14:00:22 +0000 | [diff] [blame] | 4811 | programs/regapi/Makefile |
Alexandre Julliard | a11d7b1 | 1998-03-01 20:05:02 +0000 | [diff] [blame] | 4812 | programs/view/Makefile |
Alexandre Julliard | 1285c2f | 1996-05-06 16:06:24 +0000 | [diff] [blame] | 4813 | programs/winhelp/Makefile |
Alexandre Julliard | e658d82 | 1997-11-30 17:45:40 +0000 | [diff] [blame] | 4814 | programs/winver/Makefile |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 4815 | rc/Makefile |
Alexandre Julliard | 44ed71f | 1997-12-21 19:17:50 +0000 | [diff] [blame] | 4816 | relay32/Makefile |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 4817 | resources/Makefile |
Alexandre Julliard | 9ea19e5 | 1997-01-01 17:29:55 +0000 | [diff] [blame] | 4818 | scheduler/Makefile |
Alexandre Julliard | 642d313 | 1998-07-12 19:29:36 +0000 | [diff] [blame] | 4819 | server/Makefile |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 4820 | tools/Makefile |
Alexandre Julliard | a845b88 | 1998-06-01 10:44:35 +0000 | [diff] [blame] | 4821 | tools/wrc/Makefile |
Alexandre Julliard | 60ce85c | 1998-02-01 18:33:27 +0000 | [diff] [blame] | 4822 | tsx11/Makefile |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 4823 | win32/Makefile |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 4824 | windows/Makefile |
Patrik Stridvall | f638aef | 1998-12-07 09:36:13 +0000 | [diff] [blame] | 4825 | windows/ttydrv/Makefile |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 4826 | windows/x11drv/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 4827 | EOF |
| 4828 | cat >> $CONFIG_STATUS <<EOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4829 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 4830 | # Protect against being on the right side of a sed subst in config.status. |
| 4831 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
| 4832 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4833 | $ac_vpsub |
| 4834 | $extrasub |
| 4835 | s%@CFLAGS@%$CFLAGS%g |
| 4836 | s%@CPPFLAGS@%$CPPFLAGS%g |
| 4837 | s%@CXXFLAGS@%$CXXFLAGS%g |
| 4838 | s%@DEFS@%$DEFS%g |
| 4839 | s%@LDFLAGS@%$LDFLAGS%g |
| 4840 | s%@LIBS@%$LIBS%g |
| 4841 | s%@exec_prefix@%$exec_prefix%g |
| 4842 | s%@prefix@%$prefix%g |
| 4843 | s%@program_transform_name@%$program_transform_name%g |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 4844 | s%@bindir@%$bindir%g |
| 4845 | s%@sbindir@%$sbindir%g |
| 4846 | s%@libexecdir@%$libexecdir%g |
| 4847 | s%@datadir@%$datadir%g |
| 4848 | s%@sysconfdir@%$sysconfdir%g |
| 4849 | s%@sharedstatedir@%$sharedstatedir%g |
| 4850 | s%@localstatedir@%$localstatedir%g |
| 4851 | s%@libdir@%$libdir%g |
| 4852 | s%@includedir@%$includedir%g |
| 4853 | s%@oldincludedir@%$oldincludedir%g |
| 4854 | s%@infodir@%$infodir%g |
| 4855 | s%@mandir@%$mandir%g |
Alexandre Julliard | c6c0944 | 1997-01-12 18:32:19 +0000 | [diff] [blame] | 4856 | s%@PROGEXT@%$PROGEXT%g |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4857 | s%@MAIN_TARGET@%$MAIN_TARGET%g |
Alexandre Julliard | a0b2b1d | 1997-11-16 17:38:29 +0000 | [diff] [blame] | 4858 | s%@LIB_TARGET@%$LIB_TARGET%g |
Uwe Bonnes | 2a4707a | 1998-10-11 14:57:08 +0000 | [diff] [blame] | 4859 | s%@ALT_LINK@%$ALT_LINK%g |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 4860 | s%@OPTIONS@%$OPTIONS%g |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4861 | s%@SET_MAKE@%$SET_MAKE%g |
| 4862 | s%@CC@%$CC%g |
| 4863 | s%@CPP@%$CPP%g |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4864 | s%@X_CFLAGS@%$X_CFLAGS%g |
| 4865 | s%@X_PRE_LIBS@%$X_PRE_LIBS%g |
| 4866 | s%@X_LIBS@%$X_LIBS%g |
| 4867 | s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4868 | s%@YACC@%$YACC%g |
| 4869 | s%@LEX@%$LEX%g |
| 4870 | s%@LEXLIB@%$LEXLIB%g |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4871 | s%@RANLIB@%$RANLIB%g |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 4872 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
| 4873 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
Alexandre Julliard | 641ee76 | 1997-08-04 16:34:36 +0000 | [diff] [blame] | 4874 | s%@LN_S@%$LN_S%g |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 4875 | s%@C2MAN@%$C2MAN%g |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 4876 | s%@XLIB@%$XLIB%g |
Alexandre Julliard | a0b2b1d | 1997-11-16 17:38:29 +0000 | [diff] [blame] | 4877 | s%@DLLFLAGS@%$DLLFLAGS%g |
Todd Vierling | 4b992b0 | 1998-12-15 15:26:27 +0000 | [diff] [blame] | 4878 | s%@LDSHARED@%$LDSHARED%g |
Marcus Meissner | a7f5cb5 | 1999-04-16 08:47:41 +0000 | [diff] [blame] | 4879 | s%@GCC_NO_BUILTIN@%$GCC_NO_BUILTIN%g |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4880 | /@MAKE_RULES@/r $MAKE_RULES |
| 4881 | s%@MAKE_RULES@%%g |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4882 | |
| 4883 | CEOF |
| 4884 | EOF |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4885 | |
| 4886 | cat >> $CONFIG_STATUS <<\EOF |
| 4887 | |
| 4888 | # Split the substitutions into bite-sized pieces for seds with |
| 4889 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 4890 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. |
| 4891 | ac_file=1 # Number of current file. |
| 4892 | ac_beg=1 # First line for current file. |
| 4893 | ac_end=$ac_max_sed_cmds # Line after last line for current file. |
| 4894 | ac_more_lines=: |
| 4895 | ac_sed_cmds="" |
| 4896 | while $ac_more_lines; do |
| 4897 | if test $ac_beg -gt 1; then |
| 4898 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file |
| 4899 | else |
| 4900 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file |
| 4901 | fi |
| 4902 | if test ! -s conftest.s$ac_file; then |
| 4903 | ac_more_lines=false |
| 4904 | rm -f conftest.s$ac_file |
| 4905 | else |
| 4906 | if test -z "$ac_sed_cmds"; then |
| 4907 | ac_sed_cmds="sed -f conftest.s$ac_file" |
| 4908 | else |
| 4909 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
| 4910 | fi |
| 4911 | ac_file=`expr $ac_file + 1` |
| 4912 | ac_beg=$ac_end |
| 4913 | ac_end=`expr $ac_end + $ac_max_sed_cmds` |
| 4914 | fi |
| 4915 | done |
| 4916 | if test -z "$ac_sed_cmds"; then |
| 4917 | ac_sed_cmds=cat |
| 4918 | fi |
| 4919 | EOF |
| 4920 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4921 | cat >> $CONFIG_STATUS <<EOF |
| 4922 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 4923 | CONFIG_FILES=\${CONFIG_FILES-"Make.rules |
| 4924 | Makefile |
Joseph Pranevich | 791cd6a | 1998-12-02 19:58:08 +0000 | [diff] [blame] | 4925 | console/Makefile |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 4926 | controls/Makefile |
| 4927 | debugger/Makefile |
Alexandre Julliard | 85ed45e | 1998-08-22 19:03:56 +0000 | [diff] [blame] | 4928 | dlls/Makefile |
Juergen Schmied | f7b0de3 | 1999-01-03 12:48:29 +0000 | [diff] [blame] | 4929 | dlls/advapi32/Makefile |
Marcus Meissner | b3d1a22 | 1999-03-13 18:07:44 +0000 | [diff] [blame] | 4930 | dlls/avifil32/Makefile |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 4931 | dlls/comctl32/Makefile |
Klaas van Gend | c912749 | 1999-02-28 20:05:11 +0000 | [diff] [blame] | 4932 | dlls/commdlg/Makefile |
Patrik Stridvall | 8295c86 | 1998-10-11 17:09:05 +0000 | [diff] [blame] | 4933 | dlls/imagehlp/Makefile |
| 4934 | dlls/msacm/Makefile |
| 4935 | dlls/msacm32/Makefile |
Marcus Meissner | 51505b1 | 1998-11-01 14:00:21 +0000 | [diff] [blame] | 4936 | dlls/ntdll/Makefile |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 4937 | dlls/psapi/Makefile |
Marcus Meissner | 30ef877 | 1998-12-11 13:26:26 +0000 | [diff] [blame] | 4938 | dlls/rasapi32/Makefile |
Alexandre Julliard | 85ed45e | 1998-08-22 19:03:56 +0000 | [diff] [blame] | 4939 | dlls/shell32/Makefile |
Andreas Mohr | 5aa96c1 | 1999-03-14 12:34:25 +0000 | [diff] [blame] | 4940 | dlls/tapi32/Makefile |
Ulrich Weigand | d43a46a | 1999-01-31 10:11:04 +0000 | [diff] [blame] | 4941 | dlls/ver/Makefile |
| 4942 | dlls/version/Makefile |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 4943 | dlls/winaspi/Makefile |
| 4944 | dlls/wnaspi32/Makefile |
Alexandre Julliard | d37eb36 | 1997-07-20 16:23:21 +0000 | [diff] [blame] | 4945 | documentation/Makefile |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 4946 | files/Makefile |
Alexandre Julliard | 0e270f4 | 1996-08-24 18:26:35 +0000 | [diff] [blame] | 4947 | graphics/Makefile |
Alexandre Julliard | bf9130a | 1996-10-13 17:45:47 +0000 | [diff] [blame] | 4948 | graphics/metafiledrv/Makefile |
Alexandre Julliard | ebfc0fe | 1998-06-28 18:40:26 +0000 | [diff] [blame] | 4949 | graphics/psdrv/Makefile |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 4950 | graphics/ttydrv/Makefile |
Alexandre Julliard | 0e270f4 | 1996-08-24 18:26:35 +0000 | [diff] [blame] | 4951 | graphics/win16drv/Makefile |
| 4952 | graphics/x11drv/Makefile |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 4953 | if1632/Makefile |
James Juran | c70dc83 | 1999-02-13 12:18:33 +0000 | [diff] [blame] | 4954 | include/Makefile |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 4955 | ipc/Makefile |
| 4956 | library/Makefile |
| 4957 | libtest/Makefile |
| 4958 | loader/Makefile |
Alexandre Julliard | 46ea8b3 | 1998-05-03 19:01:20 +0000 | [diff] [blame] | 4959 | loader/ne/Makefile |
Alexandre Julliard | 767e6f6 | 1998-08-09 12:47:43 +0000 | [diff] [blame] | 4960 | loader/dos/Makefile |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 4961 | memory/Makefile |
| 4962 | misc/Makefile |
| 4963 | miscemu/Makefile |
Alexandre Julliard | 9ea19e5 | 1997-01-01 17:29:55 +0000 | [diff] [blame] | 4964 | msdos/Makefile |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 4965 | multimedia/Makefile |
| 4966 | objects/Makefile |
Alexandre Julliard | e658d82 | 1997-11-30 17:45:40 +0000 | [diff] [blame] | 4967 | ole/Makefile |
Alexandre Julliard | 02ed4c2 | 1996-03-02 19:34:10 +0000 | [diff] [blame] | 4968 | programs/Makefile |
Alexandre Julliard | a11d7b1 | 1998-03-01 20:05:02 +0000 | [diff] [blame] | 4969 | programs/clock/Makefile |
Eric Williams | 30008a0 | 1999-02-05 17:40:47 +0000 | [diff] [blame] | 4970 | programs/cmdlgtst/Makefile |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 4971 | programs/control/Makefile |
Marcus Meissner | 32b32d8 | 1999-01-29 15:12:10 +0000 | [diff] [blame] | 4972 | programs/avitools/Makefile |
Alexandre Julliard | 44ed71f | 1997-12-21 19:17:50 +0000 | [diff] [blame] | 4973 | programs/notepad/Makefile |
Alexandre Julliard | 02ed4c2 | 1996-03-02 19:34:10 +0000 | [diff] [blame] | 4974 | programs/progman/Makefile |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 4975 | programs/regtest/Makefile |
Sylvain St.Germain | 1bb0e66 | 1999-03-14 14:00:22 +0000 | [diff] [blame] | 4976 | programs/regapi/Makefile |
Alexandre Julliard | a11d7b1 | 1998-03-01 20:05:02 +0000 | [diff] [blame] | 4977 | programs/view/Makefile |
Alexandre Julliard | 1285c2f | 1996-05-06 16:06:24 +0000 | [diff] [blame] | 4978 | programs/winhelp/Makefile |
Alexandre Julliard | e658d82 | 1997-11-30 17:45:40 +0000 | [diff] [blame] | 4979 | programs/winver/Makefile |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 4980 | rc/Makefile |
Alexandre Julliard | 44ed71f | 1997-12-21 19:17:50 +0000 | [diff] [blame] | 4981 | relay32/Makefile |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 4982 | resources/Makefile |
Alexandre Julliard | 9ea19e5 | 1997-01-01 17:29:55 +0000 | [diff] [blame] | 4983 | scheduler/Makefile |
Alexandre Julliard | 642d313 | 1998-07-12 19:29:36 +0000 | [diff] [blame] | 4984 | server/Makefile |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 4985 | tools/Makefile |
Alexandre Julliard | a845b88 | 1998-06-01 10:44:35 +0000 | [diff] [blame] | 4986 | tools/wrc/Makefile |
Alexandre Julliard | 60ce85c | 1998-02-01 18:33:27 +0000 | [diff] [blame] | 4987 | tsx11/Makefile |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 4988 | win32/Makefile |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 4989 | windows/Makefile |
Patrik Stridvall | f638aef | 1998-12-07 09:36:13 +0000 | [diff] [blame] | 4990 | windows/ttydrv/Makefile |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 4991 | windows/x11drv/Makefile "} |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4992 | EOF |
| 4993 | cat >> $CONFIG_STATUS <<\EOF |
| 4994 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 4995 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4996 | case "$ac_file" in |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 4997 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4998 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 4999 | *) ac_file_in="${ac_file}.in" ;; |
| 5000 | esac |
| 5001 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5002 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 5003 | |
| 5004 | # Remove last slash and all that follows it. Not all systems have dirname. |
| 5005 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
| 5006 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| 5007 | # The file is in a subdirectory. |
| 5008 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
| 5009 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
| 5010 | # A "../" for each directory in $ac_dir_suffix. |
| 5011 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
| 5012 | else |
| 5013 | ac_dir_suffix= ac_dots= |
| 5014 | fi |
| 5015 | |
| 5016 | case "$ac_given_srcdir" in |
| 5017 | .) srcdir=. |
| 5018 | if test -z "$ac_dots"; then top_srcdir=. |
| 5019 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
| 5020 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
| 5021 | *) # Relative path. |
| 5022 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
| 5023 | top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 5024 | esac |
| 5025 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 5026 | case "$ac_given_INSTALL" in |
| 5027 | [/$]*) INSTALL="$ac_given_INSTALL" ;; |
| 5028 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; |
| 5029 | esac |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5030 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 5031 | echo creating "$ac_file" |
| 5032 | rm -f "$ac_file" |
| 5033 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
| 5034 | case "$ac_file" in |
| 5035 | *Makefile*) ac_comsub="1i\\ |
| 5036 | # $configure_input" ;; |
| 5037 | *) ac_comsub= ;; |
| 5038 | esac |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 5039 | |
| 5040 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 5041 | sed -e "$ac_comsub |
| 5042 | s%@configure_input@%$configure_input%g |
| 5043 | s%@srcdir@%$srcdir%g |
| 5044 | s%@top_srcdir@%$top_srcdir%g |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 5045 | s%@INSTALL@%$INSTALL%g |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 5046 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 5047 | fi; done |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5048 | rm -f conftest.s* |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 5049 | |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 5050 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 5051 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
| 5052 | # |
| 5053 | # ac_d sets the value in "#define NAME VALUE" lines. |
| 5054 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 5055 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' |
| 5056 | ac_dC='\3' |
| 5057 | ac_dD='%g' |
| 5058 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". |
| 5059 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 5060 | ac_uB='\([ ]\)%\1#\2define\3' |
| 5061 | ac_uC=' ' |
| 5062 | ac_uD='\4%g' |
| 5063 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| 5064 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 5065 | ac_eB='$%\1#\2define\3' |
| 5066 | ac_eC=' ' |
| 5067 | ac_eD='%g' |
| 5068 | |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 5069 | if test "${CONFIG_HEADERS+set}" != set; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5070 | EOF |
| 5071 | cat >> $CONFIG_STATUS <<EOF |
| 5072 | CONFIG_HEADERS="include/config.h" |
| 5073 | EOF |
| 5074 | cat >> $CONFIG_STATUS <<\EOF |
| 5075 | fi |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 5076 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 5077 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 5078 | case "$ac_file" in |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 5079 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 5080 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 5081 | *) ac_file_in="${ac_file}.in" ;; |
| 5082 | esac |
| 5083 | |
| 5084 | echo creating $ac_file |
| 5085 | |
| 5086 | rm -f conftest.frag conftest.in conftest.out |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 5087 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
| 5088 | cat $ac_file_inputs > conftest.in |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 5089 | |
| 5090 | EOF |
| 5091 | |
| 5092 | # Transform confdefs.h into a sed script conftest.vals that substitutes |
| 5093 | # the proper values into config.h.in to produce config.h. And first: |
| 5094 | # Protect against being on the right side of a sed subst in config.status. |
| 5095 | # Protect against being in an unquoted here document in config.status. |
| 5096 | rm -f conftest.vals |
| 5097 | cat > conftest.hdr <<\EOF |
| 5098 | s/[\\&%]/\\&/g |
| 5099 | s%[\\$`]%\\&%g |
| 5100 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp |
| 5101 | s%ac_d%ac_u%gp |
| 5102 | s%ac_u%ac_e%gp |
| 5103 | EOF |
| 5104 | sed -n -f conftest.hdr confdefs.h > conftest.vals |
| 5105 | rm -f conftest.hdr |
| 5106 | |
| 5107 | # This sed command replaces #undef with comments. This is necessary, for |
| 5108 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 5109 | # on some systems where configure will not decide to define it. |
| 5110 | cat >> conftest.vals <<\EOF |
| 5111 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% |
| 5112 | EOF |
| 5113 | |
| 5114 | # Break up conftest.vals because some shells have a limit on |
| 5115 | # the size of here documents, and old seds have small limits too. |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 5116 | |
| 5117 | rm -f conftest.tail |
| 5118 | while : |
| 5119 | do |
| 5120 | ac_lines=`grep -c . conftest.vals` |
| 5121 | # grep -c gives empty output for an empty file on some AIX systems. |
| 5122 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi |
| 5123 | # Write a limited-size here document to conftest.frag. |
| 5124 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS |
| 5125 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS |
| 5126 | echo 'CEOF |
| 5127 | sed -f conftest.frag conftest.in > conftest.out |
| 5128 | rm -f conftest.in |
| 5129 | mv conftest.out conftest.in |
| 5130 | ' >> $CONFIG_STATUS |
| 5131 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail |
| 5132 | rm -f conftest.vals |
| 5133 | mv conftest.tail conftest.vals |
| 5134 | done |
| 5135 | rm -f conftest.vals |
| 5136 | |
| 5137 | cat >> $CONFIG_STATUS <<\EOF |
| 5138 | rm -f conftest.frag conftest.h |
| 5139 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h |
| 5140 | cat conftest.in >> conftest.h |
| 5141 | rm -f conftest.in |
| 5142 | if cmp -s $ac_file conftest.h 2>/dev/null; then |
| 5143 | echo "$ac_file is unchanged" |
| 5144 | rm -f conftest.h |
| 5145 | else |
| 5146 | # Remove last slash and all that follows it. Not all systems have dirname. |
| 5147 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
| 5148 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| 5149 | # The file is in a subdirectory. |
| 5150 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
| 5151 | fi |
| 5152 | rm -f $ac_file |
| 5153 | mv conftest.h $ac_file |
| 5154 | fi |
| 5155 | fi; done |
| 5156 | |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 5157 | EOF |
| 5158 | cat >> $CONFIG_STATUS <<EOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 5159 | |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 5160 | EOF |
| 5161 | cat >> $CONFIG_STATUS <<\EOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 5162 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 5163 | exit 0 |
| 5164 | EOF |
| 5165 | chmod +x $CONFIG_STATUS |
| 5166 | rm -fr confdefs* $ac_clean_files |
| 5167 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 |
| 5168 | |
| 5169 | |
Ove Kaaven | 8b4431f | 1999-01-23 13:59:11 +0000 | [diff] [blame] | 5170 | if test "$have_x" = "no" |
| 5171 | then |
| 5172 | echo |
| 5173 | echo "*** Warning: X development files not found. Wine will be built without" |
| 5174 | echo "*** X support, which currently does not work, and would probably not be" |
| 5175 | echo "*** what you want anyway. You will need to install devel packages of" |
| 5176 | echo "*** Xlib/Xfree86 and Xpm at the very least." |
Ove Kaaven | 1eb593c | 1999-02-14 09:34:46 +0000 | [diff] [blame] | 5177 | elif test "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = "no" |
| 5178 | then |
| 5179 | echo |
| 5180 | echo "*** Warning: Xpm development files not found. Wine will be built without" |
| 5181 | echo "*** Xpm support, which currently does not work. You will need to install" |
| 5182 | echo "*** devel packages of Xpm." |
Ove Kaaven | 8b4431f | 1999-01-23 13:59:11 +0000 | [diff] [blame] | 5183 | fi |
| 5184 | |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 5185 | if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes" |
| 5186 | then |
| 5187 | echo |
| 5188 | echo "*** Warning: resizeterm not found in ncurses. Wine will be built without" |
| 5189 | echo "*** terminal resize support. Consider upgrading ncurses." |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 5190 | fi |
| 5191 | |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 5192 | if test "$wine_cv_libc_reentrant" = "no" |
| 5193 | then |
| 5194 | echo |
| 5195 | echo "*** Warning: non-reentrant libc detected. Wine will be build without" |
| 5196 | echo "*** thread support. Consider upgrading libc to a more recent" |
| 5197 | echo "*** reentrant version of libc." |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 5198 | fi |
| 5199 | |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 5200 | if test "$wine_cv_mesa_version_OK" = "no" |
| 5201 | then |
| 5202 | echo |
| 5203 | echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D" |
| 5204 | echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)" |
| 5205 | fi |
| 5206 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 5207 | echo |
Steffen Moeller | 1511bae | 1999-02-17 15:27:03 +0000 | [diff] [blame] | 5208 | echo "Configure finished. Do 'make depend && make' to compile Wine." |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 5209 | echo |
| 5210 | |