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.9
6 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
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-dll build Wine as a DLL instead of an emulator"
20 --with-ipc use inter-process communication for DDE"
22 --with-malloc-debug enable malloc() debugging"
24 --with-x use the X Window System"
26 # Initialize some variables set by options.
27 # The variables have the same names as the options, with
28 # dashes changed to underlines.
30 cache_file
=.
/config.cache
39 program_transform_name
=s
,x
,x
,
47 bindir
='${exec_prefix}/bin'
48 sbindir
='${exec_prefix}/sbin'
49 libexecdir
='${exec_prefix}/libexec'
50 datadir
='${prefix}/share'
51 sysconfdir
='${prefix}/etc'
52 sharedstatedir
='${prefix}/com'
53 localstatedir
='${prefix}/var'
54 libdir
='${exec_prefix}/lib'
55 includedir
='${prefix}/include'
56 oldincludedir
='/usr/include'
57 infodir
='${prefix}/info'
58 mandir
='${prefix}/man'
60 # Initialize some other variables.
68 # If the previous option needs an argument, assign it.
69 if test -n "$ac_prev"; then
70 eval "$ac_prev=\$ac_option"
76 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
80 # Accept the important Cygnus configure options, so we can diagnose typos.
84 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
86 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
87 bindir
="$ac_optarg" ;;
89 -build |
--build |
--buil |
--bui |
--bu)
91 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
94 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
95 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
97 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
98 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
99 cache_file
="$ac_optarg" ;;
101 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
103 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
105 datadir
="$ac_optarg" ;;
107 -disable-* |
--disable-*)
108 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
109 # Reject names that are not valid shell variable names.
110 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
111 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
113 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
114 eval "enable_${ac_feature}=no" ;;
116 -enable-* |
--enable-*)
117 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
118 # Reject names that are not valid shell variable names.
119 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
120 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
122 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
127 eval "enable_${ac_feature}='$ac_optarg'" ;;
129 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
130 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
131 |
--exec |
--exe |
--ex)
132 ac_prev
=exec_prefix
;;
133 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
134 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
135 |
--exec=* |
--exe=* |
--ex=*)
136 exec_prefix
="$ac_optarg" ;;
138 -gas |
--gas |
--ga |
--g)
139 # Obsolete; use --with-gas.
142 -help |
--help |
--hel |
--he)
143 # Omit some internal or obsolete options to make the list less imposing.
144 # This message is too long to be a string in the A/UX 3.1 sh.
146 Usage: configure [options] [host]
147 Options: [defaults in brackets after descriptions]
149 --cache-file=FILE cache test results in FILE
150 --help print this message
151 --no-create do not create output files
152 --quiet, --silent do not print \`checking...' messages
153 --version print the version of autoconf that created configure
154 Directory and file names:
155 --prefix=PREFIX install architecture-independent files in PREFIX
157 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
159 --bindir=DIR user executables in DIR [EPREFIX/bin]
160 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
161 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
162 --datadir=DIR read-only architecture-independent data in DIR
164 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
165 --sharedstatedir=DIR modifiable architecture-independent data in DIR
167 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
168 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
169 --includedir=DIR C header files in DIR [PREFIX/include]
170 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
171 --infodir=DIR info documentation in DIR [PREFIX/info]
172 --mandir=DIR man documentation in DIR [PREFIX/man]
173 --srcdir=DIR find the sources in DIR [configure dir or ..]
174 --program-prefix=PREFIX prepend PREFIX to installed program names
175 --program-suffix=SUFFIX append SUFFIX to installed program names
176 --program-transform-name=PROGRAM
177 run sed PROGRAM on installed program names
181 --build=BUILD configure for building on BUILD [BUILD=HOST]
182 --host=HOST configure for HOST [guessed]
183 --target=TARGET configure for TARGET [TARGET=HOST]
184 Features and packages:
185 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
186 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
187 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
188 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
189 --x-includes=DIR X include files are in DIR
190 --x-libraries=DIR X library files are in DIR
192 if test -n "$ac_help"; then
193 echo "--enable and --with options recognized:$ac_help"
197 -host |
--host |
--hos |
--ho)
199 -host=* |
--host=* |
--hos=* |
--ho=*)
202 -includedir |
--includedir |
--includedi |
--included |
--include \
203 |
--includ |
--inclu |
--incl |
--inc)
204 ac_prev
=includedir
;;
205 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
206 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
207 includedir
="$ac_optarg" ;;
209 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
211 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
212 infodir
="$ac_optarg" ;;
214 -libdir |
--libdir |
--libdi |
--libd)
216 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
217 libdir
="$ac_optarg" ;;
219 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
220 |
--libexe |
--libex |
--libe)
221 ac_prev
=libexecdir
;;
222 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
223 |
--libexe=* |
--libex=* |
--libe=*)
224 libexecdir
="$ac_optarg" ;;
226 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
227 |
--localstate |
--localstat |
--localsta |
--localst \
228 |
--locals |
--local |
--loca |
--loc |
--lo)
229 ac_prev
=localstatedir
;;
230 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
231 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
232 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
233 localstatedir
="$ac_optarg" ;;
235 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
237 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
238 mandir
="$ac_optarg" ;;
241 # Obsolete; use --without-fp.
244 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
248 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
249 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
252 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
253 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
254 |
--oldin |
--oldi |
--old |
--ol |
--o)
255 ac_prev
=oldincludedir
;;
256 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
257 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
258 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
259 oldincludedir
="$ac_optarg" ;;
261 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
263 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
264 prefix
="$ac_optarg" ;;
266 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
267 |
--program-pre |
--program-pr |
--program-p)
268 ac_prev
=program_prefix
;;
269 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
270 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
271 program_prefix
="$ac_optarg" ;;
273 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
274 |
--program-suf |
--program-su |
--program-s)
275 ac_prev
=program_suffix
;;
276 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
277 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
278 program_suffix
="$ac_optarg" ;;
280 -program-transform-name |
--program-transform-name \
281 |
--program-transform-nam |
--program-transform-na \
282 |
--program-transform-n |
--program-transform- \
283 |
--program-transform |
--program-transfor \
284 |
--program-transfo |
--program-transf \
285 |
--program-trans |
--program-tran \
286 |
--progr-tra |
--program-tr |
--program-t)
287 ac_prev
=program_transform_name
;;
288 -program-transform-name=* |
--program-transform-name=* \
289 |
--program-transform-nam=* |
--program-transform-na=* \
290 |
--program-transform-n=* |
--program-transform-=* \
291 |
--program-transform=* |
--program-transfor=* \
292 |
--program-transfo=* |
--program-transf=* \
293 |
--program-trans=* |
--program-tran=* \
294 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
295 program_transform_name
="$ac_optarg" ;;
297 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
298 |
-silent |
--silent |
--silen |
--sile |
--sil)
301 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
303 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
305 sbindir
="$ac_optarg" ;;
307 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
308 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
309 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
311 ac_prev
=sharedstatedir
;;
312 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
313 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
314 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
316 sharedstatedir
="$ac_optarg" ;;
318 -site |
--site |
--sit)
320 -site=* |
--site=* |
--sit=*)
323 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
325 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
326 srcdir
="$ac_optarg" ;;
328 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
329 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
330 ac_prev
=sysconfdir
;;
331 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
332 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
333 sysconfdir
="$ac_optarg" ;;
335 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
337 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
338 target
="$ac_optarg" ;;
340 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
343 -version |
--version |
--versio |
--versi |
--vers)
344 echo "configure generated by autoconf version 2.9"
348 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
349 # Reject names that are not valid shell variable names.
350 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
351 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
353 ac_package
=`echo $ac_package| sed 's/-/_/g'`
358 eval "with_${ac_package}='$ac_optarg'" ;;
360 -without-* |
--without-*)
361 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
362 # Reject names that are not valid shell variable names.
363 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
364 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
366 ac_package
=`echo $ac_package| sed 's/-/_/g'`
367 eval "with_${ac_package}=no" ;;
370 # Obsolete; use --with-x.
373 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
374 |
--x-incl |
--x-inc |
--x-in |
--x-i)
375 ac_prev
=x_includes
;;
376 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
377 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
378 x_includes
="$ac_optarg" ;;
380 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
381 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
382 ac_prev
=x_libraries
;;
383 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
384 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
385 x_libraries
="$ac_optarg" ;;
387 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
391 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
392 echo "configure: warning: $ac_option: invalid host type" 1>&2
394 if test "x$nonopt" != xNONE
; then
395 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
403 if test -n "$ac_prev"; then
404 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
407 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
409 # File descriptor usage:
412 # 2 errors and warnings
413 # 3 some systems may open it to /dev/tty
414 # 4 used on the Kubota Titan
415 # 6 checking for... messages and results
416 # 5 compiler messages saved in config.log
417 if test "$silent" = yes; then
425 This file contains any messages produced by compilers while
426 running configure, to aid debugging if configure makes a mistake.
429 # Strip out --no-create and --no-recursion so they do not pile up.
430 # Also quote any args containing shell metacharacters.
435 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
436 |
--no-cr |
--no-c) ;;
437 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
438 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
439 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
440 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
441 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
446 # Only set LANG and LC_ALL to C if already set.
447 # These must not be set unconditionally because not all systems understand
448 # e.g. LANG=C (notably SCO).
449 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
450 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
452 # confdefs.h avoids OS command line length limits that DEFS can exceed.
453 rm -rf conftest
* confdefs.h
454 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
457 # A filename unique to this package, relative to the directory that
458 # configure is in, which we can look for to find out if srcdir is correct.
459 ac_unique_file
=controls
/edit.c
461 # Find the source files, if location was not specified.
462 if test -z "$srcdir"; then
463 ac_srcdir_defaulted
=yes
464 # Try the directory containing this script, then its parent.
466 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
467 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
469 if test ! -r $srcdir/$ac_unique_file; then
473 ac_srcdir_defaulted
=no
475 if test ! -r $srcdir/$ac_unique_file; then
476 if test "$ac_srcdir_defaulted" = yes; then
477 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
479 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
482 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
484 # Prefer explicitly selected file to automatically selected ones.
485 if test -z "$CONFIG_SITE"; then
486 if test "x$prefix" != xNONE
; then
487 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
489 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
492 for ac_site_file
in $CONFIG_SITE; do
493 if test -r "$ac_site_file"; then
494 echo "loading site script $ac_site_file"
499 if test -r "$cache_file"; then
500 echo "loading cache $cache_file"
503 echo "creating cache $cache_file"
508 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
509 ac_cpp
='$CPP $CPPFLAGS'
510 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
511 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
513 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
514 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
515 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
522 ac_n
= ac_c
='\c' ac_t
=
527 for ac_dir
in tools
$srcdir/tools
; do
528 if test -f $ac_dir/install-sh
; then
530 ac_install_sh
="$ac_aux_dir/install-sh -c"
532 elif test -f $ac_dir/install.sh
; then
534 ac_install_sh
="$ac_aux_dir/install.sh -c"
538 if test -z "$ac_aux_dir"; then
539 { echo "configure: error: can not find install-sh or install.sh in tools $srcdir/tools" 1>&2; exit 1; }
541 ac_config_guess
=$ac_aux_dir/config.guess
542 ac_config_sub
=$ac_aux_dir/config.sub
543 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
546 # We want these before the checks, so the checks can modify their values.
547 test -z "$CFLAGS" && CFLAGS
="-g -O2"
548 test -z "$LDFLAGS" && LDFLAGS
=-g
549 test -z "$LDLIBS" && LDLIBS
=-lm
552 # Check whether --with-library or --without-library was given.
553 if test "${with_library+set}" = set; then
554 withval
="$with_library"
555 cat >> confdefs.h
<<\EOF
558 MAIN_TARGET
="libwine.a"
564 # Check whether --with-dll or --without-dll was given.
565 if test "${with_dll+set}" = set; then
567 cat >> confdefs.h
<<\EOF
570 cat >> confdefs.h
<<\EOF
574 MAIN_TARGET
="libwine.so.1.0" CFLAGS
="$CFLAGS -fPIC"
579 # Check whether --with-ipc or --without-ipc was given.
580 if test "${with_ipc+set}" = set; then
582 cat >> confdefs.h
<<\EOF
589 # Check whether --with-malloc-debug or --without-malloc-debug was given.
590 if test "${with_malloc_debug+set}" = set; then
591 withval
="$with_malloc_debug"
592 cat >> confdefs.h
<<\EOF
593 #define MALLOC_DEBUGGING 1
600 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
601 set dummy
${MAKE-make}; ac_make
=$2
602 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
603 echo $ac_n "(cached) $ac_c" 1>&6
605 cat > conftestmake
<<\EOF
607 @
echo 'ac_maketemp="${MAKE}"'
609 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
610 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
611 if test -n "$ac_maketemp"; then
612 eval ac_cv_prog_make_
${ac_make}_set
=yes
614 eval ac_cv_prog_make_
${ac_make}_set
=no
618 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
619 echo "$ac_t""yes" 1>&6
622 echo "$ac_t""no" 1>&6
623 SET_MAKE
="MAKE=${MAKE-make}"
626 # Extract the first word of "gcc", so it can be a program name with args.
627 set dummy gcc
; ac_word
=$2
628 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
629 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
630 echo $ac_n "(cached) $ac_c" 1>&6
632 if test -n "$CC"; then
633 ac_cv_prog_CC
="$CC" # Let the user override the test.
635 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
636 for ac_dir
in $PATH; do
637 test -z "$ac_dir" && ac_dir
=.
638 if test -f $ac_dir/$ac_word; then
647 if test -n "$CC"; then
648 echo "$ac_t""$CC" 1>&6
650 echo "$ac_t""no" 1>&6
653 if test -z "$CC"; then
654 # Extract the first word of "cc", so it can be a program name with args.
655 set dummy cc
; ac_word
=$2
656 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
657 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
658 echo $ac_n "(cached) $ac_c" 1>&6
660 if test -n "$CC"; then
661 ac_cv_prog_CC
="$CC" # Let the user override the test.
663 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
665 for ac_dir
in $PATH; do
666 test -z "$ac_dir" && ac_dir
=.
667 if test -f $ac_dir/$ac_word; then
668 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
677 if test $ac_prog_rejected = yes; then
678 # We found a bogon in the path, so make sure we never use it.
679 set dummy
$ac_cv_prog_CC
681 if test $# -gt 0; then
682 # We chose a different compiler from the bogus one.
683 # However, it has the same basename, so the bogon will be chosen
684 # first if we set CC to just the basename; use the full file name.
686 set dummy
"$ac_dir/$ac_word" "$@"
694 if test -n "$CC"; then
695 echo "$ac_t""$CC" 1>&6
697 echo "$ac_t""no" 1>&6
700 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
703 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
704 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
705 echo $ac_n "(cached) $ac_c" 1>&6
707 cat > conftest.c
<<EOF
712 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:713: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
719 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
720 if test $ac_cv_prog_gcc = yes; then
722 if test "${CFLAGS+set}" != set; then
723 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
724 if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
725 echo $ac_n "(cached) $ac_c" 1>&6
727 echo 'void f(){}' > conftest.c
728 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
737 echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
738 if test $ac_cv_prog_gcc_g = yes; then
746 test "${CFLAGS+set}" = set || CFLAGS
="-g"
749 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
750 # On Suns, sometimes $CPP names a directory.
751 if test -n "$CPP" && test -d "$CPP"; then
754 if test -z "$CPP"; then
755 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
756 echo $ac_n "(cached) $ac_c" 1>&6
758 # This must be in double quotes, not single quotes, because CPP may get
759 # substituted into the Makefile and "${CC-cc}" will confuse make.
761 # On the NeXT, cc -E runs the code through the compiler's parser,
762 # not just through cpp.
763 cat > conftest.
$ac_ext <<EOF
764 #line 765 "configure"
765 #include "confdefs.h"
769 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
770 { (eval echo configure
:771: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
771 ac_err
=`grep -v '^ *+' conftest.out`
772 if test -z "$ac_err"; then
777 CPP
="${CC-cc} -E -traditional-cpp"
778 cat > conftest.
$ac_ext <<EOF
779 #line 780 "configure"
780 #include "confdefs.h"
784 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
785 { (eval echo configure
:786: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
786 ac_err
=`grep -v '^ *+' conftest.out`
787 if test -z "$ac_err"; then
797 ac_cv_prog_CPP
="$CPP"
799 CPP
="$ac_cv_prog_CPP"
801 ac_cv_prog_CPP
="$CPP"
803 echo "$ac_t""$CPP" 1>&6
805 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
806 if test -d /etc
/conf
/kconfig.d
&&
807 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
809 echo "$ac_t""yes" 1>&6
810 ISC
=yes # If later tests want to check for ISC.
811 cat >> confdefs.h
<<\EOF
812 #define _POSIX_SOURCE 1
815 if test "$GCC" = yes; then
821 echo "$ac_t""no" 1>&6
825 # If we find X, set shell vars x_includes and x_libraries to the
826 # paths, otherwise set no_x=yes.
827 # Uses ac_ vars as temps to allow command line to override cache and checks.
828 # --without-x overrides everything else, but does not touch the cache.
829 echo $ac_n "checking for X""... $ac_c" 1>&6
831 # Check whether --with-x or --without-x was given.
832 if test "${with_x+set}" = set; then
837 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
838 if test "x$with_x" = xno
; then
839 # The user explicitly disabled X.
842 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
843 # Both variables are already set.
846 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
847 echo $ac_n "(cached) $ac_c" 1>&6
849 # One or both of the vars are not set, and there is no cached value.
850 ac_x_includes
=NO ac_x_libraries
=NO
852 if mkdir conftestdir
; then
854 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
855 cat > Imakefile
<<'EOF'
857 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
859 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
860 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
861 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
862 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
863 for ac_extension
in a so sl
; do
864 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
865 test -f $ac_im_libdir/libX11.
$ac_extension; then
866 ac_im_usrlibdir
=$ac_im_libdir; break
869 # Screen out bogus values from the imake configuration.
870 case "$ac_im_incroot" in
872 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
874 case "$ac_im_usrlibdir" in
876 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
883 if test "$ac_x_includes" = NO
; then
884 # Guess where to find include files, by looking for this one X11 .h file.
885 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
887 # First, try using that file with no special directory specified.
888 cat > conftest.
$ac_ext <<EOF
889 #line 890 "configure"
890 #include "confdefs.h"
891 #include <$x_direct_test_include>
893 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
894 { (eval echo configure
:895: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
895 ac_err
=`grep -v '^ *+' conftest.out`
896 if test -z "$ac_err"; then
898 # We can compile using X headers with no special include directory.
903 # Look for the header file in a standard set of common directories.
913 /usr
/local
/X11R
6/include \
914 /usr
/local
/X11R
5/include \
915 /usr
/local
/X11R
4/include \
917 /usr
/local
/include
/X11R6 \
918 /usr
/local
/include
/X11R5 \
919 /usr
/local
/include
/X11R4 \
923 /usr
/local
/X11
/include \
924 /usr
/local
/include
/X11 \
928 /usr
/XFree86
/include
/X11 \
932 /usr
/unsupported
/include \
933 /usr
/athena
/include \
934 /usr
/local
/x11r
5/include \
935 /usr
/lpp
/Xamples
/include \
937 /usr
/openwin
/include \
938 /usr
/openwin
/share
/include \
941 if test -r "$ac_dir/$x_direct_test_include"; then
942 ac_x_includes
=$ac_dir
948 fi # $ac_x_includes = NO
950 if test "$ac_x_libraries" = NO
; then
951 # Check for the libraries.
953 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
954 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
956 # See if we find them without any special options.
957 # Don't add to $LIBS permanently.
959 LIBS
="-l$x_direct_test_library $LIBS"
960 cat > conftest.
$ac_ext <<EOF
961 #line 962 "configure"
962 #include "confdefs.h"
964 int main() { return 0; }
966 ${x_direct_test_function}()
969 if { (eval echo configure
:970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
972 # We can link X programs with no special library path.
977 # First see if replacing the include by lib works.
978 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
987 /usr
/local
/X11R
6/lib \
988 /usr
/local
/X11R
5/lib \
989 /usr
/local
/X11R
4/lib \
991 /usr
/local
/lib
/X11R6 \
992 /usr
/local
/lib
/X11R5 \
993 /usr
/local
/lib
/X11R4 \
1002 /usr
/XFree86
/lib
/X11 \
1006 /usr
/unsupported
/lib \
1008 /usr
/local
/x11r
5/lib \
1009 /usr
/lpp
/Xamples
/lib \
1012 /usr
/openwin
/share
/lib \
1015 for ac_extension
in a so sl
; do
1016 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
1017 ac_x_libraries
=$ac_dir
1025 fi # $ac_x_libraries = NO
1027 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
1028 # Didn't find X anywhere. Cache the known absence of X.
1029 ac_cv_have_x
="have_x=no"
1031 # Record where we found X for the cache.
1032 ac_cv_have_x
="have_x=yes \
1033 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1037 eval "$ac_cv_have_x"
1040 if test "$have_x" != yes; then
1041 echo "$ac_t""$have_x" 1>&6
1044 # If each of the values was on the command line, it overrides each guess.
1045 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
1046 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
1047 # Update the cache value to reflect the command line values.
1048 ac_cv_have_x
="have_x=yes \
1049 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1050 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1053 if test "$no_x" = yes; then
1054 # Not all programs may use this symbol, but it does not hurt to define it.
1055 X_CFLAGS
="$X_CFLAGS -DX_DISPLAY_MISSING"
1057 if test -n "$x_includes"; then
1058 X_CFLAGS
="$X_CFLAGS -I$x_includes"
1061 # It would be nice to have a more robust check for the -R ld option than
1062 # just checking for Solaris.
1063 # It would also be nice to do this for all -L options, not just this one.
1064 if test -n "$x_libraries"; then
1065 X_LIBS
="$X_LIBS -L$x_libraries"
1066 if test "`(uname) 2>/dev/null`" = SunOS
&&
1067 uname
-r |
grep '^5' >/dev
/null
; then
1068 X_LIBS
="$X_LIBS -R $x_libraries"
1072 # Check for libraries that X11R6 Xt/Xaw programs need.
1074 ac_save_LDFLAGS
="$LDFLAGS"
1075 LDFLAGS
="$LDFLAGS -L$x_libraries"
1076 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
1077 # check for ICE first), but we must link in the order -lSM -lICE or
1078 # we get undefined symbols. So assume we have SM if we have ICE.
1079 # These have to be linked with before -lX11, unlike the other
1080 # libraries we check for below, so use a different variable.
1081 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
1082 echo $ac_n "checking for -lICE""... $ac_c" 1>&6
1083 ac_lib_var
=`echo ICE_IceConnectionNumber | tr '.-/+' '___p'`
1084 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1085 echo $ac_n "(cached) $ac_c" 1>&6
1087 ac_save_LIBS
="$LIBS"
1089 cat > conftest.
$ac_ext <<EOF
1090 #line 1091 "configure"
1091 #include "confdefs.h"
1092 /* Override any gcc2 internal prototype to avoid an error. */
1093 char IceConnectionNumber();
1095 int main() { return 0; }
1097 IceConnectionNumber()
1100 if { (eval echo configure
:1101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1102 eval "ac_cv_lib_$ac_lib_var=yes"
1105 eval "ac_cv_lib_$ac_lib_var=no"
1108 LIBS
="$ac_save_LIBS"
1111 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1112 echo "$ac_t""yes" 1>&6
1113 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
1115 echo "$ac_t""no" 1>&6
1118 LDFLAGS
="$ac_save_LDFLAGS"
1120 # Check for system-dependent libraries X programs must link with.
1122 if test "$ISC" = yes; then
1123 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
1125 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1126 # libraries were built with DECnet support. And karl@cs.umb.edu says
1127 # the Alpha needs dnet_stub (dnet does not exist).
1128 echo $ac_n "checking for -ldnet""... $ac_c" 1>&6
1129 ac_lib_var
=`echo dnet_dnet_ntoa | tr '.-/+' '___p'`
1130 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1131 echo $ac_n "(cached) $ac_c" 1>&6
1133 ac_save_LIBS
="$LIBS"
1135 cat > conftest.
$ac_ext <<EOF
1136 #line 1137 "configure"
1137 #include "confdefs.h"
1138 /* Override any gcc2 internal prototype to avoid an error. */
1141 int main() { return 0; }
1146 if { (eval echo configure
:1147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1148 eval "ac_cv_lib_$ac_lib_var=yes"
1151 eval "ac_cv_lib_$ac_lib_var=no"
1154 LIBS
="$ac_save_LIBS"
1157 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1158 echo "$ac_t""yes" 1>&6
1159 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
1161 echo "$ac_t""no" 1>&6
1164 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
1165 echo $ac_n "checking for -ldnet_stub""... $ac_c" 1>&6
1166 ac_lib_var
=`echo dnet_stub_dnet_ntoa | tr '.-/+' '___p'`
1167 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1168 echo $ac_n "(cached) $ac_c" 1>&6
1170 ac_save_LIBS
="$LIBS"
1171 LIBS
="-ldnet_stub $LIBS"
1172 cat > conftest.
$ac_ext <<EOF
1173 #line 1174 "configure"
1174 #include "confdefs.h"
1175 /* Override any gcc2 internal prototype to avoid an error. */
1178 int main() { return 0; }
1183 if { (eval echo configure
:1184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1185 eval "ac_cv_lib_$ac_lib_var=yes"
1188 eval "ac_cv_lib_$ac_lib_var=no"
1191 LIBS
="$ac_save_LIBS"
1194 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1195 echo "$ac_t""yes" 1>&6
1196 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
1198 echo "$ac_t""no" 1>&6
1203 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1204 # to get the SysV transport functions.
1205 # Not sure which flavor of 386 UNIX this is, but it seems harmless to
1207 echo $ac_n "checking for -lnsl""... $ac_c" 1>&6
1208 ac_lib_var
=`echo nsl_t_accept | tr '.-/+' '___p'`
1209 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1210 echo $ac_n "(cached) $ac_c" 1>&6
1212 ac_save_LIBS
="$LIBS"
1214 cat > conftest.
$ac_ext <<EOF
1215 #line 1216 "configure"
1216 #include "confdefs.h"
1217 /* Override any gcc2 internal prototype to avoid an error. */
1220 int main() { return 0; }
1225 if { (eval echo configure
:1226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1227 eval "ac_cv_lib_$ac_lib_var=yes"
1230 eval "ac_cv_lib_$ac_lib_var=no"
1233 LIBS
="$ac_save_LIBS"
1236 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1237 echo "$ac_t""yes" 1>&6
1238 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
1240 echo "$ac_t""no" 1>&6
1244 # lieder@skyler.mavd.honeywell.com says without -lsocket,
1245 # socket/setsockopt and other routines are undefined under SCO ODT 2.0.
1246 # But -lsocket is broken on IRIX, according to simon@lia.di.epfl.ch.
1247 if test "`(uname) 2>/dev/null`" != IRIX
; then
1248 echo $ac_n "checking for -lsocket""... $ac_c" 1>&6
1249 ac_lib_var
=`echo socket_socket | tr '.-/+' '___p'`
1250 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1251 echo $ac_n "(cached) $ac_c" 1>&6
1253 ac_save_LIBS
="$LIBS"
1254 LIBS
="-lsocket $LIBS"
1255 cat > conftest.
$ac_ext <<EOF
1256 #line 1257 "configure"
1257 #include "confdefs.h"
1258 /* Override any gcc2 internal prototype to avoid an error. */
1261 int main() { return 0; }
1266 if { (eval echo configure
:1267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1268 eval "ac_cv_lib_$ac_lib_var=yes"
1271 eval "ac_cv_lib_$ac_lib_var=no"
1274 LIBS
="$ac_save_LIBS"
1277 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1278 echo "$ac_t""yes" 1>&6
1279 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lsocket"
1281 echo "$ac_t""no" 1>&6
1288 for ac_prog
in 'bison -y' byacc
1290 # Extract the first word of "$ac_prog", so it can be a program name with args.
1291 set dummy
$ac_prog; ac_word
=$2
1292 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1293 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1294 echo $ac_n "(cached) $ac_c" 1>&6
1296 if test -n "$YACC"; then
1297 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
1299 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1300 for ac_dir
in $PATH; do
1301 test -z "$ac_dir" && ac_dir
=.
1302 if test -f $ac_dir/$ac_word; then
1303 ac_cv_prog_YACC
="$ac_prog"
1310 YACC
="$ac_cv_prog_YACC"
1311 if test -n "$YACC"; then
1312 echo "$ac_t""$YACC" 1>&6
1314 echo "$ac_t""no" 1>&6
1317 test -n "$YACC" && break
1319 test -n "$YACC" || YACC
="yacc"
1321 # Extract the first word of "flex", so it can be a program name with args.
1322 set dummy flex
; ac_word
=$2
1323 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1324 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1325 echo $ac_n "(cached) $ac_c" 1>&6
1327 if test -n "$LEX"; then
1328 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
1330 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1331 for ac_dir
in $PATH; do
1332 test -z "$ac_dir" && ac_dir
=.
1333 if test -f $ac_dir/$ac_word; then
1334 ac_cv_prog_LEX
="flex"
1339 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
1342 LEX
="$ac_cv_prog_LEX"
1343 if test -n "$LEX"; then
1344 echo "$ac_t""$LEX" 1>&6
1346 echo "$ac_t""no" 1>&6
1349 if test -z "$LEXLIB"
1355 echo $ac_n "checking for -l$ac_lib""... $ac_c" 1>&6
1356 ac_lib_var
=`echo $ac_lib_yywrap | tr '.-/+' '___p'`
1357 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1358 echo $ac_n "(cached) $ac_c" 1>&6
1360 ac_save_LIBS
="$LIBS"
1361 LIBS
="-l$ac_lib $LIBS"
1362 cat > conftest.
$ac_ext <<EOF
1363 #line 1364 "configure"
1364 #include "confdefs.h"
1365 /* Override any gcc2 internal prototype to avoid an error. */
1368 int main() { return 0; }
1373 if { (eval echo configure
:1374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1375 eval "ac_cv_lib_$ac_lib_var=yes"
1378 eval "ac_cv_lib_$ac_lib_var=no"
1381 LIBS
="$ac_save_LIBS"
1384 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1385 echo "$ac_t""yes" 1>&6
1388 echo "$ac_t""no" 1>&6
1393 # Extract the first word of "ranlib", so it can be a program name with args.
1394 set dummy ranlib
; ac_word
=$2
1395 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1396 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1397 echo $ac_n "(cached) $ac_c" 1>&6
1399 if test -n "$RANLIB"; then
1400 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1402 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1403 for ac_dir
in $PATH; do
1404 test -z "$ac_dir" && ac_dir
=.
1405 if test -f $ac_dir/$ac_word; then
1406 ac_cv_prog_RANLIB
="ranlib"
1411 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1414 RANLIB
="$ac_cv_prog_RANLIB"
1415 if test -n "$RANLIB"; then
1416 echo "$ac_t""$RANLIB" 1>&6
1418 echo "$ac_t""no" 1>&6
1421 # Find a good install program. We prefer a C program (faster),
1422 # so one script is as good as another. But avoid the broken or
1423 # incompatible versions:
1424 # SysV /etc/install, /usr/sbin/install
1425 # SunOS /usr/etc/install
1426 # IRIX /sbin/install
1428 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1429 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1430 # ./install, which can be erroneously created by make from ./install.sh.
1431 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1432 if test -z "$INSTALL"; then
1433 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1434 echo $ac_n "(cached) $ac_c" 1>&6
1436 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1437 for ac_dir
in $PATH; do
1438 # Account for people who put trailing slashes in PATH elements.
1440 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1442 # OSF1 and SCO ODT 3.0 have their own names for install.
1443 for ac_prog
in ginstall installbsd scoinst
install; do
1444 if test -f $ac_dir/$ac_prog; then
1445 if test $ac_prog = install &&
1446 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1447 # AIX install. It has an incompatible calling convention.
1448 # OSF/1 installbsd also uses dspmsg, but is usable.
1451 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1462 if test "${ac_cv_path_install+set}" = set; then
1463 INSTALL
="$ac_cv_path_install"
1465 # As a last resort, use the slow shell script. We don't cache a
1466 # path for INSTALL within a source directory, because that will
1467 # break other packages using the cache if that directory is
1468 # removed, or if the path is relative.
1469 INSTALL
="$ac_install_sh"
1472 echo "$ac_t""$INSTALL" 1>&6
1474 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1475 # It thinks the first close brace ends the variable substitution.
1476 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1478 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1480 echo $ac_n "checking for -li386""... $ac_c" 1>&6
1481 ac_lib_var
=`echo i386_i386_set_ldt | tr '.-/+' '___p'`
1482 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1483 echo $ac_n "(cached) $ac_c" 1>&6
1485 ac_save_LIBS
="$LIBS"
1487 cat > conftest.
$ac_ext <<EOF
1488 #line 1489 "configure"
1489 #include "confdefs.h"
1490 /* Override any gcc2 internal prototype to avoid an error. */
1491 char i386_set_ldt();
1493 int main() { return 0; }
1498 if { (eval echo configure
:1499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1500 eval "ac_cv_lib_$ac_lib_var=yes"
1503 eval "ac_cv_lib_$ac_lib_var=no"
1506 LIBS
="$ac_save_LIBS"
1509 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1510 echo "$ac_t""yes" 1>&6
1511 LDLIBS
="$LDLIBS -li386"
1513 echo "$ac_t""no" 1>&6
1518 if test "x${GCC}" = "xyes"
1520 CFLAGS
="$CFLAGS -Wall"
1521 # If we cannot run a trivial program, we must be cross compiling.
1522 echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
1523 if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
1524 echo $ac_n "(cached) $ac_c" 1>&6
1526 if test "$cross_compiling" = yes; then
1529 cat > conftest.
$ac_ext <<EOF
1530 #line 1531 "configure"
1531 #include "confdefs.h"
1534 { (eval echo configure
:1535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
1535 if test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
; then
1544 echo "$ac_t""$ac_cv_c_cross" 1>&6
1545 cross_compiling
=$ac_cv_c_cross
1547 echo $ac_n "checking "for gcc strength-reduce bug
"""... $ac_c" 1>&6
1548 if eval "test \"`echo '$''{'ac_cv_c_gcc_strength_bug'+set}'`\" = set"; then
1549 echo $ac_n "(cached) $ac_c" 1>&6
1551 if test "$cross_compiling" = yes; then
1552 ac_cv_c_gcc_strength_bug
="yes"
1554 cat > conftest.
$ac_ext <<EOF
1555 #line 1556 "configure"
1556 #include "confdefs.h"
1559 static int Array[3];
1562 for(i=0; i<B; i++) Array[i] = i - 3;
1563 exit( Array[1] != -2 );
1566 { (eval echo configure
:1567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
1567 if test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
; then
1568 ac_cv_c_gcc_strength_bug
="no"
1570 ac_cv_c_gcc_strength_bug
="yes"
1576 echo "$ac_t""$ac_cv_c_gcc_strength_bug" 1>&6
1577 if test "$ac_cv_c_gcc_strength_bug" = "yes"
1579 CFLAGS
="$CFLAGS -fno-strength-reduce"
1584 for ac_func
in tcgetattr
usleep
1586 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1587 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1588 echo $ac_n "(cached) $ac_c" 1>&6
1590 cat > conftest.
$ac_ext <<EOF
1591 #line 1592 "configure"
1592 #include "confdefs.h"
1593 /* System header to define __stub macros and hopefully few prototypes,
1594 which can conflict with char $ac_func(); below. */
1596 /* Override any gcc2 internal prototype to avoid an error. */
1599 int main() { return 0; }
1602 /* The GNU C library defines this for functions which it implements
1603 to always fail with ENOSYS. Some functions are actually named
1604 something starting with __ and the normal name is an alias. */
1605 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1613 if { (eval echo configure
:1614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1615 eval "ac_cv_func_$ac_func=yes"
1618 eval "ac_cv_func_$ac_func=no"
1623 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1624 echo "$ac_t""yes" 1>&6
1625 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1626 cat >> confdefs.h
<<EOF
1627 #define $ac_tr_func 1
1631 echo "$ac_t""no" 1>&6
1635 for ac_hdr
in stdlib.h
1637 ac_safe
=`echo "$ac_hdr" | tr './\055' '___'`
1638 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1639 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1640 echo $ac_n "(cached) $ac_c" 1>&6
1642 cat > conftest.
$ac_ext <<EOF
1643 #line 1644 "configure"
1644 #include "confdefs.h"
1647 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1648 { (eval echo configure
:1649: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1649 ac_err
=`grep -v '^ *+' conftest.out`
1650 if test -z "$ac_err"; then
1652 eval "ac_cv_header_$ac_safe=yes"
1656 eval "ac_cv_header_$ac_safe=no"
1660 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1661 echo "$ac_t""yes" 1>&6
1662 ac_tr_hdr
=HAVE_
`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
1663 cat >> confdefs.h
<<EOF
1664 #define $ac_tr_hdr 1
1668 echo "$ac_t""no" 1>&6
1672 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
1673 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
1674 echo $ac_n "(cached) $ac_c" 1>&6
1676 cat > conftest.
$ac_ext <<EOF
1677 #line 1678 "configure"
1678 #include "confdefs.h"
1679 #include <sys/types.h>
1680 #include <sys/stat.h>
1682 #if defined(S_ISBLK) && defined(S_IFDIR)
1683 # if S_ISBLK (S_IFDIR)
1688 #if defined(S_ISBLK) && defined(S_IFCHR)
1689 # if S_ISBLK (S_IFCHR)
1694 #if defined(S_ISLNK) && defined(S_IFREG)
1695 # if S_ISLNK (S_IFREG)
1700 #if defined(S_ISSOCK) && defined(S_IFREG)
1701 # if S_ISSOCK (S_IFREG)
1707 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1708 egrep "You lose" >/dev
/null
2>&1; then
1710 ac_cv_header_stat_broken
=yes
1713 ac_cv_header_stat_broken
=no
1719 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
1720 if test $ac_cv_header_stat_broken = yes; then
1721 cat >> confdefs.h
<<\EOF
1722 #define STAT_MACROS_BROKEN 1
1727 echo $ac_n "checking for working const""... $ac_c" 1>&6
1728 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1729 echo $ac_n "(cached) $ac_c" 1>&6
1731 cat > conftest.
$ac_ext <<EOF
1732 #line 1733 "configure"
1733 #include "confdefs.h"
1735 int main() { return 0; }
1738 /* Ultrix mips cc rejects this. */
1739 typedef int charset[2]; const charset x;
1740 /* SunOS 4.1.1 cc rejects this. */
1741 char const *const *ccp;
1743 /* NEC SVR4.0.2 mips cc rejects this. */
1744 struct point {int x, y;};
1745 static struct point const zero = {0,0};
1746 /* AIX XL C 1.02.0.0 rejects this.
1747 It does not let you subtract one const X* pointer from another in an arm
1748 of an if-expression whose if-part is not a constant expression */
1749 const char *g = "string";
1750 ccp = &g + (g ? g-g : 0);
1751 /* HPUX 7.0 cc rejects these. */
1754 ccp = (char const *const *) p;
1755 { /* SCO 3.2v4 cc rejects this. */
1757 char const *s = 0 ? (char *) 0 : (char const *) 0;
1761 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1763 const int *foo = &x[0];
1766 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1767 typedef const int *iptr;
1771 { /* AIX XL C 1.02.0.0 rejects this saying
1772 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1773 struct s { int j; const int *ap[3]; };
1774 struct s *b; b->j = 5;
1776 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1782 if { (eval echo configure
:1783: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1793 echo "$ac_t""$ac_cv_c_const" 1>&6
1794 if test $ac_cv_c_const = no
; then
1795 cat >> confdefs.h
<<\EOF
1801 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1802 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1803 echo $ac_n "(cached) $ac_c" 1>&6
1805 cat > conftest.
$ac_ext <<EOF
1806 #line 1807 "configure"
1807 #include "confdefs.h"
1813 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1814 { (eval echo configure
:1815: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1815 ac_err
=`grep -v '^ *+' conftest.out`
1816 if test -z "$ac_err"; then
1818 ac_cv_header_stdc
=yes
1822 ac_cv_header_stdc
=no
1826 if test $ac_cv_header_stdc = yes; then
1827 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1828 cat > conftest.
$ac_ext <<EOF
1829 #line 1830 "configure"
1830 #include "confdefs.h"
1833 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1834 egrep "memchr" >/dev
/null
2>&1; then
1838 ac_cv_header_stdc
=no
1844 if test $ac_cv_header_stdc = yes; then
1845 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1846 cat > conftest.
$ac_ext <<EOF
1847 #line 1848 "configure"
1848 #include "confdefs.h"
1851 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1852 egrep "free" >/dev
/null
2>&1; then
1856 ac_cv_header_stdc
=no
1862 if test $ac_cv_header_stdc = yes; then
1863 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1864 if test "$cross_compiling" = yes; then
1867 cat > conftest.
$ac_ext <<EOF
1868 #line 1869 "configure"
1869 #include "confdefs.h"
1871 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1872 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1873 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1874 int main () { int i; for (i = 0; i < 256; i++)
1875 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1879 { (eval echo configure
:1880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
1880 if test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
; then
1883 ac_cv_header_stdc
=no
1890 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1891 if test $ac_cv_header_stdc = yes; then
1892 cat >> confdefs.h
<<\EOF
1893 #define STDC_HEADERS 1
1898 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1899 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1900 echo $ac_n "(cached) $ac_c" 1>&6
1902 cat > conftest.
$ac_ext <<EOF
1903 #line 1904 "configure"
1904 #include "confdefs.h"
1905 #include <sys/types.h>
1910 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1911 egrep "size_t" >/dev
/null
2>&1; then
1913 ac_cv_type_size_t
=yes
1916 ac_cv_type_size_t
=no
1921 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1922 if test $ac_cv_type_size_t = no
; then
1923 cat >> confdefs.h
<<\EOF
1924 #define size_t unsigned
1931 MAKE_RULES
=Make.rules
1935 cat > confcache
<<\EOF
1936 # This file is a shell script that caches the results of configure
1937 # tests run on this system so they can be shared between configure
1938 # scripts and configure runs. It is not useful on other systems.
1939 # If it contains results you don't want to keep, you may remove or edit it.
1941 # By default, configure uses ./config.cache as the cache file,
1942 # creating it if it does not exist already. You can give configure
1943 # the --cache-file=FILE option to use a different cache file; that is
1944 # what configure does when it calls configure scripts in
1945 # subdirectories, so they share the cache.
1946 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1947 # config.status only pays attention to the cache file if you give it the
1948 # --recheck option to rerun configure.
1951 # Ultrix sh set writes to stderr and can't be redirected directly,
1952 # and sets the high bit in the cache file unless we assign to the vars.
1954 sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
1956 if cmp -s $cache_file confcache
; then
1959 if test -w $cache_file; then
1960 echo "updating cache $cache_file"
1961 cat confcache
> $cache_file
1963 echo "not updating unwritable cache $cache_file"
1968 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1970 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
1971 # Let make expand exec_prefix.
1972 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
1974 # Any assignment to VPATH causes Sun make to only execute
1975 # the first set of double-colon rules, so remove it if not needed.
1976 # If there is a colon in the path, we need to keep it.
1977 if test "x$srcdir" = x.
; then
1978 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
1981 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1983 # Transform confdefs.h into DEFS.
1984 # Protect against shell expansion while executing Makefile rules.
1985 # Protect against Makefile macro expansion.
1986 cat > conftest.defs
<<\EOF
1987 s
%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1988 s
%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
1993 DEFS=`sed -f conftest.defs confdefs.h |
tr '\012' ' '`
1997 # Without the "./", some shells look in PATH for config.status.
1998 : ${CONFIG_STATUS=./config.status}
2000 echo creating $CONFIG_STATUS
2001 rm -f $CONFIG_STATUS
2002 cat > $CONFIG_STATUS <<EOF
2004 # Generated automatically by configure.
2005 # Run this file to recreate the current configuration.
2006 # This directory was configured as follows,
2007 # on host `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`:
2009 # $0 $ac_configure_args
2011 # Compiler output produced by configure, useful for debugging
2012 # configure, is in ./config.log if it exists.
2014 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2017 case "\$ac_option" in
2018 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2019 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2020 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2021 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2022 echo "$CONFIG_STATUS generated by autoconf version 2.9"
2024 -help | --help | --hel | --he | --h)
2025 echo "\$ac_cs_usage"; exit 0 ;;
2026 *) echo "\$ac_cs_usage"; exit 1 ;;
2030 ac_given_srcdir=$srcdir
2031 ac_given_INSTALL="$INSTALL"
2033 trap 'rm -fr `echo "
2038 debugger/readline/Makefile
2051 programs/progman/Makefile
2056 windows/Makefile " |
sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2058 cat >> $CONFIG_STATUS <<EOF
2060 # Protect against being on the right side of a sed subst in config.status.
2061 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2062 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2065 s%@CFLAGS@%$CFLAGS%g
2066 s%@CPPFLAGS@%$CPPFLAGS%g
2067 s%@CXXFLAGS@%$CXXFLAGS%g
2069 s%@LDFLAGS@%$LDFLAGS%g
2071 s%@exec_prefix@%$exec_prefix%g
2072 s%@prefix@%$prefix%g
2073 s%@program_transform_name@%$program_transform_name%g
2074 s%@bindir@%$bindir%g
2075 s%@sbindir@%$sbindir%g
2076 s%@libexecdir@%$libexecdir%g
2077 s%@datadir@%$datadir%g
2078 s%@sysconfdir@%$sysconfdir%g
2079 s%@sharedstatedir@%$sharedstatedir%g
2080 s%@localstatedir@%$localstatedir%g
2081 s%@libdir@%$libdir%g
2082 s%@includedir@%$includedir%g
2083 s%@oldincludedir@%$oldincludedir%g
2084 s%@infodir@%$infodir%g
2085 s%@mandir@%$mandir%g
2086 s%@LDLIBS@%$LDLIBS%g
2087 s%@MAIN_TARGET@%$MAIN_TARGET%g
2088 s%@SET_MAKE@%$SET_MAKE%g
2091 s%@X_CFLAGS@%$X_CFLAGS%g
2092 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
2093 s%@X_LIBS@%$X_LIBS%g
2094 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
2097 s%@LEXLIB@%$LEXLIB%g
2098 s%@RANLIB@%$RANLIB%g
2099 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2100 s%@INSTALL_DATA@%$INSTALL_DATA%g
2101 /@MAKE_RULES@/r $MAKE_RULES
2106 cat >> $CONFIG_STATUS <<EOF
2108 CONFIG_FILES=\${CONFIG_FILES-"Make.rules
2112 debugger/readline/Makefile
2125 programs/progman/Makefile
2132 cat >> $CONFIG_STATUS <<\EOF
2133 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2134 # Support "outfile[:infile]", defaulting infile="outfile.in".
2136 *:*) ac_file_in=`echo "$ac_file"|
sed 's%.*:%%'`
2137 ac_file=`echo "$ac_file"|
sed 's%:.*%%'` ;;
2138 *) ac_file_in="${ac_file}.in" ;;
2141 # Adjust relative srcdir, etc. for subdirectories.
2143 # Remove last slash and all that follows it. Not all systems have dirname.
2144 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
2145 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2146 # The file is in a subdirectory.
2147 test ! -d "$ac_dir" && mkdir "$ac_dir"
2148 ac_dir_suffix="/`echo $ac_dir|
sed 's%^\./%%'`"
2149 # A "../" for each directory in $ac_dir_suffix.
2150 ac_dots=`echo $ac_dir_suffix|
sed 's%/[^/]*%../%g'`
2152 ac_dir_suffix= ac_dots=
2155 case "$ac_given_srcdir" in
2157 if test -z "$ac_dots"; then top_srcdir=.
2158 else top_srcdir=`echo $ac_dots|
sed 's%/$%%'`; fi ;;
2159 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2161 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2162 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2165 case "$ac_given_INSTALL" in
2166 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2167 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2169 echo creating "$ac_file"
2171 configure_input="Generated automatically from `echo $ac_file_in|
sed 's%.*/%%'` by configure."
2173 *Makefile*) ac_comsub="1i\\
2174 # $configure_input" ;;
2178 s%@configure_input@%$configure_input%g
2179 s%@srcdir@%$srcdir%g
2180 s%@top_srcdir@%$top_srcdir%g
2181 s%@INSTALL@%$INSTALL%g
2182 " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
2190 chmod +x $CONFIG_STATUS
2191 rm -fr confdefs* $ac_clean_files
2192 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2196 echo "Configure finished. Do 'make depend; make' to compile Wine."