Release 960225
[wine.git] / configure
blobba6c93e45f76d4d1662e855d2435f219460de79a
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.7
6 # Copyright (C) 1992, 1993, 1994 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-malloc-debug enable malloc() debugging"
23 ac_help="$ac_help
24 --with-x use the X Window System"
26 # Initialize some variables set by options.
27 # The variables have the same names as the options, with
28 # dashes changed to underlines.
29 build=NONE
30 cache_file=./config.cache
31 exec_prefix=NONE
32 host=NONE
33 no_create=
34 nonopt=NONE
35 no_recursion=
36 prefix=NONE
37 program_prefix=NONE
38 program_suffix=NONE
39 program_transform_name=s,x,x,
40 silent=
41 site=
42 srcdir=
43 target=NONE
44 verbose=
45 x_includes=NONE
46 x_libraries=NONE
47 bindir='${exec_prefix}/bin'
48 sbindir='${exec_prefix}/sbin'
49 libexecdir='${exec_prefix}/libexec'
50 datadir='${prefix}/share'
51 sysconfdir='${prefix}/etc'
52 sharedstatedir='${prefix}/com'
53 localstatedir='${prefix}/var'
54 libdir='${exec_prefix}/lib'
55 includedir='${prefix}/include'
56 oldincludedir='/usr/include'
57 infodir='${prefix}/info'
58 mandir='${prefix}/man'
60 # Initialize some other variables.
61 subdirs=
62 MFLAGS= MAKEFLAGS=
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.7"
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 LANG and LC_ALL to C if already set.
447 # These must not be set unconditionally because not all systems understand
448 # e.g. LANG=C (notably SCO).
449 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
450 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
452 # confdefs.h avoids OS command line length limits that DEFS can exceed.
453 rm -rf conftest* confdefs.h
454 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
455 echo > confdefs.h
457 # A filename unique to this package, relative to the directory that
458 # configure is in, which we can look for to find out if srcdir is correct.
459 ac_unique_file=controls/edit.c
461 # Find the source files, if location was not specified.
462 if test -z "$srcdir"; then
463 ac_srcdir_defaulted=yes
464 # Try the directory containing this script, then its parent.
465 ac_prog=$0
466 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
467 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
468 srcdir=$ac_confdir
469 if test ! -r $srcdir/$ac_unique_file; then
470 srcdir=..
472 else
473 ac_srcdir_defaulted=no
475 if test ! -r $srcdir/$ac_unique_file; then
476 if test "$ac_srcdir_defaulted" = yes; then
477 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
478 else
479 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
482 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
484 # Prefer explicitly selected file to automatically selected ones.
485 if test -z "$CONFIG_SITE"; then
486 if test "x$prefix" != xNONE; then
487 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
488 else
489 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
492 for ac_site_file in $CONFIG_SITE; do
493 if test -r "$ac_site_file"; then
494 echo "loading site script $ac_site_file"
495 . "$ac_site_file"
497 done
499 if test -r "$cache_file"; then
500 echo "loading cache $cache_file"
501 . $cache_file
502 else
503 echo "creating cache $cache_file"
504 > $cache_file
507 ac_ext=c
508 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
509 ac_cpp='echo $CPP $CPPFLAGS 1>&5;
510 $CPP $CPPFLAGS'
511 ac_compile='echo ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5;
512 ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5'
513 ac_link='echo ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5;
514 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5'
516 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
517 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
518 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
519 ac_n= ac_c='
520 ' ac_t=' '
521 else
522 ac_n=-n ac_c= ac_t=
524 else
525 ac_n= ac_c='\c' ac_t=
529 ac_aux_dir=
530 for ac_dir in tools $srcdir/tools; do
531 if 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
535 elif test -f $ac_dir/install.sh; then
536 ac_aux_dir=$ac_dir
537 ac_install_sh="$ac_aux_dir/install.sh -c"
538 break
540 done
541 if test -z "$ac_aux_dir"; then
542 { echo "configure: error: can not find install-sh or install.sh in tools $srcdir/tools" 1>&2; exit 1; }
544 ac_config_guess=$ac_aux_dir/config.guess
545 ac_config_sub=$ac_aux_dir/config.sub
546 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
549 # We want these before the checks, so the checks can modify their values.
550 test -z "$CFLAGS" && CFLAGS="-g -O2"
551 test -z "$LDFLAGS" && LDFLAGS=-g
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 cat >> confdefs.h <<\EOF
559 #define WINELIB 1
561 MAIN_TARGET="libwine.a"
562 else
563 MAIN_TARGET="wine"
567 # Check whether --with-dll or --without-dll was given.
568 if test "${with_dll+set}" = set; then
569 withval="$with_dll"
570 cat >> confdefs.h <<\EOF
571 #define WINELIB 1
573 cat >> confdefs.h <<\EOF
574 #define WINELIBDLL 1
577 MAIN_TARGET="libwine.so.1.0" CFLAGS="$CFLAGS -fPIC"
582 # Check whether --with-ipc or --without-ipc was given.
583 if test "${with_ipc+set}" = set; then
584 withval="$with_ipc"
585 cat >> confdefs.h <<\EOF
586 #define CONFIG_IPC 1
592 # Check whether --with-malloc-debug or --without-malloc-debug was given.
593 if test "${with_malloc_debug+set}" = set; then
594 withval="$with_malloc_debug"
595 cat >> confdefs.h <<\EOF
596 #define MALLOC_DEBUGGING 1
603 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
604 set dummy ${MAKE-make}; ac_make=$2
605 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
606 echo $ac_n "(cached) $ac_c" 1>&6
607 else
608 cat > conftestmake <<\EOF
609 all:
610 @echo 'ac_maketemp="${MAKE}"'
612 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
613 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
614 if test -n "$ac_maketemp"; then
615 eval ac_cv_prog_make_${ac_make}_set=yes
616 else
617 eval ac_cv_prog_make_${ac_make}_set=no
619 rm -f conftestmake
621 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
622 echo "$ac_t""yes" 1>&6
623 SET_MAKE=
624 else
625 echo "$ac_t""no" 1>&6
626 SET_MAKE="MAKE=${MAKE-make}"
629 # Extract the first word of "gcc", so it can be a program name with args.
630 set dummy gcc; ac_word=$2
631 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
632 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
633 echo $ac_n "(cached) $ac_c" 1>&6
634 else
635 if test -n "$CC"; then
636 ac_cv_prog_CC="$CC" # Let the user override the test.
637 else
638 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
639 for ac_dir in $PATH; do
640 test -z "$ac_dir" && ac_dir=.
641 if test -f $ac_dir/$ac_word; then
642 ac_cv_prog_CC="gcc"
643 break
645 done
646 IFS="$ac_save_ifs"
647 test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="cc"
650 CC="$ac_cv_prog_CC"
651 if test -n "$CC"; then
652 echo "$ac_t""$CC" 1>&6
653 else
654 echo "$ac_t""no" 1>&6
658 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
659 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
660 echo $ac_n "(cached) $ac_c" 1>&6
661 else
662 cat > conftest.c <<EOF
663 #ifdef __GNUC__
664 yes;
665 #endif
667 if ${CC-cc} -E conftest.c 2>&5 | egrep yes >/dev/null 2>&1; then
668 ac_cv_prog_gcc=yes
669 else
670 ac_cv_prog_gcc=no
674 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
675 if test $ac_cv_prog_gcc = yes; then
676 GCC=yes
677 if test "${CFLAGS+set}" != set; then
678 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
679 if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
680 echo $ac_n "(cached) $ac_c" 1>&6
681 else
682 echo 'void f(){}' > conftest.c
683 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
684 ac_cv_prog_gcc_g=yes
685 else
686 ac_cv_prog_gcc_g=no
688 rm -f conftest*
692 echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
693 if test $ac_cv_prog_gcc_g = yes; then
694 CFLAGS="-g -O"
695 else
696 CFLAGS="-O"
699 else
700 GCC=
701 test "${CFLAGS+set}" = set || CFLAGS="-g"
704 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
705 # On Suns, sometimes $CPP names a directory.
706 if test -n "$CPP" && test -d "$CPP"; then
707 CPP=
709 if test -z "$CPP"; then
710 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
711 echo $ac_n "(cached) $ac_c" 1>&6
712 else
713 # This must be in double quotes, not single quotes, because CPP may get
714 # substituted into the Makefile and "${CC-cc}" will confuse make.
715 CPP="${CC-cc} -E"
716 # On the NeXT, cc -E runs the code through the compiler's parser,
717 # not just through cpp.
718 cat > conftest.$ac_ext <<EOF
719 #line 720 "configure"
720 #include "confdefs.h"
721 #include <assert.h>
722 Syntax Error
724 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
725 ac_err=`grep -v '^ *+' conftest.out`
726 if test -z "$ac_err"; then
728 else
729 echo "$ac_err" >&5
730 rm -rf conftest*
731 CPP="${CC-cc} -E -traditional-cpp"
732 cat > conftest.$ac_ext <<EOF
733 #line 734 "configure"
734 #include "confdefs.h"
735 #include <assert.h>
736 Syntax Error
738 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
739 ac_err=`grep -v '^ *+' conftest.out`
740 if test -z "$ac_err"; then
742 else
743 echo "$ac_err" >&5
744 rm -rf conftest*
745 CPP=/lib/cpp
747 rm -f conftest*
749 rm -f conftest*
750 ac_cv_prog_CPP="$CPP"
752 CPP="$ac_cv_prog_CPP"
753 else
754 ac_cv_prog_CPP="$CPP"
756 echo "$ac_t""$CPP" 1>&6
758 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
759 if test -d /etc/conf/kconfig.d &&
760 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
761 then
762 echo "$ac_t""yes" 1>&6
763 ISC=yes # If later tests want to check for ISC.
764 cat >> confdefs.h <<\EOF
765 #define _POSIX_SOURCE 1
768 if test "$GCC" = yes; then
769 CC="$CC -posix"
770 else
771 CC="$CC -Xp"
773 else
774 echo "$ac_t""no" 1>&6
775 ISC=
778 # If we find X, set shell vars x_includes and x_libraries to the
779 # paths, otherwise set no_x=yes.
780 # Uses ac_ vars as temps to allow command line to override cache and checks.
781 # --without-x overrides everything else, but does not touch the cache.
782 echo $ac_n "checking for X""... $ac_c" 1>&6
784 # Check whether --with-x or --without-x was given.
785 if test "${with_x+set}" = set; then
786 withval="$with_x"
790 if test "x$with_x" = xno; then
791 no_x=yes
792 else
793 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
794 no_x=
795 else
796 if eval "test \"`echo '$''{'ac_cv_path_x'+set}'`\" = set"; then
797 echo $ac_n "(cached) $ac_c" 1>&6
798 else
799 # One or both of the vars are not set, and there is no cached value.
800 no_x=yes
801 rm -fr conftestdir
802 if mkdir conftestdir; then
803 cd conftestdir
804 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
805 cat > Imakefile <<'EOF'
806 acfindx:
807 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
809 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
810 no_x=
811 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
812 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
813 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
814 for ac_extension in a so sl; do
815 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
816 test -f $ac_im_libdir/libX11.$ac_extension; then
817 ac_im_usrlibdir=$ac_im_libdir; break
819 done
820 # Screen out bogus values from the imake configuration.
821 case "$ac_im_incroot" in
822 /usr/include) ;;
823 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
824 esac
825 case "$ac_im_usrlibdir" in
826 /usr/lib | /lib) ;;
827 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
828 esac
830 cd ..
831 rm -fr conftestdir
834 if test "$no_x" = yes; then
835 test -z "$x_direct_test_library" && x_direct_test_library=Xt
836 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
837 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
838 cat > conftest.$ac_ext <<EOF
839 #line 840 "configure"
840 #include "confdefs.h"
841 #include <$x_direct_test_include>
843 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
844 ac_err=`grep -v '^ *+' conftest.out`
845 if test -z "$ac_err"; then
846 rm -rf conftest*
847 no_x= ac_x_includes=
848 else
849 echo "$ac_err" >&5
850 rm -rf conftest*
851 for ac_dir in \
852 /usr/X11R6/include \
853 /usr/X11R5/include \
854 /usr/X11R4/include \
856 /usr/include/X11R6 \
857 /usr/include/X11R5 \
858 /usr/include/X11R4 \
860 /usr/local/X11R6/include \
861 /usr/local/X11R5/include \
862 /usr/local/X11R4/include \
864 /usr/local/include/X11R6 \
865 /usr/local/include/X11R5 \
866 /usr/local/include/X11R4 \
868 /usr/X11/include \
869 /usr/include/X11 \
870 /usr/local/X11/include \
871 /usr/local/include/X11 \
873 /usr/X386/include \
874 /usr/x386/include \
875 /usr/XFree86/include/X11 \
877 /usr/include \
878 /usr/local/include \
879 /usr/unsupported/include \
880 /usr/athena/include \
881 /usr/local/x11r5/include \
882 /usr/lpp/Xamples/include \
884 /usr/openwin/include \
885 /usr/openwin/share/include \
888 if test -r "$ac_dir/$x_direct_test_include"; then
889 no_x= ac_x_includes=$ac_dir
890 break
892 done
894 rm -f conftest*
896 # Check for the libraries.
897 # See if we find them without any special options.
898 # Don't add to $LIBS permanently.
899 ac_save_LIBS="$LIBS"
900 LIBS="-l$x_direct_test_library $LIBS"
901 cat > conftest.$ac_ext <<EOF
902 #line 903 "configure"
903 #include "confdefs.h"
905 int main() { return 0; }
906 int t() {
907 ${x_direct_test_function}()
908 ; return 0; }
910 if eval $ac_link; then
911 rm -rf conftest*
912 LIBS="$ac_save_LIBS" no_x= ac_x_libraries=
913 else
914 rm -rf conftest*
915 LIBS="$ac_save_LIBS"
916 # First see if replacing the include by lib works.
917 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
918 /usr/X11R6/lib \
919 /usr/X11R5/lib \
920 /usr/X11R4/lib \
922 /usr/lib/X11R6 \
923 /usr/lib/X11R5 \
924 /usr/lib/X11R4 \
926 /usr/local/X11R6/lib \
927 /usr/local/X11R5/lib \
928 /usr/local/X11R4/lib \
930 /usr/local/lib/X11R6 \
931 /usr/local/lib/X11R5 \
932 /usr/local/lib/X11R4 \
934 /usr/X11/lib \
935 /usr/lib/X11 \
936 /usr/local/X11/lib \
937 /usr/local/lib/X11 \
939 /usr/X386/lib \
940 /usr/x386/lib \
941 /usr/XFree86/lib/X11 \
943 /usr/lib \
944 /usr/local/lib \
945 /usr/unsupported/lib \
946 /usr/athena/lib \
947 /usr/local/x11r5/lib \
948 /usr/lpp/Xamples/lib \
950 /usr/openwin/lib \
951 /usr/openwin/share/lib \
954 for ac_extension in a so sl; do
955 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
956 no_x= ac_x_libraries=$ac_dir
957 break 2
959 done
960 done
962 rm -f conftest*
965 if test "$no_x" = yes; then
966 ac_cv_path_x="no_x=yes"
967 else
968 ac_cv_path_x="no_x= ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
972 eval "$ac_cv_path_x"
973 fi # $with_x != no
975 if test "$no_x" = yes; then
976 echo "$ac_t""no" 1>&6
977 else
978 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
979 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
980 ac_cv_path_x="no_x= ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
981 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
984 if test "$no_x" = yes; then
985 # Not all programs may use this symbol, but it does not hurt to define it.
986 X_CFLAGS="$X_CFLAGS -DX_DISPLAY_MISSING"
987 else
988 if test -n "$x_includes"; then
989 X_CFLAGS="$X_CFLAGS -I$x_includes"
992 # It would be nice to have a more robust check for the -R ld option than
993 # just checking for Solaris.
994 # It would also be nice to do this for all -L options, not just this one.
995 if test -n "$x_libraries"; then
996 X_LIBS="$X_LIBS -L$x_libraries"
997 if test "`(uname) 2>/dev/null`" = SunOS &&
998 uname -r | grep '^5' >/dev/null; then
999 X_LIBS="$X_LIBS -R $x_libraries"
1003 # Check for libraries that X11R6 Xt/Xaw programs need.
1005 ac_save_LDFLAGS="$LDFLAGS"
1006 LDFLAGS="$LDFLAGS -L$x_libraries"
1007 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
1008 # check for ICE first), but we must link in the order -lSM -lICE or
1009 # we get undefined symbols. So assume we have SM if we have ICE.
1010 # These have to be linked with before -lX11, unlike the other
1011 # libraries we check for below, so use a different variable.
1012 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
1013 echo $ac_n "checking for -lICE""... $ac_c" 1>&6
1014 ac_lib_var=`echo ICE | tr '.-/+' '___p'`
1015 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1016 echo $ac_n "(cached) $ac_c" 1>&6
1017 else
1018 ac_save_LIBS="$LIBS"
1019 LIBS="-lICE $LIBS"
1020 cat > conftest.$ac_ext <<EOF
1021 #line 1022 "configure"
1022 #include "confdefs.h"
1024 int main() { return 0; }
1025 int t() {
1026 IceConnectionNumber()
1027 ; return 0; }
1029 if eval $ac_link; then
1030 rm -rf conftest*
1031 eval "ac_cv_lib_$ac_lib_var=yes"
1032 else
1033 rm -rf conftest*
1034 eval "ac_cv_lib_$ac_lib_var=no"
1036 rm -f conftest*
1037 LIBS="$ac_save_LIBS"
1040 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1041 echo "$ac_t""yes" 1>&6
1042 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
1043 else
1044 echo "$ac_t""no" 1>&6
1047 LDFLAGS="$ac_save_LDFLAGS"
1049 # Check for system-dependent libraries X programs must link with.
1051 if test "$ISC" = yes; then
1052 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
1053 else
1054 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1055 # libraries were built with DECnet support. And karl@cs.umb.edu says
1056 # the Alpha needs dnet_stub (dnet does not exist).
1057 echo $ac_n "checking for -ldnet""... $ac_c" 1>&6
1058 ac_lib_var=`echo dnet | tr '.-/+' '___p'`
1059 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1060 echo $ac_n "(cached) $ac_c" 1>&6
1061 else
1062 ac_save_LIBS="$LIBS"
1063 LIBS="-ldnet $LIBS"
1064 cat > conftest.$ac_ext <<EOF
1065 #line 1066 "configure"
1066 #include "confdefs.h"
1068 int main() { return 0; }
1069 int t() {
1070 dnet_ntoa()
1071 ; return 0; }
1073 if eval $ac_link; then
1074 rm -rf conftest*
1075 eval "ac_cv_lib_$ac_lib_var=yes"
1076 else
1077 rm -rf conftest*
1078 eval "ac_cv_lib_$ac_lib_var=no"
1080 rm -f conftest*
1081 LIBS="$ac_save_LIBS"
1084 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1085 echo "$ac_t""yes" 1>&6
1086 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
1087 else
1088 echo "$ac_t""no" 1>&6
1091 if test $ac_cv_lib_dnet = no; then
1092 echo $ac_n "checking for -ldnet_stub""... $ac_c" 1>&6
1093 ac_lib_var=`echo dnet_stub | tr '.-/+' '___p'`
1094 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1095 echo $ac_n "(cached) $ac_c" 1>&6
1096 else
1097 ac_save_LIBS="$LIBS"
1098 LIBS="-ldnet_stub $LIBS"
1099 cat > conftest.$ac_ext <<EOF
1100 #line 1101 "configure"
1101 #include "confdefs.h"
1103 int main() { return 0; }
1104 int t() {
1105 dnet_ntoa()
1106 ; return 0; }
1108 if eval $ac_link; then
1109 rm -rf conftest*
1110 eval "ac_cv_lib_$ac_lib_var=yes"
1111 else
1112 rm -rf conftest*
1113 eval "ac_cv_lib_$ac_lib_var=no"
1115 rm -f conftest*
1116 LIBS="$ac_save_LIBS"
1119 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1120 echo "$ac_t""yes" 1>&6
1121 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
1122 else
1123 echo "$ac_t""no" 1>&6
1128 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1129 # to get the SysV transport functions.
1130 # Not sure which flavor of 386 UNIX this is, but it seems harmless to
1131 # check for it.
1132 echo $ac_n "checking for -lnsl""... $ac_c" 1>&6
1133 ac_lib_var=`echo nsl | tr '.-/+' '___p'`
1134 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1135 echo $ac_n "(cached) $ac_c" 1>&6
1136 else
1137 ac_save_LIBS="$LIBS"
1138 LIBS="-lnsl $LIBS"
1139 cat > conftest.$ac_ext <<EOF
1140 #line 1141 "configure"
1141 #include "confdefs.h"
1143 int main() { return 0; }
1144 int t() {
1145 t_accept()
1146 ; return 0; }
1148 if eval $ac_link; then
1149 rm -rf conftest*
1150 eval "ac_cv_lib_$ac_lib_var=yes"
1151 else
1152 rm -rf conftest*
1153 eval "ac_cv_lib_$ac_lib_var=no"
1155 rm -f conftest*
1156 LIBS="$ac_save_LIBS"
1159 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1160 echo "$ac_t""yes" 1>&6
1161 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
1162 else
1163 echo "$ac_t""no" 1>&6
1167 # lieder@skyler.mavd.honeywell.com says without -lsocket,
1168 # socket/setsockopt and other routines are undefined under SCO ODT 2.0.
1169 # But -lsocket is broken on IRIX, according to simon@lia.di.epfl.ch.
1170 if test "`(uname) 2>/dev/null`" != IRIX; then
1171 echo $ac_n "checking for -lsocket""... $ac_c" 1>&6
1172 ac_lib_var=`echo socket | tr '.-/+' '___p'`
1173 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1174 echo $ac_n "(cached) $ac_c" 1>&6
1175 else
1176 ac_save_LIBS="$LIBS"
1177 LIBS="-lsocket $LIBS"
1178 cat > conftest.$ac_ext <<EOF
1179 #line 1180 "configure"
1180 #include "confdefs.h"
1182 int main() { return 0; }
1183 int t() {
1184 socket()
1185 ; return 0; }
1187 if eval $ac_link; then
1188 rm -rf conftest*
1189 eval "ac_cv_lib_$ac_lib_var=yes"
1190 else
1191 rm -rf conftest*
1192 eval "ac_cv_lib_$ac_lib_var=no"
1194 rm -f conftest*
1195 LIBS="$ac_save_LIBS"
1198 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1199 echo "$ac_t""yes" 1>&6
1200 X_EXTRA_LIBS="$X_EXTRA_LIBS -lsocket"
1201 else
1202 echo "$ac_t""no" 1>&6
1209 for ac_prog in 'bison -y' byacc
1211 # Extract the first word of "$ac_prog", so it can be a program name with args.
1212 set dummy $ac_prog; ac_word=$2
1213 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1214 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1215 echo $ac_n "(cached) $ac_c" 1>&6
1216 else
1217 if test -n "$YACC"; then
1218 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1219 else
1220 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1221 for ac_dir in $PATH; do
1222 test -z "$ac_dir" && ac_dir=.
1223 if test -f $ac_dir/$ac_word; then
1224 ac_cv_prog_YACC="$ac_prog"
1225 break
1227 done
1228 IFS="$ac_save_ifs"
1231 YACC="$ac_cv_prog_YACC"
1232 if test -n "$YACC"; then
1233 echo "$ac_t""$YACC" 1>&6
1234 else
1235 echo "$ac_t""no" 1>&6
1238 test -n "$YACC" && break
1239 done
1240 test -n "$YACC" || YACC="yacc"
1242 # Extract the first word of "flex", so it can be a program name with args.
1243 set dummy flex; ac_word=$2
1244 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1245 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1246 echo $ac_n "(cached) $ac_c" 1>&6
1247 else
1248 if test -n "$LEX"; then
1249 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1250 else
1251 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1252 for ac_dir in $PATH; do
1253 test -z "$ac_dir" && ac_dir=.
1254 if test -f $ac_dir/$ac_word; then
1255 ac_cv_prog_LEX="flex"
1256 break
1258 done
1259 IFS="$ac_save_ifs"
1260 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1263 LEX="$ac_cv_prog_LEX"
1264 if test -n "$LEX"; then
1265 echo "$ac_t""$LEX" 1>&6
1266 else
1267 echo "$ac_t""no" 1>&6
1270 if test -z "$LEXLIB"
1271 then
1272 case "$LEX" in
1273 flex*) ac_lib=fl ;;
1274 *) ac_lib=l ;;
1275 esac
1276 echo $ac_n "checking for -l$ac_lib""... $ac_c" 1>&6
1277 ac_lib_var=`echo $ac_lib | tr '.-/+' '___p'`
1278 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1279 echo $ac_n "(cached) $ac_c" 1>&6
1280 else
1281 ac_save_LIBS="$LIBS"
1282 LIBS="-l$ac_lib $LIBS"
1283 cat > conftest.$ac_ext <<EOF
1284 #line 1285 "configure"
1285 #include "confdefs.h"
1287 int main() { return 0; }
1288 int t() {
1289 yywrap()
1290 ; return 0; }
1292 if eval $ac_link; then
1293 rm -rf conftest*
1294 eval "ac_cv_lib_$ac_lib_var=yes"
1295 else
1296 rm -rf conftest*
1297 eval "ac_cv_lib_$ac_lib_var=no"
1299 rm -f conftest*
1300 LIBS="$ac_save_LIBS"
1303 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1304 echo "$ac_t""yes" 1>&6
1305 LEXLIB="-l$ac_lib"
1306 else
1307 echo "$ac_t""no" 1>&6
1312 # Extract the first word of "ranlib", so it can be a program name with args.
1313 set dummy ranlib; ac_word=$2
1314 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1315 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1316 echo $ac_n "(cached) $ac_c" 1>&6
1317 else
1318 if test -n "$RANLIB"; then
1319 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1320 else
1321 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1322 for ac_dir in $PATH; do
1323 test -z "$ac_dir" && ac_dir=.
1324 if test -f $ac_dir/$ac_word; then
1325 ac_cv_prog_RANLIB="ranlib"
1326 break
1328 done
1329 IFS="$ac_save_ifs"
1330 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1333 RANLIB="$ac_cv_prog_RANLIB"
1334 if test -n "$RANLIB"; then
1335 echo "$ac_t""$RANLIB" 1>&6
1336 else
1337 echo "$ac_t""no" 1>&6
1340 # Find a good install program. We prefer a C program (faster),
1341 # so one script is as good as another. But avoid the broken or
1342 # incompatible versions:
1343 # SysV /etc/install, /usr/sbin/install
1344 # SunOS /usr/etc/install
1345 # IRIX /sbin/install
1346 # AIX /bin/install
1347 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1348 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1349 # ./install, which can be erroneously created by make from ./install.sh.
1350 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1351 if test -z "$INSTALL"; then
1352 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1353 echo $ac_n "(cached) $ac_c" 1>&6
1354 else
1355 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1356 for ac_dir in $PATH; do
1357 # Account for people who put trailing slashes in PATH elements.
1358 case "$ac_dir/" in
1359 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1361 # OSF1 and SCO ODT 3.0 have their own names for install.
1362 for ac_prog in ginstall installbsd scoinst install; do
1363 if test -f $ac_dir/$ac_prog; then
1364 if test $ac_prog = install &&
1365 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1366 # AIX install. It has an incompatible calling convention.
1367 # OSF/1 installbsd also uses dspmsg, but is usable.
1369 else
1370 ac_cv_path_install="$ac_dir/$ac_prog -c"
1371 break 2
1374 done
1376 esac
1377 done
1378 IFS="$ac_save_ifs"
1381 if test "${ac_cv_path_install+set}" = set; then
1382 INSTALL="$ac_cv_path_install"
1383 else
1384 # As a last resort, use the slow shell script. We don't cache a
1385 # path for INSTALL within a source directory, because that will
1386 # break other packages using the cache if that directory is
1387 # removed, or if the path is relative.
1388 INSTALL="$ac_install_sh"
1391 echo "$ac_t""$INSTALL" 1>&6
1393 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1394 # It thinks the first close brace ends the variable substitution.
1395 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1397 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1399 echo $ac_n "checking for -li386""... $ac_c" 1>&6
1400 ac_lib_var=`echo i386 | tr '.-/+' '___p'`
1401 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1402 echo $ac_n "(cached) $ac_c" 1>&6
1403 else
1404 ac_save_LIBS="$LIBS"
1405 LIBS="-li386 $LIBS"
1406 cat > conftest.$ac_ext <<EOF
1407 #line 1408 "configure"
1408 #include "confdefs.h"
1410 int main() { return 0; }
1411 int t() {
1412 i386_set_ldt()
1413 ; return 0; }
1415 if eval $ac_link; then
1416 rm -rf conftest*
1417 eval "ac_cv_lib_$ac_lib_var=yes"
1418 else
1419 rm -rf conftest*
1420 eval "ac_cv_lib_$ac_lib_var=no"
1422 rm -f conftest*
1423 LIBS="$ac_save_LIBS"
1426 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1427 echo "$ac_t""yes" 1>&6
1428 LDLIBS="$LDLIBS -li386"
1429 else
1430 echo "$ac_t""no" 1>&6
1435 if test "x${GCC}" = "xyes"
1436 then
1437 CFLAGS="$CFLAGS -Wall"
1438 # If we cannot run a trivial program, we must be cross compiling.
1439 echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
1440 if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
1441 echo $ac_n "(cached) $ac_c" 1>&6
1442 else
1443 if test "$cross_compiling" = yes; then
1444 ac_cv_c_cross=yes
1445 else
1446 cat > conftest.$ac_ext <<EOF
1447 #line 1448 "configure"
1448 #include "confdefs.h"
1449 main(){return(0);}
1451 eval $ac_link
1452 if test -s conftest && (./conftest; exit) 2>/dev/null; then
1453 ac_cv_c_cross=no
1454 else
1455 ac_cv_c_cross=yes
1458 rm -fr conftest*
1461 echo "$ac_t""$ac_cv_c_cross" 1>&6
1462 cross_compiling=$ac_cv_c_cross
1464 echo $ac_n "checking "for gcc strength-reduce bug"""... $ac_c" 1>&6
1465 if eval "test \"`echo '$''{'ac_cv_c_gcc_strength_bug'+set}'`\" = set"; then
1466 echo $ac_n "(cached) $ac_c" 1>&6
1467 else
1468 if test "$cross_compiling" = yes; then
1469 ac_cv_c_gcc_strength_bug="yes"
1470 else
1471 cat > conftest.$ac_ext <<EOF
1472 #line 1473 "configure"
1473 #include "confdefs.h"
1475 int main(void) {
1476 static int Array3;
1477 unsigned int B = 3;
1478 int i;
1479 for(i=0; i<B; i++) Arrayi = i - 3;
1480 exit( Array1 != -2 );
1483 eval $ac_link
1484 if test -s conftest && (./conftest; exit) 2>/dev/null; then
1485 ac_cv_c_gcc_strength_bug="no"
1486 else
1487 ac_cv_c_gcc_strength_bug="yes"
1490 rm -fr conftest*
1493 echo "$ac_t""$ac_cv_c_gcc_strength_bug" 1>&6
1494 if test "$ac_cv_c_gcc_strength_bug" = "yes"
1495 then
1496 CFLAGS="$CFLAGS -fno-strength-reduce"
1501 for ac_func in tcgetattr usleep
1503 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1504 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1505 echo $ac_n "(cached) $ac_c" 1>&6
1506 else
1507 cat > conftest.$ac_ext <<EOF
1508 #line 1509 "configure"
1509 #include "confdefs.h"
1510 /* System header to define __stub macros and hopefully few prototypes,
1511 which can conflict with char $ac_func(); below. */
1512 #include <assert.h>
1513 /* Override any gcc2 internal prototype to avoid an error. */
1514 char $ac_func();
1516 int main() { return 0; }
1517 int t() {
1519 /* The GNU C library defines this for functions which it implements
1520 to always fail with ENOSYS. Some functions are actually named
1521 something starting with __ and the normal name is an alias. */
1522 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1523 choke me
1524 #else
1525 $ac_func();
1526 #endif
1528 ; return 0; }
1530 if eval $ac_link; then
1531 rm -rf conftest*
1532 eval "ac_cv_func_$ac_func=yes"
1533 else
1534 rm -rf conftest*
1535 eval "ac_cv_func_$ac_func=no"
1537 rm -f conftest*
1540 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1541 echo "$ac_t""yes" 1>&6
1542 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1543 cat >> confdefs.h <<EOF
1544 #define $ac_tr_func 1
1547 else
1548 echo "$ac_t""no" 1>&6
1550 done
1552 for ac_hdr in stdlib.h
1554 ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
1555 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1556 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1557 echo $ac_n "(cached) $ac_c" 1>&6
1558 else
1559 cat > conftest.$ac_ext <<EOF
1560 #line 1561 "configure"
1561 #include "confdefs.h"
1562 #include <$ac_hdr>
1564 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1565 ac_err=`grep -v '^ *+' conftest.out`
1566 if test -z "$ac_err"; then
1567 rm -rf conftest*
1568 eval "ac_cv_header_$ac_safe=yes"
1569 else
1570 echo "$ac_err" >&5
1571 rm -rf conftest*
1572 eval "ac_cv_header_$ac_safe=no"
1574 rm -f conftest*
1576 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1577 echo "$ac_t""yes" 1>&6
1578 ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
1579 cat >> confdefs.h <<EOF
1580 #define $ac_tr_hdr 1
1583 else
1584 echo "$ac_t""no" 1>&6
1586 done
1588 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
1589 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
1590 echo $ac_n "(cached) $ac_c" 1>&6
1591 else
1592 cat > conftest.$ac_ext <<EOF
1593 #line 1594 "configure"
1594 #include "confdefs.h"
1595 #include <sys/types.h>
1596 #include <sys/stat.h>
1598 #if defined(S_ISBLK) && defined(S_IFDIR)
1599 # if S_ISBLK (S_IFDIR)
1600 You lose.
1601 # endif
1602 #endif
1604 #if defined(S_ISBLK) && defined(S_IFCHR)
1605 # if S_ISBLK (S_IFCHR)
1606 You lose.
1607 # endif
1608 #endif
1610 #if defined(S_ISLNK) && defined(S_IFREG)
1611 # if S_ISLNK (S_IFREG)
1612 You lose.
1613 # endif
1614 #endif
1616 #if defined(S_ISSOCK) && defined(S_IFREG)
1617 # if S_ISSOCK (S_IFREG)
1618 You lose.
1619 # endif
1620 #endif
1623 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1624 egrep "You lose" >/dev/null 2>&1; then
1625 rm -rf conftest*
1626 ac_cv_header_stat_broken=yes
1627 else
1628 rm -rf conftest*
1629 ac_cv_header_stat_broken=no
1631 rm -f conftest*
1635 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
1636 if test $ac_cv_header_stat_broken = yes; then
1637 cat >> confdefs.h <<\EOF
1638 #define STAT_MACROS_BROKEN 1
1643 echo $ac_n "checking for working const""... $ac_c" 1>&6
1644 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1645 echo $ac_n "(cached) $ac_c" 1>&6
1646 else
1647 cat > conftest.$ac_ext <<EOF
1648 #line 1649 "configure"
1649 #include "confdefs.h"
1651 int main() { return 0; }
1652 int t() {
1654 /* Ultrix mips cc rejects this. */
1655 typedef int charset[2]; const charset x;
1656 /* SunOS 4.1.1 cc rejects this. */
1657 char const *const *ccp;
1658 char **p;
1659 /* NEC SVR4.0.2 mips cc rejects this. */
1660 struct point {int x, y;};
1661 static struct point const zero = {0,0};
1662 /* AIX XL C 1.02.0.0 rejects this.
1663 It does not let you subtract one const X* pointer from another in an arm
1664 of an if-expression whose if-part is not a constant expression */
1665 const char *g = "string";
1666 ccp = &g + (g ? g-g : 0);
1667 /* HPUX 7.0 cc rejects these. */
1668 ++ccp;
1669 p = (char**) ccp;
1670 ccp = (char const *const *) p;
1671 { /* SCO 3.2v4 cc rejects this. */
1672 char *t;
1673 char const *s = 0 ? (char *) 0 : (char const *) 0;
1675 *t++ = 0;
1677 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1678 int x[] = {25, 17};
1679 const int *foo = &x[0];
1680 ++foo;
1682 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1683 typedef const int *iptr;
1684 iptr p = 0;
1685 ++p;
1687 { /* AIX XL C 1.02.0.0 rejects this saying
1688 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1689 struct s { int j; const int *ap[3]; };
1690 struct s *b; b->j = 5;
1692 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1693 const int foo = 10;
1696 ; return 0; }
1698 if eval $ac_compile; then
1699 rm -rf conftest*
1700 ac_cv_c_const=yes
1701 else
1702 rm -rf conftest*
1703 ac_cv_c_const=no
1705 rm -f conftest*
1709 echo "$ac_t""$ac_cv_c_const" 1>&6
1710 if test $ac_cv_c_const = no; then
1711 cat >> confdefs.h <<\EOF
1712 #define const
1717 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1718 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1719 echo $ac_n "(cached) $ac_c" 1>&6
1720 else
1721 cat > conftest.$ac_ext <<EOF
1722 #line 1723 "configure"
1723 #include "confdefs.h"
1724 #include <stdlib.h>
1725 #include <stdarg.h>
1726 #include <string.h>
1727 #include <float.h>
1729 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1730 ac_err=`grep -v '^ *+' conftest.out`
1731 if test -z "$ac_err"; then
1732 rm -rf conftest*
1733 ac_cv_header_stdc=yes
1734 else
1735 echo "$ac_err" >&5
1736 rm -rf conftest*
1737 ac_cv_header_stdc=no
1739 rm -f conftest*
1741 if test $ac_cv_header_stdc = yes; then
1742 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1743 cat > conftest.$ac_ext <<EOF
1744 #line 1745 "configure"
1745 #include "confdefs.h"
1746 #include <string.h>
1748 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1749 egrep "memchr" >/dev/null 2>&1; then
1751 else
1752 rm -rf conftest*
1753 ac_cv_header_stdc=no
1755 rm -f conftest*
1759 if test $ac_cv_header_stdc = yes; then
1760 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1761 cat > conftest.$ac_ext <<EOF
1762 #line 1763 "configure"
1763 #include "confdefs.h"
1764 #include <stdlib.h>
1766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1767 egrep "free" >/dev/null 2>&1; then
1769 else
1770 rm -rf conftest*
1771 ac_cv_header_stdc=no
1773 rm -f conftest*
1777 if test $ac_cv_header_stdc = yes; then
1778 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1779 if test "$cross_compiling" = yes; then
1781 else
1782 cat > conftest.$ac_ext <<EOF
1783 #line 1784 "configure"
1784 #include "confdefs.h"
1785 #include <ctype.h>
1786 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1787 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1788 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1789 int main () { int i; for (i = 0; i < 256; i++)
1790 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1791 exit (0); }
1794 eval $ac_link
1795 if test -s conftest && (./conftest; exit) 2>/dev/null; then
1797 else
1798 ac_cv_header_stdc=no
1801 rm -fr conftest*
1805 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1806 if test $ac_cv_header_stdc = yes; then
1807 cat >> confdefs.h <<\EOF
1808 #define STDC_HEADERS 1
1813 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1814 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1815 echo $ac_n "(cached) $ac_c" 1>&6
1816 else
1817 cat > conftest.$ac_ext <<EOF
1818 #line 1819 "configure"
1819 #include "confdefs.h"
1820 #include <sys/types.h>
1821 #if STDC_HEADERS
1822 #include <stdlib.h>
1823 #endif
1825 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1826 egrep "size_t" >/dev/null 2>&1; then
1827 rm -rf conftest*
1828 ac_cv_type_size_t=yes
1829 else
1830 rm -rf conftest*
1831 ac_cv_type_size_t=no
1833 rm -f conftest*
1836 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1837 if test $ac_cv_type_size_t = no; then
1838 cat >> confdefs.h <<\EOF
1839 #define size_t unsigned
1846 MAKE_RULES=Make.rules
1849 trap '' 1 2 15
1850 cat > confcache <<\EOF
1851 # This file is a shell script that caches the results of configure
1852 # tests run on this system so they can be shared between configure
1853 # scripts and configure runs. It is not useful on other systems.
1854 # If it contains results you don't want to keep, you may remove or edit it.
1856 # By default, configure uses ./config.cache as the cache file,
1857 # creating it if it does not exist already. You can give configure
1858 # the --cache-file=FILE option to use a different cache file; that is
1859 # what configure does when it calls configure scripts in
1860 # subdirectories, so they share the cache.
1861 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1862 # config.status only pays attention to the cache file if you give it the
1863 # --recheck option to rerun configure.
1866 # Ultrix sh set writes to stderr and can't be redirected directly,
1867 # and sets the high bit in the cache file unless we assign to the vars.
1868 (set) 2>&1 |
1869 sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
1870 >> confcache
1871 if cmp -s $cache_file confcache; then
1873 else
1874 if test -w $cache_file; then
1875 echo "updating cache $cache_file"
1876 cat confcache > $cache_file
1877 else
1878 echo "not updating unwritable cache $cache_file"
1881 rm -f confcache
1883 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1885 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1886 # Let make expand exec_prefix.
1887 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1889 # Any assignment to VPATH causes Sun make to only execute
1890 # the first set of double-colon rules, so remove it if not needed.
1891 # If there is a colon in the path, we need to keep it.
1892 if test "x$srcdir" = x.; then
1893 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1896 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1898 # Transform confdefs.h into DEFS.
1899 # Protect against shell expansion while executing Makefile rules.
1900 # Protect against Makefile macro expansion.
1901 cat > conftest.defs <<\EOF
1902 s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%-D\1=\2%g
1903 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
1904 s%\[%\\&%g
1905 s%\]%\\&%g
1906 s%\$%$$%g
1908 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1909 rm -f conftest.defs
1912 # Without the "./", some shells look in PATH for config.status.
1913 : ${CONFIG_STATUS=./config.status}
1915 echo creating $CONFIG_STATUS
1916 rm -f $CONFIG_STATUS
1917 cat > $CONFIG_STATUS <<EOF
1918 #! /bin/sh
1919 # Generated automatically by configure.
1920 # Run this file to recreate the current configuration.
1921 # This directory was configured as follows,
1922 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1924 # $0 $ac_configure_args
1926 # Compiler output produced by configure, useful for debugging
1927 # configure, is in ./config.log if it exists.
1929 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1930 for ac_option
1932 case "\$ac_option" in
1933 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1934 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1935 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1936 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1937 echo "$CONFIG_STATUS generated by autoconf version 2.7"
1938 exit 0 ;;
1939 -help | --help | --hel | --he | --h)
1940 echo "\$ac_cs_usage"; exit 0 ;;
1941 *) echo "\$ac_cs_usage"; exit 1 ;;
1942 esac
1943 done
1945 ac_given_srcdir=$srcdir
1946 ac_given_INSTALL="$INSTALL"
1948 trap 'rm -fr `echo "
1949 Make.rules
1950 Makefile
1951 controls/Makefile
1952 debugger/Makefile
1953 debugger/readline/Makefile
1954 files/Makefile
1955 if1632/Makefile
1956 ipc/Makefile
1957 library/Makefile
1958 libtest/Makefile
1959 loader/Makefile
1960 memory/Makefile
1961 misc/Makefile
1962 miscemu/Makefile
1963 multimedia/Makefile
1964 objects/Makefile
1965 rc/Makefile
1966 resources/Makefile
1967 tools/Makefile
1968 win32/Makefile
1969 windows/Makefile " | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1971 cat >> $CONFIG_STATUS <<EOF
1973 # Protect against being on the right side of a sed subst in config.status.
1974 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1975 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1976 $ac_vpsub
1977 $extrasub
1978 s%@CFLAGS@%$CFLAGS%g
1979 s%@CPPFLAGS@%$CPPFLAGS%g
1980 s%@CXXFLAGS@%$CXXFLAGS%g
1981 s%@DEFS@%$DEFS%g
1982 s%@LDFLAGS@%$LDFLAGS%g
1983 s%@LIBS@%$LIBS%g
1984 s%@exec_prefix@%$exec_prefix%g
1985 s%@prefix@%$prefix%g
1986 s%@program_transform_name@%$program_transform_name%g
1987 s%@bindir@%$bindir%g
1988 s%@sbindir@%$sbindir%g
1989 s%@libexecdir@%$libexecdir%g
1990 s%@datadir@%$datadir%g
1991 s%@sysconfdir@%$sysconfdir%g
1992 s%@sharedstatedir@%$sharedstatedir%g
1993 s%@localstatedir@%$localstatedir%g
1994 s%@libdir@%$libdir%g
1995 s%@includedir@%$includedir%g
1996 s%@oldincludedir@%$oldincludedir%g
1997 s%@infodir@%$infodir%g
1998 s%@mandir@%$mandir%g
1999 s%@LDLIBS@%$LDLIBS%g
2000 s%@MAIN_TARGET@%$MAIN_TARGET%g
2001 s%@SET_MAKE@%$SET_MAKE%g
2002 s%@CC@%$CC%g
2003 s%@CPP@%$CPP%g
2004 s%@X_CFLAGS@%$X_CFLAGS%g
2005 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
2006 s%@X_LIBS@%$X_LIBS%g
2007 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
2008 s%@YACC@%$YACC%g
2009 s%@LEX@%$LEX%g
2010 s%@LEXLIB@%$LEXLIB%g
2011 s%@RANLIB@%$RANLIB%g
2012 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2013 s%@INSTALL_DATA@%$INSTALL_DATA%g
2014 /@MAKE_RULES@/r $MAKE_RULES
2015 s%@MAKE_RULES@%%g
2017 CEOF
2019 cat >> $CONFIG_STATUS <<EOF
2021 CONFIG_FILES=\${CONFIG_FILES-"Make.rules
2022 Makefile
2023 controls/Makefile
2024 debugger/Makefile
2025 debugger/readline/Makefile
2026 files/Makefile
2027 if1632/Makefile
2028 ipc/Makefile
2029 library/Makefile
2030 libtest/Makefile
2031 loader/Makefile
2032 memory/Makefile
2033 misc/Makefile
2034 miscemu/Makefile
2035 multimedia/Makefile
2036 objects/Makefile
2037 rc/Makefile
2038 resources/Makefile
2039 tools/Makefile
2040 win32/Makefile
2041 windows/Makefile "}
2043 cat >> $CONFIG_STATUS <<\EOF
2044 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2045 # Support "outfile[:infile]", defaulting infile="outfile.in".
2046 case "$ac_file" in
2047 *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
2048 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2049 *) ac_file_in="${ac_file}.in" ;;
2050 esac
2052 # Adjust relative srcdir, etc. for subdirectories.
2054 # Remove last slash and all that follows it. Not all systems have dirname.
2055 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2056 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2057 # The file is in a subdirectory.
2058 test ! -d "$ac_dir" && mkdir "$ac_dir"
2059 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2060 # A "../" for each directory in $ac_dir_suffix.
2061 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2062 else
2063 ac_dir_suffix= ac_dots=
2066 case "$ac_given_srcdir" in
2067 .) srcdir=.
2068 if test -z "$ac_dots"; then top_srcdir=.
2069 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2070 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2071 *) # Relative path.
2072 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2073 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2074 esac
2076 case "$ac_given_INSTALL" in
2077 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2078 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2079 esac
2080 echo creating "$ac_file"
2081 rm -f "$ac_file"
2082 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2083 case "$ac_file" in
2084 *Makefile*) ac_comsub="1i\\
2085 # $configure_input" ;;
2086 *) ac_comsub= ;;
2087 esac
2088 sed -e "$ac_comsub
2089 s%@configure_input@%$configure_input%g
2090 s%@srcdir@%$srcdir%g
2091 s%@top_srcdir@%$top_srcdir%g
2092 s%@INSTALL@%$INSTALL%g
2093 " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
2094 fi; done
2095 rm -f conftest.subs
2099 exit 0
2101 chmod +x $CONFIG_STATUS
2102 rm -fr confdefs* $ac_clean_files
2103 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2106 echo
2107 echo "Configure finished. Do 'make depend; make' to compile Wine."
2108 echo