Release 951226
[wine/multimedia.git] / configure
blob704cc35a345a220b037a99a63c452425a0749df5
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-ipc use inter-process communication for DDE"
19 ac_help="$ac_help
20 --with-malloc-debug enable malloc() debugging"
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.7"
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='echo $CPP $CPPFLAGS 1>&5;
508 $CPP $CPPFLAGS'
509 ac_compile='echo ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5;
510 ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5'
511 ac_link='echo ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5;
512 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5'
514 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
515 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
516 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
517 ac_n= ac_c='
518 ' ac_t=' '
519 else
520 ac_n=-n ac_c= ac_t=
522 else
523 ac_n= ac_c='\c' ac_t=
527 ac_aux_dir=
528 for ac_dir in tools $srcdir/tools; do
529 if test -f $ac_dir/install-sh; then
530 ac_aux_dir=$ac_dir
531 ac_install_sh="$ac_aux_dir/install-sh -c"
532 break
533 elif test -f $ac_dir/install.sh; then
534 ac_aux_dir=$ac_dir
535 ac_install_sh="$ac_aux_dir/install.sh -c"
536 break
538 done
539 if test -z "$ac_aux_dir"; then
540 { echo "configure: error: can not find install-sh or install.sh in tools $srcdir/tools" 1>&2; exit 1; }
542 ac_config_guess=$ac_aux_dir/config.guess
543 ac_config_sub=$ac_aux_dir/config.sub
544 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
547 # We want these before the checks, so the checks can modify their values.
548 test -z "$CFLAGS" && CFLAGS="-g -O2"
549 test -z "$LDFLAGS" && LDFLAGS=-g
550 test -z "$LDLIBS" && LDLIBS=-lm
553 # Check whether --with-library or --without-library was given.
554 if test "${with_library+set}" = set; then
555 withval="$with_library"
556 cat >> confdefs.h <<\EOF
557 #define WINELIB 1
559 MAIN_TARGET="libwine.a"
560 else
561 MAIN_TARGET="wine"
566 # Check whether --with-ipc or --without-ipc was given.
567 if test "${with_ipc+set}" = set; then
568 withval="$with_ipc"
569 cat >> confdefs.h <<\EOF
570 #define CONFIG_IPC 1
576 # Check whether --with-malloc-debug or --without-malloc-debug was given.
577 if test "${with_malloc_debug+set}" = set; then
578 withval="$with_malloc_debug"
579 cat >> confdefs.h <<\EOF
580 #define MALLOC_DEBUGGING 1
587 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
588 set dummy ${MAKE-make}; ac_make=$2
589 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
590 echo $ac_n "(cached) $ac_c" 1>&6
591 else
592 cat > conftestmake <<\EOF
593 all:
594 @echo 'ac_maketemp="${MAKE}"'
596 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
597 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
598 if test -n "$ac_maketemp"; then
599 eval ac_cv_prog_make_${ac_make}_set=yes
600 else
601 eval ac_cv_prog_make_${ac_make}_set=no
603 rm -f conftestmake
605 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
606 echo "$ac_t""yes" 1>&6
607 SET_MAKE=
608 else
609 echo "$ac_t""no" 1>&6
610 SET_MAKE="MAKE=${MAKE-make}"
613 # Extract the first word of "gcc", so it can be a program name with args.
614 set dummy gcc; ac_word=$2
615 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
616 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
617 echo $ac_n "(cached) $ac_c" 1>&6
618 else
619 if test -n "$CC"; then
620 ac_cv_prog_CC="$CC" # Let the user override the test.
621 else
622 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
623 for ac_dir in $PATH; do
624 test -z "$ac_dir" && ac_dir=.
625 if test -f $ac_dir/$ac_word; then
626 ac_cv_prog_CC="gcc"
627 break
629 done
630 IFS="$ac_save_ifs"
631 test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="cc"
634 CC="$ac_cv_prog_CC"
635 if test -n "$CC"; then
636 echo "$ac_t""$CC" 1>&6
637 else
638 echo "$ac_t""no" 1>&6
642 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
643 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
644 echo $ac_n "(cached) $ac_c" 1>&6
645 else
646 cat > conftest.c <<EOF
647 #ifdef __GNUC__
648 yes;
649 #endif
651 if ${CC-cc} -E conftest.c 2>&5 | egrep yes >/dev/null 2>&1; then
652 ac_cv_prog_gcc=yes
653 else
654 ac_cv_prog_gcc=no
658 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
659 if test $ac_cv_prog_gcc = yes; then
660 GCC=yes
661 if test "${CFLAGS+set}" != set; then
662 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
663 if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
664 echo $ac_n "(cached) $ac_c" 1>&6
665 else
666 echo 'void f(){}' > conftest.c
667 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
668 ac_cv_prog_gcc_g=yes
669 else
670 ac_cv_prog_gcc_g=no
672 rm -f conftest*
676 echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
677 if test $ac_cv_prog_gcc_g = yes; then
678 CFLAGS="-g -O"
679 else
680 CFLAGS="-O"
683 else
684 GCC=
685 test "${CFLAGS+set}" = set || CFLAGS="-g"
688 test "x${GCC}" = "xyes" && CFLAGS="$CFLAGS -Wall -fno-strength-reduce"
689 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
690 # On Suns, sometimes $CPP names a directory.
691 if test -n "$CPP" && test -d "$CPP"; then
692 CPP=
694 if test -z "$CPP"; then
695 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
696 echo $ac_n "(cached) $ac_c" 1>&6
697 else
698 # This must be in double quotes, not single quotes, because CPP may get
699 # substituted into the Makefile and "${CC-cc}" will confuse make.
700 CPP="${CC-cc} -E"
701 # On the NeXT, cc -E runs the code through the compiler's parser,
702 # not just through cpp.
703 cat > conftest.$ac_ext <<EOF
704 #line 705 "configure"
705 #include "confdefs.h"
706 #include <assert.h>
707 Syntax Error
709 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
710 ac_err=`grep -v '^ *+' conftest.out`
711 if test -z "$ac_err"; then
713 else
714 echo "$ac_err" >&5
715 rm -rf conftest*
716 CPP="${CC-cc} -E -traditional-cpp"
717 cat > conftest.$ac_ext <<EOF
718 #line 719 "configure"
719 #include "confdefs.h"
720 #include <assert.h>
721 Syntax Error
723 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
724 ac_err=`grep -v '^ *+' conftest.out`
725 if test -z "$ac_err"; then
727 else
728 echo "$ac_err" >&5
729 rm -rf conftest*
730 CPP=/lib/cpp
732 rm -f conftest*
734 rm -f conftest*
735 ac_cv_prog_CPP="$CPP"
737 CPP="$ac_cv_prog_CPP"
738 else
739 ac_cv_prog_CPP="$CPP"
741 echo "$ac_t""$CPP" 1>&6
743 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
744 if test -d /etc/conf/kconfig.d &&
745 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
746 then
747 echo "$ac_t""yes" 1>&6
748 ISC=yes # If later tests want to check for ISC.
749 cat >> confdefs.h <<\EOF
750 #define _POSIX_SOURCE 1
753 if test "$GCC" = yes; then
754 CC="$CC -posix"
755 else
756 CC="$CC -Xp"
758 else
759 echo "$ac_t""no" 1>&6
760 ISC=
763 # If we find X, set shell vars x_includes and x_libraries to the
764 # paths, otherwise set no_x=yes.
765 # Uses ac_ vars as temps to allow command line to override cache and checks.
766 # --without-x overrides everything else, but does not touch the cache.
767 echo $ac_n "checking for X""... $ac_c" 1>&6
769 # Check whether --with-x or --without-x was given.
770 if test "${with_x+set}" = set; then
771 withval="$with_x"
775 if test "x$with_x" = xno; then
776 no_x=yes
777 else
778 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
779 no_x=
780 else
781 if eval "test \"`echo '$''{'ac_cv_path_x'+set}'`\" = set"; then
782 echo $ac_n "(cached) $ac_c" 1>&6
783 else
784 # One or both of the vars are not set, and there is no cached value.
785 no_x=yes
786 rm -fr conftestdir
787 if mkdir conftestdir; then
788 cd conftestdir
789 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
790 cat > Imakefile <<'EOF'
791 acfindx:
792 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
794 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
795 no_x=
796 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
797 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
798 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
799 for ac_extension in a so sl; do
800 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
801 test -f $ac_im_libdir/libX11.$ac_extension; then
802 ac_im_usrlibdir=$ac_im_libdir; break
804 done
805 # Screen out bogus values from the imake configuration.
806 case "$ac_im_incroot" in
807 /usr/include) ;;
808 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
809 esac
810 case "$ac_im_usrlibdir" in
811 /usr/lib | /lib) ;;
812 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
813 esac
815 cd ..
816 rm -fr conftestdir
819 if test "$no_x" = yes; then
820 test -z "$x_direct_test_library" && x_direct_test_library=Xt
821 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
822 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
823 cat > conftest.$ac_ext <<EOF
824 #line 825 "configure"
825 #include "confdefs.h"
826 #include <$x_direct_test_include>
828 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
829 ac_err=`grep -v '^ *+' conftest.out`
830 if test -z "$ac_err"; then
831 rm -rf conftest*
832 no_x= ac_x_includes=
833 else
834 echo "$ac_err" >&5
835 rm -rf conftest*
836 for ac_dir in \
837 /usr/X11R6/include \
838 /usr/X11R5/include \
839 /usr/X11R4/include \
841 /usr/include/X11R6 \
842 /usr/include/X11R5 \
843 /usr/include/X11R4 \
845 /usr/local/X11R6/include \
846 /usr/local/X11R5/include \
847 /usr/local/X11R4/include \
849 /usr/local/include/X11R6 \
850 /usr/local/include/X11R5 \
851 /usr/local/include/X11R4 \
853 /usr/X11/include \
854 /usr/include/X11 \
855 /usr/local/X11/include \
856 /usr/local/include/X11 \
858 /usr/X386/include \
859 /usr/x386/include \
860 /usr/XFree86/include/X11 \
862 /usr/include \
863 /usr/local/include \
864 /usr/unsupported/include \
865 /usr/athena/include \
866 /usr/local/x11r5/include \
867 /usr/lpp/Xamples/include \
869 /usr/openwin/include \
870 /usr/openwin/share/include \
873 if test -r "$ac_dir/$x_direct_test_include"; then
874 no_x= ac_x_includes=$ac_dir
875 break
877 done
879 rm -f conftest*
881 # Check for the libraries.
882 # See if we find them without any special options.
883 # Don't add to $LIBS permanently.
884 ac_save_LIBS="$LIBS"
885 LIBS="-l$x_direct_test_library $LIBS"
886 cat > conftest.$ac_ext <<EOF
887 #line 888 "configure"
888 #include "confdefs.h"
890 int main() { return 0; }
891 int t() {
892 ${x_direct_test_function}()
893 ; return 0; }
895 if eval $ac_link; then
896 rm -rf conftest*
897 LIBS="$ac_save_LIBS" no_x= ac_x_libraries=
898 else
899 rm -rf conftest*
900 LIBS="$ac_save_LIBS"
901 # First see if replacing the include by lib works.
902 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
903 /usr/X11R6/lib \
904 /usr/X11R5/lib \
905 /usr/X11R4/lib \
907 /usr/lib/X11R6 \
908 /usr/lib/X11R5 \
909 /usr/lib/X11R4 \
911 /usr/local/X11R6/lib \
912 /usr/local/X11R5/lib \
913 /usr/local/X11R4/lib \
915 /usr/local/lib/X11R6 \
916 /usr/local/lib/X11R5 \
917 /usr/local/lib/X11R4 \
919 /usr/X11/lib \
920 /usr/lib/X11 \
921 /usr/local/X11/lib \
922 /usr/local/lib/X11 \
924 /usr/X386/lib \
925 /usr/x386/lib \
926 /usr/XFree86/lib/X11 \
928 /usr/lib \
929 /usr/local/lib \
930 /usr/unsupported/lib \
931 /usr/athena/lib \
932 /usr/local/x11r5/lib \
933 /usr/lpp/Xamples/lib \
935 /usr/openwin/lib \
936 /usr/openwin/share/lib \
939 for ac_extension in a so sl; do
940 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
941 no_x= ac_x_libraries=$ac_dir
942 break 2
944 done
945 done
947 rm -f conftest*
950 if test "$no_x" = yes; then
951 ac_cv_path_x="no_x=yes"
952 else
953 ac_cv_path_x="no_x= ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
957 eval "$ac_cv_path_x"
958 fi # $with_x != no
960 if test "$no_x" = yes; then
961 echo "$ac_t""no" 1>&6
962 else
963 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
964 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
965 ac_cv_path_x="no_x= ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
966 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
969 if test "$no_x" = yes; then
970 # Not all programs may use this symbol, but it does not hurt to define it.
971 X_CFLAGS="$X_CFLAGS -DX_DISPLAY_MISSING"
972 else
973 if test -n "$x_includes"; then
974 X_CFLAGS="$X_CFLAGS -I$x_includes"
977 # It would be nice to have a more robust check for the -R ld option than
978 # just checking for Solaris.
979 # It would also be nice to do this for all -L options, not just this one.
980 if test -n "$x_libraries"; then
981 X_LIBS="$X_LIBS -L$x_libraries"
982 if test "`(uname) 2>/dev/null`" = SunOS &&
983 uname -r | grep '^5' >/dev/null; then
984 X_LIBS="$X_LIBS -R $x_libraries"
988 # Check for libraries that X11R6 Xt/Xaw programs need.
990 ac_save_LDFLAGS="$LDFLAGS"
991 LDFLAGS="$LDFLAGS -L$x_libraries"
992 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
993 # check for ICE first), but we must link in the order -lSM -lICE or
994 # we get undefined symbols. So assume we have SM if we have ICE.
995 # These have to be linked with before -lX11, unlike the other
996 # libraries we check for below, so use a different variable.
997 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
998 echo $ac_n "checking for -lICE""... $ac_c" 1>&6
999 ac_lib_var=`echo ICE | tr '.-/+' '___p'`
1000 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1001 echo $ac_n "(cached) $ac_c" 1>&6
1002 else
1003 ac_save_LIBS="$LIBS"
1004 LIBS="-lICE $LIBS"
1005 cat > conftest.$ac_ext <<EOF
1006 #line 1007 "configure"
1007 #include "confdefs.h"
1009 int main() { return 0; }
1010 int t() {
1011 IceConnectionNumber()
1012 ; return 0; }
1014 if eval $ac_link; then
1015 rm -rf conftest*
1016 eval "ac_cv_lib_$ac_lib_var=yes"
1017 else
1018 rm -rf conftest*
1019 eval "ac_cv_lib_$ac_lib_var=no"
1021 rm -f conftest*
1022 LIBS="$ac_save_LIBS"
1025 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1026 echo "$ac_t""yes" 1>&6
1027 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
1028 else
1029 echo "$ac_t""no" 1>&6
1032 LDFLAGS="$ac_save_LDFLAGS"
1034 # Check for system-dependent libraries X programs must link with.
1036 if test "$ISC" = yes; then
1037 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
1038 else
1039 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1040 # libraries were built with DECnet support. And karl@cs.umb.edu says
1041 # the Alpha needs dnet_stub (dnet does not exist).
1042 echo $ac_n "checking for -ldnet""... $ac_c" 1>&6
1043 ac_lib_var=`echo dnet | tr '.-/+' '___p'`
1044 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1045 echo $ac_n "(cached) $ac_c" 1>&6
1046 else
1047 ac_save_LIBS="$LIBS"
1048 LIBS="-ldnet $LIBS"
1049 cat > conftest.$ac_ext <<EOF
1050 #line 1051 "configure"
1051 #include "confdefs.h"
1053 int main() { return 0; }
1054 int t() {
1055 dnet_ntoa()
1056 ; return 0; }
1058 if eval $ac_link; then
1059 rm -rf conftest*
1060 eval "ac_cv_lib_$ac_lib_var=yes"
1061 else
1062 rm -rf conftest*
1063 eval "ac_cv_lib_$ac_lib_var=no"
1065 rm -f conftest*
1066 LIBS="$ac_save_LIBS"
1069 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1070 echo "$ac_t""yes" 1>&6
1071 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
1072 else
1073 echo "$ac_t""no" 1>&6
1076 if test $ac_cv_lib_dnet = no; then
1077 echo $ac_n "checking for -ldnet_stub""... $ac_c" 1>&6
1078 ac_lib_var=`echo dnet_stub | tr '.-/+' '___p'`
1079 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1080 echo $ac_n "(cached) $ac_c" 1>&6
1081 else
1082 ac_save_LIBS="$LIBS"
1083 LIBS="-ldnet_stub $LIBS"
1084 cat > conftest.$ac_ext <<EOF
1085 #line 1086 "configure"
1086 #include "confdefs.h"
1088 int main() { return 0; }
1089 int t() {
1090 dnet_ntoa()
1091 ; return 0; }
1093 if eval $ac_link; then
1094 rm -rf conftest*
1095 eval "ac_cv_lib_$ac_lib_var=yes"
1096 else
1097 rm -rf conftest*
1098 eval "ac_cv_lib_$ac_lib_var=no"
1100 rm -f conftest*
1101 LIBS="$ac_save_LIBS"
1104 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1105 echo "$ac_t""yes" 1>&6
1106 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
1107 else
1108 echo "$ac_t""no" 1>&6
1113 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1114 # to get the SysV transport functions.
1115 # Not sure which flavor of 386 UNIX this is, but it seems harmless to
1116 # check for it.
1117 echo $ac_n "checking for -lnsl""... $ac_c" 1>&6
1118 ac_lib_var=`echo nsl | tr '.-/+' '___p'`
1119 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1120 echo $ac_n "(cached) $ac_c" 1>&6
1121 else
1122 ac_save_LIBS="$LIBS"
1123 LIBS="-lnsl $LIBS"
1124 cat > conftest.$ac_ext <<EOF
1125 #line 1126 "configure"
1126 #include "confdefs.h"
1128 int main() { return 0; }
1129 int t() {
1130 t_accept()
1131 ; return 0; }
1133 if eval $ac_link; then
1134 rm -rf conftest*
1135 eval "ac_cv_lib_$ac_lib_var=yes"
1136 else
1137 rm -rf conftest*
1138 eval "ac_cv_lib_$ac_lib_var=no"
1140 rm -f conftest*
1141 LIBS="$ac_save_LIBS"
1144 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1145 echo "$ac_t""yes" 1>&6
1146 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
1147 else
1148 echo "$ac_t""no" 1>&6
1152 # lieder@skyler.mavd.honeywell.com says without -lsocket,
1153 # socket/setsockopt and other routines are undefined under SCO ODT 2.0.
1154 # But -lsocket is broken on IRIX, according to simon@lia.di.epfl.ch.
1155 if test "`(uname) 2>/dev/null`" != IRIX; then
1156 echo $ac_n "checking for -lsocket""... $ac_c" 1>&6
1157 ac_lib_var=`echo socket | tr '.-/+' '___p'`
1158 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1159 echo $ac_n "(cached) $ac_c" 1>&6
1160 else
1161 ac_save_LIBS="$LIBS"
1162 LIBS="-lsocket $LIBS"
1163 cat > conftest.$ac_ext <<EOF
1164 #line 1165 "configure"
1165 #include "confdefs.h"
1167 int main() { return 0; }
1168 int t() {
1169 socket()
1170 ; return 0; }
1172 if eval $ac_link; then
1173 rm -rf conftest*
1174 eval "ac_cv_lib_$ac_lib_var=yes"
1175 else
1176 rm -rf conftest*
1177 eval "ac_cv_lib_$ac_lib_var=no"
1179 rm -f conftest*
1180 LIBS="$ac_save_LIBS"
1183 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1184 echo "$ac_t""yes" 1>&6
1185 X_EXTRA_LIBS="$X_EXTRA_LIBS -lsocket"
1186 else
1187 echo "$ac_t""no" 1>&6
1194 for ac_prog in 'bison -y' byacc
1196 # Extract the first word of "$ac_prog", so it can be a program name with args.
1197 set dummy $ac_prog; ac_word=$2
1198 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1199 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1200 echo $ac_n "(cached) $ac_c" 1>&6
1201 else
1202 if test -n "$YACC"; then
1203 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1204 else
1205 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1206 for ac_dir in $PATH; do
1207 test -z "$ac_dir" && ac_dir=.
1208 if test -f $ac_dir/$ac_word; then
1209 ac_cv_prog_YACC="$ac_prog"
1210 break
1212 done
1213 IFS="$ac_save_ifs"
1216 YACC="$ac_cv_prog_YACC"
1217 if test -n "$YACC"; then
1218 echo "$ac_t""$YACC" 1>&6
1219 else
1220 echo "$ac_t""no" 1>&6
1223 test -n "$YACC" && break
1224 done
1225 test -n "$YACC" || YACC="yacc"
1227 # Extract the first word of "flex", so it can be a program name with args.
1228 set dummy flex; ac_word=$2
1229 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1230 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1231 echo $ac_n "(cached) $ac_c" 1>&6
1232 else
1233 if test -n "$LEX"; then
1234 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1235 else
1236 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1237 for ac_dir in $PATH; do
1238 test -z "$ac_dir" && ac_dir=.
1239 if test -f $ac_dir/$ac_word; then
1240 ac_cv_prog_LEX="flex"
1241 break
1243 done
1244 IFS="$ac_save_ifs"
1245 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1248 LEX="$ac_cv_prog_LEX"
1249 if test -n "$LEX"; then
1250 echo "$ac_t""$LEX" 1>&6
1251 else
1252 echo "$ac_t""no" 1>&6
1255 if test -z "$LEXLIB"
1256 then
1257 case "$LEX" in
1258 flex*) ac_lib=fl ;;
1259 *) ac_lib=l ;;
1260 esac
1261 echo $ac_n "checking for -l$ac_lib""... $ac_c" 1>&6
1262 ac_lib_var=`echo $ac_lib | tr '.-/+' '___p'`
1263 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1264 echo $ac_n "(cached) $ac_c" 1>&6
1265 else
1266 ac_save_LIBS="$LIBS"
1267 LIBS="-l$ac_lib $LIBS"
1268 cat > conftest.$ac_ext <<EOF
1269 #line 1270 "configure"
1270 #include "confdefs.h"
1272 int main() { return 0; }
1273 int t() {
1274 yywrap()
1275 ; return 0; }
1277 if eval $ac_link; then
1278 rm -rf conftest*
1279 eval "ac_cv_lib_$ac_lib_var=yes"
1280 else
1281 rm -rf conftest*
1282 eval "ac_cv_lib_$ac_lib_var=no"
1284 rm -f conftest*
1285 LIBS="$ac_save_LIBS"
1288 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1289 echo "$ac_t""yes" 1>&6
1290 LEXLIB="-l$ac_lib"
1291 else
1292 echo "$ac_t""no" 1>&6
1297 # Extract the first word of "ranlib", so it can be a program name with args.
1298 set dummy ranlib; ac_word=$2
1299 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1300 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1301 echo $ac_n "(cached) $ac_c" 1>&6
1302 else
1303 if test -n "$RANLIB"; then
1304 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1305 else
1306 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1307 for ac_dir in $PATH; do
1308 test -z "$ac_dir" && ac_dir=.
1309 if test -f $ac_dir/$ac_word; then
1310 ac_cv_prog_RANLIB="ranlib"
1311 break
1313 done
1314 IFS="$ac_save_ifs"
1315 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1318 RANLIB="$ac_cv_prog_RANLIB"
1319 if test -n "$RANLIB"; then
1320 echo "$ac_t""$RANLIB" 1>&6
1321 else
1322 echo "$ac_t""no" 1>&6
1325 # Find a good install program. We prefer a C program (faster),
1326 # so one script is as good as another. But avoid the broken or
1327 # incompatible versions:
1328 # SysV /etc/install, /usr/sbin/install
1329 # SunOS /usr/etc/install
1330 # IRIX /sbin/install
1331 # AIX /bin/install
1332 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1333 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1334 # ./install, which can be erroneously created by make from ./install.sh.
1335 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1336 if test -z "$INSTALL"; then
1337 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1338 echo $ac_n "(cached) $ac_c" 1>&6
1339 else
1340 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1341 for ac_dir in $PATH; do
1342 # Account for people who put trailing slashes in PATH elements.
1343 case "$ac_dir/" in
1344 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1346 # OSF1 and SCO ODT 3.0 have their own names for install.
1347 for ac_prog in ginstall installbsd scoinst install; do
1348 if test -f $ac_dir/$ac_prog; then
1349 if test $ac_prog = install &&
1350 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1351 # AIX install. It has an incompatible calling convention.
1352 # OSF/1 installbsd also uses dspmsg, but is usable.
1354 else
1355 ac_cv_path_install="$ac_dir/$ac_prog -c"
1356 break 2
1359 done
1361 esac
1362 done
1363 IFS="$ac_save_ifs"
1366 if test "${ac_cv_path_install+set}" = set; then
1367 INSTALL="$ac_cv_path_install"
1368 else
1369 # As a last resort, use the slow shell script. We don't cache a
1370 # path for INSTALL within a source directory, because that will
1371 # break other packages using the cache if that directory is
1372 # removed, or if the path is relative.
1373 INSTALL="$ac_install_sh"
1376 echo "$ac_t""$INSTALL" 1>&6
1378 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1379 # It thinks the first close brace ends the variable substitution.
1380 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1382 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1384 echo $ac_n "checking for -li386""... $ac_c" 1>&6
1385 ac_lib_var=`echo i386 | tr '.-/+' '___p'`
1386 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1387 echo $ac_n "(cached) $ac_c" 1>&6
1388 else
1389 ac_save_LIBS="$LIBS"
1390 LIBS="-li386 $LIBS"
1391 cat > conftest.$ac_ext <<EOF
1392 #line 1393 "configure"
1393 #include "confdefs.h"
1395 int main() { return 0; }
1396 int t() {
1397 i386_set_ldt()
1398 ; return 0; }
1400 if eval $ac_link; then
1401 rm -rf conftest*
1402 eval "ac_cv_lib_$ac_lib_var=yes"
1403 else
1404 rm -rf conftest*
1405 eval "ac_cv_lib_$ac_lib_var=no"
1407 rm -f conftest*
1408 LIBS="$ac_save_LIBS"
1411 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1412 echo "$ac_t""yes" 1>&6
1413 LDLIBS="$LDLIBS -li386"
1414 else
1415 echo "$ac_t""no" 1>&6
1420 for ac_func in tcgetattr
1422 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1423 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1424 echo $ac_n "(cached) $ac_c" 1>&6
1425 else
1426 cat > conftest.$ac_ext <<EOF
1427 #line 1428 "configure"
1428 #include "confdefs.h"
1429 /* System header to define __stub macros and hopefully few prototypes,
1430 which can conflict with char $ac_func(); below. */
1431 #include <assert.h>
1432 /* Override any gcc2 internal prototype to avoid an error. */
1433 char $ac_func();
1435 int main() { return 0; }
1436 int t() {
1438 /* The GNU C library defines this for functions which it implements
1439 to always fail with ENOSYS. Some functions are actually named
1440 something starting with __ and the normal name is an alias. */
1441 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1442 choke me
1443 #else
1444 $ac_func();
1445 #endif
1447 ; return 0; }
1449 if eval $ac_link; then
1450 rm -rf conftest*
1451 eval "ac_cv_func_$ac_func=yes"
1452 else
1453 rm -rf conftest*
1454 eval "ac_cv_func_$ac_func=no"
1456 rm -f conftest*
1459 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1460 echo "$ac_t""yes" 1>&6
1461 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1462 cat >> confdefs.h <<EOF
1463 #define $ac_tr_func 1
1466 else
1467 echo "$ac_t""no" 1>&6
1469 done
1471 for ac_hdr in stdlib.h
1473 ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
1474 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1475 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1476 echo $ac_n "(cached) $ac_c" 1>&6
1477 else
1478 cat > conftest.$ac_ext <<EOF
1479 #line 1480 "configure"
1480 #include "confdefs.h"
1481 #include <$ac_hdr>
1483 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1484 ac_err=`grep -v '^ *+' conftest.out`
1485 if test -z "$ac_err"; then
1486 rm -rf conftest*
1487 eval "ac_cv_header_$ac_safe=yes"
1488 else
1489 echo "$ac_err" >&5
1490 rm -rf conftest*
1491 eval "ac_cv_header_$ac_safe=no"
1493 rm -f conftest*
1495 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1496 echo "$ac_t""yes" 1>&6
1497 ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
1498 cat >> confdefs.h <<EOF
1499 #define $ac_tr_hdr 1
1502 else
1503 echo "$ac_t""no" 1>&6
1505 done
1507 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
1508 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
1509 echo $ac_n "(cached) $ac_c" 1>&6
1510 else
1511 cat > conftest.$ac_ext <<EOF
1512 #line 1513 "configure"
1513 #include "confdefs.h"
1514 #include <sys/types.h>
1515 #include <sys/stat.h>
1517 #if defined(S_ISBLK) && defined(S_IFDIR)
1518 # if S_ISBLK (S_IFDIR)
1519 You lose.
1520 # endif
1521 #endif
1523 #if defined(S_ISBLK) && defined(S_IFCHR)
1524 # if S_ISBLK (S_IFCHR)
1525 You lose.
1526 # endif
1527 #endif
1529 #if defined(S_ISLNK) && defined(S_IFREG)
1530 # if S_ISLNK (S_IFREG)
1531 You lose.
1532 # endif
1533 #endif
1535 #if defined(S_ISSOCK) && defined(S_IFREG)
1536 # if S_ISSOCK (S_IFREG)
1537 You lose.
1538 # endif
1539 #endif
1542 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1543 egrep "You lose" >/dev/null 2>&1; then
1544 rm -rf conftest*
1545 ac_cv_header_stat_broken=yes
1546 else
1547 rm -rf conftest*
1548 ac_cv_header_stat_broken=no
1550 rm -f conftest*
1554 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
1555 if test $ac_cv_header_stat_broken = yes; then
1556 cat >> confdefs.h <<\EOF
1557 #define STAT_MACROS_BROKEN 1
1562 echo $ac_n "checking for working const""... $ac_c" 1>&6
1563 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1564 echo $ac_n "(cached) $ac_c" 1>&6
1565 else
1566 cat > conftest.$ac_ext <<EOF
1567 #line 1568 "configure"
1568 #include "confdefs.h"
1570 int main() { return 0; }
1571 int t() {
1573 /* Ultrix mips cc rejects this. */
1574 typedef int charset[2]; const charset x;
1575 /* SunOS 4.1.1 cc rejects this. */
1576 char const *const *ccp;
1577 char **p;
1578 /* NEC SVR4.0.2 mips cc rejects this. */
1579 struct point {int x, y;};
1580 static struct point const zero = {0,0};
1581 /* AIX XL C 1.02.0.0 rejects this.
1582 It does not let you subtract one const X* pointer from another in an arm
1583 of an if-expression whose if-part is not a constant expression */
1584 const char *g = "string";
1585 ccp = &g + (g ? g-g : 0);
1586 /* HPUX 7.0 cc rejects these. */
1587 ++ccp;
1588 p = (char**) ccp;
1589 ccp = (char const *const *) p;
1590 { /* SCO 3.2v4 cc rejects this. */
1591 char *t;
1592 char const *s = 0 ? (char *) 0 : (char const *) 0;
1594 *t++ = 0;
1596 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1597 int x[] = {25, 17};
1598 const int *foo = &x[0];
1599 ++foo;
1601 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1602 typedef const int *iptr;
1603 iptr p = 0;
1604 ++p;
1606 { /* AIX XL C 1.02.0.0 rejects this saying
1607 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1608 struct s { int j; const int *ap[3]; };
1609 struct s *b; b->j = 5;
1611 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1612 const int foo = 10;
1615 ; return 0; }
1617 if eval $ac_compile; then
1618 rm -rf conftest*
1619 ac_cv_c_const=yes
1620 else
1621 rm -rf conftest*
1622 ac_cv_c_const=no
1624 rm -f conftest*
1628 echo "$ac_t""$ac_cv_c_const" 1>&6
1629 if test $ac_cv_c_const = no; then
1630 cat >> confdefs.h <<\EOF
1631 #define const
1636 # If we cannot run a trivial program, we must be cross compiling.
1637 echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
1638 if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
1639 echo $ac_n "(cached) $ac_c" 1>&6
1640 else
1641 if test "$cross_compiling" = yes; then
1642 ac_cv_c_cross=yes
1643 else
1644 cat > conftest.$ac_ext <<EOF
1645 #line 1646 "configure"
1646 #include "confdefs.h"
1647 main(){return(0);}
1649 eval $ac_link
1650 if test -s conftest && (./conftest; exit) 2>/dev/null; then
1651 ac_cv_c_cross=no
1652 else
1653 ac_cv_c_cross=yes
1656 rm -fr conftest*
1659 echo "$ac_t""$ac_cv_c_cross" 1>&6
1660 cross_compiling=$ac_cv_c_cross
1662 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1663 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1664 echo $ac_n "(cached) $ac_c" 1>&6
1665 else
1666 cat > conftest.$ac_ext <<EOF
1667 #line 1668 "configure"
1668 #include "confdefs.h"
1669 #include <stdlib.h>
1670 #include <stdarg.h>
1671 #include <string.h>
1672 #include <float.h>
1674 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1675 ac_err=`grep -v '^ *+' conftest.out`
1676 if test -z "$ac_err"; then
1677 rm -rf conftest*
1678 ac_cv_header_stdc=yes
1679 else
1680 echo "$ac_err" >&5
1681 rm -rf conftest*
1682 ac_cv_header_stdc=no
1684 rm -f conftest*
1686 if test $ac_cv_header_stdc = yes; then
1687 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1688 cat > conftest.$ac_ext <<EOF
1689 #line 1690 "configure"
1690 #include "confdefs.h"
1691 #include <string.h>
1693 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1694 egrep "memchr" >/dev/null 2>&1; then
1696 else
1697 rm -rf conftest*
1698 ac_cv_header_stdc=no
1700 rm -f conftest*
1704 if test $ac_cv_header_stdc = yes; then
1705 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1706 cat > conftest.$ac_ext <<EOF
1707 #line 1708 "configure"
1708 #include "confdefs.h"
1709 #include <stdlib.h>
1711 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1712 egrep "free" >/dev/null 2>&1; then
1714 else
1715 rm -rf conftest*
1716 ac_cv_header_stdc=no
1718 rm -f conftest*
1722 if test $ac_cv_header_stdc = yes; then
1723 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1724 if test "$cross_compiling" = yes; then
1726 else
1727 cat > conftest.$ac_ext <<EOF
1728 #line 1729 "configure"
1729 #include "confdefs.h"
1730 #include <ctype.h>
1731 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1732 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1733 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1734 int main () { int i; for (i = 0; i < 256; i++)
1735 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1736 exit (0); }
1739 eval $ac_link
1740 if test -s conftest && (./conftest; exit) 2>/dev/null; then
1742 else
1743 ac_cv_header_stdc=no
1746 rm -fr conftest*
1750 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1751 if test $ac_cv_header_stdc = yes; then
1752 cat >> confdefs.h <<\EOF
1753 #define STDC_HEADERS 1
1758 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1759 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1760 echo $ac_n "(cached) $ac_c" 1>&6
1761 else
1762 cat > conftest.$ac_ext <<EOF
1763 #line 1764 "configure"
1764 #include "confdefs.h"
1765 #include <sys/types.h>
1766 #if STDC_HEADERS
1767 #include <stdlib.h>
1768 #endif
1770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1771 egrep "size_t" >/dev/null 2>&1; then
1772 rm -rf conftest*
1773 ac_cv_type_size_t=yes
1774 else
1775 rm -rf conftest*
1776 ac_cv_type_size_t=no
1778 rm -f conftest*
1781 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1782 if test $ac_cv_type_size_t = no; then
1783 cat >> confdefs.h <<\EOF
1784 #define size_t unsigned
1791 MAKE_RULES=Make.rules
1794 trap '' 1 2 15
1795 cat > confcache <<\EOF
1796 # This file is a shell script that caches the results of configure
1797 # tests run on this system so they can be shared between configure
1798 # scripts and configure runs. It is not useful on other systems.
1799 # If it contains results you don't want to keep, you may remove or edit it.
1801 # By default, configure uses ./config.cache as the cache file,
1802 # creating it if it does not exist already. You can give configure
1803 # the --cache-file=FILE option to use a different cache file; that is
1804 # what configure does when it calls configure scripts in
1805 # subdirectories, so they share the cache.
1806 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1807 # config.status only pays attention to the cache file if you give it the
1808 # --recheck option to rerun configure.
1811 # Ultrix sh set writes to stderr and can't be redirected directly,
1812 # and sets the high bit in the cache file unless we assign to the vars.
1813 (set) 2>&1 |
1814 sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
1815 >> confcache
1816 if cmp -s $cache_file confcache; then
1818 else
1819 if test -w $cache_file; then
1820 echo "updating cache $cache_file"
1821 cat confcache > $cache_file
1822 else
1823 echo "not updating unwritable cache $cache_file"
1826 rm -f confcache
1828 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1830 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1831 # Let make expand exec_prefix.
1832 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1834 # Any assignment to VPATH causes Sun make to only execute
1835 # the first set of double-colon rules, so remove it if not needed.
1836 # If there is a colon in the path, we need to keep it.
1837 if test "x$srcdir" = x.; then
1838 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1841 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1843 # Transform confdefs.h into DEFS.
1844 # Protect against shell expansion while executing Makefile rules.
1845 # Protect against Makefile macro expansion.
1846 cat > conftest.defs <<\EOF
1847 s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%-D\1=\2%g
1848 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
1849 s%\[%\\&%g
1850 s%\]%\\&%g
1851 s%\$%$$%g
1853 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1854 rm -f conftest.defs
1857 # Without the "./", some shells look in PATH for config.status.
1858 : ${CONFIG_STATUS=./config.status}
1860 echo creating $CONFIG_STATUS
1861 rm -f $CONFIG_STATUS
1862 cat > $CONFIG_STATUS <<EOF
1863 #! /bin/sh
1864 # Generated automatically by configure.
1865 # Run this file to recreate the current configuration.
1866 # This directory was configured as follows,
1867 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1869 # $0 $ac_configure_args
1871 # Compiler output produced by configure, useful for debugging
1872 # configure, is in ./config.log if it exists.
1874 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1875 for ac_option
1877 case "\$ac_option" in
1878 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1879 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1880 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1881 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1882 echo "$CONFIG_STATUS generated by autoconf version 2.7"
1883 exit 0 ;;
1884 -help | --help | --hel | --he | --h)
1885 echo "\$ac_cs_usage"; exit 0 ;;
1886 *) echo "\$ac_cs_usage"; exit 1 ;;
1887 esac
1888 done
1890 ac_given_srcdir=$srcdir
1891 ac_given_INSTALL="$INSTALL"
1893 trap 'rm -fr `echo "
1894 Make.rules
1895 Makefile
1896 controls/Makefile
1897 debugger/Makefile
1898 debugger/readline/Makefile
1899 if1632/Makefile
1900 ipc/Makefile
1901 library/Makefile
1902 libtest/Makefile
1903 loader/Makefile
1904 memory/Makefile
1905 misc/Makefile
1906 miscemu/Makefile
1907 multimedia/Makefile
1908 objects/Makefile
1909 rc/Makefile
1910 resources/Makefile
1911 tools/Makefile
1912 win32/Makefile
1913 windows/Makefile " | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1915 cat >> $CONFIG_STATUS <<EOF
1917 # Protect against being on the right side of a sed subst in config.status.
1918 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1919 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1920 $ac_vpsub
1921 $extrasub
1922 s%@CFLAGS@%$CFLAGS%g
1923 s%@CPPFLAGS@%$CPPFLAGS%g
1924 s%@CXXFLAGS@%$CXXFLAGS%g
1925 s%@DEFS@%$DEFS%g
1926 s%@LDFLAGS@%$LDFLAGS%g
1927 s%@LIBS@%$LIBS%g
1928 s%@exec_prefix@%$exec_prefix%g
1929 s%@prefix@%$prefix%g
1930 s%@program_transform_name@%$program_transform_name%g
1931 s%@bindir@%$bindir%g
1932 s%@sbindir@%$sbindir%g
1933 s%@libexecdir@%$libexecdir%g
1934 s%@datadir@%$datadir%g
1935 s%@sysconfdir@%$sysconfdir%g
1936 s%@sharedstatedir@%$sharedstatedir%g
1937 s%@localstatedir@%$localstatedir%g
1938 s%@libdir@%$libdir%g
1939 s%@includedir@%$includedir%g
1940 s%@oldincludedir@%$oldincludedir%g
1941 s%@infodir@%$infodir%g
1942 s%@mandir@%$mandir%g
1943 s%@LDLIBS@%$LDLIBS%g
1944 s%@MAIN_TARGET@%$MAIN_TARGET%g
1945 s%@SET_MAKE@%$SET_MAKE%g
1946 s%@CC@%$CC%g
1947 s%@CPP@%$CPP%g
1948 s%@X_CFLAGS@%$X_CFLAGS%g
1949 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
1950 s%@X_LIBS@%$X_LIBS%g
1951 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
1952 s%@YACC@%$YACC%g
1953 s%@LEX@%$LEX%g
1954 s%@LEXLIB@%$LEXLIB%g
1955 s%@RANLIB@%$RANLIB%g
1956 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1957 s%@INSTALL_DATA@%$INSTALL_DATA%g
1958 /@MAKE_RULES@/r $MAKE_RULES
1959 s%@MAKE_RULES@%%g
1961 CEOF
1963 cat >> $CONFIG_STATUS <<EOF
1965 CONFIG_FILES=\${CONFIG_FILES-"Make.rules
1966 Makefile
1967 controls/Makefile
1968 debugger/Makefile
1969 debugger/readline/Makefile
1970 if1632/Makefile
1971 ipc/Makefile
1972 library/Makefile
1973 libtest/Makefile
1974 loader/Makefile
1975 memory/Makefile
1976 misc/Makefile
1977 miscemu/Makefile
1978 multimedia/Makefile
1979 objects/Makefile
1980 rc/Makefile
1981 resources/Makefile
1982 tools/Makefile
1983 win32/Makefile
1984 windows/Makefile "}
1986 cat >> $CONFIG_STATUS <<\EOF
1987 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1988 # Support "outfile[:infile]", defaulting infile="outfile.in".
1989 case "$ac_file" in
1990 *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
1991 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1992 *) ac_file_in="${ac_file}.in" ;;
1993 esac
1995 # Adjust relative srcdir, etc. for subdirectories.
1997 # Remove last slash and all that follows it. Not all systems have dirname.
1998 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1999 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2000 # The file is in a subdirectory.
2001 test ! -d "$ac_dir" && mkdir "$ac_dir"
2002 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2003 # A "../" for each directory in $ac_dir_suffix.
2004 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2005 else
2006 ac_dir_suffix= ac_dots=
2009 case "$ac_given_srcdir" in
2010 .) srcdir=.
2011 if test -z "$ac_dots"; then top_srcdir=.
2012 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2013 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2014 *) # Relative path.
2015 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2016 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2017 esac
2019 case "$ac_given_INSTALL" in
2020 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2021 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2022 esac
2023 echo creating "$ac_file"
2024 rm -f "$ac_file"
2025 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2026 case "$ac_file" in
2027 *Makefile*) ac_comsub="1i\\
2028 # $configure_input" ;;
2029 *) ac_comsub= ;;
2030 esac
2031 sed -e "$ac_comsub
2032 s%@configure_input@%$configure_input%g
2033 s%@srcdir@%$srcdir%g
2034 s%@top_srcdir@%$top_srcdir%g
2035 s%@INSTALL@%$INSTALL%g
2036 " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
2037 fi; done
2038 rm -f conftest.subs
2042 exit 0
2044 chmod +x $CONFIG_STATUS
2045 rm -fr confdefs* $ac_clean_files
2046 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2049 echo
2050 echo "Configure finished. Do 'make depend; make' to compile Wine."
2051 echo