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.
13 ac_default_prefix
=/usr
/local
14 # Any additions from configure.in:
16 --with-library build Wine as a library instead of an emulator"
18 --with-ipc use inter-process communication for DDE"
20 --with-malloc-debug enable malloc() debugging"
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.
28 cache_file
=.
/config.cache
37 program_transform_name
=s
,x
,x
,
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.
66 # If the previous option needs an argument, assign it.
67 if test -n "$ac_prev"; then
68 eval "$ac_prev=\$ac_option"
74 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
78 # Accept the important Cygnus configure options, so we can diagnose typos.
82 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
84 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
85 bindir
="$ac_optarg" ;;
87 -build |
--build |
--buil |
--bui |
--bu)
89 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
92 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
93 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
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)
101 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
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'`
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.
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.
144 Usage: configure [options] [host]
145 Options: [defaults in brackets after descriptions]
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
155 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
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
162 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
163 --sharedstatedir=DIR modifiable architecture-independent data in DIR
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
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"
195 -host |
--host |
--hos |
--ho)
197 -host=* |
--host=* |
--hos=* |
--ho=*)
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)
209 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
210 infodir
="$ac_optarg" ;;
212 -libdir |
--libdir |
--libdi |
--libd)
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)
235 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
236 mandir
="$ac_optarg" ;;
239 # Obsolete; use --without-fp.
242 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
246 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
247 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
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)
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)
299 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
301 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
303 sbindir
="$ac_optarg" ;;
305 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
306 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
307 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
309 ac_prev
=sharedstatedir
;;
310 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
311 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
312 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
314 sharedstatedir
="$ac_optarg" ;;
316 -site |
--site |
--sit)
318 -site=* |
--site=* |
--sit=*)
321 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
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)
335 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
336 target
="$ac_optarg" ;;
338 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
341 -version |
--version |
--versio |
--versi |
--vers)
342 echo "configure generated by autoconf version 2.7"
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'`
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" ;;
368 # Obsolete; use --with-x.
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; }
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:
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
423 This file contains any messages produced by compilers while
424 running configure, to aid debugging if configure makes a mistake.
427 # Strip out --no-create and --no-recursion so they do not pile up.
428 # Also quote any args containing shell metacharacters.
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" ;;
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.
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.
464 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
465 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
467 if test ! -r $srcdir/$ac_unique_file; then
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; }
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"
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"
497 if test -r "$cache_file"; then
498 echo "loading cache $cache_file"
501 echo "creating cache $cache_file"
506 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
507 ac_cpp
='echo $CPP $CPPFLAGS 1>&5;
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
523 ac_n
= ac_c
='\c' ac_t
=
528 for ac_dir
in tools
$srcdir/tools
; do
529 if test -f $ac_dir/install-sh
; then
531 ac_install_sh
="$ac_aux_dir/install-sh -c"
533 elif test -f $ac_dir/install.sh
; then
535 ac_install_sh
="$ac_aux_dir/install.sh -c"
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
559 MAIN_TARGET
="libwine.a"
566 # Check whether --with-ipc or --without-ipc was given.
567 if test "${with_ipc+set}" = set; then
569 cat >> confdefs.h
<<\EOF
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
592 cat > conftestmake
<<\EOF
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
601 eval ac_cv_prog_make_
${ac_make}_set
=no
605 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
606 echo "$ac_t""yes" 1>&6
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
619 if test -n "$CC"; then
620 ac_cv_prog_CC
="$CC" # Let the user override the test.
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
631 test -z "$ac_cv_prog_CC" && ac_cv_prog_CC
="cc"
635 if test -n "$CC"; then
636 echo "$ac_t""$CC" 1>&6
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
646 cat > conftest.c
<<EOF
651 if ${CC-cc} -E conftest.c
2>&5 |
egrep yes >/dev
/null
2>&1; then
658 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
659 if test $ac_cv_prog_gcc = yes; then
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
666 echo 'void f(){}' > conftest.c
667 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
676 echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
677 if test $ac_cv_prog_gcc_g = yes; then
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
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
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.
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"
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
716 CPP
="${CC-cc} -E -traditional-cpp"
717 cat > conftest.
$ac_ext <<EOF
718 #line 719 "configure"
719 #include "confdefs.h"
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
735 ac_cv_prog_CPP
="$CPP"
737 CPP
="$ac_cv_prog_CPP"
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
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
759 echo "$ac_t""no" 1>&6
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
775 if test "x$with_x" = xno
; then
778 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
781 if eval "test \"`echo '$''{'ac_cv_path_x'+set}'`\" = set"; then
782 echo $ac_n "(cached) $ac_c" 1>&6
784 # One or both of the vars are not set, and there is no cached value.
787 if mkdir conftestdir
; then
789 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
790 cat > Imakefile
<<'EOF'
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
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
805 # Screen out bogus values from the imake configuration.
806 case "$ac_im_incroot" in
808 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
810 case "$ac_im_usrlibdir" in
812 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
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
845 /usr
/local
/X11R
6/include \
846 /usr
/local
/X11R
5/include \
847 /usr
/local
/X11R
4/include \
849 /usr
/local
/include
/X11R6 \
850 /usr
/local
/include
/X11R5 \
851 /usr
/local
/include
/X11R4 \
855 /usr
/local
/X11
/include \
856 /usr
/local
/include
/X11 \
860 /usr
/XFree86
/include
/X11 \
864 /usr
/unsupported
/include \
865 /usr
/athena
/include \
866 /usr
/local
/x11r
5/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
881 # Check for the libraries.
882 # See if we find them without any special options.
883 # Don't add to $LIBS permanently.
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; }
892 ${x_direct_test_function}()
895 if eval $ac_link; then
897 LIBS
="$ac_save_LIBS" no_x
= ac_x_libraries
=
901 # First see if replacing the include by lib works.
902 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
911 /usr
/local
/X11R
6/lib \
912 /usr
/local
/X11R
5/lib \
913 /usr
/local
/X11R
4/lib \
915 /usr
/local
/lib
/X11R6 \
916 /usr
/local
/lib
/X11R5 \
917 /usr
/local
/lib
/X11R4 \
926 /usr
/XFree86
/lib
/X11 \
930 /usr
/unsupported
/lib \
932 /usr
/local
/x11r
5/lib \
933 /usr
/lpp
/Xamples
/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
950 if test "$no_x" = yes; then
951 ac_cv_path_x
="no_x=yes"
953 ac_cv_path_x
="no_x= ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
960 if test "$no_x" = yes; then
961 echo "$ac_t""no" 1>&6
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"
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
1003 ac_save_LIBS
="$LIBS"
1005 cat > conftest.
$ac_ext <<EOF
1006 #line 1007 "configure"
1007 #include "confdefs.h"
1009 int main() { return 0; }
1011 IceConnectionNumber()
1014 if eval $ac_link; then
1016 eval "ac_cv_lib_$ac_lib_var=yes"
1019 eval "ac_cv_lib_$ac_lib_var=no"
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"
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"
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
1047 ac_save_LIBS
="$LIBS"
1049 cat > conftest.
$ac_ext <<EOF
1050 #line 1051 "configure"
1051 #include "confdefs.h"
1053 int main() { return 0; }
1058 if eval $ac_link; then
1060 eval "ac_cv_lib_$ac_lib_var=yes"
1063 eval "ac_cv_lib_$ac_lib_var=no"
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"
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
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; }
1093 if eval $ac_link; then
1095 eval "ac_cv_lib_$ac_lib_var=yes"
1098 eval "ac_cv_lib_$ac_lib_var=no"
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"
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
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
1122 ac_save_LIBS
="$LIBS"
1124 cat > conftest.
$ac_ext <<EOF
1125 #line 1126 "configure"
1126 #include "confdefs.h"
1128 int main() { return 0; }
1133 if eval $ac_link; then
1135 eval "ac_cv_lib_$ac_lib_var=yes"
1138 eval "ac_cv_lib_$ac_lib_var=no"
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"
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
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; }
1172 if eval $ac_link; then
1174 eval "ac_cv_lib_$ac_lib_var=yes"
1177 eval "ac_cv_lib_$ac_lib_var=no"
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"
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
1202 if test -n "$YACC"; then
1203 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
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"
1216 YACC
="$ac_cv_prog_YACC"
1217 if test -n "$YACC"; then
1218 echo "$ac_t""$YACC" 1>&6
1220 echo "$ac_t""no" 1>&6
1223 test -n "$YACC" && break
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
1233 if test -n "$LEX"; then
1234 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
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"
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
1252 echo "$ac_t""no" 1>&6
1255 if test -z "$LEXLIB"
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
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; }
1277 if eval $ac_link; then
1279 eval "ac_cv_lib_$ac_lib_var=yes"
1282 eval "ac_cv_lib_$ac_lib_var=no"
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
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
1303 if test -n "$RANLIB"; then
1304 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
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"
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
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
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
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.
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.
1355 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1366 if test "${ac_cv_path_install+set}" = set; then
1367 INSTALL
="$ac_cv_path_install"
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
1389 ac_save_LIBS
="$LIBS"
1391 cat > conftest.
$ac_ext <<EOF
1392 #line 1393 "configure"
1393 #include "confdefs.h"
1395 int main() { return 0; }
1400 if eval $ac_link; then
1402 eval "ac_cv_lib_$ac_lib_var=yes"
1405 eval "ac_cv_lib_$ac_lib_var=no"
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"
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
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. */
1432 /* Override any gcc2 internal prototype to avoid an error. */
1435 int main() { return 0; }
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)
1449 if eval $ac_link; then
1451 eval "ac_cv_func_$ac_func=yes"
1454 eval "ac_cv_func_$ac_func=no"
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
1467 echo "$ac_t""no" 1>&6
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
1478 cat > conftest.
$ac_ext <<EOF
1479 #line 1480 "configure"
1480 #include "confdefs.h"
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
1487 eval "ac_cv_header_$ac_safe=yes"
1491 eval "ac_cv_header_$ac_safe=no"
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
1503 echo "$ac_t""no" 1>&6
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
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)
1523 #if defined(S_ISBLK) && defined(S_IFCHR)
1524 # if S_ISBLK (S_IFCHR)
1529 #if defined(S_ISLNK) && defined(S_IFREG)
1530 # if S_ISLNK (S_IFREG)
1535 #if defined(S_ISSOCK) && defined(S_IFREG)
1536 # if S_ISSOCK (S_IFREG)
1542 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1543 egrep "You lose" >/dev
/null
2>&1; then
1545 ac_cv_header_stat_broken
=yes
1548 ac_cv_header_stat_broken
=no
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
1566 cat > conftest.
$ac_ext <<EOF
1567 #line 1568 "configure"
1568 #include "confdefs.h"
1570 int main() { return 0; }
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;
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. */
1589 ccp = (char const *const *) p;
1590 { /* SCO 3.2v4 cc rejects this. */
1592 char const *s = 0 ? (char *) 0 : (char const *) 0;
1596 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1598 const int *foo = &x[0];
1601 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1602 typedef const int *iptr;
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 */
1617 if eval $ac_compile; then
1628 echo "$ac_t""$ac_cv_c_const" 1>&6
1629 if test $ac_cv_c_const = no
; then
1630 cat >> confdefs.h
<<\EOF
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
1641 if test "$cross_compiling" = yes; then
1644 cat > conftest.
$ac_ext <<EOF
1645 #line 1646 "configure"
1646 #include "confdefs.h"
1650 if test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
; then
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
1666 cat > conftest.
$ac_ext <<EOF
1667 #line 1668 "configure"
1668 #include "confdefs.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
1678 ac_cv_header_stdc
=yes
1682 ac_cv_header_stdc
=no
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"
1693 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1694 egrep "memchr" >/dev
/null
2>&1; then
1698 ac_cv_header_stdc
=no
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"
1711 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1712 egrep "free" >/dev
/null
2>&1; then
1716 ac_cv_header_stdc
=no
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
1727 cat > conftest.
$ac_ext <<EOF
1728 #line 1729 "configure"
1729 #include "confdefs.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);
1740 if test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
; then
1743 ac_cv_header_stdc
=no
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
1762 cat > conftest.
$ac_ext <<EOF
1763 #line 1764 "configure"
1764 #include "confdefs.h"
1765 #include <sys/types.h>
1770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1771 egrep "size_t" >/dev
/null
2>&1; then
1773 ac_cv_type_size_t
=yes
1776 ac_cv_type_size_t
=no
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
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.
1814 sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
1816 if cmp -s $cache_file confcache
; then
1819 if test -w $cache_file; then
1820 echo "updating cache $cache_file"
1821 cat confcache
> $cache_file
1823 echo "not updating unwritable cache $cache_file"
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
1853 DEFS=`sed -f conftest.defs confdefs.h |
tr '\012' ' '`
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
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]"
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"
1884 -help | --help | --hel | --he | --h)
1885 echo "\$ac_cs_usage"; exit 0 ;;
1886 *) echo "\$ac_cs_usage"; exit 1 ;;
1890 ac_given_srcdir=$srcdir
1891 ac_given_INSTALL="$INSTALL"
1893 trap 'rm -fr `echo "
1898 debugger/readline/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
1922 s%@CFLAGS@%$CFLAGS%g
1923 s%@CPPFLAGS@%$CPPFLAGS%g
1924 s%@CXXFLAGS@%$CXXFLAGS%g
1926 s%@LDFLAGS@%$LDFLAGS%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
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
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
1963 cat >> $CONFIG_STATUS <<EOF
1965 CONFIG_FILES=\${CONFIG_FILES-"Make.rules
1969 debugger/readline/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".
1990 *:*) ac_file_in=`echo "$ac_file"|
sed 's%.*:%%'`
1991 ac_file=`echo "$ac_file"|
sed 's%:.*%%'` ;;
1992 *) ac_file_in="${ac_file}.in" ;;
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'`
2006 ac_dir_suffix= ac_dots=
2009 case "$ac_given_srcdir" in
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" ;;
2015 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2016 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2019 case "$ac_given_INSTALL" in
2020 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2021 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2023 echo creating "$ac_file"
2025 configure_input="Generated automatically from `echo $ac_file_in|
sed 's%.*/%%'` by configure."
2027 *Makefile*) ac_comsub="1i\\
2028 # $configure_input" ;;
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
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
2050 echo "Configure finished. Do 'make depend; make' to compile Wine."