Fixed compilation error
[bochs-mirror.git] / plex86 / configure
blob03395e2306d5aae7b37a2a57a0ec3dd21d99a01a
1 #! /bin/sh
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --with-x use the X Window System"
16 ac_help="$ac_help
17 --with-WinNT WinNT host"
18 ac_help="$ac_help
19 --with-BeOS BeOS host"
20 ac_help="$ac_help
21 --with-Linux Linux host"
22 ac_help="$ac_help
23 --with-NetBSD NetBSD host"
24 ac_help="$ac_help
25 --with-FreeBSD FreeBSD host"
26 ac_help="$ac_help
27 --with-null No real host"
28 ac_help="$ac_help
29 --with-linux-source=dir Linux kernel source dir"
30 ac_help="$ac_help
31 --with-netbsd-source=dir NetBSD kernel source dir"
32 ac_help="$ac_help
33 --with-freebsd-source=dir FreeBSD kernel source dir"
35 # Initialize some variables set by options.
36 # The variables have the same names as the options, with
37 # dashes changed to underlines.
38 build=NONE
39 cache_file=./config.cache
40 exec_prefix=NONE
41 host=NONE
42 no_create=
43 nonopt=NONE
44 no_recursion=
45 prefix=NONE
46 program_prefix=NONE
47 program_suffix=NONE
48 program_transform_name=s,x,x,
49 silent=
50 site=
51 srcdir=
52 target=NONE
53 verbose=
54 x_includes=NONE
55 x_libraries=NONE
56 bindir='${exec_prefix}/bin'
57 sbindir='${exec_prefix}/sbin'
58 libexecdir='${exec_prefix}/libexec'
59 datadir='${prefix}/share'
60 sysconfdir='${prefix}/etc'
61 sharedstatedir='${prefix}/com'
62 localstatedir='${prefix}/var'
63 libdir='${exec_prefix}/lib'
64 includedir='${prefix}/include'
65 oldincludedir='/usr/include'
66 infodir='${prefix}/info'
67 mandir='${prefix}/man'
69 # Initialize some other variables.
70 subdirs=
71 MFLAGS= MAKEFLAGS=
72 SHELL=${CONFIG_SHELL-/bin/sh}
73 # Maximum number of lines to put in a shell here document.
74 ac_max_here_lines=12
76 ac_prev=
77 for ac_option
80 # If the previous option needs an argument, assign it.
81 if test -n "$ac_prev"; then
82 eval "$ac_prev=\$ac_option"
83 ac_prev=
84 continue
87 case "$ac_option" in
88 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
89 *) ac_optarg= ;;
90 esac
92 # Accept the important Cygnus configure options, so we can diagnose typos.
94 case "$ac_option" in
96 -bindir | --bindir | --bindi | --bind | --bin | --bi)
97 ac_prev=bindir ;;
98 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
99 bindir="$ac_optarg" ;;
101 -build | --build | --buil | --bui | --bu)
102 ac_prev=build ;;
103 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
104 build="$ac_optarg" ;;
106 -cache-file | --cache-file | --cache-fil | --cache-fi \
107 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
108 ac_prev=cache_file ;;
109 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
110 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
111 cache_file="$ac_optarg" ;;
113 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
114 ac_prev=datadir ;;
115 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
116 | --da=*)
117 datadir="$ac_optarg" ;;
119 -disable-* | --disable-*)
120 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
121 # Reject names that are not valid shell variable names.
122 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
123 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
125 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
126 eval "enable_${ac_feature}=no" ;;
128 -enable-* | --enable-*)
129 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
130 # Reject names that are not valid shell variable names.
131 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
132 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
134 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
135 case "$ac_option" in
136 *=*) ;;
137 *) ac_optarg=yes ;;
138 esac
139 eval "enable_${ac_feature}='$ac_optarg'" ;;
141 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
142 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
143 | --exec | --exe | --ex)
144 ac_prev=exec_prefix ;;
145 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
146 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
147 | --exec=* | --exe=* | --ex=*)
148 exec_prefix="$ac_optarg" ;;
150 -gas | --gas | --ga | --g)
151 # Obsolete; use --with-gas.
152 with_gas=yes ;;
154 -help | --help | --hel | --he)
155 # Omit some internal or obsolete options to make the list less imposing.
156 # This message is too long to be a string in the A/UX 3.1 sh.
157 cat << EOF
158 Usage: configure [options] [host]
159 Options: [defaults in brackets after descriptions]
160 Configuration:
161 --cache-file=FILE cache test results in FILE
162 --help print this message
163 --no-create do not create output files
164 --quiet, --silent do not print \`checking...' messages
165 --version print the version of autoconf that created configure
166 Directory and file names:
167 --prefix=PREFIX install architecture-independent files in PREFIX
168 [$ac_default_prefix]
169 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
170 [same as prefix]
171 --bindir=DIR user executables in DIR [EPREFIX/bin]
172 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
173 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
174 --datadir=DIR read-only architecture-independent data in DIR
175 [PREFIX/share]
176 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
177 --sharedstatedir=DIR modifiable architecture-independent data in DIR
178 [PREFIX/com]
179 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
180 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
181 --includedir=DIR C header files in DIR [PREFIX/include]
182 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
183 --infodir=DIR info documentation in DIR [PREFIX/info]
184 --mandir=DIR man documentation in DIR [PREFIX/man]
185 --srcdir=DIR find the sources in DIR [configure dir or ..]
186 --program-prefix=PREFIX prepend PREFIX to installed program names
187 --program-suffix=SUFFIX append SUFFIX to installed program names
188 --program-transform-name=PROGRAM
189 run sed PROGRAM on installed program names
191 cat << EOF
192 Host type:
193 --build=BUILD configure for building on BUILD [BUILD=HOST]
194 --host=HOST configure for HOST [guessed]
195 --target=TARGET configure for TARGET [TARGET=HOST]
196 Features and packages:
197 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
198 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
199 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
200 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
201 --x-includes=DIR X include files are in DIR
202 --x-libraries=DIR X library files are in DIR
204 if test -n "$ac_help"; then
205 echo "--enable and --with options recognized:$ac_help"
207 exit 0 ;;
209 -host | --host | --hos | --ho)
210 ac_prev=host ;;
211 -host=* | --host=* | --hos=* | --ho=*)
212 host="$ac_optarg" ;;
214 -includedir | --includedir | --includedi | --included | --include \
215 | --includ | --inclu | --incl | --inc)
216 ac_prev=includedir ;;
217 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
218 | --includ=* | --inclu=* | --incl=* | --inc=*)
219 includedir="$ac_optarg" ;;
221 -infodir | --infodir | --infodi | --infod | --info | --inf)
222 ac_prev=infodir ;;
223 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
224 infodir="$ac_optarg" ;;
226 -libdir | --libdir | --libdi | --libd)
227 ac_prev=libdir ;;
228 -libdir=* | --libdir=* | --libdi=* | --libd=*)
229 libdir="$ac_optarg" ;;
231 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
232 | --libexe | --libex | --libe)
233 ac_prev=libexecdir ;;
234 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
235 | --libexe=* | --libex=* | --libe=*)
236 libexecdir="$ac_optarg" ;;
238 -localstatedir | --localstatedir | --localstatedi | --localstated \
239 | --localstate | --localstat | --localsta | --localst \
240 | --locals | --local | --loca | --loc | --lo)
241 ac_prev=localstatedir ;;
242 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
243 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
244 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
245 localstatedir="$ac_optarg" ;;
247 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
248 ac_prev=mandir ;;
249 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
250 mandir="$ac_optarg" ;;
252 -nfp | --nfp | --nf)
253 # Obsolete; use --without-fp.
254 with_fp=no ;;
256 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
257 | --no-cr | --no-c)
258 no_create=yes ;;
260 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
261 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
262 no_recursion=yes ;;
264 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
265 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
266 | --oldin | --oldi | --old | --ol | --o)
267 ac_prev=oldincludedir ;;
268 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
269 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
270 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
271 oldincludedir="$ac_optarg" ;;
273 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
274 ac_prev=prefix ;;
275 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
276 prefix="$ac_optarg" ;;
278 -program-prefix | --program-prefix | --program-prefi | --program-pref \
279 | --program-pre | --program-pr | --program-p)
280 ac_prev=program_prefix ;;
281 -program-prefix=* | --program-prefix=* | --program-prefi=* \
282 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
283 program_prefix="$ac_optarg" ;;
285 -program-suffix | --program-suffix | --program-suffi | --program-suff \
286 | --program-suf | --program-su | --program-s)
287 ac_prev=program_suffix ;;
288 -program-suffix=* | --program-suffix=* | --program-suffi=* \
289 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
290 program_suffix="$ac_optarg" ;;
292 -program-transform-name | --program-transform-name \
293 | --program-transform-nam | --program-transform-na \
294 | --program-transform-n | --program-transform- \
295 | --program-transform | --program-transfor \
296 | --program-transfo | --program-transf \
297 | --program-trans | --program-tran \
298 | --progr-tra | --program-tr | --program-t)
299 ac_prev=program_transform_name ;;
300 -program-transform-name=* | --program-transform-name=* \
301 | --program-transform-nam=* | --program-transform-na=* \
302 | --program-transform-n=* | --program-transform-=* \
303 | --program-transform=* | --program-transfor=* \
304 | --program-transfo=* | --program-transf=* \
305 | --program-trans=* | --program-tran=* \
306 | --progr-tra=* | --program-tr=* | --program-t=*)
307 program_transform_name="$ac_optarg" ;;
309 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
310 | -silent | --silent | --silen | --sile | --sil)
311 silent=yes ;;
313 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
314 ac_prev=sbindir ;;
315 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
316 | --sbi=* | --sb=*)
317 sbindir="$ac_optarg" ;;
319 -sharedstatedir | --sharedstatedir | --sharedstatedi \
320 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
321 | --sharedst | --shareds | --shared | --share | --shar \
322 | --sha | --sh)
323 ac_prev=sharedstatedir ;;
324 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
325 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
326 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
327 | --sha=* | --sh=*)
328 sharedstatedir="$ac_optarg" ;;
330 -site | --site | --sit)
331 ac_prev=site ;;
332 -site=* | --site=* | --sit=*)
333 site="$ac_optarg" ;;
335 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
336 ac_prev=srcdir ;;
337 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
338 srcdir="$ac_optarg" ;;
340 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
341 | --syscon | --sysco | --sysc | --sys | --sy)
342 ac_prev=sysconfdir ;;
343 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
344 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
345 sysconfdir="$ac_optarg" ;;
347 -target | --target | --targe | --targ | --tar | --ta | --t)
348 ac_prev=target ;;
349 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
350 target="$ac_optarg" ;;
352 -v | -verbose | --verbose | --verbos | --verbo | --verb)
353 verbose=yes ;;
355 -version | --version | --versio | --versi | --vers)
356 echo "configure generated by autoconf version 2.13"
357 exit 0 ;;
359 -with-* | --with-*)
360 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
361 # Reject names that are not valid shell variable names.
362 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
363 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
365 ac_package=`echo $ac_package| sed 's/-/_/g'`
366 case "$ac_option" in
367 *=*) ;;
368 *) ac_optarg=yes ;;
369 esac
370 eval "with_${ac_package}='$ac_optarg'" ;;
372 -without-* | --without-*)
373 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
374 # Reject names that are not valid shell variable names.
375 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
376 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
378 ac_package=`echo $ac_package| sed 's/-/_/g'`
379 eval "with_${ac_package}=no" ;;
381 --x)
382 # Obsolete; use --with-x.
383 with_x=yes ;;
385 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
386 | --x-incl | --x-inc | --x-in | --x-i)
387 ac_prev=x_includes ;;
388 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
389 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
390 x_includes="$ac_optarg" ;;
392 -x-libraries | --x-libraries | --x-librarie | --x-librari \
393 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
394 ac_prev=x_libraries ;;
395 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
396 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
397 x_libraries="$ac_optarg" ;;
399 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
403 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
404 echo "configure: warning: $ac_option: invalid host type" 1>&2
406 if test "x$nonopt" != xNONE; then
407 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
409 nonopt="$ac_option"
412 esac
413 done
415 if test -n "$ac_prev"; then
416 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
419 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
421 # File descriptor usage:
422 # 0 standard input
423 # 1 file creation
424 # 2 errors and warnings
425 # 3 some systems may open it to /dev/tty
426 # 4 used on the Kubota Titan
427 # 6 checking for... messages and results
428 # 5 compiler messages saved in config.log
429 if test "$silent" = yes; then
430 exec 6>/dev/null
431 else
432 exec 6>&1
434 exec 5>./config.log
436 echo "\
437 This file contains any messages produced by compilers while
438 running configure, to aid debugging if configure makes a mistake.
439 " 1>&5
441 # Strip out --no-create and --no-recursion so they do not pile up.
442 # Also quote any args containing shell metacharacters.
443 ac_configure_args=
444 for ac_arg
446 case "$ac_arg" in
447 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
448 | --no-cr | --no-c) ;;
449 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
450 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
451 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
452 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
453 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
454 esac
455 done
457 # NLS nuisances.
458 # Only set these to C if already set. These must not be set unconditionally
459 # because not all systems understand e.g. LANG=C (notably SCO).
460 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
461 # Non-C LC_CTYPE values break the ctype check.
462 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
463 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
464 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
465 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
467 # confdefs.h avoids OS command line length limits that DEFS can exceed.
468 rm -rf conftest* confdefs.h
469 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
470 echo > confdefs.h
472 # A filename unique to this package, relative to the directory that
473 # configure is in, which we can look for to find out if srcdir is correct.
474 ac_unique_file=COPYING
476 # Find the source files, if location was not specified.
477 if test -z "$srcdir"; then
478 ac_srcdir_defaulted=yes
479 # Try the directory containing this script, then its parent.
480 ac_prog=$0
481 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
482 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
483 srcdir=$ac_confdir
484 if test ! -r $srcdir/$ac_unique_file; then
485 srcdir=..
487 else
488 ac_srcdir_defaulted=no
490 if test ! -r $srcdir/$ac_unique_file; then
491 if test "$ac_srcdir_defaulted" = yes; then
492 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
493 else
494 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
497 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
499 # Prefer explicitly selected file to automatically selected ones.
500 if test -z "$CONFIG_SITE"; then
501 if test "x$prefix" != xNONE; then
502 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
503 else
504 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
507 for ac_site_file in $CONFIG_SITE; do
508 if test -r "$ac_site_file"; then
509 echo "loading site script $ac_site_file"
510 . "$ac_site_file"
512 done
514 if test -r "$cache_file"; then
515 echo "loading cache $cache_file"
516 . $cache_file
517 else
518 echo "creating cache $cache_file"
519 > $cache_file
522 ac_ext=c
523 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
524 ac_cpp='$CPP $CPPFLAGS'
525 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
526 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
527 cross_compiling=$ac_cv_prog_cc_cross
529 ac_exeext=
530 ac_objext=o
531 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
532 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
533 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
534 ac_n= ac_c='
535 ' ac_t=' '
536 else
537 ac_n=-n ac_c= ac_t=
539 else
540 ac_n= ac_c='\c' ac_t=
549 # Extract the first word of "gcc", so it can be a program name with args.
550 set dummy gcc; ac_word=$2
551 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
552 echo "configure:553: checking for $ac_word" >&5
553 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
554 echo $ac_n "(cached) $ac_c" 1>&6
555 else
556 if test -n "$CC"; then
557 ac_cv_prog_CC="$CC" # Let the user override the test.
558 else
559 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
560 ac_dummy="$PATH"
561 for ac_dir in $ac_dummy; do
562 test -z "$ac_dir" && ac_dir=.
563 if test -f $ac_dir/$ac_word; then
564 ac_cv_prog_CC="gcc"
565 break
567 done
568 IFS="$ac_save_ifs"
571 CC="$ac_cv_prog_CC"
572 if test -n "$CC"; then
573 echo "$ac_t""$CC" 1>&6
574 else
575 echo "$ac_t""no" 1>&6
578 if test -z "$CC"; then
579 # Extract the first word of "cc", so it can be a program name with args.
580 set dummy cc; ac_word=$2
581 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
582 echo "configure:583: checking for $ac_word" >&5
583 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
584 echo $ac_n "(cached) $ac_c" 1>&6
585 else
586 if test -n "$CC"; then
587 ac_cv_prog_CC="$CC" # Let the user override the test.
588 else
589 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
590 ac_prog_rejected=no
591 ac_dummy="$PATH"
592 for ac_dir in $ac_dummy; do
593 test -z "$ac_dir" && ac_dir=.
594 if test -f $ac_dir/$ac_word; then
595 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
596 ac_prog_rejected=yes
597 continue
599 ac_cv_prog_CC="cc"
600 break
602 done
603 IFS="$ac_save_ifs"
604 if test $ac_prog_rejected = yes; then
605 # We found a bogon in the path, so make sure we never use it.
606 set dummy $ac_cv_prog_CC
607 shift
608 if test $# -gt 0; then
609 # We chose a different compiler from the bogus one.
610 # However, it has the same basename, so the bogon will be chosen
611 # first if we set CC to just the basename; use the full file name.
612 shift
613 set dummy "$ac_dir/$ac_word" "$@"
614 shift
615 ac_cv_prog_CC="$@"
620 CC="$ac_cv_prog_CC"
621 if test -n "$CC"; then
622 echo "$ac_t""$CC" 1>&6
623 else
624 echo "$ac_t""no" 1>&6
627 if test -z "$CC"; then
628 case "`uname -s`" in
629 *win32* | *WIN32*)
630 # Extract the first word of "cl", so it can be a program name with args.
631 set dummy cl; ac_word=$2
632 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
633 echo "configure:634: checking for $ac_word" >&5
634 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
635 echo $ac_n "(cached) $ac_c" 1>&6
636 else
637 if test -n "$CC"; then
638 ac_cv_prog_CC="$CC" # Let the user override the test.
639 else
640 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
641 ac_dummy="$PATH"
642 for ac_dir in $ac_dummy; do
643 test -z "$ac_dir" && ac_dir=.
644 if test -f $ac_dir/$ac_word; then
645 ac_cv_prog_CC="cl"
646 break
648 done
649 IFS="$ac_save_ifs"
652 CC="$ac_cv_prog_CC"
653 if test -n "$CC"; then
654 echo "$ac_t""$CC" 1>&6
655 else
656 echo "$ac_t""no" 1>&6
659 esac
661 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
664 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
665 echo "configure:666: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
667 ac_ext=c
668 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
669 ac_cpp='$CPP $CPPFLAGS'
670 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
671 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
672 cross_compiling=$ac_cv_prog_cc_cross
674 cat > conftest.$ac_ext << EOF
676 #line 677 "configure"
677 #include "confdefs.h"
679 main(){return(0);}
681 if { (eval echo configure:682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
682 ac_cv_prog_cc_works=yes
683 # If we can't run a trivial program, we are probably using a cross compiler.
684 if (./conftest; exit) 2>/dev/null; then
685 ac_cv_prog_cc_cross=no
686 else
687 ac_cv_prog_cc_cross=yes
689 else
690 echo "configure: failed program was:" >&5
691 cat conftest.$ac_ext >&5
692 ac_cv_prog_cc_works=no
694 rm -fr conftest*
695 ac_ext=c
696 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
697 ac_cpp='$CPP $CPPFLAGS'
698 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
699 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
700 cross_compiling=$ac_cv_prog_cc_cross
702 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
703 if test $ac_cv_prog_cc_works = no; then
704 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
706 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
707 echo "configure:708: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
708 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
709 cross_compiling=$ac_cv_prog_cc_cross
711 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
712 echo "configure:713: checking whether we are using GNU C" >&5
713 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
714 echo $ac_n "(cached) $ac_c" 1>&6
715 else
716 cat > conftest.c <<EOF
717 #ifdef __GNUC__
718 yes;
719 #endif
721 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:722: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
722 ac_cv_prog_gcc=yes
723 else
724 ac_cv_prog_gcc=no
728 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
730 if test $ac_cv_prog_gcc = yes; then
731 GCC=yes
732 else
733 GCC=
736 ac_test_CFLAGS="${CFLAGS+set}"
737 ac_save_CFLAGS="$CFLAGS"
738 CFLAGS=
739 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
740 echo "configure:741: checking whether ${CC-cc} accepts -g" >&5
741 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
742 echo $ac_n "(cached) $ac_c" 1>&6
743 else
744 echo 'void f(){}' > conftest.c
745 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
746 ac_cv_prog_cc_g=yes
747 else
748 ac_cv_prog_cc_g=no
750 rm -f conftest*
754 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
755 if test "$ac_test_CFLAGS" = set; then
756 CFLAGS="$ac_save_CFLAGS"
757 elif test $ac_cv_prog_cc_g = yes; then
758 if test "$GCC" = yes; then
759 CFLAGS="-g -O2"
760 else
761 CFLAGS="-g"
763 else
764 if test "$GCC" = yes; then
765 CFLAGS="-O2"
766 else
767 CFLAGS=
771 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
772 echo "configure:773: checking whether ${MAKE-make} sets \${MAKE}" >&5
773 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
774 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
775 echo $ac_n "(cached) $ac_c" 1>&6
776 else
777 cat > conftestmake <<\EOF
778 all:
779 @echo 'ac_maketemp="${MAKE}"'
781 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
782 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
783 if test -n "$ac_maketemp"; then
784 eval ac_cv_prog_make_${ac_make}_set=yes
785 else
786 eval ac_cv_prog_make_${ac_make}_set=no
788 rm -f conftestmake
790 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
791 echo "$ac_t""yes" 1>&6
792 SET_MAKE=
793 else
794 echo "$ac_t""no" 1>&6
795 SET_MAKE="MAKE=${MAKE-make}"
798 # Extract the first word of "ranlib", so it can be a program name with args.
799 set dummy ranlib; ac_word=$2
800 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
801 echo "configure:802: checking for $ac_word" >&5
802 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
803 echo $ac_n "(cached) $ac_c" 1>&6
804 else
805 if test -n "$RANLIB"; then
806 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
807 else
808 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
809 ac_dummy="$PATH"
810 for ac_dir in $ac_dummy; do
811 test -z "$ac_dir" && ac_dir=.
812 if test -f $ac_dir/$ac_word; then
813 ac_cv_prog_RANLIB="ranlib"
814 break
816 done
817 IFS="$ac_save_ifs"
818 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
821 RANLIB="$ac_cv_prog_RANLIB"
822 if test -n "$RANLIB"; then
823 echo "$ac_t""$RANLIB" 1>&6
824 else
825 echo "$ac_t""no" 1>&6
829 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
830 echo "configure:831: checking how to run the C preprocessor" >&5
831 # On Suns, sometimes $CPP names a directory.
832 if test -n "$CPP" && test -d "$CPP"; then
833 CPP=
835 if test -z "$CPP"; then
836 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
837 echo $ac_n "(cached) $ac_c" 1>&6
838 else
839 # This must be in double quotes, not single quotes, because CPP may get
840 # substituted into the Makefile and "${CC-cc}" will confuse make.
841 CPP="${CC-cc} -E"
842 # On the NeXT, cc -E runs the code through the compiler's parser,
843 # not just through cpp.
844 cat > conftest.$ac_ext <<EOF
845 #line 846 "configure"
846 #include "confdefs.h"
847 #include <assert.h>
848 Syntax Error
850 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
851 { (eval echo configure:852: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
852 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
853 if test -z "$ac_err"; then
855 else
856 echo "$ac_err" >&5
857 echo "configure: failed program was:" >&5
858 cat conftest.$ac_ext >&5
859 rm -rf conftest*
860 CPP="${CC-cc} -E -traditional-cpp"
861 cat > conftest.$ac_ext <<EOF
862 #line 863 "configure"
863 #include "confdefs.h"
864 #include <assert.h>
865 Syntax Error
867 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
868 { (eval echo configure:869: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
869 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
870 if test -z "$ac_err"; then
872 else
873 echo "$ac_err" >&5
874 echo "configure: failed program was:" >&5
875 cat conftest.$ac_ext >&5
876 rm -rf conftest*
877 CPP="${CC-cc} -nologo -E"
878 cat > conftest.$ac_ext <<EOF
879 #line 880 "configure"
880 #include "confdefs.h"
881 #include <assert.h>
882 Syntax Error
884 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
885 { (eval echo configure:886: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
886 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
887 if test -z "$ac_err"; then
889 else
890 echo "$ac_err" >&5
891 echo "configure: failed program was:" >&5
892 cat conftest.$ac_ext >&5
893 rm -rf conftest*
894 CPP=/lib/cpp
896 rm -f conftest*
898 rm -f conftest*
900 rm -f conftest*
901 ac_cv_prog_CPP="$CPP"
903 CPP="$ac_cv_prog_CPP"
904 else
905 ac_cv_prog_CPP="$CPP"
907 echo "$ac_t""$CPP" 1>&6
909 # If we find X, set shell vars x_includes and x_libraries to the
910 # paths, otherwise set no_x=yes.
911 # Uses ac_ vars as temps to allow command line to override cache and checks.
912 # --without-x overrides everything else, but does not touch the cache.
913 echo $ac_n "checking for X""... $ac_c" 1>&6
914 echo "configure:915: checking for X" >&5
916 # Check whether --with-x or --without-x was given.
917 if test "${with_x+set}" = set; then
918 withval="$with_x"
922 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
923 if test "x$with_x" = xno; then
924 # The user explicitly disabled X.
925 have_x=disabled
926 else
927 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
928 # Both variables are already set.
929 have_x=yes
930 else
931 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
932 echo $ac_n "(cached) $ac_c" 1>&6
933 else
934 # One or both of the vars are not set, and there is no cached value.
935 ac_x_includes=NO ac_x_libraries=NO
936 rm -fr conftestdir
937 if mkdir conftestdir; then
938 cd conftestdir
939 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
940 cat > Imakefile <<'EOF'
941 acfindx:
942 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
944 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
945 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
946 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
947 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
948 for ac_extension in a so sl; do
949 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
950 test -f $ac_im_libdir/libX11.$ac_extension; then
951 ac_im_usrlibdir=$ac_im_libdir; break
953 done
954 # Screen out bogus values from the imake configuration. They are
955 # bogus both because they are the default anyway, and because
956 # using them would break gcc on systems where it needs fixed includes.
957 case "$ac_im_incroot" in
958 /usr/include) ;;
959 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
960 esac
961 case "$ac_im_usrlibdir" in
962 /usr/lib | /lib) ;;
963 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
964 esac
966 cd ..
967 rm -fr conftestdir
970 if test "$ac_x_includes" = NO; then
971 # Guess where to find include files, by looking for this one X11 .h file.
972 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
974 # First, try using that file with no special directory specified.
975 cat > conftest.$ac_ext <<EOF
976 #line 977 "configure"
977 #include "confdefs.h"
978 #include <$x_direct_test_include>
980 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
981 { (eval echo configure:982: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
982 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
983 if test -z "$ac_err"; then
984 rm -rf conftest*
985 # We can compile using X headers with no special include directory.
986 ac_x_includes=
987 else
988 echo "$ac_err" >&5
989 echo "configure: failed program was:" >&5
990 cat conftest.$ac_ext >&5
991 rm -rf conftest*
992 # Look for the header file in a standard set of common directories.
993 # Check X11 before X11Rn because it is often a symlink to the current release.
994 for ac_dir in \
995 /usr/X11/include \
996 /usr/X11R6/include \
997 /usr/X11R5/include \
998 /usr/X11R4/include \
1000 /usr/include/X11 \
1001 /usr/include/X11R6 \
1002 /usr/include/X11R5 \
1003 /usr/include/X11R4 \
1005 /usr/local/X11/include \
1006 /usr/local/X11R6/include \
1007 /usr/local/X11R5/include \
1008 /usr/local/X11R4/include \
1010 /usr/local/include/X11 \
1011 /usr/local/include/X11R6 \
1012 /usr/local/include/X11R5 \
1013 /usr/local/include/X11R4 \
1015 /usr/X386/include \
1016 /usr/x386/include \
1017 /usr/XFree86/include/X11 \
1019 /usr/include \
1020 /usr/local/include \
1021 /usr/unsupported/include \
1022 /usr/athena/include \
1023 /usr/local/x11r5/include \
1024 /usr/lpp/Xamples/include \
1026 /usr/openwin/include \
1027 /usr/openwin/share/include \
1030 if test -r "$ac_dir/$x_direct_test_include"; then
1031 ac_x_includes=$ac_dir
1032 break
1034 done
1036 rm -f conftest*
1037 fi # $ac_x_includes = NO
1039 if test "$ac_x_libraries" = NO; then
1040 # Check for the libraries.
1042 test -z "$x_direct_test_library" && x_direct_test_library=Xt
1043 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
1045 # See if we find them without any special options.
1046 # Don't add to $LIBS permanently.
1047 ac_save_LIBS="$LIBS"
1048 LIBS="-l$x_direct_test_library $LIBS"
1049 cat > conftest.$ac_ext <<EOF
1050 #line 1051 "configure"
1051 #include "confdefs.h"
1053 int main() {
1054 ${x_direct_test_function}()
1055 ; return 0; }
1057 if { (eval echo configure:1058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1058 rm -rf conftest*
1059 LIBS="$ac_save_LIBS"
1060 # We can link X programs with no special library path.
1061 ac_x_libraries=
1062 else
1063 echo "configure: failed program was:" >&5
1064 cat conftest.$ac_ext >&5
1065 rm -rf conftest*
1066 LIBS="$ac_save_LIBS"
1067 # First see if replacing the include by lib works.
1068 # Check X11 before X11Rn because it is often a symlink to the current release.
1069 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
1070 /usr/X11/lib \
1071 /usr/X11R6/lib \
1072 /usr/X11R5/lib \
1073 /usr/X11R4/lib \
1075 /usr/lib/X11 \
1076 /usr/lib/X11R6 \
1077 /usr/lib/X11R5 \
1078 /usr/lib/X11R4 \
1080 /usr/local/X11/lib \
1081 /usr/local/X11R6/lib \
1082 /usr/local/X11R5/lib \
1083 /usr/local/X11R4/lib \
1085 /usr/local/lib/X11 \
1086 /usr/local/lib/X11R6 \
1087 /usr/local/lib/X11R5 \
1088 /usr/local/lib/X11R4 \
1090 /usr/X386/lib \
1091 /usr/x386/lib \
1092 /usr/XFree86/lib/X11 \
1094 /usr/lib \
1095 /usr/local/lib \
1096 /usr/unsupported/lib \
1097 /usr/athena/lib \
1098 /usr/local/x11r5/lib \
1099 /usr/lpp/Xamples/lib \
1100 /lib/usr/lib/X11 \
1102 /usr/openwin/lib \
1103 /usr/openwin/share/lib \
1106 for ac_extension in a so sl; do
1107 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
1108 ac_x_libraries=$ac_dir
1109 break 2
1111 done
1112 done
1114 rm -f conftest*
1115 fi # $ac_x_libraries = NO
1117 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
1118 # Didn't find X anywhere. Cache the known absence of X.
1119 ac_cv_have_x="have_x=no"
1120 else
1121 # Record where we found X for the cache.
1122 ac_cv_have_x="have_x=yes \
1123 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1127 eval "$ac_cv_have_x"
1128 fi # $with_x != no
1130 if test "$have_x" != yes; then
1131 echo "$ac_t""$have_x" 1>&6
1132 no_x=yes
1133 else
1134 # If each of the values was on the command line, it overrides each guess.
1135 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
1136 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
1137 # Update the cache value to reflect the command line values.
1138 ac_cv_have_x="have_x=yes \
1139 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1140 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1143 if test "$no_x" = yes; then
1144 # Not all programs may use this symbol, but it does not hurt to define it.
1145 cat >> confdefs.h <<\EOF
1146 #define X_DISPLAY_MISSING 1
1149 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
1150 else
1151 if test -n "$x_includes"; then
1152 X_CFLAGS="$X_CFLAGS -I$x_includes"
1155 # It would also be nice to do this for all -L options, not just this one.
1156 if test -n "$x_libraries"; then
1157 X_LIBS="$X_LIBS -L$x_libraries"
1158 # For Solaris; some versions of Sun CC require a space after -R and
1159 # others require no space. Words are not sufficient . . . .
1160 case "`(uname -sr) 2>/dev/null`" in
1161 "SunOS 5"*)
1162 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1163 echo "configure:1164: checking whether -R must be followed by a space" >&5
1164 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
1165 cat > conftest.$ac_ext <<EOF
1166 #line 1167 "configure"
1167 #include "confdefs.h"
1169 int main() {
1171 ; return 0; }
1173 if { (eval echo configure:1174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1174 rm -rf conftest*
1175 ac_R_nospace=yes
1176 else
1177 echo "configure: failed program was:" >&5
1178 cat conftest.$ac_ext >&5
1179 rm -rf conftest*
1180 ac_R_nospace=no
1182 rm -f conftest*
1183 if test $ac_R_nospace = yes; then
1184 echo "$ac_t""no" 1>&6
1185 X_LIBS="$X_LIBS -R$x_libraries"
1186 else
1187 LIBS="$ac_xsave_LIBS -R $x_libraries"
1188 cat > conftest.$ac_ext <<EOF
1189 #line 1190 "configure"
1190 #include "confdefs.h"
1192 int main() {
1194 ; return 0; }
1196 if { (eval echo configure:1197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1197 rm -rf conftest*
1198 ac_R_space=yes
1199 else
1200 echo "configure: failed program was:" >&5
1201 cat conftest.$ac_ext >&5
1202 rm -rf conftest*
1203 ac_R_space=no
1205 rm -f conftest*
1206 if test $ac_R_space = yes; then
1207 echo "$ac_t""yes" 1>&6
1208 X_LIBS="$X_LIBS -R $x_libraries"
1209 else
1210 echo "$ac_t""neither works" 1>&6
1213 LIBS="$ac_xsave_LIBS"
1214 esac
1217 # Check for system-dependent libraries X programs must link with.
1218 # Do this before checking for the system-independent R6 libraries
1219 # (-lICE), since we may need -lsocket or whatever for X linking.
1221 if test "$ISC" = yes; then
1222 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
1223 else
1224 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1225 # libraries were built with DECnet support. And karl@cs.umb.edu says
1226 # the Alpha needs dnet_stub (dnet does not exist).
1227 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1228 echo "configure:1229: checking for dnet_ntoa in -ldnet" >&5
1229 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1230 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1231 echo $ac_n "(cached) $ac_c" 1>&6
1232 else
1233 ac_save_LIBS="$LIBS"
1234 LIBS="-ldnet $LIBS"
1235 cat > conftest.$ac_ext <<EOF
1236 #line 1237 "configure"
1237 #include "confdefs.h"
1238 /* Override any gcc2 internal prototype to avoid an error. */
1239 /* We use char because int might match the return type of a gcc2
1240 builtin and then its argument prototype would still apply. */
1241 char dnet_ntoa();
1243 int main() {
1244 dnet_ntoa()
1245 ; return 0; }
1247 if { (eval echo configure:1248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1248 rm -rf conftest*
1249 eval "ac_cv_lib_$ac_lib_var=yes"
1250 else
1251 echo "configure: failed program was:" >&5
1252 cat conftest.$ac_ext >&5
1253 rm -rf conftest*
1254 eval "ac_cv_lib_$ac_lib_var=no"
1256 rm -f conftest*
1257 LIBS="$ac_save_LIBS"
1260 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1261 echo "$ac_t""yes" 1>&6
1262 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
1263 else
1264 echo "$ac_t""no" 1>&6
1267 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
1268 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1269 echo "configure:1270: checking for dnet_ntoa in -ldnet_stub" >&5
1270 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1271 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1272 echo $ac_n "(cached) $ac_c" 1>&6
1273 else
1274 ac_save_LIBS="$LIBS"
1275 LIBS="-ldnet_stub $LIBS"
1276 cat > conftest.$ac_ext <<EOF
1277 #line 1278 "configure"
1278 #include "confdefs.h"
1279 /* Override any gcc2 internal prototype to avoid an error. */
1280 /* We use char because int might match the return type of a gcc2
1281 builtin and then its argument prototype would still apply. */
1282 char dnet_ntoa();
1284 int main() {
1285 dnet_ntoa()
1286 ; return 0; }
1288 if { (eval echo configure:1289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1289 rm -rf conftest*
1290 eval "ac_cv_lib_$ac_lib_var=yes"
1291 else
1292 echo "configure: failed program was:" >&5
1293 cat conftest.$ac_ext >&5
1294 rm -rf conftest*
1295 eval "ac_cv_lib_$ac_lib_var=no"
1297 rm -f conftest*
1298 LIBS="$ac_save_LIBS"
1301 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1302 echo "$ac_t""yes" 1>&6
1303 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
1304 else
1305 echo "$ac_t""no" 1>&6
1310 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1311 # to get the SysV transport functions.
1312 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
1313 # needs -lnsl.
1314 # The nsl library prevents programs from opening the X display
1315 # on Irix 5.2, according to dickey@clark.net.
1316 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1317 echo "configure:1318: checking for gethostbyname" >&5
1318 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1319 echo $ac_n "(cached) $ac_c" 1>&6
1320 else
1321 cat > conftest.$ac_ext <<EOF
1322 #line 1323 "configure"
1323 #include "confdefs.h"
1324 /* System header to define __stub macros and hopefully few prototypes,
1325 which can conflict with char gethostbyname(); below. */
1326 #include <assert.h>
1327 /* Override any gcc2 internal prototype to avoid an error. */
1328 /* We use char because int might match the return type of a gcc2
1329 builtin and then its argument prototype would still apply. */
1330 char gethostbyname();
1332 int main() {
1334 /* The GNU C library defines this for functions which it implements
1335 to always fail with ENOSYS. Some functions are actually named
1336 something starting with __ and the normal name is an alias. */
1337 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1338 choke me
1339 #else
1340 gethostbyname();
1341 #endif
1343 ; return 0; }
1345 if { (eval echo configure:1346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1346 rm -rf conftest*
1347 eval "ac_cv_func_gethostbyname=yes"
1348 else
1349 echo "configure: failed program was:" >&5
1350 cat conftest.$ac_ext >&5
1351 rm -rf conftest*
1352 eval "ac_cv_func_gethostbyname=no"
1354 rm -f conftest*
1357 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1358 echo "$ac_t""yes" 1>&6
1360 else
1361 echo "$ac_t""no" 1>&6
1364 if test $ac_cv_func_gethostbyname = no; then
1365 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1366 echo "configure:1367: checking for gethostbyname in -lnsl" >&5
1367 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1368 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1369 echo $ac_n "(cached) $ac_c" 1>&6
1370 else
1371 ac_save_LIBS="$LIBS"
1372 LIBS="-lnsl $LIBS"
1373 cat > conftest.$ac_ext <<EOF
1374 #line 1375 "configure"
1375 #include "confdefs.h"
1376 /* Override any gcc2 internal prototype to avoid an error. */
1377 /* We use char because int might match the return type of a gcc2
1378 builtin and then its argument prototype would still apply. */
1379 char gethostbyname();
1381 int main() {
1382 gethostbyname()
1383 ; return 0; }
1385 if { (eval echo configure:1386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1386 rm -rf conftest*
1387 eval "ac_cv_lib_$ac_lib_var=yes"
1388 else
1389 echo "configure: failed program was:" >&5
1390 cat conftest.$ac_ext >&5
1391 rm -rf conftest*
1392 eval "ac_cv_lib_$ac_lib_var=no"
1394 rm -f conftest*
1395 LIBS="$ac_save_LIBS"
1398 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1399 echo "$ac_t""yes" 1>&6
1400 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
1401 else
1402 echo "$ac_t""no" 1>&6
1407 # lieder@skyler.mavd.honeywell.com says without -lsocket,
1408 # socket/setsockopt and other routines are undefined under SCO ODT
1409 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
1410 # on later versions), says simon@lia.di.epfl.ch: it contains
1411 # gethostby* variants that don't use the nameserver (or something).
1412 # -lsocket must be given before -lnsl if both are needed.
1413 # We assume that if connect needs -lnsl, so does gethostbyname.
1414 echo $ac_n "checking for connect""... $ac_c" 1>&6
1415 echo "configure:1416: checking for connect" >&5
1416 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1417 echo $ac_n "(cached) $ac_c" 1>&6
1418 else
1419 cat > conftest.$ac_ext <<EOF
1420 #line 1421 "configure"
1421 #include "confdefs.h"
1422 /* System header to define __stub macros and hopefully few prototypes,
1423 which can conflict with char connect(); below. */
1424 #include <assert.h>
1425 /* Override any gcc2 internal prototype to avoid an error. */
1426 /* We use char because int might match the return type of a gcc2
1427 builtin and then its argument prototype would still apply. */
1428 char connect();
1430 int main() {
1432 /* The GNU C library defines this for functions which it implements
1433 to always fail with ENOSYS. Some functions are actually named
1434 something starting with __ and the normal name is an alias. */
1435 #if defined (__stub_connect) || defined (__stub___connect)
1436 choke me
1437 #else
1438 connect();
1439 #endif
1441 ; return 0; }
1443 if { (eval echo configure:1444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1444 rm -rf conftest*
1445 eval "ac_cv_func_connect=yes"
1446 else
1447 echo "configure: failed program was:" >&5
1448 cat conftest.$ac_ext >&5
1449 rm -rf conftest*
1450 eval "ac_cv_func_connect=no"
1452 rm -f conftest*
1455 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1456 echo "$ac_t""yes" 1>&6
1458 else
1459 echo "$ac_t""no" 1>&6
1462 if test $ac_cv_func_connect = no; then
1463 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1464 echo "configure:1465: checking for connect in -lsocket" >&5
1465 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1466 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1467 echo $ac_n "(cached) $ac_c" 1>&6
1468 else
1469 ac_save_LIBS="$LIBS"
1470 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
1471 cat > conftest.$ac_ext <<EOF
1472 #line 1473 "configure"
1473 #include "confdefs.h"
1474 /* Override any gcc2 internal prototype to avoid an error. */
1475 /* We use char because int might match the return type of a gcc2
1476 builtin and then its argument prototype would still apply. */
1477 char connect();
1479 int main() {
1480 connect()
1481 ; return 0; }
1483 if { (eval echo configure:1484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1484 rm -rf conftest*
1485 eval "ac_cv_lib_$ac_lib_var=yes"
1486 else
1487 echo "configure: failed program was:" >&5
1488 cat conftest.$ac_ext >&5
1489 rm -rf conftest*
1490 eval "ac_cv_lib_$ac_lib_var=no"
1492 rm -f conftest*
1493 LIBS="$ac_save_LIBS"
1496 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1497 echo "$ac_t""yes" 1>&6
1498 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
1499 else
1500 echo "$ac_t""no" 1>&6
1505 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
1506 echo $ac_n "checking for remove""... $ac_c" 1>&6
1507 echo "configure:1508: checking for remove" >&5
1508 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
1509 echo $ac_n "(cached) $ac_c" 1>&6
1510 else
1511 cat > conftest.$ac_ext <<EOF
1512 #line 1513 "configure"
1513 #include "confdefs.h"
1514 /* System header to define __stub macros and hopefully few prototypes,
1515 which can conflict with char remove(); below. */
1516 #include <assert.h>
1517 /* Override any gcc2 internal prototype to avoid an error. */
1518 /* We use char because int might match the return type of a gcc2
1519 builtin and then its argument prototype would still apply. */
1520 char remove();
1522 int main() {
1524 /* The GNU C library defines this for functions which it implements
1525 to always fail with ENOSYS. Some functions are actually named
1526 something starting with __ and the normal name is an alias. */
1527 #if defined (__stub_remove) || defined (__stub___remove)
1528 choke me
1529 #else
1530 remove();
1531 #endif
1533 ; return 0; }
1535 if { (eval echo configure:1536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1536 rm -rf conftest*
1537 eval "ac_cv_func_remove=yes"
1538 else
1539 echo "configure: failed program was:" >&5
1540 cat conftest.$ac_ext >&5
1541 rm -rf conftest*
1542 eval "ac_cv_func_remove=no"
1544 rm -f conftest*
1547 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
1548 echo "$ac_t""yes" 1>&6
1550 else
1551 echo "$ac_t""no" 1>&6
1554 if test $ac_cv_func_remove = no; then
1555 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
1556 echo "configure:1557: checking for remove in -lposix" >&5
1557 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
1558 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1559 echo $ac_n "(cached) $ac_c" 1>&6
1560 else
1561 ac_save_LIBS="$LIBS"
1562 LIBS="-lposix $LIBS"
1563 cat > conftest.$ac_ext <<EOF
1564 #line 1565 "configure"
1565 #include "confdefs.h"
1566 /* Override any gcc2 internal prototype to avoid an error. */
1567 /* We use char because int might match the return type of a gcc2
1568 builtin and then its argument prototype would still apply. */
1569 char remove();
1571 int main() {
1572 remove()
1573 ; return 0; }
1575 if { (eval echo configure:1576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1576 rm -rf conftest*
1577 eval "ac_cv_lib_$ac_lib_var=yes"
1578 else
1579 echo "configure: failed program was:" >&5
1580 cat conftest.$ac_ext >&5
1581 rm -rf conftest*
1582 eval "ac_cv_lib_$ac_lib_var=no"
1584 rm -f conftest*
1585 LIBS="$ac_save_LIBS"
1588 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1589 echo "$ac_t""yes" 1>&6
1590 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
1591 else
1592 echo "$ac_t""no" 1>&6
1597 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
1598 echo $ac_n "checking for shmat""... $ac_c" 1>&6
1599 echo "configure:1600: checking for shmat" >&5
1600 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
1601 echo $ac_n "(cached) $ac_c" 1>&6
1602 else
1603 cat > conftest.$ac_ext <<EOF
1604 #line 1605 "configure"
1605 #include "confdefs.h"
1606 /* System header to define __stub macros and hopefully few prototypes,
1607 which can conflict with char shmat(); below. */
1608 #include <assert.h>
1609 /* Override any gcc2 internal prototype to avoid an error. */
1610 /* We use char because int might match the return type of a gcc2
1611 builtin and then its argument prototype would still apply. */
1612 char shmat();
1614 int main() {
1616 /* The GNU C library defines this for functions which it implements
1617 to always fail with ENOSYS. Some functions are actually named
1618 something starting with __ and the normal name is an alias. */
1619 #if defined (__stub_shmat) || defined (__stub___shmat)
1620 choke me
1621 #else
1622 shmat();
1623 #endif
1625 ; return 0; }
1627 if { (eval echo configure:1628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1628 rm -rf conftest*
1629 eval "ac_cv_func_shmat=yes"
1630 else
1631 echo "configure: failed program was:" >&5
1632 cat conftest.$ac_ext >&5
1633 rm -rf conftest*
1634 eval "ac_cv_func_shmat=no"
1636 rm -f conftest*
1639 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
1640 echo "$ac_t""yes" 1>&6
1642 else
1643 echo "$ac_t""no" 1>&6
1646 if test $ac_cv_func_shmat = no; then
1647 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
1648 echo "configure:1649: checking for shmat in -lipc" >&5
1649 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
1650 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1651 echo $ac_n "(cached) $ac_c" 1>&6
1652 else
1653 ac_save_LIBS="$LIBS"
1654 LIBS="-lipc $LIBS"
1655 cat > conftest.$ac_ext <<EOF
1656 #line 1657 "configure"
1657 #include "confdefs.h"
1658 /* Override any gcc2 internal prototype to avoid an error. */
1659 /* We use char because int might match the return type of a gcc2
1660 builtin and then its argument prototype would still apply. */
1661 char shmat();
1663 int main() {
1664 shmat()
1665 ; return 0; }
1667 if { (eval echo configure:1668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1668 rm -rf conftest*
1669 eval "ac_cv_lib_$ac_lib_var=yes"
1670 else
1671 echo "configure: failed program was:" >&5
1672 cat conftest.$ac_ext >&5
1673 rm -rf conftest*
1674 eval "ac_cv_lib_$ac_lib_var=no"
1676 rm -f conftest*
1677 LIBS="$ac_save_LIBS"
1680 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1681 echo "$ac_t""yes" 1>&6
1682 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
1683 else
1684 echo "$ac_t""no" 1>&6
1690 # Check for libraries that X11R6 Xt/Xaw programs need.
1691 ac_save_LDFLAGS="$LDFLAGS"
1692 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
1693 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
1694 # check for ICE first), but we must link in the order -lSM -lICE or
1695 # we get undefined symbols. So assume we have SM if we have ICE.
1696 # These have to be linked with before -lX11, unlike the other
1697 # libraries we check for below, so use a different variable.
1698 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
1699 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
1700 echo "configure:1701: checking for IceConnectionNumber in -lICE" >&5
1701 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
1702 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1703 echo $ac_n "(cached) $ac_c" 1>&6
1704 else
1705 ac_save_LIBS="$LIBS"
1706 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
1707 cat > conftest.$ac_ext <<EOF
1708 #line 1709 "configure"
1709 #include "confdefs.h"
1710 /* Override any gcc2 internal prototype to avoid an error. */
1711 /* We use char because int might match the return type of a gcc2
1712 builtin and then its argument prototype would still apply. */
1713 char IceConnectionNumber();
1715 int main() {
1716 IceConnectionNumber()
1717 ; return 0; }
1719 if { (eval echo configure:1720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1720 rm -rf conftest*
1721 eval "ac_cv_lib_$ac_lib_var=yes"
1722 else
1723 echo "configure: failed program was:" >&5
1724 cat conftest.$ac_ext >&5
1725 rm -rf conftest*
1726 eval "ac_cv_lib_$ac_lib_var=no"
1728 rm -f conftest*
1729 LIBS="$ac_save_LIBS"
1732 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1733 echo "$ac_t""yes" 1>&6
1734 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
1735 else
1736 echo "$ac_t""no" 1>&6
1739 LDFLAGS="$ac_save_LDFLAGS"
1744 echo $ac_n "checking for inline""... $ac_c" 1>&6
1745 echo "configure:1746: checking for inline" >&5
1746 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1747 echo $ac_n "(cached) $ac_c" 1>&6
1748 else
1749 ac_cv_c_inline=no
1750 for ac_kw in inline __inline__ __inline; do
1751 cat > conftest.$ac_ext <<EOF
1752 #line 1753 "configure"
1753 #include "confdefs.h"
1755 int main() {
1756 } $ac_kw foo() {
1757 ; return 0; }
1759 if { (eval echo configure:1760: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1760 rm -rf conftest*
1761 ac_cv_c_inline=$ac_kw; break
1762 else
1763 echo "configure: failed program was:" >&5
1764 cat conftest.$ac_ext >&5
1766 rm -f conftest*
1767 done
1771 echo "$ac_t""$ac_cv_c_inline" 1>&6
1772 case "$ac_cv_c_inline" in
1773 inline | yes) ;;
1774 no) cat >> confdefs.h <<\EOF
1775 #define inline
1778 *) cat >> confdefs.h <<EOF
1779 #define inline $ac_cv_c_inline
1782 esac
1784 echo $ac_n "checking size of unsigned char""... $ac_c" 1>&6
1785 echo "configure:1786: checking size of unsigned char" >&5
1786 if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_char'+set}'`\" = set"; then
1787 echo $ac_n "(cached) $ac_c" 1>&6
1788 else
1789 if test "$cross_compiling" = yes; then
1790 ac_cv_sizeof_unsigned_char=0
1791 else
1792 cat > conftest.$ac_ext <<EOF
1793 #line 1794 "configure"
1794 #include "confdefs.h"
1795 #include <stdio.h>
1796 #include <sys/types.h>
1797 main()
1799 FILE *f=fopen("conftestval", "w");
1800 if (!f) exit(1);
1801 fprintf(f, "%d\n", sizeof(unsigned char));
1802 exit(0);
1805 if { (eval echo configure:1806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1806 then
1807 ac_cv_sizeof_unsigned_char=`cat conftestval`
1808 else
1809 echo "configure: failed program was:" >&5
1810 cat conftest.$ac_ext >&5
1811 rm -fr conftest*
1812 ac_cv_sizeof_unsigned_char=0
1814 rm -fr conftest*
1818 echo "$ac_t""$ac_cv_sizeof_unsigned_char" 1>&6
1819 cat >> confdefs.h <<EOF
1820 #define SIZEOF_UNSIGNED_CHAR $ac_cv_sizeof_unsigned_char
1824 echo $ac_n "checking size of unsigned short""... $ac_c" 1>&6
1825 echo "configure:1826: checking size of unsigned short" >&5
1826 if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_short'+set}'`\" = set"; then
1827 echo $ac_n "(cached) $ac_c" 1>&6
1828 else
1829 if test "$cross_compiling" = yes; then
1830 ac_cv_sizeof_unsigned_short=0
1831 else
1832 cat > conftest.$ac_ext <<EOF
1833 #line 1834 "configure"
1834 #include "confdefs.h"
1835 #include <stdio.h>
1836 #include <sys/types.h>
1837 main()
1839 FILE *f=fopen("conftestval", "w");
1840 if (!f) exit(1);
1841 fprintf(f, "%d\n", sizeof(unsigned short));
1842 exit(0);
1845 if { (eval echo configure:1846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1846 then
1847 ac_cv_sizeof_unsigned_short=`cat conftestval`
1848 else
1849 echo "configure: failed program was:" >&5
1850 cat conftest.$ac_ext >&5
1851 rm -fr conftest*
1852 ac_cv_sizeof_unsigned_short=0
1854 rm -fr conftest*
1858 echo "$ac_t""$ac_cv_sizeof_unsigned_short" 1>&6
1859 cat >> confdefs.h <<EOF
1860 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
1864 echo $ac_n "checking size of unsigned int""... $ac_c" 1>&6
1865 echo "configure:1866: checking size of unsigned int" >&5
1866 if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_int'+set}'`\" = set"; then
1867 echo $ac_n "(cached) $ac_c" 1>&6
1868 else
1869 if test "$cross_compiling" = yes; then
1870 ac_cv_sizeof_unsigned_int=0
1871 else
1872 cat > conftest.$ac_ext <<EOF
1873 #line 1874 "configure"
1874 #include "confdefs.h"
1875 #include <stdio.h>
1876 #include <sys/types.h>
1877 main()
1879 FILE *f=fopen("conftestval", "w");
1880 if (!f) exit(1);
1881 fprintf(f, "%d\n", sizeof(unsigned int));
1882 exit(0);
1885 if { (eval echo configure:1886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1886 then
1887 ac_cv_sizeof_unsigned_int=`cat conftestval`
1888 else
1889 echo "configure: failed program was:" >&5
1890 cat conftest.$ac_ext >&5
1891 rm -fr conftest*
1892 ac_cv_sizeof_unsigned_int=0
1894 rm -fr conftest*
1898 echo "$ac_t""$ac_cv_sizeof_unsigned_int" 1>&6
1899 cat >> confdefs.h <<EOF
1900 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
1904 echo $ac_n "checking size of unsigned long""... $ac_c" 1>&6
1905 echo "configure:1906: checking size of unsigned long" >&5
1906 if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_long'+set}'`\" = set"; then
1907 echo $ac_n "(cached) $ac_c" 1>&6
1908 else
1909 if test "$cross_compiling" = yes; then
1910 ac_cv_sizeof_unsigned_long=0
1911 else
1912 cat > conftest.$ac_ext <<EOF
1913 #line 1914 "configure"
1914 #include "confdefs.h"
1915 #include <stdio.h>
1916 #include <sys/types.h>
1917 main()
1919 FILE *f=fopen("conftestval", "w");
1920 if (!f) exit(1);
1921 fprintf(f, "%d\n", sizeof(unsigned long));
1922 exit(0);
1925 if { (eval echo configure:1926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1926 then
1927 ac_cv_sizeof_unsigned_long=`cat conftestval`
1928 else
1929 echo "configure: failed program was:" >&5
1930 cat conftest.$ac_ext >&5
1931 rm -fr conftest*
1932 ac_cv_sizeof_unsigned_long=0
1934 rm -fr conftest*
1938 echo "$ac_t""$ac_cv_sizeof_unsigned_long" 1>&6
1939 cat >> confdefs.h <<EOF
1940 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
1944 echo $ac_n "checking size of unsigned long long""... $ac_c" 1>&6
1945 echo "configure:1946: checking size of unsigned long long" >&5
1946 if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_long_long'+set}'`\" = set"; then
1947 echo $ac_n "(cached) $ac_c" 1>&6
1948 else
1949 if test "$cross_compiling" = yes; then
1950 ac_cv_sizeof_unsigned_long_long=0
1951 else
1952 cat > conftest.$ac_ext <<EOF
1953 #line 1954 "configure"
1954 #include "confdefs.h"
1955 #include <stdio.h>
1956 #include <sys/types.h>
1957 main()
1959 FILE *f=fopen("conftestval", "w");
1960 if (!f) exit(1);
1961 fprintf(f, "%d\n", sizeof(unsigned long long));
1962 exit(0);
1965 if { (eval echo configure:1966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1966 then
1967 ac_cv_sizeof_unsigned_long_long=`cat conftestval`
1968 else
1969 echo "configure: failed program was:" >&5
1970 cat conftest.$ac_ext >&5
1971 rm -fr conftest*
1972 ac_cv_sizeof_unsigned_long_long=0
1974 rm -fr conftest*
1978 echo "$ac_t""$ac_cv_sizeof_unsigned_long_long" 1>&6
1979 cat >> confdefs.h <<EOF
1980 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
1985 if test "$GCC" = "yes"; then
1986 CFLAGS="$CFLAGS -Wall -Wstrict-prototypes"
1988 if test "$GXX" = "yes"; then
1989 CXXFLAGS="$CXXFLAGS -Wall -Wstrict-prototypes"
1992 # Check whether --with-WinNT or --without-WinNT was given.
1993 if test "${with_WinNT+set}" = set; then
1994 withval="$with_WinNT"
1999 # Check whether --with-BeOS or --without-BeOS was given.
2000 if test "${with_BeOS+set}" = set; then
2001 withval="$with_BeOS"
2006 # Check whether --with-Linux or --without-Linux was given.
2007 if test "${with_Linux+set}" = set; then
2008 withval="$with_Linux"
2013 # Check whether --with-NetBSD or --without-NetBSD was given.
2014 if test "${with_NetBSD+set}" = set; then
2015 withval="$with_NetBSD"
2020 # Check whether --with-FreeBSD or --without-FreeBSD was given.
2021 if test "${with_FreeBSD+set}" = set; then
2022 withval="$with_FreeBSD"
2027 # Check whether --with-null or --without-null was given.
2028 if test "${with_null+set}" = set; then
2029 withval="$with_null"
2034 # Check whether --with-linux-source or --without-linux-source was given.
2035 if test "${with_linux_source+set}" = set; then
2036 withval="$with_linux_source"
2037 LINUX_SRC="$withval"
2038 else
2039 LINUX_SRC="/lib/modules/`uname -r`/build"
2045 # Check whether --with-netbsd-source or --without-netbsd-source was given.
2046 if test "${with_netbsd_source+set}" = set; then
2047 withval="$with_netbsd_source"
2048 NETBSD_SRC="$withval"
2049 else
2050 NETBSD_SRC="/sys"
2056 # Check whether --with-freebsd-source or --without-freebsd-source was given.
2057 if test "${with_freebsd_source+set}" = set; then
2058 withval="$with_freebsd_source"
2059 FREEBSD_SRC="$withval"
2060 else
2061 FREEBSD_SRC="/sys"
2067 if test "$with_Linux" != yes && \
2068 test "$with_BeOS" != yes && \
2069 test "$with_NetBSD" != yes && \
2070 test "$with_FreeBSD" != yes && \
2071 test "$with_null" != yes && \
2072 test "$with_WinNT" != yes; then
2073 with_Linux=yes
2076 if test "$with_Linux" = yes; then
2077 HOST_O=host-linux.o
2078 KERNEL_TARGET=plex86.o
2079 HOST_TARGET=linux-target
2080 HOST_CLEAN=linux-clean
2081 HOSTOS=LINUX
2082 FULL_LINK=
2083 elif test "$with_BeOS" = yes; then
2084 HOST_O=host-beos.o
2085 KERNEL_TARGET=plex86
2086 HOST_TARGET=
2087 HOST_CLEAN=
2088 HOSTOS=BEOS
2089 FULL_LINK=
2090 elif test "$with_NetBSD" = yes; then
2091 HOST_O=host-netbsd.o
2092 KERNEL_TARGET=plex86.o
2093 HOST_TARGET=netbsd-target
2094 HOST_CLEAN=netbsd-clean
2095 HOSTOS=NETBSD
2096 FULL_LINK=
2097 elif test "$with_FreeBSD" = yes; then
2098 HOST_O=host-freebsd.o
2099 KERNEL_TARGET=plex86.o
2100 HOST_TARGET=freebsd-target
2101 HOST_CLEAN=freebsd-clean
2102 HOSTOS=FREEBSD
2103 FULL_LINK=
2104 elif test "$with_null" = yes; then
2105 HOST_O=host-null.o
2106 KERNEL_TARGET=plex86.o
2107 HOST_TARGET=null-target
2108 HOST_CLEAN=null-clean
2109 HOSTOS=NULL
2110 FULL_LINK='$(CC) -o a.out plex86.o'
2111 else
2112 echo " "
2113 echo "ERROR: Your system is not supported yet"
2114 exit 1
2125 SUFFIX_LINE='.SUFFIXES: .cc'
2126 CPP_SUFFIX='cc'
2127 DASH="-"
2128 SLASH="/"
2129 CXXFP=""
2130 CFP=""
2131 OFP="-o "
2132 MAKELIB="ar rv \$@"
2133 RMCOMMAND="rm -f "
2134 EXE=""
2135 COMMAND_SEPARATOR="&& \\"
2136 CD_UP_ONE="echo done"
2137 CD_UP_TWO="echo done"
2138 INSTRUMENT_DIR='instrument/'
2139 VIDEO_OBJS='$(VIDEO_OBJS_VGA)'
2155 trap '' 1 2 15
2156 cat > confcache <<\EOF
2157 # This file is a shell script that caches the results of configure
2158 # tests run on this system so they can be shared between configure
2159 # scripts and configure runs. It is not useful on other systems.
2160 # If it contains results you don't want to keep, you may remove or edit it.
2162 # By default, configure uses ./config.cache as the cache file,
2163 # creating it if it does not exist already. You can give configure
2164 # the --cache-file=FILE option to use a different cache file; that is
2165 # what configure does when it calls configure scripts in
2166 # subdirectories, so they share the cache.
2167 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2168 # config.status only pays attention to the cache file if you give it the
2169 # --recheck option to rerun configure.
2172 # The following way of writing the cache mishandles newlines in values,
2173 # but we know of no workaround that is simple, portable, and efficient.
2174 # So, don't put newlines in cache variables' values.
2175 # Ultrix sh set writes to stderr and can't be redirected directly,
2176 # and sets the high bit in the cache file unless we assign to the vars.
2177 (set) 2>&1 |
2178 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2179 *ac_space=\ *)
2180 # `set' does not quote correctly, so add quotes (double-quote substitution
2181 # turns \\\\ into \\, and sed turns \\ into \).
2182 sed -n \
2183 -e "s/'/'\\\\''/g" \
2184 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2187 # `set' quotes correctly as required by POSIX, so do not add quotes.
2188 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2190 esac >> confcache
2191 if cmp -s $cache_file confcache; then
2193 else
2194 if test -w $cache_file; then
2195 echo "updating cache $cache_file"
2196 cat confcache > $cache_file
2197 else
2198 echo "not updating unwritable cache $cache_file"
2201 rm -f confcache
2203 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2205 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2206 # Let make expand exec_prefix.
2207 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2209 # Any assignment to VPATH causes Sun make to only execute
2210 # the first set of double-colon rules, so remove it if not needed.
2211 # If there is a colon in the path, we need to keep it.
2212 if test "x$srcdir" = x.; then
2213 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2216 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2218 DEFS=-DHAVE_CONFIG_H
2220 # Without the "./", some shells look in PATH for config.status.
2221 : ${CONFIG_STATUS=./config.status}
2223 echo creating $CONFIG_STATUS
2224 rm -f $CONFIG_STATUS
2225 cat > $CONFIG_STATUS <<EOF
2226 #! /bin/sh
2227 # Generated automatically by configure.
2228 # Run this file to recreate the current configuration.
2229 # This directory was configured as follows,
2230 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2232 # $0 $ac_configure_args
2234 # Compiler output produced by configure, useful for debugging
2235 # configure, is in ./config.log if it exists.
2237 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2238 for ac_option
2240 case "\$ac_option" in
2241 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2242 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2243 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2244 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2245 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2246 exit 0 ;;
2247 -help | --help | --hel | --he | --h)
2248 echo "\$ac_cs_usage"; exit 0 ;;
2249 *) echo "\$ac_cs_usage"; exit 1 ;;
2250 esac
2251 done
2253 ac_given_srcdir=$srcdir
2255 trap 'rm -fr `echo "
2256 Makefile
2257 kernel/Makefile
2258 config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2260 cat >> $CONFIG_STATUS <<EOF
2262 # Protect against being on the right side of a sed subst in config.status.
2263 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2264 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2265 $ac_vpsub
2266 $extrasub
2267 s%@SHELL@%$SHELL%g
2268 s%@CFLAGS@%$CFLAGS%g
2269 s%@CPPFLAGS@%$CPPFLAGS%g
2270 s%@CXXFLAGS@%$CXXFLAGS%g
2271 s%@FFLAGS@%$FFLAGS%g
2272 s%@DEFS@%$DEFS%g
2273 s%@LDFLAGS@%$LDFLAGS%g
2274 s%@LIBS@%$LIBS%g
2275 s%@exec_prefix@%$exec_prefix%g
2276 s%@prefix@%$prefix%g
2277 s%@program_transform_name@%$program_transform_name%g
2278 s%@bindir@%$bindir%g
2279 s%@sbindir@%$sbindir%g
2280 s%@libexecdir@%$libexecdir%g
2281 s%@datadir@%$datadir%g
2282 s%@sysconfdir@%$sysconfdir%g
2283 s%@sharedstatedir@%$sharedstatedir%g
2284 s%@localstatedir@%$localstatedir%g
2285 s%@libdir@%$libdir%g
2286 s%@includedir@%$includedir%g
2287 s%@oldincludedir@%$oldincludedir%g
2288 s%@infodir@%$infodir%g
2289 s%@mandir@%$mandir%g
2290 s%@CC@%$CC%g
2291 s%@SET_MAKE@%$SET_MAKE%g
2292 s%@RANLIB@%$RANLIB%g
2293 s%@CPP@%$CPP%g
2294 s%@X_CFLAGS@%$X_CFLAGS%g
2295 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
2296 s%@X_LIBS@%$X_LIBS%g
2297 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
2298 s%@LINUX_SRC@%$LINUX_SRC%g
2299 s%@NETBSD_SRC@%$NETBSD_SRC%g
2300 s%@FREEBSD_SRC@%$FREEBSD_SRC%g
2301 s%@HOST_O@%$HOST_O%g
2302 s%@KERNEL_TARGET@%$KERNEL_TARGET%g
2303 s%@HOST_TARGET@%$HOST_TARGET%g
2304 s%@HOST_CLEAN@%$HOST_CLEAN%g
2305 s%@HOSTOS@%$HOSTOS%g
2306 s%@FULL_LINK@%$FULL_LINK%g
2307 s%@SUFFIX_LINE@%$SUFFIX_LINE%g
2308 s%@CPP_SUFFIX@%$CPP_SUFFIX%g
2309 s%@DASH@%$DASH%g
2310 s%@SLASH@%$SLASH%g
2311 s%@CXXFP@%$CXXFP%g
2312 s%@CFP@%$CFP%g
2313 s%@OFP@%$OFP%g
2314 s%@MAKELIB@%$MAKELIB%g
2315 s%@RMCOMMAND@%$RMCOMMAND%g
2316 s%@EXE@%$EXE%g
2317 s%@COMMAND_SEPARATOR@%$COMMAND_SEPARATOR%g
2318 s%@CD_UP_ONE@%$CD_UP_ONE%g
2319 s%@CD_UP_TWO@%$CD_UP_TWO%g
2321 CEOF
2324 cat >> $CONFIG_STATUS <<\EOF
2326 # Split the substitutions into bite-sized pieces for seds with
2327 # small command number limits, like on Digital OSF/1 and HP-UX.
2328 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2329 ac_file=1 # Number of current file.
2330 ac_beg=1 # First line for current file.
2331 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2332 ac_more_lines=:
2333 ac_sed_cmds=""
2334 while $ac_more_lines; do
2335 if test $ac_beg -gt 1; then
2336 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2337 else
2338 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2340 if test ! -s conftest.s$ac_file; then
2341 ac_more_lines=false
2342 rm -f conftest.s$ac_file
2343 else
2344 if test -z "$ac_sed_cmds"; then
2345 ac_sed_cmds="sed -f conftest.s$ac_file"
2346 else
2347 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2349 ac_file=`expr $ac_file + 1`
2350 ac_beg=$ac_end
2351 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2353 done
2354 if test -z "$ac_sed_cmds"; then
2355 ac_sed_cmds=cat
2359 cat >> $CONFIG_STATUS <<EOF
2361 CONFIG_FILES=\${CONFIG_FILES-"Makefile
2362 kernel/Makefile
2365 cat >> $CONFIG_STATUS <<\EOF
2366 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2367 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2368 case "$ac_file" in
2369 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2370 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2371 *) ac_file_in="${ac_file}.in" ;;
2372 esac
2374 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2376 # Remove last slash and all that follows it. Not all systems have dirname.
2377 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2378 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2379 # The file is in a subdirectory.
2380 test ! -d "$ac_dir" && mkdir "$ac_dir"
2381 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2382 # A "../" for each directory in $ac_dir_suffix.
2383 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2384 else
2385 ac_dir_suffix= ac_dots=
2388 case "$ac_given_srcdir" in
2389 .) srcdir=.
2390 if test -z "$ac_dots"; then top_srcdir=.
2391 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2392 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2393 *) # Relative path.
2394 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2395 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2396 esac
2399 echo creating "$ac_file"
2400 rm -f "$ac_file"
2401 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2402 case "$ac_file" in
2403 *Makefile*) ac_comsub="1i\\
2404 # $configure_input" ;;
2405 *) ac_comsub= ;;
2406 esac
2408 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2409 sed -e "$ac_comsub
2410 s%@configure_input@%$configure_input%g
2411 s%@srcdir@%$srcdir%g
2412 s%@top_srcdir@%$top_srcdir%g
2413 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2414 fi; done
2415 rm -f conftest.s*
2417 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2418 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2420 # ac_d sets the value in "#define NAME VALUE" lines.
2421 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2422 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2423 ac_dC='\3'
2424 ac_dD='%g'
2425 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2426 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2427 ac_uB='\([ ]\)%\1#\2define\3'
2428 ac_uC=' '
2429 ac_uD='\4%g'
2430 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2431 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2432 ac_eB='$%\1#\2define\3'
2433 ac_eC=' '
2434 ac_eD='%g'
2436 if test "${CONFIG_HEADERS+set}" != set; then
2438 cat >> $CONFIG_STATUS <<EOF
2439 CONFIG_HEADERS="config.h"
2441 cat >> $CONFIG_STATUS <<\EOF
2443 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2444 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2445 case "$ac_file" in
2446 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2447 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2448 *) ac_file_in="${ac_file}.in" ;;
2449 esac
2451 echo creating $ac_file
2453 rm -f conftest.frag conftest.in conftest.out
2454 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2455 cat $ac_file_inputs > conftest.in
2459 # Transform confdefs.h into a sed script conftest.vals that substitutes
2460 # the proper values into config.h.in to produce config.h. And first:
2461 # Protect against being on the right side of a sed subst in config.status.
2462 # Protect against being in an unquoted here document in config.status.
2463 rm -f conftest.vals
2464 cat > conftest.hdr <<\EOF
2465 s/[\\&%]/\\&/g
2466 s%[\\$`]%\\&%g
2467 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2468 s%ac_d%ac_u%gp
2469 s%ac_u%ac_e%gp
2471 sed -n -f conftest.hdr confdefs.h > conftest.vals
2472 rm -f conftest.hdr
2474 # This sed command replaces #undef with comments. This is necessary, for
2475 # example, in the case of _POSIX_SOURCE, which is predefined and required
2476 # on some systems where configure will not decide to define it.
2477 cat >> conftest.vals <<\EOF
2478 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2481 # Break up conftest.vals because some shells have a limit on
2482 # the size of here documents, and old seds have small limits too.
2484 rm -f conftest.tail
2485 while :
2487 ac_lines=`grep -c . conftest.vals`
2488 # grep -c gives empty output for an empty file on some AIX systems.
2489 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2490 # Write a limited-size here document to conftest.frag.
2491 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2492 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2493 echo 'CEOF
2494 sed -f conftest.frag conftest.in > conftest.out
2495 rm -f conftest.in
2496 mv conftest.out conftest.in
2497 ' >> $CONFIG_STATUS
2498 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2499 rm -f conftest.vals
2500 mv conftest.tail conftest.vals
2501 done
2502 rm -f conftest.vals
2504 cat >> $CONFIG_STATUS <<\EOF
2505 rm -f conftest.frag conftest.h
2506 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2507 cat conftest.in >> conftest.h
2508 rm -f conftest.in
2509 if cmp -s $ac_file conftest.h 2>/dev/null; then
2510 echo "$ac_file is unchanged"
2511 rm -f conftest.h
2512 else
2513 # Remove last slash and all that follows it. Not all systems have dirname.
2514 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2515 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2516 # The file is in a subdirectory.
2517 test ! -d "$ac_dir" && mkdir "$ac_dir"
2519 rm -f $ac_file
2520 mv conftest.h $ac_file
2522 fi; done
2525 cat >> $CONFIG_STATUS <<EOF
2528 cat >> $CONFIG_STATUS <<\EOF
2530 exit 0
2532 chmod +x $CONFIG_STATUS
2533 rm -fr confdefs* $ac_clean_files
2534 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1