Release 980315
[wine/multimedia.git] / configure
blobf1a2e6f51f83fc16d66f05148275828e5ba243de
1 #! /bin/sh
3 # From configure.in configure.in 1.00
4 # Guess values for system-dependent variables and create Makefiles.
5 # Generated automatically using autoconf version 2.12
6 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
11 # Defaults:
12 ac_help=
13 ac_default_prefix=/usr/local
14 # Any additions from configure.in:
15 ac_help="$ac_help
16 --disable-emulator build only the Wine library, not the emulator"
17 ac_help="$ac_help
18 --enable-dll build the Wine library as a DLL"
19 ac_help="$ac_help
20 --without-reentrant-x Compile for use with non-reentrant X libraries"
21 ac_help="$ac_help
22 --with-x use the X Window System"
24 # Initialize some variables set by options.
25 # The variables have the same names as the options, with
26 # dashes changed to underlines.
27 build=NONE
28 cache_file=./config.cache
29 exec_prefix=NONE
30 host=NONE
31 no_create=
32 nonopt=NONE
33 no_recursion=
34 prefix=NONE
35 program_prefix=NONE
36 program_suffix=NONE
37 program_transform_name=s,x,x,
38 silent=
39 site=
40 srcdir=
41 target=NONE
42 verbose=
43 x_includes=NONE
44 x_libraries=NONE
45 bindir='${exec_prefix}/bin'
46 sbindir='${exec_prefix}/sbin'
47 libexecdir='${exec_prefix}/libexec'
48 datadir='${prefix}/share'
49 sysconfdir='${prefix}/etc'
50 sharedstatedir='${prefix}/com'
51 localstatedir='${prefix}/var'
52 libdir='${exec_prefix}/lib'
53 includedir='${prefix}/include'
54 oldincludedir='/usr/include'
55 infodir='${prefix}/info'
56 mandir='${prefix}/man'
58 # Initialize some other variables.
59 subdirs=
60 MFLAGS= MAKEFLAGS=
61 # Maximum number of lines to put in a shell here document.
62 ac_max_here_lines=12
64 ac_prev=
65 for ac_option
68 # If the previous option needs an argument, assign it.
69 if test -n "$ac_prev"; then
70 eval "$ac_prev=\$ac_option"
71 ac_prev=
72 continue
75 case "$ac_option" in
76 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
77 *) ac_optarg= ;;
78 esac
80 # Accept the important Cygnus configure options, so we can diagnose typos.
82 case "$ac_option" in
84 -bindir | --bindir | --bindi | --bind | --bin | --bi)
85 ac_prev=bindir ;;
86 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
87 bindir="$ac_optarg" ;;
89 -build | --build | --buil | --bui | --bu)
90 ac_prev=build ;;
91 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
92 build="$ac_optarg" ;;
94 -cache-file | --cache-file | --cache-fil | --cache-fi \
95 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
96 ac_prev=cache_file ;;
97 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
98 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
99 cache_file="$ac_optarg" ;;
101 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
102 ac_prev=datadir ;;
103 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
104 | --da=*)
105 datadir="$ac_optarg" ;;
107 -disable-* | --disable-*)
108 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
109 # Reject names that are not valid shell variable names.
110 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
111 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
113 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
114 eval "enable_${ac_feature}=no" ;;
116 -enable-* | --enable-*)
117 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
118 # Reject names that are not valid shell variable names.
119 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
120 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
122 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
123 case "$ac_option" in
124 *=*) ;;
125 *) ac_optarg=yes ;;
126 esac
127 eval "enable_${ac_feature}='$ac_optarg'" ;;
129 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
130 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
131 | --exec | --exe | --ex)
132 ac_prev=exec_prefix ;;
133 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
134 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
135 | --exec=* | --exe=* | --ex=*)
136 exec_prefix="$ac_optarg" ;;
138 -gas | --gas | --ga | --g)
139 # Obsolete; use --with-gas.
140 with_gas=yes ;;
142 -help | --help | --hel | --he)
143 # Omit some internal or obsolete options to make the list less imposing.
144 # This message is too long to be a string in the A/UX 3.1 sh.
145 cat << EOF
146 Usage: configure [options] [host]
147 Options: [defaults in brackets after descriptions]
148 Configuration:
149 --cache-file=FILE cache test results in FILE
150 --help print this message
151 --no-create do not create output files
152 --quiet, --silent do not print \`checking...' messages
153 --version print the version of autoconf that created configure
154 Directory and file names:
155 --prefix=PREFIX install architecture-independent files in PREFIX
156 [$ac_default_prefix]
157 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
158 [same as prefix]
159 --bindir=DIR user executables in DIR [EPREFIX/bin]
160 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
161 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
162 --datadir=DIR read-only architecture-independent data in DIR
163 [PREFIX/share]
164 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
165 --sharedstatedir=DIR modifiable architecture-independent data in DIR
166 [PREFIX/com]
167 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
168 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
169 --includedir=DIR C header files in DIR [PREFIX/include]
170 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
171 --infodir=DIR info documentation in DIR [PREFIX/info]
172 --mandir=DIR man documentation in DIR [PREFIX/man]
173 --srcdir=DIR find the sources in DIR [configure dir or ..]
174 --program-prefix=PREFIX prepend PREFIX to installed program names
175 --program-suffix=SUFFIX append SUFFIX to installed program names
176 --program-transform-name=PROGRAM
177 run sed PROGRAM on installed program names
179 cat << EOF
180 Host type:
181 --build=BUILD configure for building on BUILD [BUILD=HOST]
182 --host=HOST configure for HOST [guessed]
183 --target=TARGET configure for TARGET [TARGET=HOST]
184 Features and packages:
185 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
186 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
187 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
188 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
189 --x-includes=DIR X include files are in DIR
190 --x-libraries=DIR X library files are in DIR
192 if test -n "$ac_help"; then
193 echo "--enable and --with options recognized:$ac_help"
195 exit 0 ;;
197 -host | --host | --hos | --ho)
198 ac_prev=host ;;
199 -host=* | --host=* | --hos=* | --ho=*)
200 host="$ac_optarg" ;;
202 -includedir | --includedir | --includedi | --included | --include \
203 | --includ | --inclu | --incl | --inc)
204 ac_prev=includedir ;;
205 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
206 | --includ=* | --inclu=* | --incl=* | --inc=*)
207 includedir="$ac_optarg" ;;
209 -infodir | --infodir | --infodi | --infod | --info | --inf)
210 ac_prev=infodir ;;
211 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
212 infodir="$ac_optarg" ;;
214 -libdir | --libdir | --libdi | --libd)
215 ac_prev=libdir ;;
216 -libdir=* | --libdir=* | --libdi=* | --libd=*)
217 libdir="$ac_optarg" ;;
219 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
220 | --libexe | --libex | --libe)
221 ac_prev=libexecdir ;;
222 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
223 | --libexe=* | --libex=* | --libe=*)
224 libexecdir="$ac_optarg" ;;
226 -localstatedir | --localstatedir | --localstatedi | --localstated \
227 | --localstate | --localstat | --localsta | --localst \
228 | --locals | --local | --loca | --loc | --lo)
229 ac_prev=localstatedir ;;
230 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
231 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
232 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
233 localstatedir="$ac_optarg" ;;
235 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
236 ac_prev=mandir ;;
237 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
238 mandir="$ac_optarg" ;;
240 -nfp | --nfp | --nf)
241 # Obsolete; use --without-fp.
242 with_fp=no ;;
244 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
245 | --no-cr | --no-c)
246 no_create=yes ;;
248 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
249 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
250 no_recursion=yes ;;
252 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
253 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
254 | --oldin | --oldi | --old | --ol | --o)
255 ac_prev=oldincludedir ;;
256 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
257 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
258 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
259 oldincludedir="$ac_optarg" ;;
261 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
262 ac_prev=prefix ;;
263 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
264 prefix="$ac_optarg" ;;
266 -program-prefix | --program-prefix | --program-prefi | --program-pref \
267 | --program-pre | --program-pr | --program-p)
268 ac_prev=program_prefix ;;
269 -program-prefix=* | --program-prefix=* | --program-prefi=* \
270 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
271 program_prefix="$ac_optarg" ;;
273 -program-suffix | --program-suffix | --program-suffi | --program-suff \
274 | --program-suf | --program-su | --program-s)
275 ac_prev=program_suffix ;;
276 -program-suffix=* | --program-suffix=* | --program-suffi=* \
277 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
278 program_suffix="$ac_optarg" ;;
280 -program-transform-name | --program-transform-name \
281 | --program-transform-nam | --program-transform-na \
282 | --program-transform-n | --program-transform- \
283 | --program-transform | --program-transfor \
284 | --program-transfo | --program-transf \
285 | --program-trans | --program-tran \
286 | --progr-tra | --program-tr | --program-t)
287 ac_prev=program_transform_name ;;
288 -program-transform-name=* | --program-transform-name=* \
289 | --program-transform-nam=* | --program-transform-na=* \
290 | --program-transform-n=* | --program-transform-=* \
291 | --program-transform=* | --program-transfor=* \
292 | --program-transfo=* | --program-transf=* \
293 | --program-trans=* | --program-tran=* \
294 | --progr-tra=* | --program-tr=* | --program-t=*)
295 program_transform_name="$ac_optarg" ;;
297 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
298 | -silent | --silent | --silen | --sile | --sil)
299 silent=yes ;;
301 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
302 ac_prev=sbindir ;;
303 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
304 | --sbi=* | --sb=*)
305 sbindir="$ac_optarg" ;;
307 -sharedstatedir | --sharedstatedir | --sharedstatedi \
308 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
309 | --sharedst | --shareds | --shared | --share | --shar \
310 | --sha | --sh)
311 ac_prev=sharedstatedir ;;
312 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
313 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
314 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
315 | --sha=* | --sh=*)
316 sharedstatedir="$ac_optarg" ;;
318 -site | --site | --sit)
319 ac_prev=site ;;
320 -site=* | --site=* | --sit=*)
321 site="$ac_optarg" ;;
323 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
324 ac_prev=srcdir ;;
325 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
326 srcdir="$ac_optarg" ;;
328 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
329 | --syscon | --sysco | --sysc | --sys | --sy)
330 ac_prev=sysconfdir ;;
331 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
332 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
333 sysconfdir="$ac_optarg" ;;
335 -target | --target | --targe | --targ | --tar | --ta | --t)
336 ac_prev=target ;;
337 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
338 target="$ac_optarg" ;;
340 -v | -verbose | --verbose | --verbos | --verbo | --verb)
341 verbose=yes ;;
343 -version | --version | --versio | --versi | --vers)
344 echo "configure generated by autoconf version 2.12"
345 exit 0 ;;
347 -with-* | --with-*)
348 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
349 # Reject names that are not valid shell variable names.
350 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
351 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
353 ac_package=`echo $ac_package| sed 's/-/_/g'`
354 case "$ac_option" in
355 *=*) ;;
356 *) ac_optarg=yes ;;
357 esac
358 eval "with_${ac_package}='$ac_optarg'" ;;
360 -without-* | --without-*)
361 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
362 # Reject names that are not valid shell variable names.
363 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
364 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
366 ac_package=`echo $ac_package| sed 's/-/_/g'`
367 eval "with_${ac_package}=no" ;;
369 --x)
370 # Obsolete; use --with-x.
371 with_x=yes ;;
373 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
374 | --x-incl | --x-inc | --x-in | --x-i)
375 ac_prev=x_includes ;;
376 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
377 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
378 x_includes="$ac_optarg" ;;
380 -x-libraries | --x-libraries | --x-librarie | --x-librari \
381 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
382 ac_prev=x_libraries ;;
383 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
384 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
385 x_libraries="$ac_optarg" ;;
387 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
391 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
392 echo "configure: warning: $ac_option: invalid host type" 1>&2
394 if test "x$nonopt" != xNONE; then
395 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
397 nonopt="$ac_option"
400 esac
401 done
403 if test -n "$ac_prev"; then
404 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
407 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
409 # File descriptor usage:
410 # 0 standard input
411 # 1 file creation
412 # 2 errors and warnings
413 # 3 some systems may open it to /dev/tty
414 # 4 used on the Kubota Titan
415 # 6 checking for... messages and results
416 # 5 compiler messages saved in config.log
417 if test "$silent" = yes; then
418 exec 6>/dev/null
419 else
420 exec 6>&1
422 exec 5>./config.log
424 echo "\
425 This file contains any messages produced by compilers while
426 running configure, to aid debugging if configure makes a mistake.
427 " 1>&5
429 # Strip out --no-create and --no-recursion so they do not pile up.
430 # Also quote any args containing shell metacharacters.
431 ac_configure_args=
432 for ac_arg
434 case "$ac_arg" in
435 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
436 | --no-cr | --no-c) ;;
437 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
438 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
439 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
440 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
441 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
442 esac
443 done
445 # NLS nuisances.
446 # Only set these to C if already set. These must not be set unconditionally
447 # because not all systems understand e.g. LANG=C (notably SCO).
448 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
449 # Non-C LC_CTYPE values break the ctype check.
450 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
451 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
452 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
453 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
455 # confdefs.h avoids OS command line length limits that DEFS can exceed.
456 rm -rf conftest* confdefs.h
457 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
458 echo > confdefs.h
460 # A filename unique to this package, relative to the directory that
461 # configure is in, which we can look for to find out if srcdir is correct.
462 ac_unique_file=controls/edit.c
464 # Find the source files, if location was not specified.
465 if test -z "$srcdir"; then
466 ac_srcdir_defaulted=yes
467 # Try the directory containing this script, then its parent.
468 ac_prog=$0
469 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
470 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
471 srcdir=$ac_confdir
472 if test ! -r $srcdir/$ac_unique_file; then
473 srcdir=..
475 else
476 ac_srcdir_defaulted=no
478 if test ! -r $srcdir/$ac_unique_file; then
479 if test "$ac_srcdir_defaulted" = yes; then
480 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
481 else
482 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
485 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
487 # Prefer explicitly selected file to automatically selected ones.
488 if test -z "$CONFIG_SITE"; then
489 if test "x$prefix" != xNONE; then
490 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
491 else
492 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
495 for ac_site_file in $CONFIG_SITE; do
496 if test -r "$ac_site_file"; then
497 echo "loading site script $ac_site_file"
498 . "$ac_site_file"
500 done
502 if test -r "$cache_file"; then
503 echo "loading cache $cache_file"
504 . $cache_file
505 else
506 echo "creating cache $cache_file"
507 > $cache_file
510 ac_ext=c
511 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
512 ac_cpp='$CPP $CPPFLAGS'
513 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
514 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
515 cross_compiling=$ac_cv_prog_cc_cross
517 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
518 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
519 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
520 ac_n= ac_c='
521 ' ac_t=' '
522 else
523 ac_n=-n ac_c= ac_t=
525 else
526 ac_n= ac_c='\c' ac_t=
531 ac_aux_dir=
532 for ac_dir in tools $srcdir/tools; do
533 if test -f $ac_dir/install-sh; then
534 ac_aux_dir=$ac_dir
535 ac_install_sh="$ac_aux_dir/install-sh -c"
536 break
537 elif test -f $ac_dir/install.sh; then
538 ac_aux_dir=$ac_dir
539 ac_install_sh="$ac_aux_dir/install.sh -c"
540 break
542 done
543 if test -z "$ac_aux_dir"; then
544 { echo "configure: error: can not find install-sh or install.sh in tools $srcdir/tools" 1>&2; exit 1; }
546 ac_config_guess=$ac_aux_dir/config.guess
547 ac_config_sub=$ac_aux_dir/config.sub
548 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
551 # We want these before the checks, so the checks can modify their values.
552 LIBS="$LIBS -lm"
553 test -z "$PROGEXT" && PROGEXT=""
556 MAIN_TARGET=emu
557 LIB_TARGET=libwine.a
559 # Check whether --enable-emulator or --disable-emulator was given.
560 if test "${enable_emulator+set}" = set; then
561 enableval="$enable_emulator"
562 if test "$enableval" = "no"; then MAIN_TARGET="lib"; fi
566 # Check whether --enable-dll or --disable-dll was given.
567 if test "${enable_dll+set}" = set; then
568 enableval="$enable_dll"
569 if test "$enableval" = "no"; then : ; else LIB_TARGET="libwine.so.1.0"; fi
574 # Check whether --with-reentrant-x or --without-reentrant-x was given.
575 if test "${with_reentrant_x+set}" = set; then
576 withval="$with_reentrant_x"
586 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
587 echo "configure:588: checking whether ${MAKE-make} sets \${MAKE}" >&5
588 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
589 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
590 echo $ac_n "(cached) $ac_c" 1>&6
591 else
592 cat > conftestmake <<\EOF
593 all:
594 @echo 'ac_maketemp="${MAKE}"'
596 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
597 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
598 if test -n "$ac_maketemp"; then
599 eval ac_cv_prog_make_${ac_make}_set=yes
600 else
601 eval ac_cv_prog_make_${ac_make}_set=no
603 rm -f conftestmake
605 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
606 echo "$ac_t""yes" 1>&6
607 SET_MAKE=
608 else
609 echo "$ac_t""no" 1>&6
610 SET_MAKE="MAKE=${MAKE-make}"
613 # Extract the first word of "gcc", so it can be a program name with args.
614 set dummy gcc; ac_word=$2
615 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
616 echo "configure:617: checking for $ac_word" >&5
617 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
618 echo $ac_n "(cached) $ac_c" 1>&6
619 else
620 if test -n "$CC"; then
621 ac_cv_prog_CC="$CC" # Let the user override the test.
622 else
623 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
624 for ac_dir in $PATH; do
625 test -z "$ac_dir" && ac_dir=.
626 if test -f $ac_dir/$ac_word; then
627 ac_cv_prog_CC="gcc"
628 break
630 done
631 IFS="$ac_save_ifs"
634 CC="$ac_cv_prog_CC"
635 if test -n "$CC"; then
636 echo "$ac_t""$CC" 1>&6
637 else
638 echo "$ac_t""no" 1>&6
641 if test -z "$CC"; then
642 # Extract the first word of "cc", so it can be a program name with args.
643 set dummy cc; ac_word=$2
644 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
645 echo "configure:646: checking for $ac_word" >&5
646 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
647 echo $ac_n "(cached) $ac_c" 1>&6
648 else
649 if test -n "$CC"; then
650 ac_cv_prog_CC="$CC" # Let the user override the test.
651 else
652 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
653 ac_prog_rejected=no
654 for ac_dir in $PATH; do
655 test -z "$ac_dir" && ac_dir=.
656 if test -f $ac_dir/$ac_word; then
657 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
658 ac_prog_rejected=yes
659 continue
661 ac_cv_prog_CC="cc"
662 break
664 done
665 IFS="$ac_save_ifs"
666 if test $ac_prog_rejected = yes; then
667 # We found a bogon in the path, so make sure we never use it.
668 set dummy $ac_cv_prog_CC
669 shift
670 if test $# -gt 0; then
671 # We chose a different compiler from the bogus one.
672 # However, it has the same basename, so the bogon will be chosen
673 # first if we set CC to just the basename; use the full file name.
674 shift
675 set dummy "$ac_dir/$ac_word" "$@"
676 shift
677 ac_cv_prog_CC="$@"
682 CC="$ac_cv_prog_CC"
683 if test -n "$CC"; then
684 echo "$ac_t""$CC" 1>&6
685 else
686 echo "$ac_t""no" 1>&6
689 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
692 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
693 echo "configure:694: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
695 ac_ext=c
696 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
697 ac_cpp='$CPP $CPPFLAGS'
698 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
699 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
700 cross_compiling=$ac_cv_prog_cc_cross
702 cat > conftest.$ac_ext <<EOF
703 #line 704 "configure"
704 #include "confdefs.h"
705 main(){return(0);}
707 if { (eval echo configure:708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
708 ac_cv_prog_cc_works=yes
709 # If we can't run a trivial program, we are probably using a cross compiler.
710 if (./conftest; exit) 2>/dev/null; then
711 ac_cv_prog_cc_cross=no
712 else
713 ac_cv_prog_cc_cross=yes
715 else
716 echo "configure: failed program was:" >&5
717 cat conftest.$ac_ext >&5
718 ac_cv_prog_cc_works=no
720 rm -fr conftest*
722 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
723 if test $ac_cv_prog_cc_works = no; then
724 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
726 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
727 echo "configure:728: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
728 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
729 cross_compiling=$ac_cv_prog_cc_cross
731 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
732 echo "configure:733: checking whether we are using GNU C" >&5
733 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
734 echo $ac_n "(cached) $ac_c" 1>&6
735 else
736 cat > conftest.c <<EOF
737 #ifdef __GNUC__
738 yes;
739 #endif
741 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:742: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
742 ac_cv_prog_gcc=yes
743 else
744 ac_cv_prog_gcc=no
748 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
750 if test $ac_cv_prog_gcc = yes; then
751 GCC=yes
752 ac_test_CFLAGS="${CFLAGS+set}"
753 ac_save_CFLAGS="$CFLAGS"
754 CFLAGS=
755 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
756 echo "configure:757: checking whether ${CC-cc} accepts -g" >&5
757 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
758 echo $ac_n "(cached) $ac_c" 1>&6
759 else
760 echo 'void f(){}' > conftest.c
761 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
762 ac_cv_prog_cc_g=yes
763 else
764 ac_cv_prog_cc_g=no
766 rm -f conftest*
770 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
771 if test "$ac_test_CFLAGS" = set; then
772 CFLAGS="$ac_save_CFLAGS"
773 elif test $ac_cv_prog_cc_g = yes; then
774 CFLAGS="-g -O2"
775 else
776 CFLAGS="-O2"
778 else
779 GCC=
780 test "${CFLAGS+set}" = set || CFLAGS="-g"
783 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
784 echo "configure:785: checking how to run the C preprocessor" >&5
785 # On Suns, sometimes $CPP names a directory.
786 if test -n "$CPP" && test -d "$CPP"; then
787 CPP=
789 if test -z "$CPP"; then
790 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
791 echo $ac_n "(cached) $ac_c" 1>&6
792 else
793 # This must be in double quotes, not single quotes, because CPP may get
794 # substituted into the Makefile and "${CC-cc}" will confuse make.
795 CPP="${CC-cc} -E"
796 # On the NeXT, cc -E runs the code through the compiler's parser,
797 # not just through cpp.
798 cat > conftest.$ac_ext <<EOF
799 #line 800 "configure"
800 #include "confdefs.h"
801 #include <assert.h>
802 Syntax Error
804 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
805 { (eval echo configure:806: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
806 ac_err=`grep -v '^ *+' conftest.out`
807 if test -z "$ac_err"; then
809 else
810 echo "$ac_err" >&5
811 echo "configure: failed program was:" >&5
812 cat conftest.$ac_ext >&5
813 rm -rf conftest*
814 CPP="${CC-cc} -E -traditional-cpp"
815 cat > conftest.$ac_ext <<EOF
816 #line 817 "configure"
817 #include "confdefs.h"
818 #include <assert.h>
819 Syntax Error
821 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
822 { (eval echo configure:823: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
823 ac_err=`grep -v '^ *+' conftest.out`
824 if test -z "$ac_err"; then
826 else
827 echo "$ac_err" >&5
828 echo "configure: failed program was:" >&5
829 cat conftest.$ac_ext >&5
830 rm -rf conftest*
831 CPP=/lib/cpp
833 rm -f conftest*
835 rm -f conftest*
836 ac_cv_prog_CPP="$CPP"
838 CPP="$ac_cv_prog_CPP"
839 else
840 ac_cv_prog_CPP="$CPP"
842 echo "$ac_t""$CPP" 1>&6
844 # If we find X, set shell vars x_includes and x_libraries to the
845 # paths, otherwise set no_x=yes.
846 # Uses ac_ vars as temps to allow command line to override cache and checks.
847 # --without-x overrides everything else, but does not touch the cache.
848 echo $ac_n "checking for X""... $ac_c" 1>&6
849 echo "configure:850: checking for X" >&5
851 # Check whether --with-x or --without-x was given.
852 if test "${with_x+set}" = set; then
853 withval="$with_x"
857 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
858 if test "x$with_x" = xno; then
859 # The user explicitly disabled X.
860 have_x=disabled
861 else
862 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
863 # Both variables are already set.
864 have_x=yes
865 else
866 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
867 echo $ac_n "(cached) $ac_c" 1>&6
868 else
869 # One or both of the vars are not set, and there is no cached value.
870 ac_x_includes=NO ac_x_libraries=NO
871 rm -fr conftestdir
872 if mkdir conftestdir; then
873 cd conftestdir
874 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
875 cat > Imakefile <<'EOF'
876 acfindx:
877 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
879 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
880 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
881 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
882 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
883 for ac_extension in a so sl; do
884 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
885 test -f $ac_im_libdir/libX11.$ac_extension; then
886 ac_im_usrlibdir=$ac_im_libdir; break
888 done
889 # Screen out bogus values from the imake configuration. They are
890 # bogus both because they are the default anyway, and because
891 # using them would break gcc on systems where it needs fixed includes.
892 case "$ac_im_incroot" in
893 /usr/include) ;;
894 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
895 esac
896 case "$ac_im_usrlibdir" in
897 /usr/lib | /lib) ;;
898 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
899 esac
901 cd ..
902 rm -fr conftestdir
905 if test "$ac_x_includes" = NO; then
906 # Guess where to find include files, by looking for this one X11 .h file.
907 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
909 # First, try using that file with no special directory specified.
910 cat > conftest.$ac_ext <<EOF
911 #line 912 "configure"
912 #include "confdefs.h"
913 #include <$x_direct_test_include>
915 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
916 { (eval echo configure:917: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
917 ac_err=`grep -v '^ *+' conftest.out`
918 if test -z "$ac_err"; then
919 rm -rf conftest*
920 # We can compile using X headers with no special include directory.
921 ac_x_includes=
922 else
923 echo "$ac_err" >&5
924 echo "configure: failed program was:" >&5
925 cat conftest.$ac_ext >&5
926 rm -rf conftest*
927 # Look for the header file in a standard set of common directories.
928 # Check X11 before X11Rn because it is often a symlink to the current release.
929 for ac_dir in \
930 /usr/X11/include \
931 /usr/X11R6/include \
932 /usr/X11R5/include \
933 /usr/X11R4/include \
935 /usr/include/X11 \
936 /usr/include/X11R6 \
937 /usr/include/X11R5 \
938 /usr/include/X11R4 \
940 /usr/local/X11/include \
941 /usr/local/X11R6/include \
942 /usr/local/X11R5/include \
943 /usr/local/X11R4/include \
945 /usr/local/include/X11 \
946 /usr/local/include/X11R6 \
947 /usr/local/include/X11R5 \
948 /usr/local/include/X11R4 \
950 /usr/X386/include \
951 /usr/x386/include \
952 /usr/XFree86/include/X11 \
954 /usr/include \
955 /usr/local/include \
956 /usr/unsupported/include \
957 /usr/athena/include \
958 /usr/local/x11r5/include \
959 /usr/lpp/Xamples/include \
961 /usr/openwin/include \
962 /usr/openwin/share/include \
965 if test -r "$ac_dir/$x_direct_test_include"; then
966 ac_x_includes=$ac_dir
967 break
969 done
971 rm -f conftest*
972 fi # $ac_x_includes = NO
974 if test "$ac_x_libraries" = NO; then
975 # Check for the libraries.
977 test -z "$x_direct_test_library" && x_direct_test_library=Xt
978 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
980 # See if we find them without any special options.
981 # Don't add to $LIBS permanently.
982 ac_save_LIBS="$LIBS"
983 LIBS="-l$x_direct_test_library $LIBS"
984 cat > conftest.$ac_ext <<EOF
985 #line 986 "configure"
986 #include "confdefs.h"
988 int main() {
989 ${x_direct_test_function}()
990 ; return 0; }
992 if { (eval echo configure:993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
993 rm -rf conftest*
994 LIBS="$ac_save_LIBS"
995 # We can link X programs with no special library path.
996 ac_x_libraries=
997 else
998 echo "configure: failed program was:" >&5
999 cat conftest.$ac_ext >&5
1000 rm -rf conftest*
1001 LIBS="$ac_save_LIBS"
1002 # First see if replacing the include by lib works.
1003 # Check X11 before X11Rn because it is often a symlink to the current release.
1004 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
1005 /usr/X11/lib \
1006 /usr/X11R6/lib \
1007 /usr/X11R5/lib \
1008 /usr/X11R4/lib \
1010 /usr/lib/X11 \
1011 /usr/lib/X11R6 \
1012 /usr/lib/X11R5 \
1013 /usr/lib/X11R4 \
1015 /usr/local/X11/lib \
1016 /usr/local/X11R6/lib \
1017 /usr/local/X11R5/lib \
1018 /usr/local/X11R4/lib \
1020 /usr/local/lib/X11 \
1021 /usr/local/lib/X11R6 \
1022 /usr/local/lib/X11R5 \
1023 /usr/local/lib/X11R4 \
1025 /usr/X386/lib \
1026 /usr/x386/lib \
1027 /usr/XFree86/lib/X11 \
1029 /usr/lib \
1030 /usr/local/lib \
1031 /usr/unsupported/lib \
1032 /usr/athena/lib \
1033 /usr/local/x11r5/lib \
1034 /usr/lpp/Xamples/lib \
1035 /lib/usr/lib/X11 \
1037 /usr/openwin/lib \
1038 /usr/openwin/share/lib \
1041 for ac_extension in a so sl; do
1042 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
1043 ac_x_libraries=$ac_dir
1044 break 2
1046 done
1047 done
1049 rm -f conftest*
1050 fi # $ac_x_libraries = NO
1052 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
1053 # Didn't find X anywhere. Cache the known absence of X.
1054 ac_cv_have_x="have_x=no"
1055 else
1056 # Record where we found X for the cache.
1057 ac_cv_have_x="have_x=yes \
1058 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1062 eval "$ac_cv_have_x"
1063 fi # $with_x != no
1065 if test "$have_x" != yes; then
1066 echo "$ac_t""$have_x" 1>&6
1067 no_x=yes
1068 else
1069 # If each of the values was on the command line, it overrides each guess.
1070 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
1071 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
1072 # Update the cache value to reflect the command line values.
1073 ac_cv_have_x="have_x=yes \
1074 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1075 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1078 if test "$no_x" = yes; then
1079 # Not all programs may use this symbol, but it does not hurt to define it.
1080 cat >> confdefs.h <<\EOF
1081 #define X_DISPLAY_MISSING 1
1084 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
1085 else
1086 if test -n "$x_includes"; then
1087 X_CFLAGS="$X_CFLAGS -I$x_includes"
1090 # It would also be nice to do this for all -L options, not just this one.
1091 if test -n "$x_libraries"; then
1092 X_LIBS="$X_LIBS -L$x_libraries"
1093 # For Solaris; some versions of Sun CC require a space after -R and
1094 # others require no space. Words are not sufficient . . . .
1095 case "`(uname -sr) 2>/dev/null`" in
1096 "SunOS 5"*)
1097 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1098 echo "configure:1099: checking whether -R must be followed by a space" >&5
1099 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
1100 cat > conftest.$ac_ext <<EOF
1101 #line 1102 "configure"
1102 #include "confdefs.h"
1104 int main() {
1106 ; return 0; }
1108 if { (eval echo configure:1109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1109 rm -rf conftest*
1110 ac_R_nospace=yes
1111 else
1112 echo "configure: failed program was:" >&5
1113 cat conftest.$ac_ext >&5
1114 rm -rf conftest*
1115 ac_R_nospace=no
1117 rm -f conftest*
1118 if test $ac_R_nospace = yes; then
1119 echo "$ac_t""no" 1>&6
1120 X_LIBS="$X_LIBS -R$x_libraries"
1121 else
1122 LIBS="$ac_xsave_LIBS -R $x_libraries"
1123 cat > conftest.$ac_ext <<EOF
1124 #line 1125 "configure"
1125 #include "confdefs.h"
1127 int main() {
1129 ; return 0; }
1131 if { (eval echo configure:1132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1132 rm -rf conftest*
1133 ac_R_space=yes
1134 else
1135 echo "configure: failed program was:" >&5
1136 cat conftest.$ac_ext >&5
1137 rm -rf conftest*
1138 ac_R_space=no
1140 rm -f conftest*
1141 if test $ac_R_space = yes; then
1142 echo "$ac_t""yes" 1>&6
1143 X_LIBS="$X_LIBS -R $x_libraries"
1144 else
1145 echo "$ac_t""neither works" 1>&6
1148 LIBS="$ac_xsave_LIBS"
1149 esac
1152 # Check for system-dependent libraries X programs must link with.
1153 # Do this before checking for the system-independent R6 libraries
1154 # (-lICE), since we may need -lsocket or whatever for X linking.
1156 if test "$ISC" = yes; then
1157 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
1158 else
1159 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1160 # libraries were built with DECnet support. And karl@cs.umb.edu says
1161 # the Alpha needs dnet_stub (dnet does not exist).
1162 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1163 echo "configure:1164: checking for dnet_ntoa in -ldnet" >&5
1164 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1165 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1166 echo $ac_n "(cached) $ac_c" 1>&6
1167 else
1168 ac_save_LIBS="$LIBS"
1169 LIBS="-ldnet $LIBS"
1170 cat > conftest.$ac_ext <<EOF
1171 #line 1172 "configure"
1172 #include "confdefs.h"
1173 /* Override any gcc2 internal prototype to avoid an error. */
1174 /* We use char because int might match the return type of a gcc2
1175 builtin and then its argument prototype would still apply. */
1176 char dnet_ntoa();
1178 int main() {
1179 dnet_ntoa()
1180 ; return 0; }
1182 if { (eval echo configure:1183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1183 rm -rf conftest*
1184 eval "ac_cv_lib_$ac_lib_var=yes"
1185 else
1186 echo "configure: failed program was:" >&5
1187 cat conftest.$ac_ext >&5
1188 rm -rf conftest*
1189 eval "ac_cv_lib_$ac_lib_var=no"
1191 rm -f conftest*
1192 LIBS="$ac_save_LIBS"
1195 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1196 echo "$ac_t""yes" 1>&6
1197 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
1198 else
1199 echo "$ac_t""no" 1>&6
1202 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
1203 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1204 echo "configure:1205: checking for dnet_ntoa in -ldnet_stub" >&5
1205 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1206 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1207 echo $ac_n "(cached) $ac_c" 1>&6
1208 else
1209 ac_save_LIBS="$LIBS"
1210 LIBS="-ldnet_stub $LIBS"
1211 cat > conftest.$ac_ext <<EOF
1212 #line 1213 "configure"
1213 #include "confdefs.h"
1214 /* Override any gcc2 internal prototype to avoid an error. */
1215 /* We use char because int might match the return type of a gcc2
1216 builtin and then its argument prototype would still apply. */
1217 char dnet_ntoa();
1219 int main() {
1220 dnet_ntoa()
1221 ; return 0; }
1223 if { (eval echo configure:1224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1224 rm -rf conftest*
1225 eval "ac_cv_lib_$ac_lib_var=yes"
1226 else
1227 echo "configure: failed program was:" >&5
1228 cat conftest.$ac_ext >&5
1229 rm -rf conftest*
1230 eval "ac_cv_lib_$ac_lib_var=no"
1232 rm -f conftest*
1233 LIBS="$ac_save_LIBS"
1236 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1237 echo "$ac_t""yes" 1>&6
1238 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
1239 else
1240 echo "$ac_t""no" 1>&6
1245 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1246 # to get the SysV transport functions.
1247 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
1248 # needs -lnsl.
1249 # The nsl library prevents programs from opening the X display
1250 # on Irix 5.2, according to dickey@clark.net.
1251 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1252 echo "configure:1253: checking for gethostbyname" >&5
1253 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1254 echo $ac_n "(cached) $ac_c" 1>&6
1255 else
1256 cat > conftest.$ac_ext <<EOF
1257 #line 1258 "configure"
1258 #include "confdefs.h"
1259 /* System header to define __stub macros and hopefully few prototypes,
1260 which can conflict with char gethostbyname(); below. */
1261 #include <assert.h>
1262 /* Override any gcc2 internal prototype to avoid an error. */
1263 /* We use char because int might match the return type of a gcc2
1264 builtin and then its argument prototype would still apply. */
1265 char gethostbyname();
1267 int main() {
1269 /* The GNU C library defines this for functions which it implements
1270 to always fail with ENOSYS. Some functions are actually named
1271 something starting with __ and the normal name is an alias. */
1272 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1273 choke me
1274 #else
1275 gethostbyname();
1276 #endif
1278 ; return 0; }
1280 if { (eval echo configure:1281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1281 rm -rf conftest*
1282 eval "ac_cv_func_gethostbyname=yes"
1283 else
1284 echo "configure: failed program was:" >&5
1285 cat conftest.$ac_ext >&5
1286 rm -rf conftest*
1287 eval "ac_cv_func_gethostbyname=no"
1289 rm -f conftest*
1292 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1293 echo "$ac_t""yes" 1>&6
1295 else
1296 echo "$ac_t""no" 1>&6
1299 if test $ac_cv_func_gethostbyname = no; then
1300 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1301 echo "configure:1302: checking for gethostbyname in -lnsl" >&5
1302 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1303 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1304 echo $ac_n "(cached) $ac_c" 1>&6
1305 else
1306 ac_save_LIBS="$LIBS"
1307 LIBS="-lnsl $LIBS"
1308 cat > conftest.$ac_ext <<EOF
1309 #line 1310 "configure"
1310 #include "confdefs.h"
1311 /* Override any gcc2 internal prototype to avoid an error. */
1312 /* We use char because int might match the return type of a gcc2
1313 builtin and then its argument prototype would still apply. */
1314 char gethostbyname();
1316 int main() {
1317 gethostbyname()
1318 ; return 0; }
1320 if { (eval echo configure:1321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1321 rm -rf conftest*
1322 eval "ac_cv_lib_$ac_lib_var=yes"
1323 else
1324 echo "configure: failed program was:" >&5
1325 cat conftest.$ac_ext >&5
1326 rm -rf conftest*
1327 eval "ac_cv_lib_$ac_lib_var=no"
1329 rm -f conftest*
1330 LIBS="$ac_save_LIBS"
1333 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1334 echo "$ac_t""yes" 1>&6
1335 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
1336 else
1337 echo "$ac_t""no" 1>&6
1342 # lieder@skyler.mavd.honeywell.com says without -lsocket,
1343 # socket/setsockopt and other routines are undefined under SCO ODT
1344 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
1345 # on later versions), says simon@lia.di.epfl.ch: it contains
1346 # gethostby* variants that don't use the nameserver (or something).
1347 # -lsocket must be given before -lnsl if both are needed.
1348 # We assume that if connect needs -lnsl, so does gethostbyname.
1349 echo $ac_n "checking for connect""... $ac_c" 1>&6
1350 echo "configure:1351: checking for connect" >&5
1351 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1352 echo $ac_n "(cached) $ac_c" 1>&6
1353 else
1354 cat > conftest.$ac_ext <<EOF
1355 #line 1356 "configure"
1356 #include "confdefs.h"
1357 /* System header to define __stub macros and hopefully few prototypes,
1358 which can conflict with char connect(); below. */
1359 #include <assert.h>
1360 /* Override any gcc2 internal prototype to avoid an error. */
1361 /* We use char because int might match the return type of a gcc2
1362 builtin and then its argument prototype would still apply. */
1363 char connect();
1365 int main() {
1367 /* The GNU C library defines this for functions which it implements
1368 to always fail with ENOSYS. Some functions are actually named
1369 something starting with __ and the normal name is an alias. */
1370 #if defined (__stub_connect) || defined (__stub___connect)
1371 choke me
1372 #else
1373 connect();
1374 #endif
1376 ; return 0; }
1378 if { (eval echo configure:1379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1379 rm -rf conftest*
1380 eval "ac_cv_func_connect=yes"
1381 else
1382 echo "configure: failed program was:" >&5
1383 cat conftest.$ac_ext >&5
1384 rm -rf conftest*
1385 eval "ac_cv_func_connect=no"
1387 rm -f conftest*
1390 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1391 echo "$ac_t""yes" 1>&6
1393 else
1394 echo "$ac_t""no" 1>&6
1397 if test $ac_cv_func_connect = no; then
1398 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1399 echo "configure:1400: checking for connect in -lsocket" >&5
1400 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1401 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1402 echo $ac_n "(cached) $ac_c" 1>&6
1403 else
1404 ac_save_LIBS="$LIBS"
1405 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
1406 cat > conftest.$ac_ext <<EOF
1407 #line 1408 "configure"
1408 #include "confdefs.h"
1409 /* Override any gcc2 internal prototype to avoid an error. */
1410 /* We use char because int might match the return type of a gcc2
1411 builtin and then its argument prototype would still apply. */
1412 char connect();
1414 int main() {
1415 connect()
1416 ; return 0; }
1418 if { (eval echo configure:1419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1419 rm -rf conftest*
1420 eval "ac_cv_lib_$ac_lib_var=yes"
1421 else
1422 echo "configure: failed program was:" >&5
1423 cat conftest.$ac_ext >&5
1424 rm -rf conftest*
1425 eval "ac_cv_lib_$ac_lib_var=no"
1427 rm -f conftest*
1428 LIBS="$ac_save_LIBS"
1431 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1432 echo "$ac_t""yes" 1>&6
1433 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
1434 else
1435 echo "$ac_t""no" 1>&6
1440 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
1441 echo $ac_n "checking for remove""... $ac_c" 1>&6
1442 echo "configure:1443: checking for remove" >&5
1443 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
1444 echo $ac_n "(cached) $ac_c" 1>&6
1445 else
1446 cat > conftest.$ac_ext <<EOF
1447 #line 1448 "configure"
1448 #include "confdefs.h"
1449 /* System header to define __stub macros and hopefully few prototypes,
1450 which can conflict with char remove(); below. */
1451 #include <assert.h>
1452 /* Override any gcc2 internal prototype to avoid an error. */
1453 /* We use char because int might match the return type of a gcc2
1454 builtin and then its argument prototype would still apply. */
1455 char remove();
1457 int main() {
1459 /* The GNU C library defines this for functions which it implements
1460 to always fail with ENOSYS. Some functions are actually named
1461 something starting with __ and the normal name is an alias. */
1462 #if defined (__stub_remove) || defined (__stub___remove)
1463 choke me
1464 #else
1465 remove();
1466 #endif
1468 ; return 0; }
1470 if { (eval echo configure:1471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1471 rm -rf conftest*
1472 eval "ac_cv_func_remove=yes"
1473 else
1474 echo "configure: failed program was:" >&5
1475 cat conftest.$ac_ext >&5
1476 rm -rf conftest*
1477 eval "ac_cv_func_remove=no"
1479 rm -f conftest*
1482 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
1483 echo "$ac_t""yes" 1>&6
1485 else
1486 echo "$ac_t""no" 1>&6
1489 if test $ac_cv_func_remove = no; then
1490 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
1491 echo "configure:1492: checking for remove in -lposix" >&5
1492 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
1493 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1494 echo $ac_n "(cached) $ac_c" 1>&6
1495 else
1496 ac_save_LIBS="$LIBS"
1497 LIBS="-lposix $LIBS"
1498 cat > conftest.$ac_ext <<EOF
1499 #line 1500 "configure"
1500 #include "confdefs.h"
1501 /* Override any gcc2 internal prototype to avoid an error. */
1502 /* We use char because int might match the return type of a gcc2
1503 builtin and then its argument prototype would still apply. */
1504 char remove();
1506 int main() {
1507 remove()
1508 ; return 0; }
1510 if { (eval echo configure:1511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1511 rm -rf conftest*
1512 eval "ac_cv_lib_$ac_lib_var=yes"
1513 else
1514 echo "configure: failed program was:" >&5
1515 cat conftest.$ac_ext >&5
1516 rm -rf conftest*
1517 eval "ac_cv_lib_$ac_lib_var=no"
1519 rm -f conftest*
1520 LIBS="$ac_save_LIBS"
1523 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1524 echo "$ac_t""yes" 1>&6
1525 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
1526 else
1527 echo "$ac_t""no" 1>&6
1532 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
1533 echo $ac_n "checking for shmat""... $ac_c" 1>&6
1534 echo "configure:1535: checking for shmat" >&5
1535 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
1536 echo $ac_n "(cached) $ac_c" 1>&6
1537 else
1538 cat > conftest.$ac_ext <<EOF
1539 #line 1540 "configure"
1540 #include "confdefs.h"
1541 /* System header to define __stub macros and hopefully few prototypes,
1542 which can conflict with char shmat(); below. */
1543 #include <assert.h>
1544 /* Override any gcc2 internal prototype to avoid an error. */
1545 /* We use char because int might match the return type of a gcc2
1546 builtin and then its argument prototype would still apply. */
1547 char shmat();
1549 int main() {
1551 /* The GNU C library defines this for functions which it implements
1552 to always fail with ENOSYS. Some functions are actually named
1553 something starting with __ and the normal name is an alias. */
1554 #if defined (__stub_shmat) || defined (__stub___shmat)
1555 choke me
1556 #else
1557 shmat();
1558 #endif
1560 ; return 0; }
1562 if { (eval echo configure:1563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1563 rm -rf conftest*
1564 eval "ac_cv_func_shmat=yes"
1565 else
1566 echo "configure: failed program was:" >&5
1567 cat conftest.$ac_ext >&5
1568 rm -rf conftest*
1569 eval "ac_cv_func_shmat=no"
1571 rm -f conftest*
1574 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
1575 echo "$ac_t""yes" 1>&6
1577 else
1578 echo "$ac_t""no" 1>&6
1581 if test $ac_cv_func_shmat = no; then
1582 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
1583 echo "configure:1584: checking for shmat in -lipc" >&5
1584 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
1585 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1586 echo $ac_n "(cached) $ac_c" 1>&6
1587 else
1588 ac_save_LIBS="$LIBS"
1589 LIBS="-lipc $LIBS"
1590 cat > conftest.$ac_ext <<EOF
1591 #line 1592 "configure"
1592 #include "confdefs.h"
1593 /* Override any gcc2 internal prototype to avoid an error. */
1594 /* We use char because int might match the return type of a gcc2
1595 builtin and then its argument prototype would still apply. */
1596 char shmat();
1598 int main() {
1599 shmat()
1600 ; return 0; }
1602 if { (eval echo configure:1603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1603 rm -rf conftest*
1604 eval "ac_cv_lib_$ac_lib_var=yes"
1605 else
1606 echo "configure: failed program was:" >&5
1607 cat conftest.$ac_ext >&5
1608 rm -rf conftest*
1609 eval "ac_cv_lib_$ac_lib_var=no"
1611 rm -f conftest*
1612 LIBS="$ac_save_LIBS"
1615 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1616 echo "$ac_t""yes" 1>&6
1617 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
1618 else
1619 echo "$ac_t""no" 1>&6
1625 # Check for libraries that X11R6 Xt/Xaw programs need.
1626 ac_save_LDFLAGS="$LDFLAGS"
1627 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
1628 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
1629 # check for ICE first), but we must link in the order -lSM -lICE or
1630 # we get undefined symbols. So assume we have SM if we have ICE.
1631 # These have to be linked with before -lX11, unlike the other
1632 # libraries we check for below, so use a different variable.
1633 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
1634 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
1635 echo "configure:1636: checking for IceConnectionNumber in -lICE" >&5
1636 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
1637 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1638 echo $ac_n "(cached) $ac_c" 1>&6
1639 else
1640 ac_save_LIBS="$LIBS"
1641 LIBS="-lICE $LIBS"
1642 cat > conftest.$ac_ext <<EOF
1643 #line 1644 "configure"
1644 #include "confdefs.h"
1645 /* Override any gcc2 internal prototype to avoid an error. */
1646 /* We use char because int might match the return type of a gcc2
1647 builtin and then its argument prototype would still apply. */
1648 char IceConnectionNumber();
1650 int main() {
1651 IceConnectionNumber()
1652 ; return 0; }
1654 if { (eval echo configure:1655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1655 rm -rf conftest*
1656 eval "ac_cv_lib_$ac_lib_var=yes"
1657 else
1658 echo "configure: failed program was:" >&5
1659 cat conftest.$ac_ext >&5
1660 rm -rf conftest*
1661 eval "ac_cv_lib_$ac_lib_var=no"
1663 rm -f conftest*
1664 LIBS="$ac_save_LIBS"
1667 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1668 echo "$ac_t""yes" 1>&6
1669 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
1670 else
1671 echo "$ac_t""no" 1>&6
1674 LDFLAGS="$ac_save_LDFLAGS"
1678 for ac_prog in 'bison -y' byacc
1680 # Extract the first word of "$ac_prog", so it can be a program name with args.
1681 set dummy $ac_prog; ac_word=$2
1682 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1683 echo "configure:1684: checking for $ac_word" >&5
1684 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1685 echo $ac_n "(cached) $ac_c" 1>&6
1686 else
1687 if test -n "$YACC"; then
1688 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1689 else
1690 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1691 for ac_dir in $PATH; do
1692 test -z "$ac_dir" && ac_dir=.
1693 if test -f $ac_dir/$ac_word; then
1694 ac_cv_prog_YACC="$ac_prog"
1695 break
1697 done
1698 IFS="$ac_save_ifs"
1701 YACC="$ac_cv_prog_YACC"
1702 if test -n "$YACC"; then
1703 echo "$ac_t""$YACC" 1>&6
1704 else
1705 echo "$ac_t""no" 1>&6
1708 test -n "$YACC" && break
1709 done
1710 test -n "$YACC" || YACC="yacc"
1712 # Extract the first word of "flex", so it can be a program name with args.
1713 set dummy flex; ac_word=$2
1714 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1715 echo "configure:1716: checking for $ac_word" >&5
1716 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1717 echo $ac_n "(cached) $ac_c" 1>&6
1718 else
1719 if test -n "$LEX"; then
1720 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1721 else
1722 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1723 for ac_dir in $PATH; do
1724 test -z "$ac_dir" && ac_dir=.
1725 if test -f $ac_dir/$ac_word; then
1726 ac_cv_prog_LEX="flex"
1727 break
1729 done
1730 IFS="$ac_save_ifs"
1731 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1734 LEX="$ac_cv_prog_LEX"
1735 if test -n "$LEX"; then
1736 echo "$ac_t""$LEX" 1>&6
1737 else
1738 echo "$ac_t""no" 1>&6
1741 if test -z "$LEXLIB"
1742 then
1743 case "$LEX" in
1744 flex*) ac_lib=fl ;;
1745 *) ac_lib=l ;;
1746 esac
1747 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1748 echo "configure:1749: checking for yywrap in -l$ac_lib" >&5
1749 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1750 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1751 echo $ac_n "(cached) $ac_c" 1>&6
1752 else
1753 ac_save_LIBS="$LIBS"
1754 LIBS="-l$ac_lib $LIBS"
1755 cat > conftest.$ac_ext <<EOF
1756 #line 1757 "configure"
1757 #include "confdefs.h"
1758 /* Override any gcc2 internal prototype to avoid an error. */
1759 /* We use char because int might match the return type of a gcc2
1760 builtin and then its argument prototype would still apply. */
1761 char yywrap();
1763 int main() {
1764 yywrap()
1765 ; return 0; }
1767 if { (eval echo configure:1768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1768 rm -rf conftest*
1769 eval "ac_cv_lib_$ac_lib_var=yes"
1770 else
1771 echo "configure: failed program was:" >&5
1772 cat conftest.$ac_ext >&5
1773 rm -rf conftest*
1774 eval "ac_cv_lib_$ac_lib_var=no"
1776 rm -f conftest*
1777 LIBS="$ac_save_LIBS"
1780 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1781 echo "$ac_t""yes" 1>&6
1782 LEXLIB="-l$ac_lib"
1783 else
1784 echo "$ac_t""no" 1>&6
1789 # Extract the first word of "ranlib", so it can be a program name with args.
1790 set dummy ranlib; ac_word=$2
1791 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1792 echo "configure:1793: checking for $ac_word" >&5
1793 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1794 echo $ac_n "(cached) $ac_c" 1>&6
1795 else
1796 if test -n "$RANLIB"; then
1797 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1798 else
1799 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1800 for ac_dir in $PATH; do
1801 test -z "$ac_dir" && ac_dir=.
1802 if test -f $ac_dir/$ac_word; then
1803 ac_cv_prog_RANLIB="ranlib"
1804 break
1806 done
1807 IFS="$ac_save_ifs"
1808 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1811 RANLIB="$ac_cv_prog_RANLIB"
1812 if test -n "$RANLIB"; then
1813 echo "$ac_t""$RANLIB" 1>&6
1814 else
1815 echo "$ac_t""no" 1>&6
1818 # Find a good install program. We prefer a C program (faster),
1819 # so one script is as good as another. But avoid the broken or
1820 # incompatible versions:
1821 # SysV /etc/install, /usr/sbin/install
1822 # SunOS /usr/etc/install
1823 # IRIX /sbin/install
1824 # AIX /bin/install
1825 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1826 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1827 # ./install, which can be erroneously created by make from ./install.sh.
1828 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1829 echo "configure:1830: checking for a BSD compatible install" >&5
1830 if test -z "$INSTALL"; then
1831 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1832 echo $ac_n "(cached) $ac_c" 1>&6
1833 else
1834 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1835 for ac_dir in $PATH; do
1836 # Account for people who put trailing slashes in PATH elements.
1837 case "$ac_dir/" in
1838 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1840 # OSF1 and SCO ODT 3.0 have their own names for install.
1841 for ac_prog in ginstall installbsd scoinst install; do
1842 if test -f $ac_dir/$ac_prog; then
1843 if test $ac_prog = install &&
1844 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1845 # AIX install. It has an incompatible calling convention.
1846 # OSF/1 installbsd also uses dspmsg, but is usable.
1848 else
1849 ac_cv_path_install="$ac_dir/$ac_prog -c"
1850 break 2
1853 done
1855 esac
1856 done
1857 IFS="$ac_save_IFS"
1860 if test "${ac_cv_path_install+set}" = set; then
1861 INSTALL="$ac_cv_path_install"
1862 else
1863 # As a last resort, use the slow shell script. We don't cache a
1864 # path for INSTALL within a source directory, because that will
1865 # break other packages using the cache if that directory is
1866 # removed, or if the path is relative.
1867 INSTALL="$ac_install_sh"
1870 echo "$ac_t""$INSTALL" 1>&6
1872 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1873 # It thinks the first close brace ends the variable substitution.
1874 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1876 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1878 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1879 echo "configure:1880: checking whether ln -s works" >&5
1880 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1881 echo $ac_n "(cached) $ac_c" 1>&6
1882 else
1883 rm -f conftestdata
1884 if ln -s X conftestdata 2>/dev/null
1885 then
1886 rm -f conftestdata
1887 ac_cv_prog_LN_S="ln -s"
1888 else
1889 ac_cv_prog_LN_S=ln
1892 LN_S="$ac_cv_prog_LN_S"
1893 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1894 echo "$ac_t""yes" 1>&6
1895 else
1896 echo "$ac_t""no" 1>&6
1901 echo $ac_n "checking for i386_set_ldt in -li386""... $ac_c" 1>&6
1902 echo "configure:1903: checking for i386_set_ldt in -li386" >&5
1903 ac_lib_var=`echo i386'_'i386_set_ldt | sed 'y%./+-%__p_%'`
1904 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1905 echo $ac_n "(cached) $ac_c" 1>&6
1906 else
1907 ac_save_LIBS="$LIBS"
1908 LIBS="-li386 $LIBS"
1909 cat > conftest.$ac_ext <<EOF
1910 #line 1911 "configure"
1911 #include "confdefs.h"
1912 /* Override any gcc2 internal prototype to avoid an error. */
1913 /* We use char because int might match the return type of a gcc2
1914 builtin and then its argument prototype would still apply. */
1915 char i386_set_ldt();
1917 int main() {
1918 i386_set_ldt()
1919 ; return 0; }
1921 if { (eval echo configure:1922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1922 rm -rf conftest*
1923 eval "ac_cv_lib_$ac_lib_var=yes"
1924 else
1925 echo "configure: failed program was:" >&5
1926 cat conftest.$ac_ext >&5
1927 rm -rf conftest*
1928 eval "ac_cv_lib_$ac_lib_var=no"
1930 rm -f conftest*
1931 LIBS="$ac_save_LIBS"
1934 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1935 echo "$ac_t""yes" 1>&6
1936 ac_tr_lib=HAVE_LIB`echo i386 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1937 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1938 cat >> confdefs.h <<EOF
1939 #define $ac_tr_lib 1
1942 LIBS="-li386 $LIBS"
1944 else
1945 echo "$ac_t""no" 1>&6
1948 echo $ac_n "checking for iswalnum in -lw""... $ac_c" 1>&6
1949 echo "configure:1950: checking for iswalnum in -lw" >&5
1950 ac_lib_var=`echo w'_'iswalnum | sed 'y%./+-%__p_%'`
1951 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1952 echo $ac_n "(cached) $ac_c" 1>&6
1953 else
1954 ac_save_LIBS="$LIBS"
1955 LIBS="-lw $LIBS"
1956 cat > conftest.$ac_ext <<EOF
1957 #line 1958 "configure"
1958 #include "confdefs.h"
1959 /* Override any gcc2 internal prototype to avoid an error. */
1960 /* We use char because int might match the return type of a gcc2
1961 builtin and then its argument prototype would still apply. */
1962 char iswalnum();
1964 int main() {
1965 iswalnum()
1966 ; return 0; }
1968 if { (eval echo configure:1969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1969 rm -rf conftest*
1970 eval "ac_cv_lib_$ac_lib_var=yes"
1971 else
1972 echo "configure: failed program was:" >&5
1973 cat conftest.$ac_ext >&5
1974 rm -rf conftest*
1975 eval "ac_cv_lib_$ac_lib_var=no"
1977 rm -f conftest*
1978 LIBS="$ac_save_LIBS"
1981 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1982 echo "$ac_t""yes" 1>&6
1983 ac_tr_lib=HAVE_LIB`echo w | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1984 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1985 cat >> confdefs.h <<EOF
1986 #define $ac_tr_lib 1
1989 LIBS="-lw $LIBS"
1991 else
1992 echo "$ac_t""no" 1>&6
1995 echo $ac_n "checking for XF86DGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
1996 echo "configure:1997: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
1997 ac_lib_var=`echo Xxf86dga'_'XF86DGAQueryExtension | sed 'y%./+-%__p_%'`
1998 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1999 echo $ac_n "(cached) $ac_c" 1>&6
2000 else
2001 ac_save_LIBS="$LIBS"
2002 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $LIBS"
2003 cat > conftest.$ac_ext <<EOF
2004 #line 2005 "configure"
2005 #include "confdefs.h"
2006 /* Override any gcc2 internal prototype to avoid an error. */
2007 /* We use char because int might match the return type of a gcc2
2008 builtin and then its argument prototype would still apply. */
2009 char XF86DGAQueryExtension();
2011 int main() {
2012 XF86DGAQueryExtension()
2013 ; return 0; }
2015 if { (eval echo configure:2016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2016 rm -rf conftest*
2017 eval "ac_cv_lib_$ac_lib_var=yes"
2018 else
2019 echo "configure: failed program was:" >&5
2020 cat conftest.$ac_ext >&5
2021 rm -rf conftest*
2022 eval "ac_cv_lib_$ac_lib_var=no"
2024 rm -f conftest*
2025 LIBS="$ac_save_LIBS"
2028 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2029 echo "$ac_t""yes" 1>&6
2030 cat >> confdefs.h <<\EOF
2031 #define HAVE_LIBXXF86DGA 1
2033 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
2034 else
2035 echo "$ac_t""no" 1>&6
2040 echo $ac_n "checking "for Open Sound System"""... $ac_c" 1>&6
2041 echo "configure:2042: checking "for Open Sound System"" >&5
2042 if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem'+set}'`\" = set"; then
2043 echo $ac_n "(cached) $ac_c" 1>&6
2044 else
2045 cat > conftest.$ac_ext <<EOF
2046 #line 2047 "configure"
2047 #include "confdefs.h"
2048 #include <sys/soundcard.h>
2049 int main() {
2051 /* check for one of the Open Sound System specific SNDCTL_ defines */
2052 #if !defined(SNDCTL_DSP_STEREO)
2053 #error No open sound system
2054 #endif
2056 ; return 0; }
2058 if { (eval echo configure:2059: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2059 rm -rf conftest*
2060 ac_cv_c_opensoundsystem="yes"
2061 else
2062 echo "configure: failed program was:" >&5
2063 cat conftest.$ac_ext >&5
2064 rm -rf conftest*
2065 ac_cv_c_opensoundsystem="no"
2067 rm -f conftest*
2070 echo "$ac_t""$ac_cv_c_opensoundsystem" 1>&6
2072 echo $ac_n "checking "for Open Sound System on *BSD"""... $ac_c" 1>&6
2073 echo "configure:2074: checking "for Open Sound System on *BSD"" >&5
2074 if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem_bsd'+set}'`\" = set"; then
2075 echo $ac_n "(cached) $ac_c" 1>&6
2076 else
2077 cat > conftest.$ac_ext <<EOF
2078 #line 2079 "configure"
2079 #include "confdefs.h"
2080 #include <machine/soundcard.h>
2081 int main() {
2083 /* check for one of the Open Sound System specific SNDCTL_ defines */
2084 #if !defined(SNDCTL_DSP_STEREO)
2085 #error No open sound system
2086 #endif
2088 ; return 0; }
2090 if { (eval echo configure:2091: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2091 rm -rf conftest*
2092 ac_cv_c_opensoundsystem_bsd="yes"
2093 else
2094 echo "configure: failed program was:" >&5
2095 cat conftest.$ac_ext >&5
2096 rm -rf conftest*
2097 ac_cv_c_opensoundsystem_bsd="no"
2099 rm -f conftest*
2102 echo "$ac_t""$ac_cv_c_opensoundsystem_bsd" 1>&6
2104 if test "$ac_cv_c_opensoundsystem" = "yes" -o "$ac_cv_c_opensoundsystem_bsd" = "yes"
2105 then
2106 cat >> confdefs.h <<\EOF
2107 #define HAVE_OSS 1
2110 if test "$ac_cv_c_opensoundsystem_bsd" = "yes"
2111 then
2112 cat >> confdefs.h <<\EOF
2113 #define HAVE_MACHINE_SOUNDCARD_H 1
2120 echo $ac_n "checking "for union semun"""... $ac_c" 1>&6
2121 echo "configure:2122: checking "for union semun"" >&5
2122 if eval "test \"`echo '$''{'ac_cv_c_union_semun'+set}'`\" = set"; then
2123 echo $ac_n "(cached) $ac_c" 1>&6
2124 else
2125 cat > conftest.$ac_ext <<EOF
2126 #line 2127 "configure"
2127 #include "confdefs.h"
2128 #include <sys/types.h>
2129 #include <sys/sem.h>
2130 int main() {
2131 union semun foo
2132 ; return 0; }
2134 if { (eval echo configure:2135: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2135 rm -rf conftest*
2136 ac_cv_c_union_semun="yes"
2137 else
2138 echo "configure: failed program was:" >&5
2139 cat conftest.$ac_ext >&5
2140 rm -rf conftest*
2141 ac_cv_c_union_semun="no"
2143 rm -f conftest*
2146 echo "$ac_t""$ac_cv_c_union_semun" 1>&6
2147 if test "$ac_cv_c_union_semun" = "yes"
2148 then
2149 cat >> confdefs.h <<\EOF
2150 #define HAVE_UNION_SEMUN 1
2155 if test "$ac_cv_prog_LN_S" = "ln -s"; then : ; else LN_S=cp ; fi
2158 if test "x${GCC}" = "xyes"
2159 then
2160 CFLAGS="$CFLAGS -Wall"
2161 echo $ac_n "checking "for gcc strength-reduce bug"""... $ac_c" 1>&6
2162 echo "configure:2163: checking "for gcc strength-reduce bug"" >&5
2163 if eval "test \"`echo '$''{'ac_cv_c_gcc_strength_bug'+set}'`\" = set"; then
2164 echo $ac_n "(cached) $ac_c" 1>&6
2165 else
2166 if test "$cross_compiling" = yes; then
2167 ac_cv_c_gcc_strength_bug="yes"
2168 else
2169 cat > conftest.$ac_ext <<EOF
2170 #line 2171 "configure"
2171 #include "confdefs.h"
2173 int main(void) {
2174 static int Array[3];
2175 unsigned int B = 3;
2176 int i;
2177 for(i=0; i<B; i++) Array[i] = i - 3;
2178 exit( Array[1] != -2 );
2181 if { (eval echo configure:2182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2182 then
2183 ac_cv_c_gcc_strength_bug="no"
2184 else
2185 echo "configure: failed program was:" >&5
2186 cat conftest.$ac_ext >&5
2187 rm -fr conftest*
2188 ac_cv_c_gcc_strength_bug="yes"
2190 rm -fr conftest*
2195 echo "$ac_t""$ac_cv_c_gcc_strength_bug" 1>&6
2196 if test "$ac_cv_c_gcc_strength_bug" = "yes"
2197 then
2198 CFLAGS="$CFLAGS -fno-strength-reduce"
2203 echo $ac_n "checking "whether external symbols need an underscore prefix"""... $ac_c" 1>&6
2204 echo "configure:2205: checking "whether external symbols need an underscore prefix"" >&5
2205 if eval "test \"`echo '$''{'ac_cv_c_extern_prefix'+set}'`\" = set"; then
2206 echo $ac_n "(cached) $ac_c" 1>&6
2207 else
2208 saved_libs=$LIBS
2209 LIBS="conftest_asm.s $LIBS"
2210 cat > conftest_asm.s <<EOF
2211 .globl _ac_test
2212 _ac_test:
2213 .long 0
2215 cat > conftest.$ac_ext <<EOF
2216 #line 2217 "configure"
2217 #include "confdefs.h"
2218 extern int ac_test;
2219 int main() {
2220 if (ac_test) return 1
2221 ; return 0; }
2223 if { (eval echo configure:2224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2224 rm -rf conftest*
2225 ac_cv_c_extern_prefix="yes"
2226 else
2227 echo "configure: failed program was:" >&5
2228 cat conftest.$ac_ext >&5
2229 rm -rf conftest*
2230 ac_cv_c_extern_prefix="no"
2232 rm -f conftest*
2233 LIBS=$saved_libs
2236 echo "$ac_t""$ac_cv_c_extern_prefix" 1>&6
2237 if test "$ac_cv_c_extern_prefix" = "yes"
2238 then
2239 cat >> confdefs.h <<\EOF
2240 #define NEED_UNDERSCORE_PREFIX 1
2246 echo $ac_n "checking "whether assembler accepts .string"""... $ac_c" 1>&6
2247 echo "configure:2248: checking "whether assembler accepts .string"" >&5
2248 if eval "test \"`echo '$''{'ac_cv_c_asm_string'+set}'`\" = set"; then
2249 echo $ac_n "(cached) $ac_c" 1>&6
2250 else
2251 saved_libs=$LIBS
2252 LIBS="conftest_asm.s $LIBS"
2253 cat > conftest_asm.s <<EOF
2254 .string "test"
2256 cat > conftest.$ac_ext <<EOF
2257 #line 2258 "configure"
2258 #include "confdefs.h"
2260 int main() {
2262 ; return 0; }
2264 if { (eval echo configure:2265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2265 rm -rf conftest*
2266 ac_cv_c_asm_string="yes"
2267 else
2268 echo "configure: failed program was:" >&5
2269 cat conftest.$ac_ext >&5
2270 rm -rf conftest*
2271 ac_cv_c_asm_string="no"
2273 rm -f conftest*
2274 LIBS=$saved_libs
2277 echo "$ac_t""$ac_cv_c_asm_string" 1>&6
2278 if test "$ac_cv_c_asm_string" = "yes"
2279 then
2280 cat >> confdefs.h <<\EOF
2281 #define HAVE_ASM_STRING 1
2287 DLLFLAGS=""
2288 if test "$LIB_TARGET" = "libwine.so.1.0"
2289 then
2290 echo $ac_n "checking "whether we can build a dll"""... $ac_c" 1>&6
2291 echo "configure:2292: checking "whether we can build a dll"" >&5
2292 if eval "test \"`echo '$''{'ac_cv_c_dll'+set}'`\" = set"; then
2293 echo $ac_n "(cached) $ac_c" 1>&6
2294 else
2295 saved_cflags=$CFLAGS
2296 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0"
2297 cat > conftest.$ac_ext <<EOF
2298 #line 2299 "configure"
2299 #include "confdefs.h"
2301 int main() {
2302 return 1
2303 ; return 0; }
2305 if { (eval echo configure:2306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2306 rm -rf conftest*
2307 ac_cv_c_dll="yes"
2308 else
2309 echo "configure: failed program was:" >&5
2310 cat conftest.$ac_ext >&5
2311 rm -rf conftest*
2312 ac_cv_c_dll="no"
2314 rm -f conftest*
2315 CFLAGS=$saved_cflags
2319 echo "$ac_t""$ac_cv_c_dll" 1>&6
2320 if test "$ac_cv_c_dll" = "yes"
2321 then
2322 DLLFLAGS="-fPIC"
2323 else
2324 LIB_TARGET="libwine.a"
2330 echo $ac_n "checking "for reentrant X libraries"""... $ac_c" 1>&6
2331 echo "configure:2332: checking "for reentrant X libraries"" >&5
2332 if eval "test \"`echo '$''{'wine_cv_x_reentrant'+set}'`\" = set"; then
2333 echo $ac_n "(cached) $ac_c" 1>&6
2334 else
2335 if test "x$with_reentrant_x" = "xno"
2336 then
2337 wine_cv_x_reentrant=no
2338 else
2339 libX11_ckeck=none
2340 for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do
2341 if test -e $dir/libX11.so; then
2342 libX11_check="-D $dir/libX11.so"
2343 break 1
2345 if test -e $dir/libX11.a; then
2346 libX11_check="$dir/libX11.a"
2347 break 1
2349 done
2350 if test "$libX11_check" != "none"; then
2351 if nm $libX11_check | grep -q __errno_location; then
2352 wine_cv_x_reentrant=yes
2353 else
2354 wine_cv_x_reentrant=no
2356 else
2357 wine_cv_x_reentrant=unknown
2362 echo "$ac_t""$wine_cv_x_reentrant" 1>&6
2363 if test "$wine_cv_x_reentrant" = "no"
2364 then
2365 cat >> confdefs.h <<\EOF
2366 #define NO_REENTRANT_X11 1
2372 for ac_func in clone memmove strerror tcgetattr timegm usleep wait4 waitpid
2374 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2375 echo "configure:2376: checking for $ac_func" >&5
2376 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2377 echo $ac_n "(cached) $ac_c" 1>&6
2378 else
2379 cat > conftest.$ac_ext <<EOF
2380 #line 2381 "configure"
2381 #include "confdefs.h"
2382 /* System header to define __stub macros and hopefully few prototypes,
2383 which can conflict with char $ac_func(); below. */
2384 #include <assert.h>
2385 /* Override any gcc2 internal prototype to avoid an error. */
2386 /* We use char because int might match the return type of a gcc2
2387 builtin and then its argument prototype would still apply. */
2388 char $ac_func();
2390 int main() {
2392 /* The GNU C library defines this for functions which it implements
2393 to always fail with ENOSYS. Some functions are actually named
2394 something starting with __ and the normal name is an alias. */
2395 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2396 choke me
2397 #else
2398 $ac_func();
2399 #endif
2401 ; return 0; }
2403 if { (eval echo configure:2404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2404 rm -rf conftest*
2405 eval "ac_cv_func_$ac_func=yes"
2406 else
2407 echo "configure: failed program was:" >&5
2408 cat conftest.$ac_ext >&5
2409 rm -rf conftest*
2410 eval "ac_cv_func_$ac_func=no"
2412 rm -f conftest*
2415 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2416 echo "$ac_t""yes" 1>&6
2417 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2418 cat >> confdefs.h <<EOF
2419 #define $ac_tr_func 1
2422 else
2423 echo "$ac_t""no" 1>&6
2425 done
2427 for ac_hdr in wctype.h
2429 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2430 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2431 echo "configure:2432: checking for $ac_hdr" >&5
2432 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2433 echo $ac_n "(cached) $ac_c" 1>&6
2434 else
2435 cat > conftest.$ac_ext <<EOF
2436 #line 2437 "configure"
2437 #include "confdefs.h"
2438 #include <$ac_hdr>
2440 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2441 { (eval echo configure:2442: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2442 ac_err=`grep -v '^ *+' conftest.out`
2443 if test -z "$ac_err"; then
2444 rm -rf conftest*
2445 eval "ac_cv_header_$ac_safe=yes"
2446 else
2447 echo "$ac_err" >&5
2448 echo "configure: failed program was:" >&5
2449 cat conftest.$ac_ext >&5
2450 rm -rf conftest*
2451 eval "ac_cv_header_$ac_safe=no"
2453 rm -f conftest*
2455 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2456 echo "$ac_t""yes" 1>&6
2457 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2458 cat >> confdefs.h <<EOF
2459 #define $ac_tr_hdr 1
2462 else
2463 echo "$ac_t""no" 1>&6
2465 done
2467 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
2468 echo "configure:2469: checking whether stat file-mode macros are broken" >&5
2469 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
2470 echo $ac_n "(cached) $ac_c" 1>&6
2471 else
2472 cat > conftest.$ac_ext <<EOF
2473 #line 2474 "configure"
2474 #include "confdefs.h"
2475 #include <sys/types.h>
2476 #include <sys/stat.h>
2478 #if defined(S_ISBLK) && defined(S_IFDIR)
2479 # if S_ISBLK (S_IFDIR)
2480 You lose.
2481 # endif
2482 #endif
2484 #if defined(S_ISBLK) && defined(S_IFCHR)
2485 # if S_ISBLK (S_IFCHR)
2486 You lose.
2487 # endif
2488 #endif
2490 #if defined(S_ISLNK) && defined(S_IFREG)
2491 # if S_ISLNK (S_IFREG)
2492 You lose.
2493 # endif
2494 #endif
2496 #if defined(S_ISSOCK) && defined(S_IFREG)
2497 # if S_ISSOCK (S_IFREG)
2498 You lose.
2499 # endif
2500 #endif
2503 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2504 egrep "You lose" >/dev/null 2>&1; then
2505 rm -rf conftest*
2506 ac_cv_header_stat_broken=yes
2507 else
2508 rm -rf conftest*
2509 ac_cv_header_stat_broken=no
2511 rm -f conftest*
2515 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
2516 if test $ac_cv_header_stat_broken = yes; then
2517 cat >> confdefs.h <<\EOF
2518 #define STAT_MACROS_BROKEN 1
2523 echo $ac_n "checking for working const""... $ac_c" 1>&6
2524 echo "configure:2525: checking for working const" >&5
2525 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2526 echo $ac_n "(cached) $ac_c" 1>&6
2527 else
2528 cat > conftest.$ac_ext <<EOF
2529 #line 2530 "configure"
2530 #include "confdefs.h"
2532 int main() {
2534 /* Ultrix mips cc rejects this. */
2535 typedef int charset[2]; const charset x;
2536 /* SunOS 4.1.1 cc rejects this. */
2537 char const *const *ccp;
2538 char **p;
2539 /* NEC SVR4.0.2 mips cc rejects this. */
2540 struct point {int x, y;};
2541 static struct point const zero = {0,0};
2542 /* AIX XL C 1.02.0.0 rejects this.
2543 It does not let you subtract one const X* pointer from another in an arm
2544 of an if-expression whose if-part is not a constant expression */
2545 const char *g = "string";
2546 ccp = &g + (g ? g-g : 0);
2547 /* HPUX 7.0 cc rejects these. */
2548 ++ccp;
2549 p = (char**) ccp;
2550 ccp = (char const *const *) p;
2551 { /* SCO 3.2v4 cc rejects this. */
2552 char *t;
2553 char const *s = 0 ? (char *) 0 : (char const *) 0;
2555 *t++ = 0;
2557 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2558 int x[] = {25, 17};
2559 const int *foo = &x[0];
2560 ++foo;
2562 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2563 typedef const int *iptr;
2564 iptr p = 0;
2565 ++p;
2567 { /* AIX XL C 1.02.0.0 rejects this saying
2568 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2569 struct s { int j; const int *ap[3]; };
2570 struct s *b; b->j = 5;
2572 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2573 const int foo = 10;
2576 ; return 0; }
2578 if { (eval echo configure:2579: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2579 rm -rf conftest*
2580 ac_cv_c_const=yes
2581 else
2582 echo "configure: failed program was:" >&5
2583 cat conftest.$ac_ext >&5
2584 rm -rf conftest*
2585 ac_cv_c_const=no
2587 rm -f conftest*
2590 echo "$ac_t""$ac_cv_c_const" 1>&6
2591 if test $ac_cv_c_const = no; then
2592 cat >> confdefs.h <<\EOF
2593 #define const
2598 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2599 echo "configure:2600: checking for ANSI C header files" >&5
2600 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2601 echo $ac_n "(cached) $ac_c" 1>&6
2602 else
2603 cat > conftest.$ac_ext <<EOF
2604 #line 2605 "configure"
2605 #include "confdefs.h"
2606 #include <stdlib.h>
2607 #include <stdarg.h>
2608 #include <string.h>
2609 #include <float.h>
2611 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2612 { (eval echo configure:2613: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2613 ac_err=`grep -v '^ *+' conftest.out`
2614 if test -z "$ac_err"; then
2615 rm -rf conftest*
2616 ac_cv_header_stdc=yes
2617 else
2618 echo "$ac_err" >&5
2619 echo "configure: failed program was:" >&5
2620 cat conftest.$ac_ext >&5
2621 rm -rf conftest*
2622 ac_cv_header_stdc=no
2624 rm -f conftest*
2626 if test $ac_cv_header_stdc = yes; then
2627 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2628 cat > conftest.$ac_ext <<EOF
2629 #line 2630 "configure"
2630 #include "confdefs.h"
2631 #include <string.h>
2633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2634 egrep "memchr" >/dev/null 2>&1; then
2636 else
2637 rm -rf conftest*
2638 ac_cv_header_stdc=no
2640 rm -f conftest*
2644 if test $ac_cv_header_stdc = yes; then
2645 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2646 cat > conftest.$ac_ext <<EOF
2647 #line 2648 "configure"
2648 #include "confdefs.h"
2649 #include <stdlib.h>
2651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2652 egrep "free" >/dev/null 2>&1; then
2654 else
2655 rm -rf conftest*
2656 ac_cv_header_stdc=no
2658 rm -f conftest*
2662 if test $ac_cv_header_stdc = yes; then
2663 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2664 if test "$cross_compiling" = yes; then
2666 else
2667 cat > conftest.$ac_ext <<EOF
2668 #line 2669 "configure"
2669 #include "confdefs.h"
2670 #include <ctype.h>
2671 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2672 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2673 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2674 int main () { int i; for (i = 0; i < 256; i++)
2675 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2676 exit (0); }
2679 if { (eval echo configure:2680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2680 then
2682 else
2683 echo "configure: failed program was:" >&5
2684 cat conftest.$ac_ext >&5
2685 rm -fr conftest*
2686 ac_cv_header_stdc=no
2688 rm -fr conftest*
2694 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2695 if test $ac_cv_header_stdc = yes; then
2696 cat >> confdefs.h <<\EOF
2697 #define STDC_HEADERS 1
2702 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2703 echo "configure:2704: checking for size_t" >&5
2704 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2705 echo $ac_n "(cached) $ac_c" 1>&6
2706 else
2707 cat > conftest.$ac_ext <<EOF
2708 #line 2709 "configure"
2709 #include "confdefs.h"
2710 #include <sys/types.h>
2711 #if STDC_HEADERS
2712 #include <stdlib.h>
2713 #include <stddef.h>
2714 #endif
2716 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2717 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2718 rm -rf conftest*
2719 ac_cv_type_size_t=yes
2720 else
2721 rm -rf conftest*
2722 ac_cv_type_size_t=no
2724 rm -f conftest*
2727 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2728 if test $ac_cv_type_size_t = no; then
2729 cat >> confdefs.h <<\EOF
2730 #define size_t unsigned
2737 MAKE_RULES=Make.rules
2740 trap '' 1 2 15
2741 cat > confcache <<\EOF
2742 # This file is a shell script that caches the results of configure
2743 # tests run on this system so they can be shared between configure
2744 # scripts and configure runs. It is not useful on other systems.
2745 # If it contains results you don't want to keep, you may remove or edit it.
2747 # By default, configure uses ./config.cache as the cache file,
2748 # creating it if it does not exist already. You can give configure
2749 # the --cache-file=FILE option to use a different cache file; that is
2750 # what configure does when it calls configure scripts in
2751 # subdirectories, so they share the cache.
2752 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2753 # config.status only pays attention to the cache file if you give it the
2754 # --recheck option to rerun configure.
2757 # The following way of writing the cache mishandles newlines in values,
2758 # but we know of no workaround that is simple, portable, and efficient.
2759 # So, don't put newlines in cache variables' values.
2760 # Ultrix sh set writes to stderr and can't be redirected directly,
2761 # and sets the high bit in the cache file unless we assign to the vars.
2762 (set) 2>&1 |
2763 case `(ac_space=' '; set) 2>&1` in
2764 *ac_space=\ *)
2765 # `set' does not quote correctly, so add quotes (double-quote substitution
2766 # turns \\\\ into \\, and sed turns \\ into \).
2767 sed -n \
2768 -e "s/'/'\\\\''/g" \
2769 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2772 # `set' quotes correctly as required by POSIX, so do not add quotes.
2773 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2775 esac >> confcache
2776 if cmp -s $cache_file confcache; then
2778 else
2779 if test -w $cache_file; then
2780 echo "updating cache $cache_file"
2781 cat confcache > $cache_file
2782 else
2783 echo "not updating unwritable cache $cache_file"
2786 rm -f confcache
2788 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2790 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2791 # Let make expand exec_prefix.
2792 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2794 # Any assignment to VPATH causes Sun make to only execute
2795 # the first set of double-colon rules, so remove it if not needed.
2796 # If there is a colon in the path, we need to keep it.
2797 if test "x$srcdir" = x.; then
2798 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2801 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2803 DEFS=-DHAVE_CONFIG_H
2805 # Without the "./", some shells look in PATH for config.status.
2806 : ${CONFIG_STATUS=./config.status}
2808 echo creating $CONFIG_STATUS
2809 rm -f $CONFIG_STATUS
2810 cat > $CONFIG_STATUS <<EOF
2811 #! /bin/sh
2812 # Generated automatically by configure.
2813 # Run this file to recreate the current configuration.
2814 # This directory was configured as follows,
2815 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2817 # $0 $ac_configure_args
2819 # Compiler output produced by configure, useful for debugging
2820 # configure, is in ./config.log if it exists.
2822 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2823 for ac_option
2825 case "\$ac_option" in
2826 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2827 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2828 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2829 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2830 echo "$CONFIG_STATUS generated by autoconf version 2.12"
2831 exit 0 ;;
2832 -help | --help | --hel | --he | --h)
2833 echo "\$ac_cs_usage"; exit 0 ;;
2834 *) echo "\$ac_cs_usage"; exit 1 ;;
2835 esac
2836 done
2838 ac_given_srcdir=$srcdir
2839 ac_given_INSTALL="$INSTALL"
2841 trap 'rm -fr `echo "
2842 Make.rules
2843 Makefile
2844 controls/Makefile
2845 debugger/Makefile
2846 documentation/Makefile
2847 files/Makefile
2848 graphics/Makefile
2849 graphics/metafiledrv/Makefile
2850 graphics/win16drv/Makefile
2851 graphics/x11drv/Makefile
2852 if1632/Makefile
2853 ipc/Makefile
2854 library/Makefile
2855 libtest/Makefile
2856 loader/Makefile
2857 memory/Makefile
2858 misc/Makefile
2859 miscemu/Makefile
2860 msdos/Makefile
2861 multimedia/Makefile
2862 objects/Makefile
2863 ole/Makefile
2864 programs/Makefile
2865 programs/clock/Makefile
2866 programs/notepad/Makefile
2867 programs/progman/Makefile
2868 programs/view/Makefile
2869 programs/winhelp/Makefile
2870 programs/winver/Makefile
2871 rc/Makefile
2872 relay32/Makefile
2873 resources/Makefile
2874 scheduler/Makefile
2875 tools/Makefile
2876 tsx11/Makefile
2877 win32/Makefile
2878 windows/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2880 cat >> $CONFIG_STATUS <<EOF
2882 # Protect against being on the right side of a sed subst in config.status.
2883 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2884 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2885 $ac_vpsub
2886 $extrasub
2887 s%@CFLAGS@%$CFLAGS%g
2888 s%@CPPFLAGS@%$CPPFLAGS%g
2889 s%@CXXFLAGS@%$CXXFLAGS%g
2890 s%@DEFS@%$DEFS%g
2891 s%@LDFLAGS@%$LDFLAGS%g
2892 s%@LIBS@%$LIBS%g
2893 s%@exec_prefix@%$exec_prefix%g
2894 s%@prefix@%$prefix%g
2895 s%@program_transform_name@%$program_transform_name%g
2896 s%@bindir@%$bindir%g
2897 s%@sbindir@%$sbindir%g
2898 s%@libexecdir@%$libexecdir%g
2899 s%@datadir@%$datadir%g
2900 s%@sysconfdir@%$sysconfdir%g
2901 s%@sharedstatedir@%$sharedstatedir%g
2902 s%@localstatedir@%$localstatedir%g
2903 s%@libdir@%$libdir%g
2904 s%@includedir@%$includedir%g
2905 s%@oldincludedir@%$oldincludedir%g
2906 s%@infodir@%$infodir%g
2907 s%@mandir@%$mandir%g
2908 s%@PROGEXT@%$PROGEXT%g
2909 s%@MAIN_TARGET@%$MAIN_TARGET%g
2910 s%@LIB_TARGET@%$LIB_TARGET%g
2911 s%@OPTIONS@%$OPTIONS%g
2912 s%@SET_MAKE@%$SET_MAKE%g
2913 s%@CC@%$CC%g
2914 s%@CPP@%$CPP%g
2915 s%@X_CFLAGS@%$X_CFLAGS%g
2916 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
2917 s%@X_LIBS@%$X_LIBS%g
2918 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
2919 s%@YACC@%$YACC%g
2920 s%@LEX@%$LEX%g
2921 s%@LEXLIB@%$LEXLIB%g
2922 s%@RANLIB@%$RANLIB%g
2923 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2924 s%@INSTALL_DATA@%$INSTALL_DATA%g
2925 s%@LN_S@%$LN_S%g
2926 s%@DLLFLAGS@%$DLLFLAGS%g
2927 /@MAKE_RULES@/r $MAKE_RULES
2928 s%@MAKE_RULES@%%g
2930 CEOF
2933 cat >> $CONFIG_STATUS <<\EOF
2935 # Split the substitutions into bite-sized pieces for seds with
2936 # small command number limits, like on Digital OSF/1 and HP-UX.
2937 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2938 ac_file=1 # Number of current file.
2939 ac_beg=1 # First line for current file.
2940 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2941 ac_more_lines=:
2942 ac_sed_cmds=""
2943 while $ac_more_lines; do
2944 if test $ac_beg -gt 1; then
2945 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2946 else
2947 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2949 if test ! -s conftest.s$ac_file; then
2950 ac_more_lines=false
2951 rm -f conftest.s$ac_file
2952 else
2953 if test -z "$ac_sed_cmds"; then
2954 ac_sed_cmds="sed -f conftest.s$ac_file"
2955 else
2956 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2958 ac_file=`expr $ac_file + 1`
2959 ac_beg=$ac_end
2960 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2962 done
2963 if test -z "$ac_sed_cmds"; then
2964 ac_sed_cmds=cat
2968 cat >> $CONFIG_STATUS <<EOF
2970 CONFIG_FILES=\${CONFIG_FILES-"Make.rules
2971 Makefile
2972 controls/Makefile
2973 debugger/Makefile
2974 documentation/Makefile
2975 files/Makefile
2976 graphics/Makefile
2977 graphics/metafiledrv/Makefile
2978 graphics/win16drv/Makefile
2979 graphics/x11drv/Makefile
2980 if1632/Makefile
2981 ipc/Makefile
2982 library/Makefile
2983 libtest/Makefile
2984 loader/Makefile
2985 memory/Makefile
2986 misc/Makefile
2987 miscemu/Makefile
2988 msdos/Makefile
2989 multimedia/Makefile
2990 objects/Makefile
2991 ole/Makefile
2992 programs/Makefile
2993 programs/clock/Makefile
2994 programs/notepad/Makefile
2995 programs/progman/Makefile
2996 programs/view/Makefile
2997 programs/winhelp/Makefile
2998 programs/winver/Makefile
2999 rc/Makefile
3000 relay32/Makefile
3001 resources/Makefile
3002 scheduler/Makefile
3003 tools/Makefile
3004 tsx11/Makefile
3005 win32/Makefile
3006 windows/Makefile "}
3008 cat >> $CONFIG_STATUS <<\EOF
3009 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3010 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3011 case "$ac_file" in
3012 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3013 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3014 *) ac_file_in="${ac_file}.in" ;;
3015 esac
3017 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3019 # Remove last slash and all that follows it. Not all systems have dirname.
3020 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3021 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3022 # The file is in a subdirectory.
3023 test ! -d "$ac_dir" && mkdir "$ac_dir"
3024 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3025 # A "../" for each directory in $ac_dir_suffix.
3026 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3027 else
3028 ac_dir_suffix= ac_dots=
3031 case "$ac_given_srcdir" in
3032 .) srcdir=.
3033 if test -z "$ac_dots"; then top_srcdir=.
3034 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3035 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3036 *) # Relative path.
3037 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3038 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3039 esac
3041 case "$ac_given_INSTALL" in
3042 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3043 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3044 esac
3046 echo creating "$ac_file"
3047 rm -f "$ac_file"
3048 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3049 case "$ac_file" in
3050 *Makefile*) ac_comsub="1i\\
3051 # $configure_input" ;;
3052 *) ac_comsub= ;;
3053 esac
3055 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3056 sed -e "$ac_comsub
3057 s%@configure_input@%$configure_input%g
3058 s%@srcdir@%$srcdir%g
3059 s%@top_srcdir@%$top_srcdir%g
3060 s%@INSTALL@%$INSTALL%g
3061 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3062 fi; done
3063 rm -f conftest.s*
3065 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3066 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3068 # ac_d sets the value in "#define NAME VALUE" lines.
3069 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3070 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3071 ac_dC='\3'
3072 ac_dD='%g'
3073 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3074 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3075 ac_uB='\([ ]\)%\1#\2define\3'
3076 ac_uC=' '
3077 ac_uD='\4%g'
3078 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3079 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3080 ac_eB='$%\1#\2define\3'
3081 ac_eC=' '
3082 ac_eD='%g'
3084 if test "${CONFIG_HEADERS+set}" != set; then
3086 cat >> $CONFIG_STATUS <<EOF
3087 CONFIG_HEADERS="include/config.h"
3089 cat >> $CONFIG_STATUS <<\EOF
3091 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3092 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3093 case "$ac_file" in
3094 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3095 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3096 *) ac_file_in="${ac_file}.in" ;;
3097 esac
3099 echo creating $ac_file
3101 rm -f conftest.frag conftest.in conftest.out
3102 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3103 cat $ac_file_inputs > conftest.in
3107 # Transform confdefs.h into a sed script conftest.vals that substitutes
3108 # the proper values into config.h.in to produce config.h. And first:
3109 # Protect against being on the right side of a sed subst in config.status.
3110 # Protect against being in an unquoted here document in config.status.
3111 rm -f conftest.vals
3112 cat > conftest.hdr <<\EOF
3113 s/[\\&%]/\\&/g
3114 s%[\\$`]%\\&%g
3115 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3116 s%ac_d%ac_u%gp
3117 s%ac_u%ac_e%gp
3119 sed -n -f conftest.hdr confdefs.h > conftest.vals
3120 rm -f conftest.hdr
3122 # This sed command replaces #undef with comments. This is necessary, for
3123 # example, in the case of _POSIX_SOURCE, which is predefined and required
3124 # on some systems where configure will not decide to define it.
3125 cat >> conftest.vals <<\EOF
3126 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3129 # Break up conftest.vals because some shells have a limit on
3130 # the size of here documents, and old seds have small limits too.
3132 rm -f conftest.tail
3133 while :
3135 ac_lines=`grep -c . conftest.vals`
3136 # grep -c gives empty output for an empty file on some AIX systems.
3137 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3138 # Write a limited-size here document to conftest.frag.
3139 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3140 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3141 echo 'CEOF
3142 sed -f conftest.frag conftest.in > conftest.out
3143 rm -f conftest.in
3144 mv conftest.out conftest.in
3145 ' >> $CONFIG_STATUS
3146 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3147 rm -f conftest.vals
3148 mv conftest.tail conftest.vals
3149 done
3150 rm -f conftest.vals
3152 cat >> $CONFIG_STATUS <<\EOF
3153 rm -f conftest.frag conftest.h
3154 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3155 cat conftest.in >> conftest.h
3156 rm -f conftest.in
3157 if cmp -s $ac_file conftest.h 2>/dev/null; then
3158 echo "$ac_file is unchanged"
3159 rm -f conftest.h
3160 else
3161 # Remove last slash and all that follows it. Not all systems have dirname.
3162 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3163 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3164 # The file is in a subdirectory.
3165 test ! -d "$ac_dir" && mkdir "$ac_dir"
3167 rm -f $ac_file
3168 mv conftest.h $ac_file
3170 fi; done
3173 cat >> $CONFIG_STATUS <<EOF
3176 cat >> $CONFIG_STATUS <<\EOF
3178 exit 0
3180 chmod +x $CONFIG_STATUS
3181 rm -fr confdefs* $ac_clean_files
3182 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3185 echo
3186 echo "Configure finished. Do 'make depend; make' to compile Wine."
3187 echo