Release 960717
[wine/multimedia.git] / configure
blob49f45df3b1b0cab429d57b67cf42995896fc665d
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.10-patched
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=
62 ac_prev=
63 for ac_option
66 # If the previous option needs an argument, assign it.
67 if test -n "$ac_prev"; then
68 eval "$ac_prev=\$ac_option"
69 ac_prev=
70 continue
73 case "$ac_option" in
74 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
75 *) ac_optarg= ;;
76 esac
78 # Accept the important Cygnus configure options, so we can diagnose typos.
80 case "$ac_option" in
82 -bindir | --bindir | --bindi | --bind | --bin | --bi)
83 ac_prev=bindir ;;
84 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
85 bindir="$ac_optarg" ;;
87 -build | --build | --buil | --bui | --bu)
88 ac_prev=build ;;
89 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
90 build="$ac_optarg" ;;
92 -cache-file | --cache-file | --cache-fil | --cache-fi \
93 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
94 ac_prev=cache_file ;;
95 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
96 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
97 cache_file="$ac_optarg" ;;
99 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
100 ac_prev=datadir ;;
101 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
102 | --da=*)
103 datadir="$ac_optarg" ;;
105 -disable-* | --disable-*)
106 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
107 # Reject names that are not valid shell variable names.
108 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
109 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
111 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
112 eval "enable_${ac_feature}=no" ;;
114 -enable-* | --enable-*)
115 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
116 # Reject names that are not valid shell variable names.
117 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
118 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
120 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
121 case "$ac_option" in
122 *=*) ;;
123 *) ac_optarg=yes ;;
124 esac
125 eval "enable_${ac_feature}='$ac_optarg'" ;;
127 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
128 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
129 | --exec | --exe | --ex)
130 ac_prev=exec_prefix ;;
131 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
132 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
133 | --exec=* | --exe=* | --ex=*)
134 exec_prefix="$ac_optarg" ;;
136 -gas | --gas | --ga | --g)
137 # Obsolete; use --with-gas.
138 with_gas=yes ;;
140 -help | --help | --hel | --he)
141 # Omit some internal or obsolete options to make the list less imposing.
142 # This message is too long to be a string in the A/UX 3.1 sh.
143 cat << EOF
144 Usage: configure [options] [host]
145 Options: [defaults in brackets after descriptions]
146 Configuration:
147 --cache-file=FILE cache test results in FILE
148 --help print this message
149 --no-create do not create output files
150 --quiet, --silent do not print \`checking...' messages
151 --version print the version of autoconf that created configure
152 Directory and file names:
153 --prefix=PREFIX install architecture-independent files in PREFIX
154 [$ac_default_prefix]
155 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
156 [same as prefix]
157 --bindir=DIR user executables in DIR [EPREFIX/bin]
158 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
159 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
160 --datadir=DIR read-only architecture-independent data in DIR
161 [PREFIX/share]
162 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
163 --sharedstatedir=DIR modifiable architecture-independent data in DIR
164 [PREFIX/com]
165 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
166 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
167 --includedir=DIR C header files in DIR [PREFIX/include]
168 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
169 --infodir=DIR info documentation in DIR [PREFIX/info]
170 --mandir=DIR man documentation in DIR [PREFIX/man]
171 --srcdir=DIR find the sources in DIR [configure dir or ..]
172 --program-prefix=PREFIX prepend PREFIX to installed program names
173 --program-suffix=SUFFIX append SUFFIX to installed program names
174 --program-transform-name=PROGRAM
175 run sed PROGRAM on installed program names
177 cat << EOF
178 Host type:
179 --build=BUILD configure for building on BUILD [BUILD=HOST]
180 --host=HOST configure for HOST [guessed]
181 --target=TARGET configure for TARGET [TARGET=HOST]
182 Features and packages:
183 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
184 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
185 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
186 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
187 --x-includes=DIR X include files are in DIR
188 --x-libraries=DIR X library files are in DIR
190 if test -n "$ac_help"; then
191 echo "--enable and --with options recognized:$ac_help"
193 exit 0 ;;
195 -host | --host | --hos | --ho)
196 ac_prev=host ;;
197 -host=* | --host=* | --hos=* | --ho=*)
198 host="$ac_optarg" ;;
200 -includedir | --includedir | --includedi | --included | --include \
201 | --includ | --inclu | --incl | --inc)
202 ac_prev=includedir ;;
203 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
204 | --includ=* | --inclu=* | --incl=* | --inc=*)
205 includedir="$ac_optarg" ;;
207 -infodir | --infodir | --infodi | --infod | --info | --inf)
208 ac_prev=infodir ;;
209 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
210 infodir="$ac_optarg" ;;
212 -libdir | --libdir | --libdi | --libd)
213 ac_prev=libdir ;;
214 -libdir=* | --libdir=* | --libdi=* | --libd=*)
215 libdir="$ac_optarg" ;;
217 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
218 | --libexe | --libex | --libe)
219 ac_prev=libexecdir ;;
220 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
221 | --libexe=* | --libex=* | --libe=*)
222 libexecdir="$ac_optarg" ;;
224 -localstatedir | --localstatedir | --localstatedi | --localstated \
225 | --localstate | --localstat | --localsta | --localst \
226 | --locals | --local | --loca | --loc | --lo)
227 ac_prev=localstatedir ;;
228 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
229 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
230 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
231 localstatedir="$ac_optarg" ;;
233 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
234 ac_prev=mandir ;;
235 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
236 mandir="$ac_optarg" ;;
238 -nfp | --nfp | --nf)
239 # Obsolete; use --without-fp.
240 with_fp=no ;;
242 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
243 | --no-cr | --no-c)
244 no_create=yes ;;
246 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
247 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
248 no_recursion=yes ;;
250 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
251 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
252 | --oldin | --oldi | --old | --ol | --o)
253 ac_prev=oldincludedir ;;
254 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
255 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
256 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
257 oldincludedir="$ac_optarg" ;;
259 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
260 ac_prev=prefix ;;
261 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
262 prefix="$ac_optarg" ;;
264 -program-prefix | --program-prefix | --program-prefi | --program-pref \
265 | --program-pre | --program-pr | --program-p)
266 ac_prev=program_prefix ;;
267 -program-prefix=* | --program-prefix=* | --program-prefi=* \
268 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
269 program_prefix="$ac_optarg" ;;
271 -program-suffix | --program-suffix | --program-suffi | --program-suff \
272 | --program-suf | --program-su | --program-s)
273 ac_prev=program_suffix ;;
274 -program-suffix=* | --program-suffix=* | --program-suffi=* \
275 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
276 program_suffix="$ac_optarg" ;;
278 -program-transform-name | --program-transform-name \
279 | --program-transform-nam | --program-transform-na \
280 | --program-transform-n | --program-transform- \
281 | --program-transform | --program-transfor \
282 | --program-transfo | --program-transf \
283 | --program-trans | --program-tran \
284 | --progr-tra | --program-tr | --program-t)
285 ac_prev=program_transform_name ;;
286 -program-transform-name=* | --program-transform-name=* \
287 | --program-transform-nam=* | --program-transform-na=* \
288 | --program-transform-n=* | --program-transform-=* \
289 | --program-transform=* | --program-transfor=* \
290 | --program-transfo=* | --program-transf=* \
291 | --program-trans=* | --program-tran=* \
292 | --progr-tra=* | --program-tr=* | --program-t=*)
293 program_transform_name="$ac_optarg" ;;
295 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
296 | -silent | --silent | --silen | --sile | --sil)
297 silent=yes ;;
299 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
300 ac_prev=sbindir ;;
301 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
302 | --sbi=* | --sb=*)
303 sbindir="$ac_optarg" ;;
305 -sharedstatedir | --sharedstatedir | --sharedstatedi \
306 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
307 | --sharedst | --shareds | --shared | --share | --shar \
308 | --sha | --sh)
309 ac_prev=sharedstatedir ;;
310 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
311 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
312 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
313 | --sha=* | --sh=*)
314 sharedstatedir="$ac_optarg" ;;
316 -site | --site | --sit)
317 ac_prev=site ;;
318 -site=* | --site=* | --sit=*)
319 site="$ac_optarg" ;;
321 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
322 ac_prev=srcdir ;;
323 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
324 srcdir="$ac_optarg" ;;
326 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
327 | --syscon | --sysco | --sysc | --sys | --sy)
328 ac_prev=sysconfdir ;;
329 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
330 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
331 sysconfdir="$ac_optarg" ;;
333 -target | --target | --targe | --targ | --tar | --ta | --t)
334 ac_prev=target ;;
335 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
336 target="$ac_optarg" ;;
338 -v | -verbose | --verbose | --verbos | --verbo | --verb)
339 verbose=yes ;;
341 -version | --version | --versio | --versi | --vers)
342 echo "configure generated by autoconf version 2.10-patched"
343 exit 0 ;;
345 -with-* | --with-*)
346 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
347 # Reject names that are not valid shell variable names.
348 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
349 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
351 ac_package=`echo $ac_package| sed 's/-/_/g'`
352 case "$ac_option" in
353 *=*) ;;
354 *) ac_optarg=yes ;;
355 esac
356 eval "with_${ac_package}='$ac_optarg'" ;;
358 -without-* | --without-*)
359 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
360 # Reject names that are not valid shell variable names.
361 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
362 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
364 ac_package=`echo $ac_package| sed 's/-/_/g'`
365 eval "with_${ac_package}=no" ;;
367 --x)
368 # Obsolete; use --with-x.
369 with_x=yes ;;
371 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
372 | --x-incl | --x-inc | --x-in | --x-i)
373 ac_prev=x_includes ;;
374 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
375 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
376 x_includes="$ac_optarg" ;;
378 -x-libraries | --x-libraries | --x-librarie | --x-librari \
379 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
380 ac_prev=x_libraries ;;
381 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
382 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
383 x_libraries="$ac_optarg" ;;
385 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
389 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
390 echo "configure: warning: $ac_option: invalid host type" 1>&2
392 if test "x$nonopt" != xNONE; then
393 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
395 nonopt="$ac_option"
398 esac
399 done
401 if test -n "$ac_prev"; then
402 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
405 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
407 # File descriptor usage:
408 # 0 standard input
409 # 1 file creation
410 # 2 errors and warnings
411 # 3 some systems may open it to /dev/tty
412 # 4 used on the Kubota Titan
413 # 6 checking for... messages and results
414 # 5 compiler messages saved in config.log
415 if test "$silent" = yes; then
416 exec 6>/dev/null
417 else
418 exec 6>&1
420 exec 5>./config.log
422 echo "\
423 This file contains any messages produced by compilers while
424 running configure, to aid debugging if configure makes a mistake.
425 " 1>&5
427 # Strip out --no-create and --no-recursion so they do not pile up.
428 # Also quote any args containing shell metacharacters.
429 ac_configure_args=
430 for ac_arg
432 case "$ac_arg" in
433 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
434 | --no-cr | --no-c) ;;
435 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
436 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
437 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
438 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
439 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
440 esac
441 done
443 # NLS nuisances.
444 # Only set LANG and LC_ALL to C if already set.
445 # These must not be set unconditionally because not all systems understand
446 # e.g. LANG=C (notably SCO).
447 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
448 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
450 # confdefs.h avoids OS command line length limits that DEFS can exceed.
451 rm -rf conftest* confdefs.h
452 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
453 echo > confdefs.h
455 # A filename unique to this package, relative to the directory that
456 # configure is in, which we can look for to find out if srcdir is correct.
457 ac_unique_file=controls/edit.c
459 # Find the source files, if location was not specified.
460 if test -z "$srcdir"; then
461 ac_srcdir_defaulted=yes
462 # Try the directory containing this script, then its parent.
463 ac_prog=$0
464 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
465 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
466 srcdir=$ac_confdir
467 if test ! -r $srcdir/$ac_unique_file; then
468 srcdir=..
470 else
471 ac_srcdir_defaulted=no
473 if test ! -r $srcdir/$ac_unique_file; then
474 if test "$ac_srcdir_defaulted" = yes; then
475 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
476 else
477 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
480 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
482 # Prefer explicitly selected file to automatically selected ones.
483 if test -z "$CONFIG_SITE"; then
484 if test "x$prefix" != xNONE; then
485 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
486 else
487 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
490 for ac_site_file in $CONFIG_SITE; do
491 if test -r "$ac_site_file"; then
492 echo "loading site script $ac_site_file"
493 . "$ac_site_file"
495 done
497 if test -r "$cache_file"; then
498 echo "loading cache $cache_file"
499 . $cache_file
500 else
501 echo "creating cache $cache_file"
502 > $cache_file
505 ac_ext=c
506 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
507 ac_cpp='$CPP $CPPFLAGS'
508 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
509 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
511 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
512 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
513 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
514 ac_n= ac_c='
515 ' ac_t=' '
516 else
517 ac_n=-n ac_c= ac_t=
519 else
520 ac_n= ac_c='\c' ac_t=
525 ac_aux_dir=
526 for ac_dir in tools $srcdir/tools; do
527 if test -f $ac_dir/install-sh; then
528 ac_aux_dir=$ac_dir
529 ac_install_sh="$ac_aux_dir/install-sh -c"
530 break
531 elif test -f $ac_dir/install.sh; then
532 ac_aux_dir=$ac_dir
533 ac_install_sh="$ac_aux_dir/install.sh -c"
534 break
536 done
537 if test -z "$ac_aux_dir"; then
538 { echo "configure: error: can not find install-sh or install.sh in tools $srcdir/tools" 1>&2; exit 1; }
540 ac_config_guess=$ac_aux_dir/config.guess
541 ac_config_sub=$ac_aux_dir/config.sub
542 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
545 # We want these before the checks, so the checks can modify their values.
546 test -z "$CFLAGS" && CFLAGS="-g -O2"
547 test -z "$LDFLAGS" && LDFLAGS=-g
548 test -z "$LDLIBS" && LDLIBS=-lm
551 # Check whether --with-library or --without-library was given.
552 if test "${with_library+set}" = set; then
553 withval="$with_library"
554 OPTIONS="-DWINELIB" MAIN_TARGET="libwine.a"
555 else
556 OPTIONS="" MAIN_TARGET="wine"
560 # Check whether --with-dll or --without-dll was given.
561 if test "${with_dll+set}" = set; then
562 withval="$with_dll"
563 OPTIONS="-DWINELIB -DWINELIBDLL" MAIN_TARGET="libwine.so.1.0" CFLAGS="$CFLAGS -fPIC"
567 # Check whether --with-ipc or --without-ipc was given.
568 if test "${with_ipc+set}" = set; then
569 withval="$with_ipc"
570 OPTIONS="$OPTIONS -DCONFIG_IPC"
578 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
579 set dummy ${MAKE-make}; ac_make=$2
580 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
581 echo $ac_n "(cached) $ac_c" 1>&6
582 else
583 cat > conftestmake <<\EOF
584 all:
585 @echo 'ac_maketemp="${MAKE}"'
587 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
588 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
589 if test -n "$ac_maketemp"; then
590 eval ac_cv_prog_make_${ac_make}_set=yes
591 else
592 eval ac_cv_prog_make_${ac_make}_set=no
594 rm -f conftestmake
596 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
597 echo "$ac_t""yes" 1>&6
598 SET_MAKE=
599 else
600 echo "$ac_t""no" 1>&6
601 SET_MAKE="MAKE=${MAKE-make}"
604 # Extract the first word of "gcc", so it can be a program name with args.
605 set dummy gcc; ac_word=$2
606 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
607 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
608 echo $ac_n "(cached) $ac_c" 1>&6
609 else
610 if test -n "$CC"; then
611 ac_cv_prog_CC="$CC" # Let the user override the test.
612 else
613 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
614 for ac_dir in $PATH; do
615 test -z "$ac_dir" && ac_dir=.
616 if test -f $ac_dir/$ac_word; then
617 ac_cv_prog_CC="gcc"
618 break
620 done
621 IFS="$ac_save_ifs"
624 CC="$ac_cv_prog_CC"
625 if test -n "$CC"; then
626 echo "$ac_t""$CC" 1>&6
627 else
628 echo "$ac_t""no" 1>&6
631 if test -z "$CC"; then
632 # Extract the first word of "cc", so it can be a program name with args.
633 set dummy cc; ac_word=$2
634 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
635 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
636 echo $ac_n "(cached) $ac_c" 1>&6
637 else
638 if test -n "$CC"; then
639 ac_cv_prog_CC="$CC" # Let the user override the test.
640 else
641 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
642 ac_prog_rejected=no
643 for ac_dir in $PATH; do
644 test -z "$ac_dir" && ac_dir=.
645 if test -f $ac_dir/$ac_word; then
646 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
647 ac_prog_rejected=yes
648 continue
650 ac_cv_prog_CC="cc"
651 break
653 done
654 IFS="$ac_save_ifs"
655 if test $ac_prog_rejected = yes; then
656 # We found a bogon in the path, so make sure we never use it.
657 set dummy $ac_cv_prog_CC
658 shift
659 if test $# -gt 0; then
660 # We chose a different compiler from the bogus one.
661 # However, it has the same basename, so the bogon will be chosen
662 # first if we set CC to just the basename; use the full file name.
663 shift
664 set dummy "$ac_dir/$ac_word" "$@"
665 shift
666 ac_cv_prog_CC="$@"
671 CC="$ac_cv_prog_CC"
672 if test -n "$CC"; then
673 echo "$ac_t""$CC" 1>&6
674 else
675 echo "$ac_t""no" 1>&6
678 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
681 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
682 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
683 echo $ac_n "(cached) $ac_c" 1>&6
684 else
685 cat > conftest.c <<EOF
686 #ifdef __GNUC__
687 yes;
688 #endif
690 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:691: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
691 ac_cv_prog_gcc=yes
692 else
693 ac_cv_prog_gcc=no
697 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
698 if test $ac_cv_prog_gcc = yes; then
699 GCC=yes
700 if test "${CFLAGS+set}" != set; then
701 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
702 if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
703 echo $ac_n "(cached) $ac_c" 1>&6
704 else
705 echo 'void f(){}' > conftest.c
706 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
707 ac_cv_prog_gcc_g=yes
708 else
709 ac_cv_prog_gcc_g=no
711 rm -f conftest*
715 echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
716 if test $ac_cv_prog_gcc_g = yes; then
717 CFLAGS="-g -O"
718 else
719 CFLAGS="-O"
722 else
723 GCC=
724 test "${CFLAGS+set}" = set || CFLAGS="-g"
727 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
728 # On Suns, sometimes $CPP names a directory.
729 if test -n "$CPP" && test -d "$CPP"; then
730 CPP=
732 if test -z "$CPP"; then
733 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
734 echo $ac_n "(cached) $ac_c" 1>&6
735 else
736 # This must be in double quotes, not single quotes, because CPP may get
737 # substituted into the Makefile and "${CC-cc}" will confuse make.
738 CPP="${CC-cc} -E"
739 # On the NeXT, cc -E runs the code through the compiler's parser,
740 # not just through cpp.
741 cat > conftest.$ac_ext <<EOF
742 #line 743 "configure"
743 #include "confdefs.h"
744 #include <assert.h>
745 Syntax Error
747 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
748 { (eval echo configure:749: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
749 ac_err=`grep -v '^ *+' conftest.out`
750 if test -z "$ac_err"; then
752 else
753 echo "$ac_err" >&5
754 rm -rf conftest*
755 CPP="${CC-cc} -E -traditional-cpp"
756 cat > conftest.$ac_ext <<EOF
757 #line 758 "configure"
758 #include "confdefs.h"
759 #include <assert.h>
760 Syntax Error
762 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
763 { (eval echo configure:764: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
764 ac_err=`grep -v '^ *+' conftest.out`
765 if test -z "$ac_err"; then
767 else
768 echo "$ac_err" >&5
769 rm -rf conftest*
770 CPP=/lib/cpp
772 rm -f conftest*
774 rm -f conftest*
775 ac_cv_prog_CPP="$CPP"
777 CPP="$ac_cv_prog_CPP"
778 else
779 ac_cv_prog_CPP="$CPP"
781 echo "$ac_t""$CPP" 1>&6
783 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
784 if test -d /etc/conf/kconfig.d &&
785 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
786 then
787 echo "$ac_t""yes" 1>&6
788 ISC=yes # If later tests want to check for ISC.
789 cat >> confdefs.h <<\EOF
790 #define _POSIX_SOURCE 1
793 if test "$GCC" = yes; then
794 CC="$CC -posix"
795 else
796 CC="$CC -Xp"
798 else
799 echo "$ac_t""no" 1>&6
800 ISC=
803 # If we find X, set shell vars x_includes and x_libraries to the
804 # paths, otherwise set no_x=yes.
805 # Uses ac_ vars as temps to allow command line to override cache and checks.
806 # --without-x overrides everything else, but does not touch the cache.
807 echo $ac_n "checking for X""... $ac_c" 1>&6
809 # Check whether --with-x or --without-x was given.
810 if test "${with_x+set}" = set; then
811 withval="$with_x"
815 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
816 if test "x$with_x" = xno; then
817 # The user explicitly disabled X.
818 have_x=disabled
819 else
820 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
821 # Both variables are already set.
822 have_x=yes
823 else
824 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
825 echo $ac_n "(cached) $ac_c" 1>&6
826 else
827 # One or both of the vars are not set, and there is no cached value.
828 ac_x_includes=NO ac_x_libraries=NO
829 rm -fr conftestdir
830 if mkdir conftestdir; then
831 cd conftestdir
832 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
833 cat > Imakefile <<'EOF'
834 acfindx:
835 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
837 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
838 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
839 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
840 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
841 for ac_extension in a so sl; do
842 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
843 test -f $ac_im_libdir/libX11.$ac_extension; then
844 ac_im_usrlibdir=$ac_im_libdir; break
846 done
847 # Screen out bogus values from the imake configuration.
848 case "$ac_im_incroot" in
849 /usr/include) ;;
850 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
851 esac
852 case "$ac_im_usrlibdir" in
853 /usr/lib | /lib) ;;
854 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
855 esac
857 cd ..
858 rm -fr conftestdir
861 if test "$ac_x_includes" = NO; then
862 # Guess where to find include files, by looking for this one X11 .h file.
863 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
865 # First, try using that file with no special directory specified.
866 cat > conftest.$ac_ext <<EOF
867 #line 868 "configure"
868 #include "confdefs.h"
869 #include <$x_direct_test_include>
871 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
872 { (eval echo configure:873: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
873 ac_err=`grep -v '^ *+' conftest.out`
874 if test -z "$ac_err"; then
875 rm -rf conftest*
876 # We can compile using X headers with no special include directory.
877 ac_x_includes=
878 else
879 echo "$ac_err" >&5
880 rm -rf conftest*
881 # Look for the header file in a standard set of common directories.
882 for ac_dir in \
883 /usr/X11R6/include \
884 /usr/X11R5/include \
885 /usr/X11R4/include \
887 /usr/include/X11R6 \
888 /usr/include/X11R5 \
889 /usr/include/X11R4 \
891 /usr/local/X11R6/include \
892 /usr/local/X11R5/include \
893 /usr/local/X11R4/include \
895 /usr/local/include/X11R6 \
896 /usr/local/include/X11R5 \
897 /usr/local/include/X11R4 \
899 /usr/X11/include \
900 /usr/include/X11 \
901 /usr/local/X11/include \
902 /usr/local/include/X11 \
904 /usr/X386/include \
905 /usr/x386/include \
906 /usr/XFree86/include/X11 \
908 /usr/include \
909 /usr/local/include \
910 /usr/unsupported/include \
911 /usr/athena/include \
912 /usr/local/x11r5/include \
913 /usr/lpp/Xamples/include \
915 /usr/openwin/include \
916 /usr/openwin/share/include \
919 if test -r "$ac_dir/$x_direct_test_include"; then
920 ac_x_includes=$ac_dir
921 break
923 done
925 rm -f conftest*
926 fi # $ac_x_includes = NO
928 if test "$ac_x_libraries" = NO; then
929 # Check for the libraries.
931 test -z "$x_direct_test_library" && x_direct_test_library=Xt
932 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
934 # See if we find them without any special options.
935 # Don't add to $LIBS permanently.
936 ac_save_LIBS="$LIBS"
937 LIBS="-l$x_direct_test_library $LIBS"
938 cat > conftest.$ac_ext <<EOF
939 #line 940 "configure"
940 #include "confdefs.h"
942 int main() { return 0; }
943 int t() {
944 ${x_direct_test_function}()
945 ; return 0; }
947 if { (eval echo configure:948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
948 rm -rf conftest*
949 LIBS="$ac_save_LIBS"
950 # We can link X programs with no special library path.
951 ac_x_libraries=
952 else
953 rm -rf conftest*
954 LIBS="$ac_save_LIBS"
955 # First see if replacing the include by lib works.
956 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
957 /usr/X11R6/lib \
958 /usr/X11R5/lib \
959 /usr/X11R4/lib \
961 /usr/lib/X11R6 \
962 /usr/lib/X11R5 \
963 /usr/lib/X11R4 \
965 /usr/local/X11R6/lib \
966 /usr/local/X11R5/lib \
967 /usr/local/X11R4/lib \
969 /usr/local/lib/X11R6 \
970 /usr/local/lib/X11R5 \
971 /usr/local/lib/X11R4 \
973 /usr/X11/lib \
974 /usr/lib/X11 \
975 /usr/local/X11/lib \
976 /usr/local/lib/X11 \
978 /usr/X386/lib \
979 /usr/x386/lib \
980 /usr/XFree86/lib/X11 \
982 /usr/lib \
983 /usr/local/lib \
984 /usr/unsupported/lib \
985 /usr/athena/lib \
986 /usr/local/x11r5/lib \
987 /usr/lpp/Xamples/lib \
989 /usr/openwin/lib \
990 /usr/openwin/share/lib \
993 for ac_extension in a so sl; do
994 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
995 ac_x_libraries=$ac_dir
996 break 2
998 done
999 done
1001 rm -f conftest*
1003 fi # $ac_x_libraries = NO
1005 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
1006 # Didn't find X anywhere. Cache the known absence of X.
1007 ac_cv_have_x="have_x=no"
1008 else
1009 # Record where we found X for the cache.
1010 ac_cv_have_x="have_x=yes \
1011 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1015 eval "$ac_cv_have_x"
1016 fi # $with_x != no
1018 if test "$have_x" != yes; then
1019 echo "$ac_t""$have_x" 1>&6
1020 no_x=yes
1021 else
1022 # If each of the values was on the command line, it overrides each guess.
1023 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
1024 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
1025 # Update the cache value to reflect the command line values.
1026 ac_cv_have_x="have_x=yes \
1027 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1028 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1031 if test "$no_x" = yes; then
1032 # Not all programs may use this symbol, but it does not hurt to define it.
1033 X_CFLAGS="$X_CFLAGS -DX_DISPLAY_MISSING"
1034 else
1035 if test -n "$x_includes"; then
1036 X_CFLAGS="$X_CFLAGS -I$x_includes"
1039 # It would be nice to have a more robust check for the -R ld option than
1040 # just checking for Solaris.
1041 # It would also be nice to do this for all -L options, not just this one.
1042 if test -n "$x_libraries"; then
1043 X_LIBS="$X_LIBS -L$x_libraries"
1044 if test "`(uname) 2>/dev/null`" = SunOS &&
1045 uname -r | grep '^5' >/dev/null; then
1046 X_LIBS="$X_LIBS -R $x_libraries"
1050 # Check for libraries that X11R6 Xt/Xaw programs need.
1052 ac_save_LDFLAGS="$LDFLAGS"
1053 LDFLAGS="$LDFLAGS -L$x_libraries"
1054 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
1055 # check for ICE first), but we must link in the order -lSM -lICE or
1056 # we get undefined symbols. So assume we have SM if we have ICE.
1057 # These have to be linked with before -lX11, unlike the other
1058 # libraries we check for below, so use a different variable.
1059 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
1060 echo $ac_n "checking for -lICE""... $ac_c" 1>&6
1061 ac_lib_var=`echo ICE'_'IceConnectionNumber | tr './+\055' '__p_'`
1062 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1063 echo $ac_n "(cached) $ac_c" 1>&6
1064 else
1065 ac_save_LIBS="$LIBS"
1066 LIBS="-lICE $LIBS"
1067 cat > conftest.$ac_ext <<EOF
1068 #line 1069 "configure"
1069 #include "confdefs.h"
1070 /* Override any gcc2 internal prototype to avoid an error. */
1071 /* We use char because int might match the return type of a gcc2
1072 builtin and then its argument prototype would still apply. */
1073 char IceConnectionNumber();
1075 int main() { return 0; }
1076 int t() {
1077 IceConnectionNumber()
1078 ; return 0; }
1080 if { (eval echo configure:1081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1081 rm -rf conftest*
1082 eval "ac_cv_lib_$ac_lib_var=yes"
1083 else
1084 rm -rf conftest*
1085 eval "ac_cv_lib_$ac_lib_var=no"
1087 rm -f conftest*
1088 LIBS="$ac_save_LIBS"
1091 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1092 echo "$ac_t""yes" 1>&6
1093 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
1094 else
1095 echo "$ac_t""no" 1>&6
1098 LDFLAGS="$ac_save_LDFLAGS"
1100 # Check for system-dependent libraries X programs must link with.
1102 if test "$ISC" = yes; then
1103 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
1104 else
1105 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1106 # libraries were built with DECnet support. And karl@cs.umb.edu says
1107 # the Alpha needs dnet_stub (dnet does not exist).
1108 echo $ac_n "checking for -ldnet""... $ac_c" 1>&6
1109 ac_lib_var=`echo dnet'_'dnet_ntoa | tr './+\055' '__p_'`
1110 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1111 echo $ac_n "(cached) $ac_c" 1>&6
1112 else
1113 ac_save_LIBS="$LIBS"
1114 LIBS="-ldnet $LIBS"
1115 cat > conftest.$ac_ext <<EOF
1116 #line 1117 "configure"
1117 #include "confdefs.h"
1118 /* Override any gcc2 internal prototype to avoid an error. */
1119 /* We use char because int might match the return type of a gcc2
1120 builtin and then its argument prototype would still apply. */
1121 char dnet_ntoa();
1123 int main() { return 0; }
1124 int t() {
1125 dnet_ntoa()
1126 ; return 0; }
1128 if { (eval echo configure:1129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1129 rm -rf conftest*
1130 eval "ac_cv_lib_$ac_lib_var=yes"
1131 else
1132 rm -rf conftest*
1133 eval "ac_cv_lib_$ac_lib_var=no"
1135 rm -f conftest*
1136 LIBS="$ac_save_LIBS"
1139 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1140 echo "$ac_t""yes" 1>&6
1141 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
1142 else
1143 echo "$ac_t""no" 1>&6
1146 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
1147 echo $ac_n "checking for -ldnet_stub""... $ac_c" 1>&6
1148 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | tr './+\055' '__p_'`
1149 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1150 echo $ac_n "(cached) $ac_c" 1>&6
1151 else
1152 ac_save_LIBS="$LIBS"
1153 LIBS="-ldnet_stub $LIBS"
1154 cat > conftest.$ac_ext <<EOF
1155 #line 1156 "configure"
1156 #include "confdefs.h"
1157 /* Override any gcc2 internal prototype to avoid an error. */
1158 /* We use char because int might match the return type of a gcc2
1159 builtin and then its argument prototype would still apply. */
1160 char dnet_ntoa();
1162 int main() { return 0; }
1163 int t() {
1164 dnet_ntoa()
1165 ; return 0; }
1167 if { (eval echo configure:1168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1168 rm -rf conftest*
1169 eval "ac_cv_lib_$ac_lib_var=yes"
1170 else
1171 rm -rf conftest*
1172 eval "ac_cv_lib_$ac_lib_var=no"
1174 rm -f conftest*
1175 LIBS="$ac_save_LIBS"
1178 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1179 echo "$ac_t""yes" 1>&6
1180 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
1181 else
1182 echo "$ac_t""no" 1>&6
1187 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1188 # to get the SysV transport functions.
1189 # Not sure which flavor of 386 UNIX this is, but it seems harmless to
1190 # check for it.
1191 echo $ac_n "checking for -lnsl""... $ac_c" 1>&6
1192 ac_lib_var=`echo nsl'_'t_accept | tr './+\055' '__p_'`
1193 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1194 echo $ac_n "(cached) $ac_c" 1>&6
1195 else
1196 ac_save_LIBS="$LIBS"
1197 LIBS="-lnsl $LIBS"
1198 cat > conftest.$ac_ext <<EOF
1199 #line 1200 "configure"
1200 #include "confdefs.h"
1201 /* Override any gcc2 internal prototype to avoid an error. */
1202 /* We use char because int might match the return type of a gcc2
1203 builtin and then its argument prototype would still apply. */
1204 char t_accept();
1206 int main() { return 0; }
1207 int t() {
1208 t_accept()
1209 ; return 0; }
1211 if { (eval echo configure:1212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1212 rm -rf conftest*
1213 eval "ac_cv_lib_$ac_lib_var=yes"
1214 else
1215 rm -rf conftest*
1216 eval "ac_cv_lib_$ac_lib_var=no"
1218 rm -f conftest*
1219 LIBS="$ac_save_LIBS"
1222 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1223 echo "$ac_t""yes" 1>&6
1224 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
1225 else
1226 echo "$ac_t""no" 1>&6
1230 # lieder@skyler.mavd.honeywell.com says without -lsocket,
1231 # socket/setsockopt and other routines are undefined under SCO ODT 2.0.
1232 # But -lsocket is broken on IRIX, according to simon@lia.di.epfl.ch.
1233 if test "`(uname) 2>/dev/null`" != IRIX; then
1234 if test $ac_cv_lib_nsl_t_accept = no; then
1235 echo $ac_n "checking for -lsocket""... $ac_c" 1>&6
1236 ac_lib_var=`echo socket'_'socket | tr './+\055' '__p_'`
1237 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1238 echo $ac_n "(cached) $ac_c" 1>&6
1239 else
1240 ac_save_LIBS="$LIBS"
1241 LIBS="-lsocket $LIBS"
1242 cat > conftest.$ac_ext <<EOF
1243 #line 1244 "configure"
1244 #include "confdefs.h"
1245 /* Override any gcc2 internal prototype to avoid an error. */
1246 /* We use char because int might match the return type of a gcc2
1247 builtin and then its argument prototype would still apply. */
1248 char socket();
1250 int main() { return 0; }
1251 int t() {
1252 socket()
1253 ; return 0; }
1255 if { (eval echo configure:1256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1256 rm -rf conftest*
1257 eval "ac_cv_lib_$ac_lib_var=yes"
1258 else
1259 rm -rf conftest*
1260 eval "ac_cv_lib_$ac_lib_var=no"
1262 rm -f conftest*
1263 LIBS="$ac_save_LIBS"
1266 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1267 echo "$ac_t""yes" 1>&6
1268 X_EXTRA_LIBS="$X_EXTRA_LIBS -lsocket"
1269 else
1270 echo "$ac_t""no" 1>&6
1273 else
1274 # If we found -lnsl, use it to check for -lsocket. -- AJ
1275 echo $ac_n "checking for -lsocket""... $ac_c" 1>&6
1276 ac_lib_var=`echo socket'_'socket | tr './+\055' '__p_'`
1277 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1278 echo $ac_n "(cached) $ac_c" 1>&6
1279 else
1280 ac_save_LIBS="$LIBS"
1281 LIBS="-lsocket -lnsl $LIBS"
1282 cat > conftest.$ac_ext <<EOF
1283 #line 1284 "configure"
1284 #include "confdefs.h"
1285 /* Override any gcc2 internal prototype to avoid an error. */
1286 /* We use char because int might match the return type of a gcc2
1287 builtin and then its argument prototype would still apply. */
1288 char socket();
1290 int main() { return 0; }
1291 int t() {
1292 socket()
1293 ; return 0; }
1295 if { (eval echo configure:1296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1296 rm -rf conftest*
1297 eval "ac_cv_lib_$ac_lib_var=yes"
1298 else
1299 rm -rf conftest*
1300 eval "ac_cv_lib_$ac_lib_var=no"
1302 rm -f conftest*
1303 LIBS="$ac_save_LIBS"
1306 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1307 echo "$ac_t""yes" 1>&6
1308 X_EXTRA_LIBS="$X_EXTRA_LIBS -lsocket"
1309 else
1310 echo "$ac_t""no" 1>&6
1318 for ac_prog in 'bison -y' byacc
1320 # Extract the first word of "$ac_prog", so it can be a program name with args.
1321 set dummy $ac_prog; ac_word=$2
1322 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1323 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1324 echo $ac_n "(cached) $ac_c" 1>&6
1325 else
1326 if test -n "$YACC"; then
1327 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1328 else
1329 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1330 for ac_dir in $PATH; do
1331 test -z "$ac_dir" && ac_dir=.
1332 if test -f $ac_dir/$ac_word; then
1333 ac_cv_prog_YACC="$ac_prog"
1334 break
1336 done
1337 IFS="$ac_save_ifs"
1340 YACC="$ac_cv_prog_YACC"
1341 if test -n "$YACC"; then
1342 echo "$ac_t""$YACC" 1>&6
1343 else
1344 echo "$ac_t""no" 1>&6
1347 test -n "$YACC" && break
1348 done
1349 test -n "$YACC" || YACC="yacc"
1351 # Extract the first word of "flex", so it can be a program name with args.
1352 set dummy flex; ac_word=$2
1353 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1354 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1355 echo $ac_n "(cached) $ac_c" 1>&6
1356 else
1357 if test -n "$LEX"; then
1358 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1359 else
1360 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1361 for ac_dir in $PATH; do
1362 test -z "$ac_dir" && ac_dir=.
1363 if test -f $ac_dir/$ac_word; then
1364 ac_cv_prog_LEX="flex"
1365 break
1367 done
1368 IFS="$ac_save_ifs"
1369 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1372 LEX="$ac_cv_prog_LEX"
1373 if test -n "$LEX"; then
1374 echo "$ac_t""$LEX" 1>&6
1375 else
1376 echo "$ac_t""no" 1>&6
1379 if test -z "$LEXLIB"
1380 then
1381 case "$LEX" in
1382 flex*) ac_lib=fl ;;
1383 *) ac_lib=l ;;
1384 esac
1385 echo $ac_n "checking for -l$ac_lib""... $ac_c" 1>&6
1386 ac_lib_var=`echo $ac_lib'_'yywrap | tr './+\055' '__p_'`
1387 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1388 echo $ac_n "(cached) $ac_c" 1>&6
1389 else
1390 ac_save_LIBS="$LIBS"
1391 LIBS="-l$ac_lib $LIBS"
1392 cat > conftest.$ac_ext <<EOF
1393 #line 1394 "configure"
1394 #include "confdefs.h"
1395 /* Override any gcc2 internal prototype to avoid an error. */
1396 /* We use char because int might match the return type of a gcc2
1397 builtin and then its argument prototype would still apply. */
1398 char yywrap();
1400 int main() { return 0; }
1401 int t() {
1402 yywrap()
1403 ; return 0; }
1405 if { (eval echo configure:1406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1406 rm -rf conftest*
1407 eval "ac_cv_lib_$ac_lib_var=yes"
1408 else
1409 rm -rf conftest*
1410 eval "ac_cv_lib_$ac_lib_var=no"
1412 rm -f conftest*
1413 LIBS="$ac_save_LIBS"
1416 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1417 echo "$ac_t""yes" 1>&6
1418 LEXLIB="-l$ac_lib"
1419 else
1420 echo "$ac_t""no" 1>&6
1425 # Extract the first word of "ranlib", so it can be a program name with args.
1426 set dummy ranlib; ac_word=$2
1427 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1428 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1429 echo $ac_n "(cached) $ac_c" 1>&6
1430 else
1431 if test -n "$RANLIB"; then
1432 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1433 else
1434 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1435 for ac_dir in $PATH; do
1436 test -z "$ac_dir" && ac_dir=.
1437 if test -f $ac_dir/$ac_word; then
1438 ac_cv_prog_RANLIB="ranlib"
1439 break
1441 done
1442 IFS="$ac_save_ifs"
1443 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1446 RANLIB="$ac_cv_prog_RANLIB"
1447 if test -n "$RANLIB"; then
1448 echo "$ac_t""$RANLIB" 1>&6
1449 else
1450 echo "$ac_t""no" 1>&6
1453 # Find a good install program. We prefer a C program (faster),
1454 # so one script is as good as another. But avoid the broken or
1455 # incompatible versions:
1456 # SysV /etc/install, /usr/sbin/install
1457 # SunOS /usr/etc/install
1458 # IRIX /sbin/install
1459 # AIX /bin/install
1460 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1461 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1462 # ./install, which can be erroneously created by make from ./install.sh.
1463 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1464 if test -z "$INSTALL"; then
1465 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1466 echo $ac_n "(cached) $ac_c" 1>&6
1467 else
1468 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1469 for ac_dir in $PATH; do
1470 # Account for people who put trailing slashes in PATH elements.
1471 case "$ac_dir/" in
1472 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1474 # OSF1 and SCO ODT 3.0 have their own names for install.
1475 for ac_prog in ginstall installbsd scoinst install; do
1476 if test -f $ac_dir/$ac_prog; then
1477 if test $ac_prog = install &&
1478 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1479 # AIX install. It has an incompatible calling convention.
1480 # OSF/1 installbsd also uses dspmsg, but is usable.
1482 else
1483 ac_cv_path_install="$ac_dir/$ac_prog -c"
1484 break 2
1487 done
1489 esac
1490 done
1491 IFS="$ac_save_ifs"
1494 if test "${ac_cv_path_install+set}" = set; then
1495 INSTALL="$ac_cv_path_install"
1496 else
1497 # As a last resort, use the slow shell script. We don't cache a
1498 # path for INSTALL within a source directory, because that will
1499 # break other packages using the cache if that directory is
1500 # removed, or if the path is relative.
1501 INSTALL="$ac_install_sh"
1504 echo "$ac_t""$INSTALL" 1>&6
1506 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1507 # It thinks the first close brace ends the variable substitution.
1508 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1510 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1512 echo $ac_n "checking for -li386""... $ac_c" 1>&6
1513 ac_lib_var=`echo i386'_'i386_set_ldt | tr './+\055' '__p_'`
1514 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1515 echo $ac_n "(cached) $ac_c" 1>&6
1516 else
1517 ac_save_LIBS="$LIBS"
1518 LIBS="-li386 $LIBS"
1519 cat > conftest.$ac_ext <<EOF
1520 #line 1521 "configure"
1521 #include "confdefs.h"
1522 /* Override any gcc2 internal prototype to avoid an error. */
1523 /* We use char because int might match the return type of a gcc2
1524 builtin and then its argument prototype would still apply. */
1525 char i386_set_ldt();
1527 int main() { return 0; }
1528 int t() {
1529 i386_set_ldt()
1530 ; return 0; }
1532 if { (eval echo configure:1533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1533 rm -rf conftest*
1534 eval "ac_cv_lib_$ac_lib_var=yes"
1535 else
1536 rm -rf conftest*
1537 eval "ac_cv_lib_$ac_lib_var=no"
1539 rm -f conftest*
1540 LIBS="$ac_save_LIBS"
1543 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1544 echo "$ac_t""yes" 1>&6
1545 LDLIBS="$LDLIBS -li386"
1546 else
1547 echo "$ac_t""no" 1>&6
1552 if test "x${GCC}" = "xyes"
1553 then
1554 CFLAGS="$CFLAGS -Wall"
1555 # If we cannot run a trivial program, we must be cross compiling.
1556 echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
1557 if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
1558 echo $ac_n "(cached) $ac_c" 1>&6
1559 else
1560 if test "$cross_compiling" = yes; then
1561 ac_cv_c_cross=yes
1562 else
1563 cat > conftest.$ac_ext <<EOF
1564 #line 1565 "configure"
1565 #include "confdefs.h"
1566 main(){return(0);}
1568 { (eval echo configure:1569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
1569 if test -s conftest && (./conftest; exit) 2>/dev/null; then
1570 ac_cv_c_cross=no
1571 else
1572 ac_cv_c_cross=yes
1575 rm -fr conftest*
1578 echo "$ac_t""$ac_cv_c_cross" 1>&6
1579 cross_compiling=$ac_cv_c_cross
1581 echo $ac_n "checking "for gcc strength-reduce bug"""... $ac_c" 1>&6
1582 if eval "test \"`echo '$''{'ac_cv_c_gcc_strength_bug'+set}'`\" = set"; then
1583 echo $ac_n "(cached) $ac_c" 1>&6
1584 else
1585 if test "$cross_compiling" = yes; then
1586 ac_cv_c_gcc_strength_bug="yes"
1587 else
1588 cat > conftest.$ac_ext <<EOF
1589 #line 1590 "configure"
1590 #include "confdefs.h"
1592 int main(void) {
1593 static int Array[3];
1594 unsigned int B = 3;
1595 int i;
1596 for(i=0; i<B; i++) Array[i] = i - 3;
1597 exit( Array[1] != -2 );
1600 { (eval echo configure:1601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
1601 if test -s conftest && (./conftest; exit) 2>/dev/null; then
1602 ac_cv_c_gcc_strength_bug="no"
1603 else
1604 ac_cv_c_gcc_strength_bug="yes"
1607 rm -fr conftest*
1610 echo "$ac_t""$ac_cv_c_gcc_strength_bug" 1>&6
1611 if test "$ac_cv_c_gcc_strength_bug" = "yes"
1612 then
1613 CFLAGS="$CFLAGS -fno-strength-reduce"
1618 for ac_func in memmove tcgetattr usleep
1620 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1621 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1622 echo $ac_n "(cached) $ac_c" 1>&6
1623 else
1624 cat > conftest.$ac_ext <<EOF
1625 #line 1626 "configure"
1626 #include "confdefs.h"
1627 /* System header to define __stub macros and hopefully few prototypes,
1628 which can conflict with char $ac_func(); below. */
1629 #include <assert.h>
1630 /* Override any gcc2 internal prototype to avoid an error. */
1631 /* We use char because int might match the return type of a gcc2
1632 builtin and then its argument prototype would still apply. */
1633 char $ac_func();
1635 int main() { return 0; }
1636 int t() {
1638 /* The GNU C library defines this for functions which it implements
1639 to always fail with ENOSYS. Some functions are actually named
1640 something starting with __ and the normal name is an alias. */
1641 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1642 choke me
1643 #else
1644 $ac_func();
1645 #endif
1647 ; return 0; }
1649 if { (eval echo configure:1650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1650 rm -rf conftest*
1651 eval "ac_cv_func_$ac_func=yes"
1652 else
1653 rm -rf conftest*
1654 eval "ac_cv_func_$ac_func=no"
1656 rm -f conftest*
1659 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1660 echo "$ac_t""yes" 1>&6
1661 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1662 cat >> confdefs.h <<EOF
1663 #define $ac_tr_func 1
1666 else
1667 echo "$ac_t""no" 1>&6
1669 done
1671 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
1672 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
1673 echo $ac_n "(cached) $ac_c" 1>&6
1674 else
1675 cat > conftest.$ac_ext <<EOF
1676 #line 1677 "configure"
1677 #include "confdefs.h"
1678 #include <sys/types.h>
1679 #include <sys/stat.h>
1681 #if defined(S_ISBLK) && defined(S_IFDIR)
1682 # if S_ISBLK (S_IFDIR)
1683 You lose.
1684 # endif
1685 #endif
1687 #if defined(S_ISBLK) && defined(S_IFCHR)
1688 # if S_ISBLK (S_IFCHR)
1689 You lose.
1690 # endif
1691 #endif
1693 #if defined(S_ISLNK) && defined(S_IFREG)
1694 # if S_ISLNK (S_IFREG)
1695 You lose.
1696 # endif
1697 #endif
1699 #if defined(S_ISSOCK) && defined(S_IFREG)
1700 # if S_ISSOCK (S_IFREG)
1701 You lose.
1702 # endif
1703 #endif
1706 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1707 egrep "You lose" >/dev/null 2>&1; then
1708 rm -rf conftest*
1709 ac_cv_header_stat_broken=yes
1710 else
1711 rm -rf conftest*
1712 ac_cv_header_stat_broken=no
1714 rm -f conftest*
1718 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
1719 if test $ac_cv_header_stat_broken = yes; then
1720 cat >> confdefs.h <<\EOF
1721 #define STAT_MACROS_BROKEN 1
1726 echo $ac_n "checking for working const""... $ac_c" 1>&6
1727 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1728 echo $ac_n "(cached) $ac_c" 1>&6
1729 else
1730 cat > conftest.$ac_ext <<EOF
1731 #line 1732 "configure"
1732 #include "confdefs.h"
1734 int main() { return 0; }
1735 int t() {
1737 /* Ultrix mips cc rejects this. */
1738 typedef int charset[2]; const charset x;
1739 /* SunOS 4.1.1 cc rejects this. */
1740 char const *const *ccp;
1741 char **p;
1742 /* NEC SVR4.0.2 mips cc rejects this. */
1743 struct point {int x, y;};
1744 static struct point const zero = {0,0};
1745 /* AIX XL C 1.02.0.0 rejects this.
1746 It does not let you subtract one const X* pointer from another in an arm
1747 of an if-expression whose if-part is not a constant expression */
1748 const char *g = "string";
1749 ccp = &g + (g ? g-g : 0);
1750 /* HPUX 7.0 cc rejects these. */
1751 ++ccp;
1752 p = (char**) ccp;
1753 ccp = (char const *const *) p;
1754 { /* SCO 3.2v4 cc rejects this. */
1755 char *t;
1756 char const *s = 0 ? (char *) 0 : (char const *) 0;
1758 *t++ = 0;
1760 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1761 int x[] = {25, 17};
1762 const int *foo = &x[0];
1763 ++foo;
1765 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1766 typedef const int *iptr;
1767 iptr p = 0;
1768 ++p;
1770 { /* AIX XL C 1.02.0.0 rejects this saying
1771 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1772 struct s { int j; const int *ap[3]; };
1773 struct s *b; b->j = 5;
1775 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1776 const int foo = 10;
1779 ; return 0; }
1781 if { (eval echo configure:1782: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1782 rm -rf conftest*
1783 ac_cv_c_const=yes
1784 else
1785 rm -rf conftest*
1786 ac_cv_c_const=no
1788 rm -f conftest*
1792 echo "$ac_t""$ac_cv_c_const" 1>&6
1793 if test $ac_cv_c_const = no; then
1794 cat >> confdefs.h <<\EOF
1795 #define const
1800 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1801 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1802 echo $ac_n "(cached) $ac_c" 1>&6
1803 else
1804 cat > conftest.$ac_ext <<EOF
1805 #line 1806 "configure"
1806 #include "confdefs.h"
1807 #include <stdlib.h>
1808 #include <stdarg.h>
1809 #include <string.h>
1810 #include <float.h>
1812 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1813 { (eval echo configure:1814: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1814 ac_err=`grep -v '^ *+' conftest.out`
1815 if test -z "$ac_err"; then
1816 rm -rf conftest*
1817 ac_cv_header_stdc=yes
1818 else
1819 echo "$ac_err" >&5
1820 rm -rf conftest*
1821 ac_cv_header_stdc=no
1823 rm -f conftest*
1825 if test $ac_cv_header_stdc = yes; then
1826 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1827 cat > conftest.$ac_ext <<EOF
1828 #line 1829 "configure"
1829 #include "confdefs.h"
1830 #include <string.h>
1832 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1833 egrep "memchr" >/dev/null 2>&1; then
1835 else
1836 rm -rf conftest*
1837 ac_cv_header_stdc=no
1839 rm -f conftest*
1843 if test $ac_cv_header_stdc = yes; then
1844 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1845 cat > conftest.$ac_ext <<EOF
1846 #line 1847 "configure"
1847 #include "confdefs.h"
1848 #include <stdlib.h>
1850 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1851 egrep "free" >/dev/null 2>&1; then
1853 else
1854 rm -rf conftest*
1855 ac_cv_header_stdc=no
1857 rm -f conftest*
1861 if test $ac_cv_header_stdc = yes; then
1862 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1863 if test "$cross_compiling" = yes; then
1865 else
1866 cat > conftest.$ac_ext <<EOF
1867 #line 1868 "configure"
1868 #include "confdefs.h"
1869 #include <ctype.h>
1870 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1871 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1872 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1873 int main () { int i; for (i = 0; i < 256; i++)
1874 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1875 exit (0); }
1878 { (eval echo configure:1879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
1879 if test -s conftest && (./conftest; exit) 2>/dev/null; then
1881 else
1882 ac_cv_header_stdc=no
1885 rm -fr conftest*
1889 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1890 if test $ac_cv_header_stdc = yes; then
1891 cat >> confdefs.h <<\EOF
1892 #define STDC_HEADERS 1
1897 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1898 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1899 echo $ac_n "(cached) $ac_c" 1>&6
1900 else
1901 cat > conftest.$ac_ext <<EOF
1902 #line 1903 "configure"
1903 #include "confdefs.h"
1904 #include <sys/types.h>
1905 #if STDC_HEADERS
1906 #include <stdlib.h>
1907 #endif
1909 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1910 egrep "size_t" >/dev/null 2>&1; then
1911 rm -rf conftest*
1912 ac_cv_type_size_t=yes
1913 else
1914 rm -rf conftest*
1915 ac_cv_type_size_t=no
1917 rm -f conftest*
1920 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1921 if test $ac_cv_type_size_t = no; then
1922 cat >> confdefs.h <<\EOF
1923 #define size_t unsigned
1930 MAKE_RULES=Make.rules
1933 trap '' 1 2 15
1934 cat > confcache <<\EOF
1935 # This file is a shell script that caches the results of configure
1936 # tests run on this system so they can be shared between configure
1937 # scripts and configure runs. It is not useful on other systems.
1938 # If it contains results you don't want to keep, you may remove or edit it.
1940 # By default, configure uses ./config.cache as the cache file,
1941 # creating it if it does not exist already. You can give configure
1942 # the --cache-file=FILE option to use a different cache file; that is
1943 # what configure does when it calls configure scripts in
1944 # subdirectories, so they share the cache.
1945 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1946 # config.status only pays attention to the cache file if you give it the
1947 # --recheck option to rerun configure.
1950 # Ultrix sh set writes to stderr and can't be redirected directly,
1951 # and sets the high bit in the cache file unless we assign to the vars.
1952 (set) 2>&1 |
1953 sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
1954 >> confcache
1955 if cmp -s $cache_file confcache; then
1957 else
1958 if test -w $cache_file; then
1959 echo "updating cache $cache_file"
1960 cat confcache > $cache_file
1961 else
1962 echo "not updating unwritable cache $cache_file"
1965 rm -f confcache
1967 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1969 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1970 # Let make expand exec_prefix.
1971 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1973 # Any assignment to VPATH causes Sun make to only execute
1974 # the first set of double-colon rules, so remove it if not needed.
1975 # If there is a colon in the path, we need to keep it.
1976 if test "x$srcdir" = x.; then
1977 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1980 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1982 DEFS=-DHAVE_CONFIG_H
1984 # Without the "./", some shells look in PATH for config.status.
1985 : ${CONFIG_STATUS=./config.status}
1987 echo creating $CONFIG_STATUS
1988 rm -f $CONFIG_STATUS
1989 cat > $CONFIG_STATUS <<EOF
1990 #! /bin/sh
1991 # Generated automatically by configure.
1992 # Run this file to recreate the current configuration.
1993 # This directory was configured as follows,
1994 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1996 # $0 $ac_configure_args
1998 # Compiler output produced by configure, useful for debugging
1999 # configure, is in ./config.log if it exists.
2001 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2002 for ac_option
2004 case "\$ac_option" in
2005 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2006 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2007 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2008 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2009 echo "$CONFIG_STATUS generated by autoconf version 2.10-patched"
2010 exit 0 ;;
2011 -help | --help | --hel | --he | --h)
2012 echo "\$ac_cs_usage"; exit 0 ;;
2013 *) echo "\$ac_cs_usage"; exit 1 ;;
2014 esac
2015 done
2017 ac_given_srcdir=$srcdir
2018 ac_given_INSTALL="$INSTALL"
2020 trap 'rm -fr `echo "
2021 Make.rules
2022 Makefile
2023 controls/Makefile
2024 debugger/Makefile
2025 files/Makefile
2026 if1632/Makefile
2027 ipc/Makefile
2028 library/Makefile
2029 libtest/Makefile
2030 loader/Makefile
2031 memory/Makefile
2032 misc/Makefile
2033 miscemu/Makefile
2034 multimedia/Makefile
2035 objects/Makefile
2036 programs/Makefile
2037 programs/progman/Makefile
2038 programs/winhelp/Makefile
2039 rc/Makefile
2040 resources/Makefile
2041 tools/Makefile
2042 win32/Makefile
2043 windows/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2045 cat >> $CONFIG_STATUS <<EOF
2047 # Protect against being on the right side of a sed subst in config.status.
2048 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2049 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2050 $ac_vpsub
2051 $extrasub
2052 s%@CFLAGS@%$CFLAGS%g
2053 s%@CPPFLAGS@%$CPPFLAGS%g
2054 s%@CXXFLAGS@%$CXXFLAGS%g
2055 s%@DEFS@%$DEFS%g
2056 s%@LDFLAGS@%$LDFLAGS%g
2057 s%@LIBS@%$LIBS%g
2058 s%@exec_prefix@%$exec_prefix%g
2059 s%@prefix@%$prefix%g
2060 s%@program_transform_name@%$program_transform_name%g
2061 s%@bindir@%$bindir%g
2062 s%@sbindir@%$sbindir%g
2063 s%@libexecdir@%$libexecdir%g
2064 s%@datadir@%$datadir%g
2065 s%@sysconfdir@%$sysconfdir%g
2066 s%@sharedstatedir@%$sharedstatedir%g
2067 s%@localstatedir@%$localstatedir%g
2068 s%@libdir@%$libdir%g
2069 s%@includedir@%$includedir%g
2070 s%@oldincludedir@%$oldincludedir%g
2071 s%@infodir@%$infodir%g
2072 s%@mandir@%$mandir%g
2073 s%@LDLIBS@%$LDLIBS%g
2074 s%@MAIN_TARGET@%$MAIN_TARGET%g
2075 s%@OPTIONS@%$OPTIONS%g
2076 s%@SET_MAKE@%$SET_MAKE%g
2077 s%@CC@%$CC%g
2078 s%@CPP@%$CPP%g
2079 s%@X_CFLAGS@%$X_CFLAGS%g
2080 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
2081 s%@X_LIBS@%$X_LIBS%g
2082 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
2083 s%@YACC@%$YACC%g
2084 s%@LEX@%$LEX%g
2085 s%@LEXLIB@%$LEXLIB%g
2086 s%@RANLIB@%$RANLIB%g
2087 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2088 s%@INSTALL_DATA@%$INSTALL_DATA%g
2089 /@MAKE_RULES@/r $MAKE_RULES
2090 s%@MAKE_RULES@%%g
2092 CEOF
2094 cat >> $CONFIG_STATUS <<EOF
2096 CONFIG_FILES=\${CONFIG_FILES-"Make.rules
2097 Makefile
2098 controls/Makefile
2099 debugger/Makefile
2100 files/Makefile
2101 if1632/Makefile
2102 ipc/Makefile
2103 library/Makefile
2104 libtest/Makefile
2105 loader/Makefile
2106 memory/Makefile
2107 misc/Makefile
2108 miscemu/Makefile
2109 multimedia/Makefile
2110 objects/Makefile
2111 programs/Makefile
2112 programs/progman/Makefile
2113 programs/winhelp/Makefile
2114 rc/Makefile
2115 resources/Makefile
2116 tools/Makefile
2117 win32/Makefile
2118 windows/Makefile "}
2120 cat >> $CONFIG_STATUS <<\EOF
2121 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2122 # Support "outfile[:infile]", defaulting infile="outfile.in".
2123 case "$ac_file" in
2124 *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
2125 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2126 *) ac_file_in="${ac_file}.in" ;;
2127 esac
2129 # Adjust relative srcdir, etc. for subdirectories.
2131 # Remove last slash and all that follows it. Not all systems have dirname.
2132 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2133 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2134 # The file is in a subdirectory.
2135 test ! -d "$ac_dir" && mkdir "$ac_dir"
2136 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2137 # A "../" for each directory in $ac_dir_suffix.
2138 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2139 else
2140 ac_dir_suffix= ac_dots=
2143 case "$ac_given_srcdir" in
2144 .) srcdir=.
2145 if test -z "$ac_dots"; then top_srcdir=.
2146 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2147 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2148 *) # Relative path.
2149 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2150 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2151 esac
2153 case "$ac_given_INSTALL" in
2154 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2155 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2156 esac
2157 echo creating "$ac_file"
2158 rm -f "$ac_file"
2159 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2160 case "$ac_file" in
2161 *Makefile*) ac_comsub="1i\\
2162 # $configure_input" ;;
2163 *) ac_comsub= ;;
2164 esac
2165 sed -e "$ac_comsub
2166 s%@configure_input@%$configure_input%g
2167 s%@srcdir@%$srcdir%g
2168 s%@top_srcdir@%$top_srcdir%g
2169 s%@INSTALL@%$INSTALL%g
2170 " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
2171 fi; done
2172 rm -f conftest.subs
2174 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2175 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2177 # ac_d sets the value in "#define NAME VALUE" lines.
2178 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2179 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2180 ac_dC='\3'
2181 ac_dD='%g'
2182 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2183 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2184 ac_uB='\([ ]\)%\1#\2define\3'
2185 ac_uC=' '
2186 ac_uD='\4%g'
2187 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2188 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2189 ac_eB='$%\1#\2define\3'
2190 ac_eC=' '
2191 ac_eD='%g'
2193 CONFIG_HEADERS=${CONFIG_HEADERS-"include/config.h"}
2194 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2195 # Support "outfile[:infile]", defaulting infile="outfile.in".
2196 case "$ac_file" in
2197 *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
2198 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2199 *) ac_file_in="${ac_file}.in" ;;
2200 esac
2202 echo creating $ac_file
2204 rm -f conftest.frag conftest.in conftest.out
2205 cp $ac_given_srcdir/$ac_file_in conftest.in
2209 # Transform confdefs.h into a sed script conftest.vals that substitutes
2210 # the proper values into config.h.in to produce config.h. And first:
2211 # Protect against being on the right side of a sed subst in config.status.
2212 # Protect against being in an unquoted here document in config.status.
2213 rm -f conftest.vals
2214 cat > conftest.hdr <<\EOF
2215 s/[\\&%]/\\&/g
2216 s%[\\$`]%\\&%g
2217 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2218 s%ac_d%ac_u%gp
2219 s%ac_u%ac_e%gp
2221 sed -n -f conftest.hdr confdefs.h > conftest.vals
2222 rm -f conftest.hdr
2224 # This sed command replaces #undef with comments. This is necessary, for
2225 # example, in the case of _POSIX_SOURCE, which is predefined and required
2226 # on some systems where configure will not decide to define it.
2227 cat >> conftest.vals <<\EOF
2228 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2231 # Break up conftest.vals because some shells have a limit on
2232 # the size of here documents, and old seds have small limits too.
2233 # Maximum number of lines to put in a single here document.
2234 ac_max_here_lines=12
2236 rm -f conftest.tail
2237 while :
2239 ac_lines=`grep -c . conftest.vals`
2240 # grep -c gives empty output for an empty file on some AIX systems.
2241 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2242 # Write a limited-size here document to conftest.frag.
2243 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2244 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2245 echo 'CEOF
2246 sed -f conftest.frag conftest.in > conftest.out
2247 rm -f conftest.in
2248 mv conftest.out conftest.in
2249 ' >> $CONFIG_STATUS
2250 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2251 rm -f conftest.vals
2252 mv conftest.tail conftest.vals
2253 done
2254 rm -f conftest.vals
2256 cat >> $CONFIG_STATUS <<\EOF
2257 rm -f conftest.frag conftest.h
2258 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2259 cat conftest.in >> conftest.h
2260 rm -f conftest.in
2261 if cmp -s $ac_file conftest.h 2>/dev/null; then
2262 echo "$ac_file is unchanged"
2263 rm -f conftest.h
2264 else
2265 # Remove last slash and all that follows it. Not all systems have dirname.
2266 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2267 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2268 # The file is in a subdirectory.
2269 test ! -d "$ac_dir" && mkdir "$ac_dir"
2271 rm -f $ac_file
2272 mv conftest.h $ac_file
2274 fi; done
2278 exit 0
2280 chmod +x $CONFIG_STATUS
2281 rm -fr confdefs* $ac_clean_files
2282 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2285 echo
2286 echo "Configure finished. Do 'make depend; make' to compile Wine."
2287 echo