Release 970101
[wine/multimedia.git] / configure
blob8189b701f44ee408d27e914986a518dac6745bb3
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 --with-library build Wine as a library instead of an emulator"
17 ac_help="$ac_help
18 --with-dll build Wine as a DLL instead of an emulator"
19 ac_help="$ac_help
20 --with-ipc use inter-process communication for DDE"
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 test -z "$LDLIBS" && LDLIBS=-lm
555 # Check whether --with-library or --without-library was given.
556 if test "${with_library+set}" = set; then
557 withval="$with_library"
558 OPTIONS="-DWINELIB" MAIN_TARGET="libwine.a"
559 else
560 OPTIONS="" MAIN_TARGET="wine"
564 # Check whether --with-dll or --without-dll was given.
565 if test "${with_dll+set}" = set; then
566 withval="$with_dll"
567 OPTIONS="-DWINELIB" MAIN_TARGET="libwine.so.1.0"
571 # Check whether --with-ipc or --without-ipc was given.
572 if test "${with_ipc+set}" = set; then
573 withval="$with_ipc"
574 OPTIONS="$OPTIONS -DCONFIG_IPC"
582 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
583 echo "configure:584: checking whether ${MAKE-make} sets \${MAKE}" >&5
584 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
585 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
586 echo $ac_n "(cached) $ac_c" 1>&6
587 else
588 cat > conftestmake <<\EOF
589 all:
590 @echo 'ac_maketemp="${MAKE}"'
592 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
593 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
594 if test -n "$ac_maketemp"; then
595 eval ac_cv_prog_make_${ac_make}_set=yes
596 else
597 eval ac_cv_prog_make_${ac_make}_set=no
599 rm -f conftestmake
601 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
602 echo "$ac_t""yes" 1>&6
603 SET_MAKE=
604 else
605 echo "$ac_t""no" 1>&6
606 SET_MAKE="MAKE=${MAKE-make}"
609 # Extract the first word of "gcc", so it can be a program name with args.
610 set dummy gcc; ac_word=$2
611 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
612 echo "configure:613: checking for $ac_word" >&5
613 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
614 echo $ac_n "(cached) $ac_c" 1>&6
615 else
616 if test -n "$CC"; then
617 ac_cv_prog_CC="$CC" # Let the user override the test.
618 else
619 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
620 for ac_dir in $PATH; do
621 test -z "$ac_dir" && ac_dir=.
622 if test -f $ac_dir/$ac_word; then
623 ac_cv_prog_CC="gcc"
624 break
626 done
627 IFS="$ac_save_ifs"
630 CC="$ac_cv_prog_CC"
631 if test -n "$CC"; then
632 echo "$ac_t""$CC" 1>&6
633 else
634 echo "$ac_t""no" 1>&6
637 if test -z "$CC"; then
638 # Extract the first word of "cc", so it can be a program name with args.
639 set dummy cc; ac_word=$2
640 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
641 echo "configure:642: checking for $ac_word" >&5
642 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
643 echo $ac_n "(cached) $ac_c" 1>&6
644 else
645 if test -n "$CC"; then
646 ac_cv_prog_CC="$CC" # Let the user override the test.
647 else
648 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
649 ac_prog_rejected=no
650 for ac_dir in $PATH; do
651 test -z "$ac_dir" && ac_dir=.
652 if test -f $ac_dir/$ac_word; then
653 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
654 ac_prog_rejected=yes
655 continue
657 ac_cv_prog_CC="cc"
658 break
660 done
661 IFS="$ac_save_ifs"
662 if test $ac_prog_rejected = yes; then
663 # We found a bogon in the path, so make sure we never use it.
664 set dummy $ac_cv_prog_CC
665 shift
666 if test $# -gt 0; then
667 # We chose a different compiler from the bogus one.
668 # However, it has the same basename, so the bogon will be chosen
669 # first if we set CC to just the basename; use the full file name.
670 shift
671 set dummy "$ac_dir/$ac_word" "$@"
672 shift
673 ac_cv_prog_CC="$@"
678 CC="$ac_cv_prog_CC"
679 if test -n "$CC"; then
680 echo "$ac_t""$CC" 1>&6
681 else
682 echo "$ac_t""no" 1>&6
685 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
688 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
689 echo "configure:690: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
691 ac_ext=c
692 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
693 ac_cpp='$CPP $CPPFLAGS'
694 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
695 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
696 cross_compiling=$ac_cv_prog_cc_cross
698 cat > conftest.$ac_ext <<EOF
699 #line 700 "configure"
700 #include "confdefs.h"
701 main(){return(0);}
703 if { (eval echo configure:704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
704 ac_cv_prog_cc_works=yes
705 # If we can't run a trivial program, we are probably using a cross compiler.
706 if (./conftest; exit) 2>/dev/null; then
707 ac_cv_prog_cc_cross=no
708 else
709 ac_cv_prog_cc_cross=yes
711 else
712 echo "configure: failed program was:" >&5
713 cat conftest.$ac_ext >&5
714 ac_cv_prog_cc_works=no
716 rm -fr conftest*
718 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
719 if test $ac_cv_prog_cc_works = no; then
720 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
722 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
723 echo "configure:724: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
724 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
725 cross_compiling=$ac_cv_prog_cc_cross
727 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
728 echo "configure:729: checking whether we are using GNU C" >&5
729 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
730 echo $ac_n "(cached) $ac_c" 1>&6
731 else
732 cat > conftest.c <<EOF
733 #ifdef __GNUC__
734 yes;
735 #endif
737 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:738: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
738 ac_cv_prog_gcc=yes
739 else
740 ac_cv_prog_gcc=no
744 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
746 if test $ac_cv_prog_gcc = yes; then
747 GCC=yes
748 ac_test_CFLAGS="${CFLAGS+set}"
749 ac_save_CFLAGS="$CFLAGS"
750 CFLAGS=
751 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
752 echo "configure:753: checking whether ${CC-cc} accepts -g" >&5
753 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
754 echo $ac_n "(cached) $ac_c" 1>&6
755 else
756 echo 'void f(){}' > conftest.c
757 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
758 ac_cv_prog_cc_g=yes
759 else
760 ac_cv_prog_cc_g=no
762 rm -f conftest*
766 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
767 if test "$ac_test_CFLAGS" = set; then
768 CFLAGS="$ac_save_CFLAGS"
769 elif test $ac_cv_prog_cc_g = yes; then
770 CFLAGS="-g -O2"
771 else
772 CFLAGS="-O2"
774 else
775 GCC=
776 test "${CFLAGS+set}" = set || CFLAGS="-g"
779 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
780 echo "configure:781: checking how to run the C preprocessor" >&5
781 # On Suns, sometimes $CPP names a directory.
782 if test -n "$CPP" && test -d "$CPP"; then
783 CPP=
785 if test -z "$CPP"; then
786 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
787 echo $ac_n "(cached) $ac_c" 1>&6
788 else
789 # This must be in double quotes, not single quotes, because CPP may get
790 # substituted into the Makefile and "${CC-cc}" will confuse make.
791 CPP="${CC-cc} -E"
792 # On the NeXT, cc -E runs the code through the compiler's parser,
793 # not just through cpp.
794 cat > conftest.$ac_ext <<EOF
795 #line 796 "configure"
796 #include "confdefs.h"
797 #include <assert.h>
798 Syntax Error
800 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
801 { (eval echo configure:802: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
802 ac_err=`grep -v '^ *+' conftest.out`
803 if test -z "$ac_err"; then
805 else
806 echo "$ac_err" >&5
807 echo "configure: failed program was:" >&5
808 cat conftest.$ac_ext >&5
809 rm -rf conftest*
810 CPP="${CC-cc} -E -traditional-cpp"
811 cat > conftest.$ac_ext <<EOF
812 #line 813 "configure"
813 #include "confdefs.h"
814 #include <assert.h>
815 Syntax Error
817 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
818 { (eval echo configure:819: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
819 ac_err=`grep -v '^ *+' conftest.out`
820 if test -z "$ac_err"; then
822 else
823 echo "$ac_err" >&5
824 echo "configure: failed program was:" >&5
825 cat conftest.$ac_ext >&5
826 rm -rf conftest*
827 CPP=/lib/cpp
829 rm -f conftest*
831 rm -f conftest*
832 ac_cv_prog_CPP="$CPP"
834 CPP="$ac_cv_prog_CPP"
835 else
836 ac_cv_prog_CPP="$CPP"
838 echo "$ac_t""$CPP" 1>&6
840 # If we find X, set shell vars x_includes and x_libraries to the
841 # paths, otherwise set no_x=yes.
842 # Uses ac_ vars as temps to allow command line to override cache and checks.
843 # --without-x overrides everything else, but does not touch the cache.
844 echo $ac_n "checking for X""... $ac_c" 1>&6
845 echo "configure:846: checking for X" >&5
847 # Check whether --with-x or --without-x was given.
848 if test "${with_x+set}" = set; then
849 withval="$with_x"
853 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
854 if test "x$with_x" = xno; then
855 # The user explicitly disabled X.
856 have_x=disabled
857 else
858 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
859 # Both variables are already set.
860 have_x=yes
861 else
862 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
863 echo $ac_n "(cached) $ac_c" 1>&6
864 else
865 # One or both of the vars are not set, and there is no cached value.
866 ac_x_includes=NO ac_x_libraries=NO
867 rm -fr conftestdir
868 if mkdir conftestdir; then
869 cd conftestdir
870 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
871 cat > Imakefile <<'EOF'
872 acfindx:
873 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
875 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
876 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
877 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
878 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
879 for ac_extension in a so sl; do
880 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
881 test -f $ac_im_libdir/libX11.$ac_extension; then
882 ac_im_usrlibdir=$ac_im_libdir; break
884 done
885 # Screen out bogus values from the imake configuration. They are
886 # bogus both because they are the default anyway, and because
887 # using them would break gcc on systems where it needs fixed includes.
888 case "$ac_im_incroot" in
889 /usr/include) ;;
890 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
891 esac
892 case "$ac_im_usrlibdir" in
893 /usr/lib | /lib) ;;
894 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
895 esac
897 cd ..
898 rm -fr conftestdir
901 if test "$ac_x_includes" = NO; then
902 # Guess where to find include files, by looking for this one X11 .h file.
903 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
905 # First, try using that file with no special directory specified.
906 cat > conftest.$ac_ext <<EOF
907 #line 908 "configure"
908 #include "confdefs.h"
909 #include <$x_direct_test_include>
911 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
912 { (eval echo configure:913: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
913 ac_err=`grep -v '^ *+' conftest.out`
914 if test -z "$ac_err"; then
915 rm -rf conftest*
916 # We can compile using X headers with no special include directory.
917 ac_x_includes=
918 else
919 echo "$ac_err" >&5
920 echo "configure: failed program was:" >&5
921 cat conftest.$ac_ext >&5
922 rm -rf conftest*
923 # Look for the header file in a standard set of common directories.
924 # Check X11 before X11Rn because it is often a symlink to the current release.
925 for ac_dir in \
926 /usr/X11/include \
927 /usr/X11R6/include \
928 /usr/X11R5/include \
929 /usr/X11R4/include \
931 /usr/include/X11 \
932 /usr/include/X11R6 \
933 /usr/include/X11R5 \
934 /usr/include/X11R4 \
936 /usr/local/X11/include \
937 /usr/local/X11R6/include \
938 /usr/local/X11R5/include \
939 /usr/local/X11R4/include \
941 /usr/local/include/X11 \
942 /usr/local/include/X11R6 \
943 /usr/local/include/X11R5 \
944 /usr/local/include/X11R4 \
946 /usr/X386/include \
947 /usr/x386/include \
948 /usr/XFree86/include/X11 \
950 /usr/include \
951 /usr/local/include \
952 /usr/unsupported/include \
953 /usr/athena/include \
954 /usr/local/x11r5/include \
955 /usr/lpp/Xamples/include \
957 /usr/openwin/include \
958 /usr/openwin/share/include \
961 if test -r "$ac_dir/$x_direct_test_include"; then
962 ac_x_includes=$ac_dir
963 break
965 done
967 rm -f conftest*
968 fi # $ac_x_includes = NO
970 if test "$ac_x_libraries" = NO; then
971 # Check for the libraries.
973 test -z "$x_direct_test_library" && x_direct_test_library=Xt
974 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
976 # See if we find them without any special options.
977 # Don't add to $LIBS permanently.
978 ac_save_LIBS="$LIBS"
979 LIBS="-l$x_direct_test_library $LIBS"
980 cat > conftest.$ac_ext <<EOF
981 #line 982 "configure"
982 #include "confdefs.h"
984 int main() {
985 ${x_direct_test_function}()
986 ; return 0; }
988 if { (eval echo configure:989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
989 rm -rf conftest*
990 LIBS="$ac_save_LIBS"
991 # We can link X programs with no special library path.
992 ac_x_libraries=
993 else
994 echo "configure: failed program was:" >&5
995 cat conftest.$ac_ext >&5
996 rm -rf conftest*
997 LIBS="$ac_save_LIBS"
998 # First see if replacing the include by lib works.
999 # Check X11 before X11Rn because it is often a symlink to the current release.
1000 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
1001 /usr/X11/lib \
1002 /usr/X11R6/lib \
1003 /usr/X11R5/lib \
1004 /usr/X11R4/lib \
1006 /usr/lib/X11 \
1007 /usr/lib/X11R6 \
1008 /usr/lib/X11R5 \
1009 /usr/lib/X11R4 \
1011 /usr/local/X11/lib \
1012 /usr/local/X11R6/lib \
1013 /usr/local/X11R5/lib \
1014 /usr/local/X11R4/lib \
1016 /usr/local/lib/X11 \
1017 /usr/local/lib/X11R6 \
1018 /usr/local/lib/X11R5 \
1019 /usr/local/lib/X11R4 \
1021 /usr/X386/lib \
1022 /usr/x386/lib \
1023 /usr/XFree86/lib/X11 \
1025 /usr/lib \
1026 /usr/local/lib \
1027 /usr/unsupported/lib \
1028 /usr/athena/lib \
1029 /usr/local/x11r5/lib \
1030 /usr/lpp/Xamples/lib \
1031 /lib/usr/lib/X11 \
1033 /usr/openwin/lib \
1034 /usr/openwin/share/lib \
1037 for ac_extension in a so sl; do
1038 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
1039 ac_x_libraries=$ac_dir
1040 break 2
1042 done
1043 done
1045 rm -f conftest*
1046 fi # $ac_x_libraries = NO
1048 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
1049 # Didn't find X anywhere. Cache the known absence of X.
1050 ac_cv_have_x="have_x=no"
1051 else
1052 # Record where we found X for the cache.
1053 ac_cv_have_x="have_x=yes \
1054 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1058 eval "$ac_cv_have_x"
1059 fi # $with_x != no
1061 if test "$have_x" != yes; then
1062 echo "$ac_t""$have_x" 1>&6
1063 no_x=yes
1064 else
1065 # If each of the values was on the command line, it overrides each guess.
1066 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
1067 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
1068 # Update the cache value to reflect the command line values.
1069 ac_cv_have_x="have_x=yes \
1070 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1071 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1074 if test "$no_x" = yes; then
1075 # Not all programs may use this symbol, but it does not hurt to define it.
1076 cat >> confdefs.h <<\EOF
1077 #define X_DISPLAY_MISSING 1
1080 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
1081 else
1082 if test -n "$x_includes"; then
1083 X_CFLAGS="$X_CFLAGS -I$x_includes"
1086 # It would also be nice to do this for all -L options, not just this one.
1087 if test -n "$x_libraries"; then
1088 X_LIBS="$X_LIBS -L$x_libraries"
1089 # For Solaris; some versions of Sun CC require a space after -R and
1090 # others require no space. Words are not sufficient . . . .
1091 case "`(uname -sr) 2>/dev/null`" in
1092 "SunOS 5"*)
1093 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1094 echo "configure:1095: checking whether -R must be followed by a space" >&5
1095 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
1096 cat > conftest.$ac_ext <<EOF
1097 #line 1098 "configure"
1098 #include "confdefs.h"
1100 int main() {
1102 ; return 0; }
1104 if { (eval echo configure:1105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1105 rm -rf conftest*
1106 ac_R_nospace=yes
1107 else
1108 echo "configure: failed program was:" >&5
1109 cat conftest.$ac_ext >&5
1110 rm -rf conftest*
1111 ac_R_nospace=no
1113 rm -f conftest*
1114 if test $ac_R_nospace = yes; then
1115 echo "$ac_t""no" 1>&6
1116 X_LIBS="$X_LIBS -R$x_libraries"
1117 else
1118 LIBS="$ac_xsave_LIBS -R $x_libraries"
1119 cat > conftest.$ac_ext <<EOF
1120 #line 1121 "configure"
1121 #include "confdefs.h"
1123 int main() {
1125 ; return 0; }
1127 if { (eval echo configure:1128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1128 rm -rf conftest*
1129 ac_R_space=yes
1130 else
1131 echo "configure: failed program was:" >&5
1132 cat conftest.$ac_ext >&5
1133 rm -rf conftest*
1134 ac_R_space=no
1136 rm -f conftest*
1137 if test $ac_R_space = yes; then
1138 echo "$ac_t""yes" 1>&6
1139 X_LIBS="$X_LIBS -R $x_libraries"
1140 else
1141 echo "$ac_t""neither works" 1>&6
1144 LIBS="$ac_xsave_LIBS"
1145 esac
1148 # Check for system-dependent libraries X programs must link with.
1149 # Do this before checking for the system-independent R6 libraries
1150 # (-lICE), since we may need -lsocket or whatever for X linking.
1152 if test "$ISC" = yes; then
1153 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
1154 else
1155 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1156 # libraries were built with DECnet support. And karl@cs.umb.edu says
1157 # the Alpha needs dnet_stub (dnet does not exist).
1158 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1159 echo "configure:1160: checking for dnet_ntoa in -ldnet" >&5
1160 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1161 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1162 echo $ac_n "(cached) $ac_c" 1>&6
1163 else
1164 ac_save_LIBS="$LIBS"
1165 LIBS="-ldnet $LIBS"
1166 cat > conftest.$ac_ext <<EOF
1167 #line 1168 "configure"
1168 #include "confdefs.h"
1169 /* Override any gcc2 internal prototype to avoid an error. */
1170 /* We use char because int might match the return type of a gcc2
1171 builtin and then its argument prototype would still apply. */
1172 char dnet_ntoa();
1174 int main() {
1175 dnet_ntoa()
1176 ; return 0; }
1178 if { (eval echo configure:1179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1179 rm -rf conftest*
1180 eval "ac_cv_lib_$ac_lib_var=yes"
1181 else
1182 echo "configure: failed program was:" >&5
1183 cat conftest.$ac_ext >&5
1184 rm -rf conftest*
1185 eval "ac_cv_lib_$ac_lib_var=no"
1187 rm -f conftest*
1188 LIBS="$ac_save_LIBS"
1191 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1192 echo "$ac_t""yes" 1>&6
1193 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
1194 else
1195 echo "$ac_t""no" 1>&6
1198 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
1199 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1200 echo "configure:1201: checking for dnet_ntoa in -ldnet_stub" >&5
1201 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1202 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1203 echo $ac_n "(cached) $ac_c" 1>&6
1204 else
1205 ac_save_LIBS="$LIBS"
1206 LIBS="-ldnet_stub $LIBS"
1207 cat > conftest.$ac_ext <<EOF
1208 #line 1209 "configure"
1209 #include "confdefs.h"
1210 /* Override any gcc2 internal prototype to avoid an error. */
1211 /* We use char because int might match the return type of a gcc2
1212 builtin and then its argument prototype would still apply. */
1213 char dnet_ntoa();
1215 int main() {
1216 dnet_ntoa()
1217 ; return 0; }
1219 if { (eval echo configure:1220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1220 rm -rf conftest*
1221 eval "ac_cv_lib_$ac_lib_var=yes"
1222 else
1223 echo "configure: failed program was:" >&5
1224 cat conftest.$ac_ext >&5
1225 rm -rf conftest*
1226 eval "ac_cv_lib_$ac_lib_var=no"
1228 rm -f conftest*
1229 LIBS="$ac_save_LIBS"
1232 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1233 echo "$ac_t""yes" 1>&6
1234 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
1235 else
1236 echo "$ac_t""no" 1>&6
1241 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1242 # to get the SysV transport functions.
1243 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
1244 # needs -lnsl.
1245 # The nsl library prevents programs from opening the X display
1246 # on Irix 5.2, according to dickey@clark.net.
1247 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1248 echo "configure:1249: checking for gethostbyname" >&5
1249 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1250 echo $ac_n "(cached) $ac_c" 1>&6
1251 else
1252 cat > conftest.$ac_ext <<EOF
1253 #line 1254 "configure"
1254 #include "confdefs.h"
1255 /* System header to define __stub macros and hopefully few prototypes,
1256 which can conflict with char gethostbyname(); below. */
1257 #include <assert.h>
1258 /* Override any gcc2 internal prototype to avoid an error. */
1259 /* We use char because int might match the return type of a gcc2
1260 builtin and then its argument prototype would still apply. */
1261 char gethostbyname();
1263 int main() {
1265 /* The GNU C library defines this for functions which it implements
1266 to always fail with ENOSYS. Some functions are actually named
1267 something starting with __ and the normal name is an alias. */
1268 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1269 choke me
1270 #else
1271 gethostbyname();
1272 #endif
1274 ; return 0; }
1276 if { (eval echo configure:1277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1277 rm -rf conftest*
1278 eval "ac_cv_func_gethostbyname=yes"
1279 else
1280 echo "configure: failed program was:" >&5
1281 cat conftest.$ac_ext >&5
1282 rm -rf conftest*
1283 eval "ac_cv_func_gethostbyname=no"
1285 rm -f conftest*
1288 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1289 echo "$ac_t""yes" 1>&6
1291 else
1292 echo "$ac_t""no" 1>&6
1295 if test $ac_cv_func_gethostbyname = no; then
1296 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1297 echo "configure:1298: checking for gethostbyname in -lnsl" >&5
1298 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1299 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1300 echo $ac_n "(cached) $ac_c" 1>&6
1301 else
1302 ac_save_LIBS="$LIBS"
1303 LIBS="-lnsl $LIBS"
1304 cat > conftest.$ac_ext <<EOF
1305 #line 1306 "configure"
1306 #include "confdefs.h"
1307 /* Override any gcc2 internal prototype to avoid an error. */
1308 /* We use char because int might match the return type of a gcc2
1309 builtin and then its argument prototype would still apply. */
1310 char gethostbyname();
1312 int main() {
1313 gethostbyname()
1314 ; return 0; }
1316 if { (eval echo configure:1317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1317 rm -rf conftest*
1318 eval "ac_cv_lib_$ac_lib_var=yes"
1319 else
1320 echo "configure: failed program was:" >&5
1321 cat conftest.$ac_ext >&5
1322 rm -rf conftest*
1323 eval "ac_cv_lib_$ac_lib_var=no"
1325 rm -f conftest*
1326 LIBS="$ac_save_LIBS"
1329 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1330 echo "$ac_t""yes" 1>&6
1331 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
1332 else
1333 echo "$ac_t""no" 1>&6
1338 # lieder@skyler.mavd.honeywell.com says without -lsocket,
1339 # socket/setsockopt and other routines are undefined under SCO ODT
1340 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
1341 # on later versions), says simon@lia.di.epfl.ch: it contains
1342 # gethostby* variants that don't use the nameserver (or something).
1343 # -lsocket must be given before -lnsl if both are needed.
1344 # We assume that if connect needs -lnsl, so does gethostbyname.
1345 echo $ac_n "checking for connect""... $ac_c" 1>&6
1346 echo "configure:1347: checking for connect" >&5
1347 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1348 echo $ac_n "(cached) $ac_c" 1>&6
1349 else
1350 cat > conftest.$ac_ext <<EOF
1351 #line 1352 "configure"
1352 #include "confdefs.h"
1353 /* System header to define __stub macros and hopefully few prototypes,
1354 which can conflict with char connect(); below. */
1355 #include <assert.h>
1356 /* Override any gcc2 internal prototype to avoid an error. */
1357 /* We use char because int might match the return type of a gcc2
1358 builtin and then its argument prototype would still apply. */
1359 char connect();
1361 int main() {
1363 /* The GNU C library defines this for functions which it implements
1364 to always fail with ENOSYS. Some functions are actually named
1365 something starting with __ and the normal name is an alias. */
1366 #if defined (__stub_connect) || defined (__stub___connect)
1367 choke me
1368 #else
1369 connect();
1370 #endif
1372 ; return 0; }
1374 if { (eval echo configure:1375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1375 rm -rf conftest*
1376 eval "ac_cv_func_connect=yes"
1377 else
1378 echo "configure: failed program was:" >&5
1379 cat conftest.$ac_ext >&5
1380 rm -rf conftest*
1381 eval "ac_cv_func_connect=no"
1383 rm -f conftest*
1386 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1387 echo "$ac_t""yes" 1>&6
1389 else
1390 echo "$ac_t""no" 1>&6
1393 if test $ac_cv_func_connect = no; then
1394 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1395 echo "configure:1396: checking for connect in -lsocket" >&5
1396 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1397 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1398 echo $ac_n "(cached) $ac_c" 1>&6
1399 else
1400 ac_save_LIBS="$LIBS"
1401 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
1402 cat > conftest.$ac_ext <<EOF
1403 #line 1404 "configure"
1404 #include "confdefs.h"
1405 /* Override any gcc2 internal prototype to avoid an error. */
1406 /* We use char because int might match the return type of a gcc2
1407 builtin and then its argument prototype would still apply. */
1408 char connect();
1410 int main() {
1411 connect()
1412 ; return 0; }
1414 if { (eval echo configure:1415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1415 rm -rf conftest*
1416 eval "ac_cv_lib_$ac_lib_var=yes"
1417 else
1418 echo "configure: failed program was:" >&5
1419 cat conftest.$ac_ext >&5
1420 rm -rf conftest*
1421 eval "ac_cv_lib_$ac_lib_var=no"
1423 rm -f conftest*
1424 LIBS="$ac_save_LIBS"
1427 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1428 echo "$ac_t""yes" 1>&6
1429 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
1430 else
1431 echo "$ac_t""no" 1>&6
1436 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
1437 echo $ac_n "checking for remove""... $ac_c" 1>&6
1438 echo "configure:1439: checking for remove" >&5
1439 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
1440 echo $ac_n "(cached) $ac_c" 1>&6
1441 else
1442 cat > conftest.$ac_ext <<EOF
1443 #line 1444 "configure"
1444 #include "confdefs.h"
1445 /* System header to define __stub macros and hopefully few prototypes,
1446 which can conflict with char remove(); below. */
1447 #include <assert.h>
1448 /* Override any gcc2 internal prototype to avoid an error. */
1449 /* We use char because int might match the return type of a gcc2
1450 builtin and then its argument prototype would still apply. */
1451 char remove();
1453 int main() {
1455 /* The GNU C library defines this for functions which it implements
1456 to always fail with ENOSYS. Some functions are actually named
1457 something starting with __ and the normal name is an alias. */
1458 #if defined (__stub_remove) || defined (__stub___remove)
1459 choke me
1460 #else
1461 remove();
1462 #endif
1464 ; return 0; }
1466 if { (eval echo configure:1467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1467 rm -rf conftest*
1468 eval "ac_cv_func_remove=yes"
1469 else
1470 echo "configure: failed program was:" >&5
1471 cat conftest.$ac_ext >&5
1472 rm -rf conftest*
1473 eval "ac_cv_func_remove=no"
1475 rm -f conftest*
1478 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
1479 echo "$ac_t""yes" 1>&6
1481 else
1482 echo "$ac_t""no" 1>&6
1485 if test $ac_cv_func_remove = no; then
1486 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
1487 echo "configure:1488: checking for remove in -lposix" >&5
1488 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
1489 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1490 echo $ac_n "(cached) $ac_c" 1>&6
1491 else
1492 ac_save_LIBS="$LIBS"
1493 LIBS="-lposix $LIBS"
1494 cat > conftest.$ac_ext <<EOF
1495 #line 1496 "configure"
1496 #include "confdefs.h"
1497 /* Override any gcc2 internal prototype to avoid an error. */
1498 /* We use char because int might match the return type of a gcc2
1499 builtin and then its argument prototype would still apply. */
1500 char remove();
1502 int main() {
1503 remove()
1504 ; return 0; }
1506 if { (eval echo configure:1507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1507 rm -rf conftest*
1508 eval "ac_cv_lib_$ac_lib_var=yes"
1509 else
1510 echo "configure: failed program was:" >&5
1511 cat conftest.$ac_ext >&5
1512 rm -rf conftest*
1513 eval "ac_cv_lib_$ac_lib_var=no"
1515 rm -f conftest*
1516 LIBS="$ac_save_LIBS"
1519 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1520 echo "$ac_t""yes" 1>&6
1521 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
1522 else
1523 echo "$ac_t""no" 1>&6
1528 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
1529 echo $ac_n "checking for shmat""... $ac_c" 1>&6
1530 echo "configure:1531: checking for shmat" >&5
1531 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
1532 echo $ac_n "(cached) $ac_c" 1>&6
1533 else
1534 cat > conftest.$ac_ext <<EOF
1535 #line 1536 "configure"
1536 #include "confdefs.h"
1537 /* System header to define __stub macros and hopefully few prototypes,
1538 which can conflict with char shmat(); below. */
1539 #include <assert.h>
1540 /* Override any gcc2 internal prototype to avoid an error. */
1541 /* We use char because int might match the return type of a gcc2
1542 builtin and then its argument prototype would still apply. */
1543 char shmat();
1545 int main() {
1547 /* The GNU C library defines this for functions which it implements
1548 to always fail with ENOSYS. Some functions are actually named
1549 something starting with __ and the normal name is an alias. */
1550 #if defined (__stub_shmat) || defined (__stub___shmat)
1551 choke me
1552 #else
1553 shmat();
1554 #endif
1556 ; return 0; }
1558 if { (eval echo configure:1559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1559 rm -rf conftest*
1560 eval "ac_cv_func_shmat=yes"
1561 else
1562 echo "configure: failed program was:" >&5
1563 cat conftest.$ac_ext >&5
1564 rm -rf conftest*
1565 eval "ac_cv_func_shmat=no"
1567 rm -f conftest*
1570 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
1571 echo "$ac_t""yes" 1>&6
1573 else
1574 echo "$ac_t""no" 1>&6
1577 if test $ac_cv_func_shmat = no; then
1578 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
1579 echo "configure:1580: checking for shmat in -lipc" >&5
1580 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
1581 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1582 echo $ac_n "(cached) $ac_c" 1>&6
1583 else
1584 ac_save_LIBS="$LIBS"
1585 LIBS="-lipc $LIBS"
1586 cat > conftest.$ac_ext <<EOF
1587 #line 1588 "configure"
1588 #include "confdefs.h"
1589 /* Override any gcc2 internal prototype to avoid an error. */
1590 /* We use char because int might match the return type of a gcc2
1591 builtin and then its argument prototype would still apply. */
1592 char shmat();
1594 int main() {
1595 shmat()
1596 ; return 0; }
1598 if { (eval echo configure:1599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1599 rm -rf conftest*
1600 eval "ac_cv_lib_$ac_lib_var=yes"
1601 else
1602 echo "configure: failed program was:" >&5
1603 cat conftest.$ac_ext >&5
1604 rm -rf conftest*
1605 eval "ac_cv_lib_$ac_lib_var=no"
1607 rm -f conftest*
1608 LIBS="$ac_save_LIBS"
1611 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1612 echo "$ac_t""yes" 1>&6
1613 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
1614 else
1615 echo "$ac_t""no" 1>&6
1621 # Check for libraries that X11R6 Xt/Xaw programs need.
1622 ac_save_LDFLAGS="$LDFLAGS"
1623 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
1624 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
1625 # check for ICE first), but we must link in the order -lSM -lICE or
1626 # we get undefined symbols. So assume we have SM if we have ICE.
1627 # These have to be linked with before -lX11, unlike the other
1628 # libraries we check for below, so use a different variable.
1629 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
1630 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
1631 echo "configure:1632: checking for IceConnectionNumber in -lICE" >&5
1632 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
1633 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1634 echo $ac_n "(cached) $ac_c" 1>&6
1635 else
1636 ac_save_LIBS="$LIBS"
1637 LIBS="-lICE $LIBS"
1638 cat > conftest.$ac_ext <<EOF
1639 #line 1640 "configure"
1640 #include "confdefs.h"
1641 /* Override any gcc2 internal prototype to avoid an error. */
1642 /* We use char because int might match the return type of a gcc2
1643 builtin and then its argument prototype would still apply. */
1644 char IceConnectionNumber();
1646 int main() {
1647 IceConnectionNumber()
1648 ; return 0; }
1650 if { (eval echo configure:1651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1651 rm -rf conftest*
1652 eval "ac_cv_lib_$ac_lib_var=yes"
1653 else
1654 echo "configure: failed program was:" >&5
1655 cat conftest.$ac_ext >&5
1656 rm -rf conftest*
1657 eval "ac_cv_lib_$ac_lib_var=no"
1659 rm -f conftest*
1660 LIBS="$ac_save_LIBS"
1663 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1664 echo "$ac_t""yes" 1>&6
1665 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
1666 else
1667 echo "$ac_t""no" 1>&6
1670 LDFLAGS="$ac_save_LDFLAGS"
1674 for ac_prog in 'bison -y' byacc
1676 # Extract the first word of "$ac_prog", so it can be a program name with args.
1677 set dummy $ac_prog; ac_word=$2
1678 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1679 echo "configure:1680: checking for $ac_word" >&5
1680 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1681 echo $ac_n "(cached) $ac_c" 1>&6
1682 else
1683 if test -n "$YACC"; then
1684 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1685 else
1686 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1687 for ac_dir in $PATH; do
1688 test -z "$ac_dir" && ac_dir=.
1689 if test -f $ac_dir/$ac_word; then
1690 ac_cv_prog_YACC="$ac_prog"
1691 break
1693 done
1694 IFS="$ac_save_ifs"
1697 YACC="$ac_cv_prog_YACC"
1698 if test -n "$YACC"; then
1699 echo "$ac_t""$YACC" 1>&6
1700 else
1701 echo "$ac_t""no" 1>&6
1704 test -n "$YACC" && break
1705 done
1706 test -n "$YACC" || YACC="yacc"
1708 # Extract the first word of "flex", so it can be a program name with args.
1709 set dummy flex; ac_word=$2
1710 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1711 echo "configure:1712: checking for $ac_word" >&5
1712 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1713 echo $ac_n "(cached) $ac_c" 1>&6
1714 else
1715 if test -n "$LEX"; then
1716 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1717 else
1718 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1719 for ac_dir in $PATH; do
1720 test -z "$ac_dir" && ac_dir=.
1721 if test -f $ac_dir/$ac_word; then
1722 ac_cv_prog_LEX="flex"
1723 break
1725 done
1726 IFS="$ac_save_ifs"
1727 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1730 LEX="$ac_cv_prog_LEX"
1731 if test -n "$LEX"; then
1732 echo "$ac_t""$LEX" 1>&6
1733 else
1734 echo "$ac_t""no" 1>&6
1737 if test -z "$LEXLIB"
1738 then
1739 case "$LEX" in
1740 flex*) ac_lib=fl ;;
1741 *) ac_lib=l ;;
1742 esac
1743 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1744 echo "configure:1745: checking for yywrap in -l$ac_lib" >&5
1745 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1746 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1747 echo $ac_n "(cached) $ac_c" 1>&6
1748 else
1749 ac_save_LIBS="$LIBS"
1750 LIBS="-l$ac_lib $LIBS"
1751 cat > conftest.$ac_ext <<EOF
1752 #line 1753 "configure"
1753 #include "confdefs.h"
1754 /* Override any gcc2 internal prototype to avoid an error. */
1755 /* We use char because int might match the return type of a gcc2
1756 builtin and then its argument prototype would still apply. */
1757 char yywrap();
1759 int main() {
1760 yywrap()
1761 ; return 0; }
1763 if { (eval echo configure:1764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1764 rm -rf conftest*
1765 eval "ac_cv_lib_$ac_lib_var=yes"
1766 else
1767 echo "configure: failed program was:" >&5
1768 cat conftest.$ac_ext >&5
1769 rm -rf conftest*
1770 eval "ac_cv_lib_$ac_lib_var=no"
1772 rm -f conftest*
1773 LIBS="$ac_save_LIBS"
1776 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1777 echo "$ac_t""yes" 1>&6
1778 LEXLIB="-l$ac_lib"
1779 else
1780 echo "$ac_t""no" 1>&6
1785 # Extract the first word of "ranlib", so it can be a program name with args.
1786 set dummy ranlib; ac_word=$2
1787 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1788 echo "configure:1789: checking for $ac_word" >&5
1789 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1790 echo $ac_n "(cached) $ac_c" 1>&6
1791 else
1792 if test -n "$RANLIB"; then
1793 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1794 else
1795 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1796 for ac_dir in $PATH; do
1797 test -z "$ac_dir" && ac_dir=.
1798 if test -f $ac_dir/$ac_word; then
1799 ac_cv_prog_RANLIB="ranlib"
1800 break
1802 done
1803 IFS="$ac_save_ifs"
1804 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1807 RANLIB="$ac_cv_prog_RANLIB"
1808 if test -n "$RANLIB"; then
1809 echo "$ac_t""$RANLIB" 1>&6
1810 else
1811 echo "$ac_t""no" 1>&6
1814 # Find a good install program. We prefer a C program (faster),
1815 # so one script is as good as another. But avoid the broken or
1816 # incompatible versions:
1817 # SysV /etc/install, /usr/sbin/install
1818 # SunOS /usr/etc/install
1819 # IRIX /sbin/install
1820 # AIX /bin/install
1821 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1822 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1823 # ./install, which can be erroneously created by make from ./install.sh.
1824 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1825 echo "configure:1826: checking for a BSD compatible install" >&5
1826 if test -z "$INSTALL"; then
1827 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1828 echo $ac_n "(cached) $ac_c" 1>&6
1829 else
1830 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1831 for ac_dir in $PATH; do
1832 # Account for people who put trailing slashes in PATH elements.
1833 case "$ac_dir/" in
1834 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1836 # OSF1 and SCO ODT 3.0 have their own names for install.
1837 for ac_prog in ginstall installbsd scoinst install; do
1838 if test -f $ac_dir/$ac_prog; then
1839 if test $ac_prog = install &&
1840 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1841 # AIX install. It has an incompatible calling convention.
1842 # OSF/1 installbsd also uses dspmsg, but is usable.
1844 else
1845 ac_cv_path_install="$ac_dir/$ac_prog -c"
1846 break 2
1849 done
1851 esac
1852 done
1853 IFS="$ac_save_IFS"
1856 if test "${ac_cv_path_install+set}" = set; then
1857 INSTALL="$ac_cv_path_install"
1858 else
1859 # As a last resort, use the slow shell script. We don't cache a
1860 # path for INSTALL within a source directory, because that will
1861 # break other packages using the cache if that directory is
1862 # removed, or if the path is relative.
1863 INSTALL="$ac_install_sh"
1866 echo "$ac_t""$INSTALL" 1>&6
1868 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1869 # It thinks the first close brace ends the variable substitution.
1870 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1872 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1874 echo $ac_n "checking for i386_set_ldt in -li386""... $ac_c" 1>&6
1875 echo "configure:1876: checking for i386_set_ldt in -li386" >&5
1876 ac_lib_var=`echo i386'_'i386_set_ldt | sed 'y%./+-%__p_%'`
1877 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1878 echo $ac_n "(cached) $ac_c" 1>&6
1879 else
1880 ac_save_LIBS="$LIBS"
1881 LIBS="-li386 $LIBS"
1882 cat > conftest.$ac_ext <<EOF
1883 #line 1884 "configure"
1884 #include "confdefs.h"
1885 /* Override any gcc2 internal prototype to avoid an error. */
1886 /* We use char because int might match the return type of a gcc2
1887 builtin and then its argument prototype would still apply. */
1888 char i386_set_ldt();
1890 int main() {
1891 i386_set_ldt()
1892 ; return 0; }
1894 if { (eval echo configure:1895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1895 rm -rf conftest*
1896 eval "ac_cv_lib_$ac_lib_var=yes"
1897 else
1898 echo "configure: failed program was:" >&5
1899 cat conftest.$ac_ext >&5
1900 rm -rf conftest*
1901 eval "ac_cv_lib_$ac_lib_var=no"
1903 rm -f conftest*
1904 LIBS="$ac_save_LIBS"
1907 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1908 echo "$ac_t""yes" 1>&6
1909 LDLIBS="$LDLIBS -li386"
1910 else
1911 echo "$ac_t""no" 1>&6
1916 if test "x${GCC}" = "xyes"
1917 then
1918 CFLAGS="$CFLAGS -Wall"
1919 echo $ac_n "checking "for gcc strength-reduce bug"""... $ac_c" 1>&6
1920 echo "configure:1921: checking "for gcc strength-reduce bug"" >&5
1921 if eval "test \"`echo '$''{'ac_cv_c_gcc_strength_bug'+set}'`\" = set"; then
1922 echo $ac_n "(cached) $ac_c" 1>&6
1923 else
1924 if test "$cross_compiling" = yes; then
1925 ac_cv_c_gcc_strength_bug="yes"
1926 else
1927 cat > conftest.$ac_ext <<EOF
1928 #line 1929 "configure"
1929 #include "confdefs.h"
1931 int main(void) {
1932 static int Array[3];
1933 unsigned int B = 3;
1934 int i;
1935 for(i=0; i<B; i++) Array[i] = i - 3;
1936 exit( Array[1] != -2 );
1939 if { (eval echo configure:1940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1940 then
1941 ac_cv_c_gcc_strength_bug="no"
1942 else
1943 echo "configure: failed program was:" >&5
1944 cat conftest.$ac_ext >&5
1945 rm -fr conftest*
1946 ac_cv_c_gcc_strength_bug="yes"
1948 rm -fr conftest*
1953 echo "$ac_t""$ac_cv_c_gcc_strength_bug" 1>&6
1954 if test "$ac_cv_c_gcc_strength_bug" = "yes"
1955 then
1956 CFLAGS="$CFLAGS -fno-strength-reduce"
1961 echo $ac_n "checking "whether external symbols need an underscore prefix"""... $ac_c" 1>&6
1962 echo "configure:1963: checking "whether external symbols need an underscore prefix"" >&5
1963 if eval "test \"`echo '$''{'ac_cv_c_extern_prefix'+set}'`\" = set"; then
1964 echo $ac_n "(cached) $ac_c" 1>&6
1965 else
1966 saved_libs=$LIBS
1967 LIBS="conftest_asm.s $LIBS"
1968 cat > conftest_asm.s <<EOF
1969 .globl _ac_test
1970 _ac_test:
1971 .long 0
1973 cat > conftest.$ac_ext <<EOF
1974 #line 1975 "configure"
1975 #include "confdefs.h"
1976 extern int ac_test;
1977 int main() {
1978 if (ac_test) return 1
1979 ; return 0; }
1981 if { (eval echo configure:1982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1982 rm -rf conftest*
1983 ac_cv_c_extern_prefix="yes"
1984 else
1985 echo "configure: failed program was:" >&5
1986 cat conftest.$ac_ext >&5
1987 rm -rf conftest*
1988 ac_cv_c_extern_prefix="no"
1990 rm -f conftest*
1991 LIBS=$saved_libs
1994 echo "$ac_t""$ac_cv_c_extern_prefix" 1>&6
1995 if test "$ac_cv_c_extern_prefix" = "yes"
1996 then
1997 cat >> confdefs.h <<\EOF
1998 #define NEED_UNDERSCORE_PREFIX 1
2004 if test "$MAIN_TARGET" = "libwine.so.1.0"
2005 then
2006 echo $ac_n "checking "whether we can build a dll"""... $ac_c" 1>&6
2007 echo "configure:2008: checking "whether we can build a dll"" >&5
2008 if eval "test \"`echo '$''{'ac_cv_c_dll'+set}'`\" = set"; then
2009 echo $ac_n "(cached) $ac_c" 1>&6
2010 else
2011 saved_cflags=$CFLAGS
2012 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0"
2013 cat > conftest.$ac_ext <<EOF
2014 #line 2015 "configure"
2015 #include "confdefs.h"
2017 int main() {
2018 return 1
2019 ; return 0; }
2021 if { (eval echo configure:2022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2022 rm -rf conftest*
2023 ac_cv_c_dll="yes"
2024 else
2025 echo "configure: failed program was:" >&5
2026 cat conftest.$ac_ext >&5
2027 rm -rf conftest*
2028 ac_cv_c_dll="no"
2030 rm -f conftest*
2031 CFLAGS=$saved_cflags
2035 echo "$ac_t""$ac_cv_c_dll" 1>&6
2036 if test "$ac_cv_c_dll" = "yes"
2037 then
2038 CFLAGS="$CFLAGS -fPIC"
2039 else
2040 MAIN_TARGET="libwine.a"
2045 for ac_func in memmove tcgetattr usleep
2047 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2048 echo "configure:2049: checking for $ac_func" >&5
2049 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2050 echo $ac_n "(cached) $ac_c" 1>&6
2051 else
2052 cat > conftest.$ac_ext <<EOF
2053 #line 2054 "configure"
2054 #include "confdefs.h"
2055 /* System header to define __stub macros and hopefully few prototypes,
2056 which can conflict with char $ac_func(); below. */
2057 #include <assert.h>
2058 /* Override any gcc2 internal prototype to avoid an error. */
2059 /* We use char because int might match the return type of a gcc2
2060 builtin and then its argument prototype would still apply. */
2061 char $ac_func();
2063 int main() {
2065 /* The GNU C library defines this for functions which it implements
2066 to always fail with ENOSYS. Some functions are actually named
2067 something starting with __ and the normal name is an alias. */
2068 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2069 choke me
2070 #else
2071 $ac_func();
2072 #endif
2074 ; return 0; }
2076 if { (eval echo configure:2077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2077 rm -rf conftest*
2078 eval "ac_cv_func_$ac_func=yes"
2079 else
2080 echo "configure: failed program was:" >&5
2081 cat conftest.$ac_ext >&5
2082 rm -rf conftest*
2083 eval "ac_cv_func_$ac_func=no"
2085 rm -f conftest*
2088 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2089 echo "$ac_t""yes" 1>&6
2090 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2091 cat >> confdefs.h <<EOF
2092 #define $ac_tr_func 1
2095 else
2096 echo "$ac_t""no" 1>&6
2098 done
2100 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
2101 echo "configure:2102: checking whether stat file-mode macros are broken" >&5
2102 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
2103 echo $ac_n "(cached) $ac_c" 1>&6
2104 else
2105 cat > conftest.$ac_ext <<EOF
2106 #line 2107 "configure"
2107 #include "confdefs.h"
2108 #include <sys/types.h>
2109 #include <sys/stat.h>
2111 #if defined(S_ISBLK) && defined(S_IFDIR)
2112 # if S_ISBLK (S_IFDIR)
2113 You lose.
2114 # endif
2115 #endif
2117 #if defined(S_ISBLK) && defined(S_IFCHR)
2118 # if S_ISBLK (S_IFCHR)
2119 You lose.
2120 # endif
2121 #endif
2123 #if defined(S_ISLNK) && defined(S_IFREG)
2124 # if S_ISLNK (S_IFREG)
2125 You lose.
2126 # endif
2127 #endif
2129 #if defined(S_ISSOCK) && defined(S_IFREG)
2130 # if S_ISSOCK (S_IFREG)
2131 You lose.
2132 # endif
2133 #endif
2136 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2137 egrep "You lose" >/dev/null 2>&1; then
2138 rm -rf conftest*
2139 ac_cv_header_stat_broken=yes
2140 else
2141 rm -rf conftest*
2142 ac_cv_header_stat_broken=no
2144 rm -f conftest*
2148 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
2149 if test $ac_cv_header_stat_broken = yes; then
2150 cat >> confdefs.h <<\EOF
2151 #define STAT_MACROS_BROKEN 1
2156 echo $ac_n "checking for working const""... $ac_c" 1>&6
2157 echo "configure:2158: checking for working const" >&5
2158 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2159 echo $ac_n "(cached) $ac_c" 1>&6
2160 else
2161 cat > conftest.$ac_ext <<EOF
2162 #line 2163 "configure"
2163 #include "confdefs.h"
2165 int main() {
2167 /* Ultrix mips cc rejects this. */
2168 typedef int charset[2]; const charset x;
2169 /* SunOS 4.1.1 cc rejects this. */
2170 char const *const *ccp;
2171 char **p;
2172 /* NEC SVR4.0.2 mips cc rejects this. */
2173 struct point {int x, y;};
2174 static struct point const zero = {0,0};
2175 /* AIX XL C 1.02.0.0 rejects this.
2176 It does not let you subtract one const X* pointer from another in an arm
2177 of an if-expression whose if-part is not a constant expression */
2178 const char *g = "string";
2179 ccp = &g + (g ? g-g : 0);
2180 /* HPUX 7.0 cc rejects these. */
2181 ++ccp;
2182 p = (char**) ccp;
2183 ccp = (char const *const *) p;
2184 { /* SCO 3.2v4 cc rejects this. */
2185 char *t;
2186 char const *s = 0 ? (char *) 0 : (char const *) 0;
2188 *t++ = 0;
2190 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2191 int x[] = {25, 17};
2192 const int *foo = &x[0];
2193 ++foo;
2195 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2196 typedef const int *iptr;
2197 iptr p = 0;
2198 ++p;
2200 { /* AIX XL C 1.02.0.0 rejects this saying
2201 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2202 struct s { int j; const int *ap[3]; };
2203 struct s *b; b->j = 5;
2205 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2206 const int foo = 10;
2209 ; return 0; }
2211 if { (eval echo configure:2212: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2212 rm -rf conftest*
2213 ac_cv_c_const=yes
2214 else
2215 echo "configure: failed program was:" >&5
2216 cat conftest.$ac_ext >&5
2217 rm -rf conftest*
2218 ac_cv_c_const=no
2220 rm -f conftest*
2223 echo "$ac_t""$ac_cv_c_const" 1>&6
2224 if test $ac_cv_c_const = no; then
2225 cat >> confdefs.h <<\EOF
2226 #define const
2231 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2232 echo "configure:2233: checking for ANSI C header files" >&5
2233 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2234 echo $ac_n "(cached) $ac_c" 1>&6
2235 else
2236 cat > conftest.$ac_ext <<EOF
2237 #line 2238 "configure"
2238 #include "confdefs.h"
2239 #include <stdlib.h>
2240 #include <stdarg.h>
2241 #include <string.h>
2242 #include <float.h>
2244 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2245 { (eval echo configure:2246: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2246 ac_err=`grep -v '^ *+' conftest.out`
2247 if test -z "$ac_err"; then
2248 rm -rf conftest*
2249 ac_cv_header_stdc=yes
2250 else
2251 echo "$ac_err" >&5
2252 echo "configure: failed program was:" >&5
2253 cat conftest.$ac_ext >&5
2254 rm -rf conftest*
2255 ac_cv_header_stdc=no
2257 rm -f conftest*
2259 if test $ac_cv_header_stdc = yes; then
2260 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2261 cat > conftest.$ac_ext <<EOF
2262 #line 2263 "configure"
2263 #include "confdefs.h"
2264 #include <string.h>
2266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2267 egrep "memchr" >/dev/null 2>&1; then
2269 else
2270 rm -rf conftest*
2271 ac_cv_header_stdc=no
2273 rm -f conftest*
2277 if test $ac_cv_header_stdc = yes; then
2278 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2279 cat > conftest.$ac_ext <<EOF
2280 #line 2281 "configure"
2281 #include "confdefs.h"
2282 #include <stdlib.h>
2284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2285 egrep "free" >/dev/null 2>&1; then
2287 else
2288 rm -rf conftest*
2289 ac_cv_header_stdc=no
2291 rm -f conftest*
2295 if test $ac_cv_header_stdc = yes; then
2296 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2297 if test "$cross_compiling" = yes; then
2299 else
2300 cat > conftest.$ac_ext <<EOF
2301 #line 2302 "configure"
2302 #include "confdefs.h"
2303 #include <ctype.h>
2304 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2305 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2306 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2307 int main () { int i; for (i = 0; i < 256; i++)
2308 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2309 exit (0); }
2312 if { (eval echo configure:2313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2313 then
2315 else
2316 echo "configure: failed program was:" >&5
2317 cat conftest.$ac_ext >&5
2318 rm -fr conftest*
2319 ac_cv_header_stdc=no
2321 rm -fr conftest*
2327 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2328 if test $ac_cv_header_stdc = yes; then
2329 cat >> confdefs.h <<\EOF
2330 #define STDC_HEADERS 1
2335 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2336 echo "configure:2337: checking for size_t" >&5
2337 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2338 echo $ac_n "(cached) $ac_c" 1>&6
2339 else
2340 cat > conftest.$ac_ext <<EOF
2341 #line 2342 "configure"
2342 #include "confdefs.h"
2343 #include <sys/types.h>
2344 #if STDC_HEADERS
2345 #include <stdlib.h>
2346 #include <stddef.h>
2347 #endif
2349 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2350 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2351 rm -rf conftest*
2352 ac_cv_type_size_t=yes
2353 else
2354 rm -rf conftest*
2355 ac_cv_type_size_t=no
2357 rm -f conftest*
2360 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2361 if test $ac_cv_type_size_t = no; then
2362 cat >> confdefs.h <<\EOF
2363 #define size_t unsigned
2370 MAKE_RULES=Make.rules
2373 trap '' 1 2 15
2374 cat > confcache <<\EOF
2375 # This file is a shell script that caches the results of configure
2376 # tests run on this system so they can be shared between configure
2377 # scripts and configure runs. It is not useful on other systems.
2378 # If it contains results you don't want to keep, you may remove or edit it.
2380 # By default, configure uses ./config.cache as the cache file,
2381 # creating it if it does not exist already. You can give configure
2382 # the --cache-file=FILE option to use a different cache file; that is
2383 # what configure does when it calls configure scripts in
2384 # subdirectories, so they share the cache.
2385 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2386 # config.status only pays attention to the cache file if you give it the
2387 # --recheck option to rerun configure.
2390 # The following way of writing the cache mishandles newlines in values,
2391 # but we know of no workaround that is simple, portable, and efficient.
2392 # So, don't put newlines in cache variables' values.
2393 # Ultrix sh set writes to stderr and can't be redirected directly,
2394 # and sets the high bit in the cache file unless we assign to the vars.
2395 (set) 2>&1 |
2396 case `(ac_space=' '; set) 2>&1` in
2397 *ac_space=\ *)
2398 # `set' does not quote correctly, so add quotes (double-quote substitution
2399 # turns \\\\ into \\, and sed turns \\ into \).
2400 sed -n \
2401 -e "s/'/'\\\\''/g" \
2402 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2405 # `set' quotes correctly as required by POSIX, so do not add quotes.
2406 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2408 esac >> confcache
2409 if cmp -s $cache_file confcache; then
2411 else
2412 if test -w $cache_file; then
2413 echo "updating cache $cache_file"
2414 cat confcache > $cache_file
2415 else
2416 echo "not updating unwritable cache $cache_file"
2419 rm -f confcache
2421 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2423 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2424 # Let make expand exec_prefix.
2425 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2427 # Any assignment to VPATH causes Sun make to only execute
2428 # the first set of double-colon rules, so remove it if not needed.
2429 # If there is a colon in the path, we need to keep it.
2430 if test "x$srcdir" = x.; then
2431 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2434 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2436 DEFS=-DHAVE_CONFIG_H
2438 # Without the "./", some shells look in PATH for config.status.
2439 : ${CONFIG_STATUS=./config.status}
2441 echo creating $CONFIG_STATUS
2442 rm -f $CONFIG_STATUS
2443 cat > $CONFIG_STATUS <<EOF
2444 #! /bin/sh
2445 # Generated automatically by configure.
2446 # Run this file to recreate the current configuration.
2447 # This directory was configured as follows,
2448 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2450 # $0 $ac_configure_args
2452 # Compiler output produced by configure, useful for debugging
2453 # configure, is in ./config.log if it exists.
2455 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2456 for ac_option
2458 case "\$ac_option" in
2459 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2460 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2461 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2462 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2463 echo "$CONFIG_STATUS generated by autoconf version 2.12"
2464 exit 0 ;;
2465 -help | --help | --hel | --he | --h)
2466 echo "\$ac_cs_usage"; exit 0 ;;
2467 *) echo "\$ac_cs_usage"; exit 1 ;;
2468 esac
2469 done
2471 ac_given_srcdir=$srcdir
2472 ac_given_INSTALL="$INSTALL"
2474 trap 'rm -fr `echo "
2475 Make.rules
2476 Makefile
2477 controls/Makefile
2478 debugger/Makefile
2479 files/Makefile
2480 graphics/Makefile
2481 graphics/metafiledrv/Makefile
2482 graphics/win16drv/Makefile
2483 graphics/x11drv/Makefile
2484 if1632/Makefile
2485 ipc/Makefile
2486 library/Makefile
2487 libtest/Makefile
2488 loader/Makefile
2489 memory/Makefile
2490 misc/Makefile
2491 miscemu/Makefile
2492 msdos/Makefile
2493 multimedia/Makefile
2494 objects/Makefile
2495 programs/Makefile
2496 programs/progman/Makefile
2497 programs/winhelp/Makefile
2498 rc/Makefile
2499 resources/Makefile
2500 scheduler/Makefile
2501 tools/Makefile
2502 win32/Makefile
2503 windows/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2505 cat >> $CONFIG_STATUS <<EOF
2507 # Protect against being on the right side of a sed subst in config.status.
2508 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2509 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2510 $ac_vpsub
2511 $extrasub
2512 s%@CFLAGS@%$CFLAGS%g
2513 s%@CPPFLAGS@%$CPPFLAGS%g
2514 s%@CXXFLAGS@%$CXXFLAGS%g
2515 s%@DEFS@%$DEFS%g
2516 s%@LDFLAGS@%$LDFLAGS%g
2517 s%@LIBS@%$LIBS%g
2518 s%@exec_prefix@%$exec_prefix%g
2519 s%@prefix@%$prefix%g
2520 s%@program_transform_name@%$program_transform_name%g
2521 s%@bindir@%$bindir%g
2522 s%@sbindir@%$sbindir%g
2523 s%@libexecdir@%$libexecdir%g
2524 s%@datadir@%$datadir%g
2525 s%@sysconfdir@%$sysconfdir%g
2526 s%@sharedstatedir@%$sharedstatedir%g
2527 s%@localstatedir@%$localstatedir%g
2528 s%@libdir@%$libdir%g
2529 s%@includedir@%$includedir%g
2530 s%@oldincludedir@%$oldincludedir%g
2531 s%@infodir@%$infodir%g
2532 s%@mandir@%$mandir%g
2533 s%@LDLIBS@%$LDLIBS%g
2534 s%@MAIN_TARGET@%$MAIN_TARGET%g
2535 s%@OPTIONS@%$OPTIONS%g
2536 s%@SET_MAKE@%$SET_MAKE%g
2537 s%@CC@%$CC%g
2538 s%@CPP@%$CPP%g
2539 s%@X_CFLAGS@%$X_CFLAGS%g
2540 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
2541 s%@X_LIBS@%$X_LIBS%g
2542 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
2543 s%@YACC@%$YACC%g
2544 s%@LEX@%$LEX%g
2545 s%@LEXLIB@%$LEXLIB%g
2546 s%@RANLIB@%$RANLIB%g
2547 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2548 s%@INSTALL_DATA@%$INSTALL_DATA%g
2549 /@MAKE_RULES@/r $MAKE_RULES
2550 s%@MAKE_RULES@%%g
2552 CEOF
2555 cat >> $CONFIG_STATUS <<\EOF
2557 # Split the substitutions into bite-sized pieces for seds with
2558 # small command number limits, like on Digital OSF/1 and HP-UX.
2559 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2560 ac_file=1 # Number of current file.
2561 ac_beg=1 # First line for current file.
2562 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2563 ac_more_lines=:
2564 ac_sed_cmds=""
2565 while $ac_more_lines; do
2566 if test $ac_beg -gt 1; then
2567 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2568 else
2569 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2571 if test ! -s conftest.s$ac_file; then
2572 ac_more_lines=false
2573 rm -f conftest.s$ac_file
2574 else
2575 if test -z "$ac_sed_cmds"; then
2576 ac_sed_cmds="sed -f conftest.s$ac_file"
2577 else
2578 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2580 ac_file=`expr $ac_file + 1`
2581 ac_beg=$ac_end
2582 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2584 done
2585 if test -z "$ac_sed_cmds"; then
2586 ac_sed_cmds=cat
2590 cat >> $CONFIG_STATUS <<EOF
2592 CONFIG_FILES=\${CONFIG_FILES-"Make.rules
2593 Makefile
2594 controls/Makefile
2595 debugger/Makefile
2596 files/Makefile
2597 graphics/Makefile
2598 graphics/metafiledrv/Makefile
2599 graphics/win16drv/Makefile
2600 graphics/x11drv/Makefile
2601 if1632/Makefile
2602 ipc/Makefile
2603 library/Makefile
2604 libtest/Makefile
2605 loader/Makefile
2606 memory/Makefile
2607 misc/Makefile
2608 miscemu/Makefile
2609 msdos/Makefile
2610 multimedia/Makefile
2611 objects/Makefile
2612 programs/Makefile
2613 programs/progman/Makefile
2614 programs/winhelp/Makefile
2615 rc/Makefile
2616 resources/Makefile
2617 scheduler/Makefile
2618 tools/Makefile
2619 win32/Makefile
2620 windows/Makefile "}
2622 cat >> $CONFIG_STATUS <<\EOF
2623 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2624 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2625 case "$ac_file" in
2626 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2627 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2628 *) ac_file_in="${ac_file}.in" ;;
2629 esac
2631 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2633 # Remove last slash and all that follows it. Not all systems have dirname.
2634 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2635 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2636 # The file is in a subdirectory.
2637 test ! -d "$ac_dir" && mkdir "$ac_dir"
2638 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2639 # A "../" for each directory in $ac_dir_suffix.
2640 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2641 else
2642 ac_dir_suffix= ac_dots=
2645 case "$ac_given_srcdir" in
2646 .) srcdir=.
2647 if test -z "$ac_dots"; then top_srcdir=.
2648 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2649 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2650 *) # Relative path.
2651 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2652 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2653 esac
2655 case "$ac_given_INSTALL" in
2656 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2657 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2658 esac
2660 echo creating "$ac_file"
2661 rm -f "$ac_file"
2662 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2663 case "$ac_file" in
2664 *Makefile*) ac_comsub="1i\\
2665 # $configure_input" ;;
2666 *) ac_comsub= ;;
2667 esac
2669 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2670 sed -e "$ac_comsub
2671 s%@configure_input@%$configure_input%g
2672 s%@srcdir@%$srcdir%g
2673 s%@top_srcdir@%$top_srcdir%g
2674 s%@INSTALL@%$INSTALL%g
2675 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2676 fi; done
2677 rm -f conftest.s*
2679 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2680 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2682 # ac_d sets the value in "#define NAME VALUE" lines.
2683 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2684 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2685 ac_dC='\3'
2686 ac_dD='%g'
2687 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2688 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2689 ac_uB='\([ ]\)%\1#\2define\3'
2690 ac_uC=' '
2691 ac_uD='\4%g'
2692 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2693 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2694 ac_eB='$%\1#\2define\3'
2695 ac_eC=' '
2696 ac_eD='%g'
2698 if test "${CONFIG_HEADERS+set}" != set; then
2700 cat >> $CONFIG_STATUS <<EOF
2701 CONFIG_HEADERS="include/config.h"
2703 cat >> $CONFIG_STATUS <<\EOF
2705 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2706 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2707 case "$ac_file" in
2708 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2709 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2710 *) ac_file_in="${ac_file}.in" ;;
2711 esac
2713 echo creating $ac_file
2715 rm -f conftest.frag conftest.in conftest.out
2716 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2717 cat $ac_file_inputs > conftest.in
2721 # Transform confdefs.h into a sed script conftest.vals that substitutes
2722 # the proper values into config.h.in to produce config.h. And first:
2723 # Protect against being on the right side of a sed subst in config.status.
2724 # Protect against being in an unquoted here document in config.status.
2725 rm -f conftest.vals
2726 cat > conftest.hdr <<\EOF
2727 s/[\\&%]/\\&/g
2728 s%[\\$`]%\\&%g
2729 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2730 s%ac_d%ac_u%gp
2731 s%ac_u%ac_e%gp
2733 sed -n -f conftest.hdr confdefs.h > conftest.vals
2734 rm -f conftest.hdr
2736 # This sed command replaces #undef with comments. This is necessary, for
2737 # example, in the case of _POSIX_SOURCE, which is predefined and required
2738 # on some systems where configure will not decide to define it.
2739 cat >> conftest.vals <<\EOF
2740 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2743 # Break up conftest.vals because some shells have a limit on
2744 # the size of here documents, and old seds have small limits too.
2746 rm -f conftest.tail
2747 while :
2749 ac_lines=`grep -c . conftest.vals`
2750 # grep -c gives empty output for an empty file on some AIX systems.
2751 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2752 # Write a limited-size here document to conftest.frag.
2753 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2754 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2755 echo 'CEOF
2756 sed -f conftest.frag conftest.in > conftest.out
2757 rm -f conftest.in
2758 mv conftest.out conftest.in
2759 ' >> $CONFIG_STATUS
2760 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2761 rm -f conftest.vals
2762 mv conftest.tail conftest.vals
2763 done
2764 rm -f conftest.vals
2766 cat >> $CONFIG_STATUS <<\EOF
2767 rm -f conftest.frag conftest.h
2768 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2769 cat conftest.in >> conftest.h
2770 rm -f conftest.in
2771 if cmp -s $ac_file conftest.h 2>/dev/null; then
2772 echo "$ac_file is unchanged"
2773 rm -f conftest.h
2774 else
2775 # Remove last slash and all that follows it. Not all systems have dirname.
2776 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2777 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2778 # The file is in a subdirectory.
2779 test ! -d "$ac_dir" && mkdir "$ac_dir"
2781 rm -f $ac_file
2782 mv conftest.h $ac_file
2784 fi; done
2787 cat >> $CONFIG_STATUS <<EOF
2790 cat >> $CONFIG_STATUS <<\EOF
2792 exit 0
2794 chmod +x $CONFIG_STATUS
2795 rm -fr confdefs* $ac_clean_files
2796 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2799 echo
2800 echo "Configure finished. Do 'make depend; make' to compile Wine."
2801 echo