blob: 40951d21ea4e9f1cb7d20d6b5699dab5e48a53d3 [file] [log] [blame]
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001#! /bin/sh
2
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.
6#
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10# Defaults:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
14ac_help="$ac_help
15 --with-x use the X Window System"
16ac_help="$ac_help
17 --with-installed-zlib use the version of zlib which is installed on the
18 system instead of the one distributed with VNC"
19
20# Initialize some variables set by options.
21# The variables have the same names as the options, with
22# dashes changed to underlines.
23build=NONE
24cache_file=./config.cache
25exec_prefix=NONE
26host=NONE
27no_create=
28nonopt=NONE
29no_recursion=
30prefix=NONE
31program_prefix=NONE
32program_suffix=NONE
33program_transform_name=s,x,x,
34silent=
35site=
36srcdir=
37target=NONE
38verbose=
39x_includes=NONE
40x_libraries=NONE
41bindir='${exec_prefix}/bin'
42sbindir='${exec_prefix}/sbin'
43libexecdir='${exec_prefix}/libexec'
44datadir='${prefix}/share'
45sysconfdir='${prefix}/etc'
46sharedstatedir='${prefix}/com'
47localstatedir='${prefix}/var'
48libdir='${exec_prefix}/lib'
49includedir='${prefix}/include'
50oldincludedir='/usr/include'
51infodir='${prefix}/info'
52mandir='${prefix}/man'
53
54# Initialize some other variables.
55subdirs=
56MFLAGS= MAKEFLAGS=
57SHELL=${CONFIG_SHELL-/bin/sh}
58# Maximum number of lines to put in a shell here document.
59ac_max_here_lines=12
60
61ac_prev=
62for ac_option
63do
64
65 # If the previous option needs an argument, assign it.
66 if test -n "$ac_prev"; then
67 eval "$ac_prev=\$ac_option"
68 ac_prev=
69 continue
70 fi
71
72 case "$ac_option" in
73 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
74 *) ac_optarg= ;;
75 esac
76
77 # Accept the important Cygnus configure options, so we can diagnose typos.
78
79 case "$ac_option" in
80
81 -bindir | --bindir | --bindi | --bind | --bin | --bi)
82 ac_prev=bindir ;;
83 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
84 bindir="$ac_optarg" ;;
85
86 -build | --build | --buil | --bui | --bu)
87 ac_prev=build ;;
88 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
89 build="$ac_optarg" ;;
90
91 -cache-file | --cache-file | --cache-fil | --cache-fi \
92 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
93 ac_prev=cache_file ;;
94 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
95 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
96 cache_file="$ac_optarg" ;;
97
98 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
99 ac_prev=datadir ;;
100 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
101 | --da=*)
102 datadir="$ac_optarg" ;;
103
104 -disable-* | --disable-*)
105 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
106 # Reject names that are not valid shell variable names.
107 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
108 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
109 fi
110 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
111 eval "enable_${ac_feature}=no" ;;
112
113 -enable-* | --enable-*)
114 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
115 # Reject names that are not valid shell variable names.
116 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
117 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
118 fi
119 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
120 case "$ac_option" in
121 *=*) ;;
122 *) ac_optarg=yes ;;
123 esac
124 eval "enable_${ac_feature}='$ac_optarg'" ;;
125
126 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
127 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
128 | --exec | --exe | --ex)
129 ac_prev=exec_prefix ;;
130 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
131 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
132 | --exec=* | --exe=* | --ex=*)
133 exec_prefix="$ac_optarg" ;;
134
135 -gas | --gas | --ga | --g)
136 # Obsolete; use --with-gas.
137 with_gas=yes ;;
138
139 -help | --help | --hel | --he)
140 # Omit some internal or obsolete options to make the list less imposing.
141 # This message is too long to be a string in the A/UX 3.1 sh.
142 cat << EOF
143Usage: configure [options] [host]
144Options: [defaults in brackets after descriptions]
145Configuration:
146 --cache-file=FILE cache test results in FILE
147 --help print this message
148 --no-create do not create output files
149 --quiet, --silent do not print \`checking...' messages
150 --version print the version of autoconf that created configure
151Directory and file names:
152 --prefix=PREFIX install architecture-independent files in PREFIX
153 [$ac_default_prefix]
154 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
155 [same as prefix]
156 --bindir=DIR user executables in DIR [EPREFIX/bin]
157 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
158 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
159 --datadir=DIR read-only architecture-independent data in DIR
160 [PREFIX/share]
161 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
162 --sharedstatedir=DIR modifiable architecture-independent data in DIR
163 [PREFIX/com]
164 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
165 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
166 --includedir=DIR C header files in DIR [PREFIX/include]
167 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
168 --infodir=DIR info documentation in DIR [PREFIX/info]
169 --mandir=DIR man documentation in DIR [PREFIX/man]
170 --srcdir=DIR find the sources in DIR [configure dir or ..]
171 --program-prefix=PREFIX prepend PREFIX to installed program names
172 --program-suffix=SUFFIX append SUFFIX to installed program names
173 --program-transform-name=PROGRAM
174 run sed PROGRAM on installed program names
175EOF
176 cat << EOF
177Host type:
178 --build=BUILD configure for building on BUILD [BUILD=HOST]
179 --host=HOST configure for HOST [guessed]
180 --target=TARGET configure for TARGET [TARGET=HOST]
181Features and packages:
182 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
183 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
184 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
185 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
186 --x-includes=DIR X include files are in DIR
187 --x-libraries=DIR X library files are in DIR
188EOF
189 if test -n "$ac_help"; then
190 echo "--enable and --with options recognized:$ac_help"
191 fi
192 exit 0 ;;
193
194 -host | --host | --hos | --ho)
195 ac_prev=host ;;
196 -host=* | --host=* | --hos=* | --ho=*)
197 host="$ac_optarg" ;;
198
199 -includedir | --includedir | --includedi | --included | --include \
200 | --includ | --inclu | --incl | --inc)
201 ac_prev=includedir ;;
202 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
203 | --includ=* | --inclu=* | --incl=* | --inc=*)
204 includedir="$ac_optarg" ;;
205
206 -infodir | --infodir | --infodi | --infod | --info | --inf)
207 ac_prev=infodir ;;
208 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
209 infodir="$ac_optarg" ;;
210
211 -libdir | --libdir | --libdi | --libd)
212 ac_prev=libdir ;;
213 -libdir=* | --libdir=* | --libdi=* | --libd=*)
214 libdir="$ac_optarg" ;;
215
216 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
217 | --libexe | --libex | --libe)
218 ac_prev=libexecdir ;;
219 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
220 | --libexe=* | --libex=* | --libe=*)
221 libexecdir="$ac_optarg" ;;
222
223 -localstatedir | --localstatedir | --localstatedi | --localstated \
224 | --localstate | --localstat | --localsta | --localst \
225 | --locals | --local | --loca | --loc | --lo)
226 ac_prev=localstatedir ;;
227 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
228 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
229 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
230 localstatedir="$ac_optarg" ;;
231
232 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
233 ac_prev=mandir ;;
234 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
235 mandir="$ac_optarg" ;;
236
237 -nfp | --nfp | --nf)
238 # Obsolete; use --without-fp.
239 with_fp=no ;;
240
241 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
242 | --no-cr | --no-c)
243 no_create=yes ;;
244
245 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
246 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
247 no_recursion=yes ;;
248
249 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
250 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
251 | --oldin | --oldi | --old | --ol | --o)
252 ac_prev=oldincludedir ;;
253 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
254 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
255 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
256 oldincludedir="$ac_optarg" ;;
257
258 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
259 ac_prev=prefix ;;
260 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
261 prefix="$ac_optarg" ;;
262
263 -program-prefix | --program-prefix | --program-prefi | --program-pref \
264 | --program-pre | --program-pr | --program-p)
265 ac_prev=program_prefix ;;
266 -program-prefix=* | --program-prefix=* | --program-prefi=* \
267 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
268 program_prefix="$ac_optarg" ;;
269
270 -program-suffix | --program-suffix | --program-suffi | --program-suff \
271 | --program-suf | --program-su | --program-s)
272 ac_prev=program_suffix ;;
273 -program-suffix=* | --program-suffix=* | --program-suffi=* \
274 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
275 program_suffix="$ac_optarg" ;;
276
277 -program-transform-name | --program-transform-name \
278 | --program-transform-nam | --program-transform-na \
279 | --program-transform-n | --program-transform- \
280 | --program-transform | --program-transfor \
281 | --program-transfo | --program-transf \
282 | --program-trans | --program-tran \
283 | --progr-tra | --program-tr | --program-t)
284 ac_prev=program_transform_name ;;
285 -program-transform-name=* | --program-transform-name=* \
286 | --program-transform-nam=* | --program-transform-na=* \
287 | --program-transform-n=* | --program-transform-=* \
288 | --program-transform=* | --program-transfor=* \
289 | --program-transfo=* | --program-transf=* \
290 | --program-trans=* | --program-tran=* \
291 | --progr-tra=* | --program-tr=* | --program-t=*)
292 program_transform_name="$ac_optarg" ;;
293
294 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
295 | -silent | --silent | --silen | --sile | --sil)
296 silent=yes ;;
297
298 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
299 ac_prev=sbindir ;;
300 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
301 | --sbi=* | --sb=*)
302 sbindir="$ac_optarg" ;;
303
304 -sharedstatedir | --sharedstatedir | --sharedstatedi \
305 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
306 | --sharedst | --shareds | --shared | --share | --shar \
307 | --sha | --sh)
308 ac_prev=sharedstatedir ;;
309 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
310 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
311 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
312 | --sha=* | --sh=*)
313 sharedstatedir="$ac_optarg" ;;
314
315 -site | --site | --sit)
316 ac_prev=site ;;
317 -site=* | --site=* | --sit=*)
318 site="$ac_optarg" ;;
319
320 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
321 ac_prev=srcdir ;;
322 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
323 srcdir="$ac_optarg" ;;
324
325 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
326 | --syscon | --sysco | --sysc | --sys | --sy)
327 ac_prev=sysconfdir ;;
328 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
329 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
330 sysconfdir="$ac_optarg" ;;
331
332 -target | --target | --targe | --targ | --tar | --ta | --t)
333 ac_prev=target ;;
334 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
335 target="$ac_optarg" ;;
336
337 -v | -verbose | --verbose | --verbos | --verbo | --verb)
338 verbose=yes ;;
339
340 -version | --version | --versio | --versi | --vers)
341 echo "configure generated by autoconf version 2.13"
342 exit 0 ;;
343
344 -with-* | --with-*)
345 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
346 # Reject names that are not valid shell variable names.
347 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
348 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
349 fi
350 ac_package=`echo $ac_package| sed 's/-/_/g'`
351 case "$ac_option" in
352 *=*) ;;
353 *) ac_optarg=yes ;;
354 esac
355 eval "with_${ac_package}='$ac_optarg'" ;;
356
357 -without-* | --without-*)
358 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
359 # Reject names that are not valid shell variable names.
360 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
361 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
362 fi
363 ac_package=`echo $ac_package| sed 's/-/_/g'`
364 eval "with_${ac_package}=no" ;;
365
366 --x)
367 # Obsolete; use --with-x.
368 with_x=yes ;;
369
370 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
371 | --x-incl | --x-inc | --x-in | --x-i)
372 ac_prev=x_includes ;;
373 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
374 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
375 x_includes="$ac_optarg" ;;
376
377 -x-libraries | --x-libraries | --x-librarie | --x-librari \
378 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
379 ac_prev=x_libraries ;;
380 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
381 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
382 x_libraries="$ac_optarg" ;;
383
384 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
385 ;;
386
387 *)
388 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
389 echo "configure: warning: $ac_option: invalid host type" 1>&2
390 fi
391 if test "x$nonopt" != xNONE; then
392 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
393 fi
394 nonopt="$ac_option"
395 ;;
396
397 esac
398done
399
400if test -n "$ac_prev"; then
401 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
402fi
403
404trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
405
406# File descriptor usage:
407# 0 standard input
408# 1 file creation
409# 2 errors and warnings
410# 3 some systems may open it to /dev/tty
411# 4 used on the Kubota Titan
412# 6 checking for... messages and results
413# 5 compiler messages saved in config.log
414if test "$silent" = yes; then
415 exec 6>/dev/null
416else
417 exec 6>&1
418fi
419exec 5>./config.log
420
421echo "\
422This file contains any messages produced by compilers while
423running configure, to aid debugging if configure makes a mistake.
424" 1>&5
425
426# Strip out --no-create and --no-recursion so they do not pile up.
427# Also quote any args containing shell metacharacters.
428ac_configure_args=
429for ac_arg
430do
431 case "$ac_arg" in
432 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
433 | --no-cr | --no-c) ;;
434 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
435 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
436 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
437 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
438 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
439 esac
440done
441
442# NLS nuisances.
443# Only set these to C if already set. These must not be set unconditionally
444# because not all systems understand e.g. LANG=C (notably SCO).
445# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
446# Non-C LC_CTYPE values break the ctype check.
447if test "${LANG+set}" = set; then LANG=C; export LANG; fi
448if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
449if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
450if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
451
452# confdefs.h avoids OS command line length limits that DEFS can exceed.
453rm -rf conftest* confdefs.h
454# AIX cpp loses on an empty file, so make sure it contains at least a newline.
455echo > confdefs.h
456
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.
459ac_unique_file=rdr/InStream.h
460
461# Find the source files, if location was not specified.
462if test -z "$srcdir"; then
463 ac_srcdir_defaulted=yes
464 # Try the directory containing this script, then its parent.
465 ac_prog=$0
466 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
467 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
468 srcdir=$ac_confdir
469 if test ! -r $srcdir/$ac_unique_file; then
470 srcdir=..
471 fi
472else
473 ac_srcdir_defaulted=no
474fi
475if test ! -r $srcdir/$ac_unique_file; then
476 if test "$ac_srcdir_defaulted" = yes; then
477 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
478 else
479 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
480 fi
481fi
482srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
483
484# Prefer explicitly selected file to automatically selected ones.
485if test -z "$CONFIG_SITE"; then
486 if test "x$prefix" != xNONE; then
487 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
488 else
489 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
490 fi
491fi
492for ac_site_file in $CONFIG_SITE; do
493 if test -r "$ac_site_file"; then
494 echo "loading site script $ac_site_file"
495 . "$ac_site_file"
496 fi
497done
498
499if test -r "$cache_file"; then
500 echo "loading cache $cache_file"
501 . $cache_file
502else
503 echo "creating cache $cache_file"
504 > $cache_file
505fi
506
507ac_ext=c
508# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
509ac_cpp='$CPP $CPPFLAGS'
510ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
511ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
512cross_compiling=$ac_cv_prog_cc_cross
513
514ac_exeext=
515ac_objext=o
516if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
517 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
518 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
519 ac_n= ac_c='
520' ac_t=' '
521 else
522 ac_n=-n ac_c= ac_t=
523 fi
524else
525 ac_n= ac_c='\c' ac_t=
526fi
527
528
529
530ac_cv_prog_cc_g=no
531ac_cv_prog_cxx_g=no
532
533# Extract the first word of "gcc", so it can be a program name with args.
534set dummy gcc; ac_word=$2
535echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
536echo "configure:537: checking for $ac_word" >&5
537if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
538 echo $ac_n "(cached) $ac_c" 1>&6
539else
540 if test -n "$CC"; then
541 ac_cv_prog_CC="$CC" # Let the user override the test.
542else
543 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
544 ac_dummy="$PATH"
545 for ac_dir in $ac_dummy; do
546 test -z "$ac_dir" && ac_dir=.
547 if test -f $ac_dir/$ac_word; then
548 ac_cv_prog_CC="gcc"
549 break
550 fi
551 done
552 IFS="$ac_save_ifs"
553fi
554fi
555CC="$ac_cv_prog_CC"
556if test -n "$CC"; then
557 echo "$ac_t""$CC" 1>&6
558else
559 echo "$ac_t""no" 1>&6
560fi
561
562if test -z "$CC"; then
563 # Extract the first word of "cc", so it can be a program name with args.
564set dummy cc; ac_word=$2
565echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
566echo "configure:567: checking for $ac_word" >&5
567if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
568 echo $ac_n "(cached) $ac_c" 1>&6
569else
570 if test -n "$CC"; then
571 ac_cv_prog_CC="$CC" # Let the user override the test.
572else
573 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
574 ac_prog_rejected=no
575 ac_dummy="$PATH"
576 for ac_dir in $ac_dummy; do
577 test -z "$ac_dir" && ac_dir=.
578 if test -f $ac_dir/$ac_word; then
579 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
580 ac_prog_rejected=yes
581 continue
582 fi
583 ac_cv_prog_CC="cc"
584 break
585 fi
586 done
587 IFS="$ac_save_ifs"
588if test $ac_prog_rejected = yes; then
589 # We found a bogon in the path, so make sure we never use it.
590 set dummy $ac_cv_prog_CC
591 shift
592 if test $# -gt 0; then
593 # We chose a different compiler from the bogus one.
594 # However, it has the same basename, so the bogon will be chosen
595 # first if we set CC to just the basename; use the full file name.
596 shift
597 set dummy "$ac_dir/$ac_word" "$@"
598 shift
599 ac_cv_prog_CC="$@"
600 fi
601fi
602fi
603fi
604CC="$ac_cv_prog_CC"
605if test -n "$CC"; then
606 echo "$ac_t""$CC" 1>&6
607else
608 echo "$ac_t""no" 1>&6
609fi
610
611 if test -z "$CC"; then
612 case "`uname -s`" in
613 *win32* | *WIN32*)
614 # Extract the first word of "cl", so it can be a program name with args.
615set dummy cl; ac_word=$2
616echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
617echo "configure:618: checking for $ac_word" >&5
618if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
619 echo $ac_n "(cached) $ac_c" 1>&6
620else
621 if test -n "$CC"; then
622 ac_cv_prog_CC="$CC" # Let the user override the test.
623else
624 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
625 ac_dummy="$PATH"
626 for ac_dir in $ac_dummy; do
627 test -z "$ac_dir" && ac_dir=.
628 if test -f $ac_dir/$ac_word; then
629 ac_cv_prog_CC="cl"
630 break
631 fi
632 done
633 IFS="$ac_save_ifs"
634fi
635fi
636CC="$ac_cv_prog_CC"
637if test -n "$CC"; then
638 echo "$ac_t""$CC" 1>&6
639else
640 echo "$ac_t""no" 1>&6
641fi
642 ;;
643 esac
644 fi
645 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
646fi
647
648echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
649echo "configure:650: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
650
651ac_ext=c
652# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
653ac_cpp='$CPP $CPPFLAGS'
654ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
655ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
656cross_compiling=$ac_cv_prog_cc_cross
657
658cat > conftest.$ac_ext << EOF
659
660#line 661 "configure"
661#include "confdefs.h"
662
663main(){return(0);}
664EOF
665if { (eval echo configure:666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
666 ac_cv_prog_cc_works=yes
667 # If we can't run a trivial program, we are probably using a cross compiler.
668 if (./conftest; exit) 2>/dev/null; then
669 ac_cv_prog_cc_cross=no
670 else
671 ac_cv_prog_cc_cross=yes
672 fi
673else
674 echo "configure: failed program was:" >&5
675 cat conftest.$ac_ext >&5
676 ac_cv_prog_cc_works=no
677fi
678rm -fr conftest*
679ac_ext=c
680# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
681ac_cpp='$CPP $CPPFLAGS'
682ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
683ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
684cross_compiling=$ac_cv_prog_cc_cross
685
686echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
687if test $ac_cv_prog_cc_works = no; then
688 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
689fi
690echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
691echo "configure:692: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
692echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
693cross_compiling=$ac_cv_prog_cc_cross
694
695echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
696echo "configure:697: checking whether we are using GNU C" >&5
697if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
698 echo $ac_n "(cached) $ac_c" 1>&6
699else
700 cat > conftest.c <<EOF
701#ifdef __GNUC__
702 yes;
703#endif
704EOF
705if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:706: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
706 ac_cv_prog_gcc=yes
707else
708 ac_cv_prog_gcc=no
709fi
710fi
711
712echo "$ac_t""$ac_cv_prog_gcc" 1>&6
713
714if test $ac_cv_prog_gcc = yes; then
715 GCC=yes
716else
717 GCC=
718fi
719
720ac_test_CFLAGS="${CFLAGS+set}"
721ac_save_CFLAGS="$CFLAGS"
722CFLAGS=
723echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
724echo "configure:725: checking whether ${CC-cc} accepts -g" >&5
725if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
726 echo $ac_n "(cached) $ac_c" 1>&6
727else
728 echo 'void f(){}' > conftest.c
729if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
730 ac_cv_prog_cc_g=yes
731else
732 ac_cv_prog_cc_g=no
733fi
734rm -f conftest*
735
736fi
737
738echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
739if test "$ac_test_CFLAGS" = set; then
740 CFLAGS="$ac_save_CFLAGS"
741elif test $ac_cv_prog_cc_g = yes; then
742 if test "$GCC" = yes; then
743 CFLAGS="-g -O2"
744 else
745 CFLAGS="-g"
746 fi
747else
748 if test "$GCC" = yes; then
749 CFLAGS="-O2"
750 else
751 CFLAGS=
752 fi
753fi
754
755for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
756do
757# Extract the first word of "$ac_prog", so it can be a program name with args.
758set dummy $ac_prog; ac_word=$2
759echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
760echo "configure:761: checking for $ac_word" >&5
761if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
762 echo $ac_n "(cached) $ac_c" 1>&6
763else
764 if test -n "$CXX"; then
765 ac_cv_prog_CXX="$CXX" # Let the user override the test.
766else
767 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
768 ac_dummy="$PATH"
769 for ac_dir in $ac_dummy; do
770 test -z "$ac_dir" && ac_dir=.
771 if test -f $ac_dir/$ac_word; then
772 ac_cv_prog_CXX="$ac_prog"
773 break
774 fi
775 done
776 IFS="$ac_save_ifs"
777fi
778fi
779CXX="$ac_cv_prog_CXX"
780if test -n "$CXX"; then
781 echo "$ac_t""$CXX" 1>&6
782else
783 echo "$ac_t""no" 1>&6
784fi
785
786test -n "$CXX" && break
787done
788test -n "$CXX" || CXX="gcc"
789
790
791echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
792echo "configure:793: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
793
794ac_ext=C
795# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
796ac_cpp='$CXXCPP $CPPFLAGS'
797ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
798ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
799cross_compiling=$ac_cv_prog_cxx_cross
800
801cat > conftest.$ac_ext << EOF
802
803#line 804 "configure"
804#include "confdefs.h"
805
806int main(){return(0);}
807EOF
808if { (eval echo configure:809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
809 ac_cv_prog_cxx_works=yes
810 # If we can't run a trivial program, we are probably using a cross compiler.
811 if (./conftest; exit) 2>/dev/null; then
812 ac_cv_prog_cxx_cross=no
813 else
814 ac_cv_prog_cxx_cross=yes
815 fi
816else
817 echo "configure: failed program was:" >&5
818 cat conftest.$ac_ext >&5
819 ac_cv_prog_cxx_works=no
820fi
821rm -fr conftest*
822ac_ext=c
823# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
824ac_cpp='$CPP $CPPFLAGS'
825ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
826ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
827cross_compiling=$ac_cv_prog_cc_cross
828
829echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
830if test $ac_cv_prog_cxx_works = no; then
831 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
832fi
833echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
834echo "configure:835: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
835echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
836cross_compiling=$ac_cv_prog_cxx_cross
837
838echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
839echo "configure:840: checking whether we are using GNU C++" >&5
840if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
841 echo $ac_n "(cached) $ac_c" 1>&6
842else
843 cat > conftest.C <<EOF
844#ifdef __GNUC__
845 yes;
846#endif
847EOF
848if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:849: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
849 ac_cv_prog_gxx=yes
850else
851 ac_cv_prog_gxx=no
852fi
853fi
854
855echo "$ac_t""$ac_cv_prog_gxx" 1>&6
856
857if test $ac_cv_prog_gxx = yes; then
858 GXX=yes
859else
860 GXX=
861fi
862
863ac_test_CXXFLAGS="${CXXFLAGS+set}"
864ac_save_CXXFLAGS="$CXXFLAGS"
865CXXFLAGS=
866echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
867echo "configure:868: checking whether ${CXX-g++} accepts -g" >&5
868if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
869 echo $ac_n "(cached) $ac_c" 1>&6
870else
871 echo 'void f(){}' > conftest.cc
872if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
873 ac_cv_prog_cxx_g=yes
874else
875 ac_cv_prog_cxx_g=no
876fi
877rm -f conftest*
878
879fi
880
881echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
882if test "$ac_test_CXXFLAGS" = set; then
883 CXXFLAGS="$ac_save_CXXFLAGS"
884elif test $ac_cv_prog_cxx_g = yes; then
885 if test "$GXX" = yes; then
886 CXXFLAGS="-g -O2"
887 else
888 CXXFLAGS="-g"
889 fi
890else
891 if test "$GXX" = yes; then
892 CXXFLAGS="-O2"
893 else
894 CXXFLAGS=
895 fi
896fi
897
898# Extract the first word of "ranlib", so it can be a program name with args.
899set dummy ranlib; ac_word=$2
900echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
901echo "configure:902: checking for $ac_word" >&5
902if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
903 echo $ac_n "(cached) $ac_c" 1>&6
904else
905 if test -n "$RANLIB"; then
906 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
907else
908 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
909 ac_dummy="$PATH"
910 for ac_dir in $ac_dummy; do
911 test -z "$ac_dir" && ac_dir=.
912 if test -f $ac_dir/$ac_word; then
913 ac_cv_prog_RANLIB="ranlib"
914 break
915 fi
916 done
917 IFS="$ac_save_ifs"
918 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
919fi
920fi
921RANLIB="$ac_cv_prog_RANLIB"
922if test -n "$RANLIB"; then
923 echo "$ac_t""$RANLIB" 1>&6
924else
925 echo "$ac_t""no" 1>&6
926fi
927
928echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
929echo "configure:930: checking whether ${MAKE-make} sets \${MAKE}" >&5
930set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
931if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
932 echo $ac_n "(cached) $ac_c" 1>&6
933else
934 cat > conftestmake <<\EOF
935all:
936 @echo 'ac_maketemp="${MAKE}"'
937EOF
938# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
939eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
940if test -n "$ac_maketemp"; then
941 eval ac_cv_prog_make_${ac_make}_set=yes
942else
943 eval ac_cv_prog_make_${ac_make}_set=no
944fi
945rm -f conftestmake
946fi
947if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
948 echo "$ac_t""yes" 1>&6
949 SET_MAKE=
950else
951 echo "$ac_t""no" 1>&6
952 SET_MAKE="MAKE=${MAKE-make}"
953fi
954
955ac_ext=C
956# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
957ac_cpp='$CXXCPP $CPPFLAGS'
958ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
959ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
960cross_compiling=$ac_cv_prog_cxx_cross
961
962
963case "`(uname -sr) 2>/dev/null`" in
964"SunOS 5"*)
965 SOLARIS=yes
966 USE_MITSHM=yes
967 ;;
968"Linux"*)
969 LINUX=yes
970 USE_MITSHM=yes
971 ;;
972esac
973
974if test "$USE_MITSHM" = yes; then
975 MITSHM_CPPFLAGS="-DMITSHM"
976fi
977
978
979if test "$GCC" = yes; then
980 CFLAGS="$CFLAGS -Wall"
981 if test "$SOLARIS" = yes; then
982 CFLAGS="$CFLAGS -Wno-unknown-pragmas -Wno-implicit-int"
983 fi
984fi
985if test "$GXX" = yes; then
986 CXXFLAGS="$CXXFLAGS -Wall"
987 if test "$SOLARIS" = yes; then
988 CXXFLAGS="$CXXFLAGS -Wno-unknown-pragmas -Wno-implicit-int -fpermissive"
989 fi
990fi
991
992echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
993echo "configure:994: checking how to run the C++ preprocessor" >&5
994if test -z "$CXXCPP"; then
995if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
996 echo $ac_n "(cached) $ac_c" 1>&6
997else
998 ac_ext=C
999# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1000ac_cpp='$CXXCPP $CPPFLAGS'
1001ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1002ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1003cross_compiling=$ac_cv_prog_cxx_cross
1004 CXXCPP="${CXX-g++} -E"
1005 cat > conftest.$ac_ext <<EOF
1006#line 1007 "configure"
1007#include "confdefs.h"
1008#include <stdlib.h>
1009EOF
1010ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1011{ (eval echo configure:1012: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1012ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1013if test -z "$ac_err"; then
1014 :
1015else
1016 echo "$ac_err" >&5
1017 echo "configure: failed program was:" >&5
1018 cat conftest.$ac_ext >&5
1019 rm -rf conftest*
1020 CXXCPP=/lib/cpp
1021fi
1022rm -f conftest*
1023 ac_cv_prog_CXXCPP="$CXXCPP"
1024ac_ext=C
1025# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1026ac_cpp='$CXXCPP $CPPFLAGS'
1027ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1028ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1029cross_compiling=$ac_cv_prog_cxx_cross
1030fi
1031fi
1032CXXCPP="$ac_cv_prog_CXXCPP"
1033echo "$ac_t""$CXXCPP" 1>&6
1034
1035# If we find X, set shell vars x_includes and x_libraries to the
1036# paths, otherwise set no_x=yes.
1037# Uses ac_ vars as temps to allow command line to override cache and checks.
1038# --without-x overrides everything else, but does not touch the cache.
1039echo $ac_n "checking for X""... $ac_c" 1>&6
1040echo "configure:1041: checking for X" >&5
1041
1042# Check whether --with-x or --without-x was given.
1043if test "${with_x+set}" = set; then
1044 withval="$with_x"
1045 :
1046fi
1047
1048# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
1049if test "x$with_x" = xno; then
1050 # The user explicitly disabled X.
1051 have_x=disabled
1052else
1053 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
1054 # Both variables are already set.
1055 have_x=yes
1056 else
1057if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
1058 echo $ac_n "(cached) $ac_c" 1>&6
1059else
1060 # One or both of the vars are not set, and there is no cached value.
1061ac_x_includes=NO ac_x_libraries=NO
1062rm -fr conftestdir
1063if mkdir conftestdir; then
1064 cd conftestdir
1065 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
1066 cat > Imakefile <<'EOF'
1067acfindx:
1068 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
1069EOF
1070 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
1071 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1072 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
1073 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
1074 for ac_extension in a so sl; do
1075 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
1076 test -f $ac_im_libdir/libX11.$ac_extension; then
1077 ac_im_usrlibdir=$ac_im_libdir; break
1078 fi
1079 done
1080 # Screen out bogus values from the imake configuration. They are
1081 # bogus both because they are the default anyway, and because
1082 # using them would break gcc on systems where it needs fixed includes.
1083 case "$ac_im_incroot" in
1084 /usr/include) ;;
1085 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
1086 esac
1087 case "$ac_im_usrlibdir" in
1088 /usr/lib | /lib) ;;
1089 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
1090 esac
1091 fi
1092 cd ..
1093 rm -fr conftestdir
1094fi
1095
1096if test "$ac_x_includes" = NO; then
1097 # Guess where to find include files, by looking for this one X11 .h file.
1098 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
1099
1100 # First, try using that file with no special directory specified.
1101cat > conftest.$ac_ext <<EOF
1102#line 1103 "configure"
1103#include "confdefs.h"
1104#include <$x_direct_test_include>
1105EOF
1106ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1107{ (eval echo configure:1108: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1108ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1109if test -z "$ac_err"; then
1110 rm -rf conftest*
1111 # We can compile using X headers with no special include directory.
1112ac_x_includes=
1113else
1114 echo "$ac_err" >&5
1115 echo "configure: failed program was:" >&5
1116 cat conftest.$ac_ext >&5
1117 rm -rf conftest*
1118 # Look for the header file in a standard set of common directories.
1119# Check X11 before X11Rn because it is often a symlink to the current release.
1120 for ac_dir in \
1121 /usr/X11/include \
1122 /usr/X11R6/include \
1123 /usr/X11R5/include \
1124 /usr/X11R4/include \
1125 \
1126 /usr/include/X11 \
1127 /usr/include/X11R6 \
1128 /usr/include/X11R5 \
1129 /usr/include/X11R4 \
1130 \
1131 /usr/local/X11/include \
1132 /usr/local/X11R6/include \
1133 /usr/local/X11R5/include \
1134 /usr/local/X11R4/include \
1135 \
1136 /usr/local/include/X11 \
1137 /usr/local/include/X11R6 \
1138 /usr/local/include/X11R5 \
1139 /usr/local/include/X11R4 \
1140 \
1141 /usr/X386/include \
1142 /usr/x386/include \
1143 /usr/XFree86/include/X11 \
1144 \
1145 /usr/include \
1146 /usr/local/include \
1147 /usr/unsupported/include \
1148 /usr/athena/include \
1149 /usr/local/x11r5/include \
1150 /usr/lpp/Xamples/include \
1151 \
1152 /usr/openwin/include \
1153 /usr/openwin/share/include \
1154 ; \
1155 do
1156 if test -r "$ac_dir/$x_direct_test_include"; then
1157 ac_x_includes=$ac_dir
1158 break
1159 fi
1160 done
1161fi
1162rm -f conftest*
1163fi # $ac_x_includes = NO
1164
1165if test "$ac_x_libraries" = NO; then
1166 # Check for the libraries.
1167
1168 test -z "$x_direct_test_library" && x_direct_test_library=Xt
1169 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
1170
1171 # See if we find them without any special options.
1172 # Don't add to $LIBS permanently.
1173 ac_save_LIBS="$LIBS"
1174 LIBS="-l$x_direct_test_library $LIBS"
1175cat > conftest.$ac_ext <<EOF
1176#line 1177 "configure"
1177#include "confdefs.h"
1178
1179int main() {
1180${x_direct_test_function}()
1181; return 0; }
1182EOF
1183if { (eval echo configure:1184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1184 rm -rf conftest*
1185 LIBS="$ac_save_LIBS"
1186# We can link X programs with no special library path.
1187ac_x_libraries=
1188else
1189 echo "configure: failed program was:" >&5
1190 cat conftest.$ac_ext >&5
1191 rm -rf conftest*
1192 LIBS="$ac_save_LIBS"
1193# First see if replacing the include by lib works.
1194# Check X11 before X11Rn because it is often a symlink to the current release.
1195for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
1196 /usr/X11/lib \
1197 /usr/X11R6/lib \
1198 /usr/X11R5/lib \
1199 /usr/X11R4/lib \
1200 \
1201 /usr/lib/X11 \
1202 /usr/lib/X11R6 \
1203 /usr/lib/X11R5 \
1204 /usr/lib/X11R4 \
1205 \
1206 /usr/local/X11/lib \
1207 /usr/local/X11R6/lib \
1208 /usr/local/X11R5/lib \
1209 /usr/local/X11R4/lib \
1210 \
1211 /usr/local/lib/X11 \
1212 /usr/local/lib/X11R6 \
1213 /usr/local/lib/X11R5 \
1214 /usr/local/lib/X11R4 \
1215 \
1216 /usr/X386/lib \
1217 /usr/x386/lib \
1218 /usr/XFree86/lib/X11 \
1219 \
1220 /usr/lib \
1221 /usr/local/lib \
1222 /usr/unsupported/lib \
1223 /usr/athena/lib \
1224 /usr/local/x11r5/lib \
1225 /usr/lpp/Xamples/lib \
1226 /lib/usr/lib/X11 \
1227 \
1228 /usr/openwin/lib \
1229 /usr/openwin/share/lib \
1230 ; \
1231do
1232 for ac_extension in a so sl; do
1233 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
1234 ac_x_libraries=$ac_dir
1235 break 2
1236 fi
1237 done
1238done
1239fi
1240rm -f conftest*
1241fi # $ac_x_libraries = NO
1242
1243if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
1244 # Didn't find X anywhere. Cache the known absence of X.
1245 ac_cv_have_x="have_x=no"
1246else
1247 # Record where we found X for the cache.
1248 ac_cv_have_x="have_x=yes \
1249 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1250fi
1251fi
1252 fi
1253 eval "$ac_cv_have_x"
1254fi # $with_x != no
1255
1256if test "$have_x" != yes; then
1257 echo "$ac_t""$have_x" 1>&6
1258 no_x=yes
1259else
1260 # If each of the values was on the command line, it overrides each guess.
1261 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
1262 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
1263 # Update the cache value to reflect the command line values.
1264 ac_cv_have_x="have_x=yes \
1265 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1266 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1267fi
1268
1269if test "$no_x" = yes; then
1270 # Not all programs may use this symbol, but it does not hurt to define it.
1271 cat >> confdefs.h <<\EOF
1272#define X_DISPLAY_MISSING 1
1273EOF
1274
1275 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
1276else
1277 if test -n "$x_includes"; then
1278 X_CFLAGS="$X_CFLAGS -I$x_includes"
1279 fi
1280
1281 # It would also be nice to do this for all -L options, not just this one.
1282 if test -n "$x_libraries"; then
1283 X_LIBS="$X_LIBS -L$x_libraries"
1284 # For Solaris; some versions of Sun CC require a space after -R and
1285 # others require no space. Words are not sufficient . . . .
1286 case "`(uname -sr) 2>/dev/null`" in
1287 "SunOS 5"*)
1288 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1289echo "configure:1290: checking whether -R must be followed by a space" >&5
1290 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
1291 cat > conftest.$ac_ext <<EOF
1292#line 1293 "configure"
1293#include "confdefs.h"
1294
1295int main() {
1296
1297; return 0; }
1298EOF
1299if { (eval echo configure:1300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1300 rm -rf conftest*
1301 ac_R_nospace=yes
1302else
1303 echo "configure: failed program was:" >&5
1304 cat conftest.$ac_ext >&5
1305 rm -rf conftest*
1306 ac_R_nospace=no
1307fi
1308rm -f conftest*
1309 if test $ac_R_nospace = yes; then
1310 echo "$ac_t""no" 1>&6
1311 X_LIBS="$X_LIBS -R$x_libraries"
1312 else
1313 LIBS="$ac_xsave_LIBS -R $x_libraries"
1314 cat > conftest.$ac_ext <<EOF
1315#line 1316 "configure"
1316#include "confdefs.h"
1317
1318int main() {
1319
1320; return 0; }
1321EOF
1322if { (eval echo configure:1323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1323 rm -rf conftest*
1324 ac_R_space=yes
1325else
1326 echo "configure: failed program was:" >&5
1327 cat conftest.$ac_ext >&5
1328 rm -rf conftest*
1329 ac_R_space=no
1330fi
1331rm -f conftest*
1332 if test $ac_R_space = yes; then
1333 echo "$ac_t""yes" 1>&6
1334 X_LIBS="$X_LIBS -R $x_libraries"
1335 else
1336 echo "$ac_t""neither works" 1>&6
1337 fi
1338 fi
1339 LIBS="$ac_xsave_LIBS"
1340 esac
1341 fi
1342
1343 # Check for system-dependent libraries X programs must link with.
1344 # Do this before checking for the system-independent R6 libraries
1345 # (-lICE), since we may need -lsocket or whatever for X linking.
1346
1347 if test "$ISC" = yes; then
1348 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
1349 else
1350 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1351 # libraries were built with DECnet support. And karl@cs.umb.edu says
1352 # the Alpha needs dnet_stub (dnet does not exist).
1353 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1354echo "configure:1355: checking for dnet_ntoa in -ldnet" >&5
1355ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1356if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1357 echo $ac_n "(cached) $ac_c" 1>&6
1358else
1359 ac_save_LIBS="$LIBS"
1360LIBS="-ldnet $LIBS"
1361cat > conftest.$ac_ext <<EOF
1362#line 1363 "configure"
1363#include "confdefs.h"
1364/* Override any gcc2 internal prototype to avoid an error. */
1365#ifdef __cplusplus
1366extern "C"
1367#endif
1368/* We use char because int might match the return type of a gcc2
1369 builtin and then its argument prototype would still apply. */
1370char dnet_ntoa();
1371
1372int main() {
1373dnet_ntoa()
1374; return 0; }
1375EOF
1376if { (eval echo configure:1377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1377 rm -rf conftest*
1378 eval "ac_cv_lib_$ac_lib_var=yes"
1379else
1380 echo "configure: failed program was:" >&5
1381 cat conftest.$ac_ext >&5
1382 rm -rf conftest*
1383 eval "ac_cv_lib_$ac_lib_var=no"
1384fi
1385rm -f conftest*
1386LIBS="$ac_save_LIBS"
1387
1388fi
1389if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1390 echo "$ac_t""yes" 1>&6
1391 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
1392else
1393 echo "$ac_t""no" 1>&6
1394fi
1395
1396 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
1397 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1398echo "configure:1399: checking for dnet_ntoa in -ldnet_stub" >&5
1399ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1400if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1401 echo $ac_n "(cached) $ac_c" 1>&6
1402else
1403 ac_save_LIBS="$LIBS"
1404LIBS="-ldnet_stub $LIBS"
1405cat > conftest.$ac_ext <<EOF
1406#line 1407 "configure"
1407#include "confdefs.h"
1408/* Override any gcc2 internal prototype to avoid an error. */
1409#ifdef __cplusplus
1410extern "C"
1411#endif
1412/* We use char because int might match the return type of a gcc2
1413 builtin and then its argument prototype would still apply. */
1414char dnet_ntoa();
1415
1416int main() {
1417dnet_ntoa()
1418; return 0; }
1419EOF
1420if { (eval echo configure:1421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1421 rm -rf conftest*
1422 eval "ac_cv_lib_$ac_lib_var=yes"
1423else
1424 echo "configure: failed program was:" >&5
1425 cat conftest.$ac_ext >&5
1426 rm -rf conftest*
1427 eval "ac_cv_lib_$ac_lib_var=no"
1428fi
1429rm -f conftest*
1430LIBS="$ac_save_LIBS"
1431
1432fi
1433if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1434 echo "$ac_t""yes" 1>&6
1435 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
1436else
1437 echo "$ac_t""no" 1>&6
1438fi
1439
1440 fi
1441
1442 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1443 # to get the SysV transport functions.
1444 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
1445 # needs -lnsl.
1446 # The nsl library prevents programs from opening the X display
1447 # on Irix 5.2, according to dickey@clark.net.
1448 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1449echo "configure:1450: checking for gethostbyname" >&5
1450if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1451 echo $ac_n "(cached) $ac_c" 1>&6
1452else
1453 cat > conftest.$ac_ext <<EOF
1454#line 1455 "configure"
1455#include "confdefs.h"
1456/* System header to define __stub macros and hopefully few prototypes,
1457 which can conflict with char gethostbyname(); below. */
1458#include <assert.h>
1459/* Override any gcc2 internal prototype to avoid an error. */
1460#ifdef __cplusplus
1461extern "C"
1462#endif
1463/* We use char because int might match the return type of a gcc2
1464 builtin and then its argument prototype would still apply. */
1465char gethostbyname();
1466
1467int main() {
1468
1469/* The GNU C library defines this for functions which it implements
1470 to always fail with ENOSYS. Some functions are actually named
1471 something starting with __ and the normal name is an alias. */
1472#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1473choke me
1474#else
1475gethostbyname();
1476#endif
1477
1478; return 0; }
1479EOF
1480if { (eval echo configure:1481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1481 rm -rf conftest*
1482 eval "ac_cv_func_gethostbyname=yes"
1483else
1484 echo "configure: failed program was:" >&5
1485 cat conftest.$ac_ext >&5
1486 rm -rf conftest*
1487 eval "ac_cv_func_gethostbyname=no"
1488fi
1489rm -f conftest*
1490fi
1491
1492if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1493 echo "$ac_t""yes" 1>&6
1494 :
1495else
1496 echo "$ac_t""no" 1>&6
1497fi
1498
1499 if test $ac_cv_func_gethostbyname = no; then
1500 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1501echo "configure:1502: checking for gethostbyname in -lnsl" >&5
1502ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1503if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1504 echo $ac_n "(cached) $ac_c" 1>&6
1505else
1506 ac_save_LIBS="$LIBS"
1507LIBS="-lnsl $LIBS"
1508cat > conftest.$ac_ext <<EOF
1509#line 1510 "configure"
1510#include "confdefs.h"
1511/* Override any gcc2 internal prototype to avoid an error. */
1512#ifdef __cplusplus
1513extern "C"
1514#endif
1515/* We use char because int might match the return type of a gcc2
1516 builtin and then its argument prototype would still apply. */
1517char gethostbyname();
1518
1519int main() {
1520gethostbyname()
1521; return 0; }
1522EOF
1523if { (eval echo configure:1524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1524 rm -rf conftest*
1525 eval "ac_cv_lib_$ac_lib_var=yes"
1526else
1527 echo "configure: failed program was:" >&5
1528 cat conftest.$ac_ext >&5
1529 rm -rf conftest*
1530 eval "ac_cv_lib_$ac_lib_var=no"
1531fi
1532rm -f conftest*
1533LIBS="$ac_save_LIBS"
1534
1535fi
1536if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1537 echo "$ac_t""yes" 1>&6
1538 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
1539else
1540 echo "$ac_t""no" 1>&6
1541fi
1542
1543 fi
1544
1545 # lieder@skyler.mavd.honeywell.com says without -lsocket,
1546 # socket/setsockopt and other routines are undefined under SCO ODT
1547 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
1548 # on later versions), says simon@lia.di.epfl.ch: it contains
1549 # gethostby* variants that don't use the nameserver (or something).
1550 # -lsocket must be given before -lnsl if both are needed.
1551 # We assume that if connect needs -lnsl, so does gethostbyname.
1552 echo $ac_n "checking for connect""... $ac_c" 1>&6
1553echo "configure:1554: checking for connect" >&5
1554if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1555 echo $ac_n "(cached) $ac_c" 1>&6
1556else
1557 cat > conftest.$ac_ext <<EOF
1558#line 1559 "configure"
1559#include "confdefs.h"
1560/* System header to define __stub macros and hopefully few prototypes,
1561 which can conflict with char connect(); below. */
1562#include <assert.h>
1563/* Override any gcc2 internal prototype to avoid an error. */
1564#ifdef __cplusplus
1565extern "C"
1566#endif
1567/* We use char because int might match the return type of a gcc2
1568 builtin and then its argument prototype would still apply. */
1569char connect();
1570
1571int main() {
1572
1573/* The GNU C library defines this for functions which it implements
1574 to always fail with ENOSYS. Some functions are actually named
1575 something starting with __ and the normal name is an alias. */
1576#if defined (__stub_connect) || defined (__stub___connect)
1577choke me
1578#else
1579connect();
1580#endif
1581
1582; return 0; }
1583EOF
1584if { (eval echo configure:1585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1585 rm -rf conftest*
1586 eval "ac_cv_func_connect=yes"
1587else
1588 echo "configure: failed program was:" >&5
1589 cat conftest.$ac_ext >&5
1590 rm -rf conftest*
1591 eval "ac_cv_func_connect=no"
1592fi
1593rm -f conftest*
1594fi
1595
1596if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1597 echo "$ac_t""yes" 1>&6
1598 :
1599else
1600 echo "$ac_t""no" 1>&6
1601fi
1602
1603 if test $ac_cv_func_connect = no; then
1604 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1605echo "configure:1606: checking for connect in -lsocket" >&5
1606ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1607if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1608 echo $ac_n "(cached) $ac_c" 1>&6
1609else
1610 ac_save_LIBS="$LIBS"
1611LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
1612cat > conftest.$ac_ext <<EOF
1613#line 1614 "configure"
1614#include "confdefs.h"
1615/* Override any gcc2 internal prototype to avoid an error. */
1616#ifdef __cplusplus
1617extern "C"
1618#endif
1619/* We use char because int might match the return type of a gcc2
1620 builtin and then its argument prototype would still apply. */
1621char connect();
1622
1623int main() {
1624connect()
1625; return 0; }
1626EOF
1627if { (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_lib_$ac_lib_var=yes"
1630else
1631 echo "configure: failed program was:" >&5
1632 cat conftest.$ac_ext >&5
1633 rm -rf conftest*
1634 eval "ac_cv_lib_$ac_lib_var=no"
1635fi
1636rm -f conftest*
1637LIBS="$ac_save_LIBS"
1638
1639fi
1640if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1641 echo "$ac_t""yes" 1>&6
1642 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
1643else
1644 echo "$ac_t""no" 1>&6
1645fi
1646
1647 fi
1648
1649 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
1650 echo $ac_n "checking for remove""... $ac_c" 1>&6
1651echo "configure:1652: checking for remove" >&5
1652if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
1653 echo $ac_n "(cached) $ac_c" 1>&6
1654else
1655 cat > conftest.$ac_ext <<EOF
1656#line 1657 "configure"
1657#include "confdefs.h"
1658/* System header to define __stub macros and hopefully few prototypes,
1659 which can conflict with char remove(); below. */
1660#include <assert.h>
1661/* Override any gcc2 internal prototype to avoid an error. */
1662#ifdef __cplusplus
1663extern "C"
1664#endif
1665/* We use char because int might match the return type of a gcc2
1666 builtin and then its argument prototype would still apply. */
1667char remove();
1668
1669int main() {
1670
1671/* The GNU C library defines this for functions which it implements
1672 to always fail with ENOSYS. Some functions are actually named
1673 something starting with __ and the normal name is an alias. */
1674#if defined (__stub_remove) || defined (__stub___remove)
1675choke me
1676#else
1677remove();
1678#endif
1679
1680; return 0; }
1681EOF
1682if { (eval echo configure:1683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1683 rm -rf conftest*
1684 eval "ac_cv_func_remove=yes"
1685else
1686 echo "configure: failed program was:" >&5
1687 cat conftest.$ac_ext >&5
1688 rm -rf conftest*
1689 eval "ac_cv_func_remove=no"
1690fi
1691rm -f conftest*
1692fi
1693
1694if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
1695 echo "$ac_t""yes" 1>&6
1696 :
1697else
1698 echo "$ac_t""no" 1>&6
1699fi
1700
1701 if test $ac_cv_func_remove = no; then
1702 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
1703echo "configure:1704: checking for remove in -lposix" >&5
1704ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
1705if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1706 echo $ac_n "(cached) $ac_c" 1>&6
1707else
1708 ac_save_LIBS="$LIBS"
1709LIBS="-lposix $LIBS"
1710cat > conftest.$ac_ext <<EOF
1711#line 1712 "configure"
1712#include "confdefs.h"
1713/* Override any gcc2 internal prototype to avoid an error. */
1714#ifdef __cplusplus
1715extern "C"
1716#endif
1717/* We use char because int might match the return type of a gcc2
1718 builtin and then its argument prototype would still apply. */
1719char remove();
1720
1721int main() {
1722remove()
1723; return 0; }
1724EOF
1725if { (eval echo configure:1726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1726 rm -rf conftest*
1727 eval "ac_cv_lib_$ac_lib_var=yes"
1728else
1729 echo "configure: failed program was:" >&5
1730 cat conftest.$ac_ext >&5
1731 rm -rf conftest*
1732 eval "ac_cv_lib_$ac_lib_var=no"
1733fi
1734rm -f conftest*
1735LIBS="$ac_save_LIBS"
1736
1737fi
1738if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1739 echo "$ac_t""yes" 1>&6
1740 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
1741else
1742 echo "$ac_t""no" 1>&6
1743fi
1744
1745 fi
1746
1747 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
1748 echo $ac_n "checking for shmat""... $ac_c" 1>&6
1749echo "configure:1750: checking for shmat" >&5
1750if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
1751 echo $ac_n "(cached) $ac_c" 1>&6
1752else
1753 cat > conftest.$ac_ext <<EOF
1754#line 1755 "configure"
1755#include "confdefs.h"
1756/* System header to define __stub macros and hopefully few prototypes,
1757 which can conflict with char shmat(); below. */
1758#include <assert.h>
1759/* Override any gcc2 internal prototype to avoid an error. */
1760#ifdef __cplusplus
1761extern "C"
1762#endif
1763/* We use char because int might match the return type of a gcc2
1764 builtin and then its argument prototype would still apply. */
1765char shmat();
1766
1767int main() {
1768
1769/* The GNU C library defines this for functions which it implements
1770 to always fail with ENOSYS. Some functions are actually named
1771 something starting with __ and the normal name is an alias. */
1772#if defined (__stub_shmat) || defined (__stub___shmat)
1773choke me
1774#else
1775shmat();
1776#endif
1777
1778; return 0; }
1779EOF
1780if { (eval echo configure:1781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1781 rm -rf conftest*
1782 eval "ac_cv_func_shmat=yes"
1783else
1784 echo "configure: failed program was:" >&5
1785 cat conftest.$ac_ext >&5
1786 rm -rf conftest*
1787 eval "ac_cv_func_shmat=no"
1788fi
1789rm -f conftest*
1790fi
1791
1792if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
1793 echo "$ac_t""yes" 1>&6
1794 :
1795else
1796 echo "$ac_t""no" 1>&6
1797fi
1798
1799 if test $ac_cv_func_shmat = no; then
1800 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
1801echo "configure:1802: checking for shmat in -lipc" >&5
1802ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
1803if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1804 echo $ac_n "(cached) $ac_c" 1>&6
1805else
1806 ac_save_LIBS="$LIBS"
1807LIBS="-lipc $LIBS"
1808cat > conftest.$ac_ext <<EOF
1809#line 1810 "configure"
1810#include "confdefs.h"
1811/* Override any gcc2 internal prototype to avoid an error. */
1812#ifdef __cplusplus
1813extern "C"
1814#endif
1815/* We use char because int might match the return type of a gcc2
1816 builtin and then its argument prototype would still apply. */
1817char shmat();
1818
1819int main() {
1820shmat()
1821; return 0; }
1822EOF
1823if { (eval echo configure:1824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1824 rm -rf conftest*
1825 eval "ac_cv_lib_$ac_lib_var=yes"
1826else
1827 echo "configure: failed program was:" >&5
1828 cat conftest.$ac_ext >&5
1829 rm -rf conftest*
1830 eval "ac_cv_lib_$ac_lib_var=no"
1831fi
1832rm -f conftest*
1833LIBS="$ac_save_LIBS"
1834
1835fi
1836if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1837 echo "$ac_t""yes" 1>&6
1838 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
1839else
1840 echo "$ac_t""no" 1>&6
1841fi
1842
1843 fi
1844 fi
1845
1846 # Check for libraries that X11R6 Xt/Xaw programs need.
1847 ac_save_LDFLAGS="$LDFLAGS"
1848 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
1849 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
1850 # check for ICE first), but we must link in the order -lSM -lICE or
1851 # we get undefined symbols. So assume we have SM if we have ICE.
1852 # These have to be linked with before -lX11, unlike the other
1853 # libraries we check for below, so use a different variable.
1854 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
1855 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
1856echo "configure:1857: checking for IceConnectionNumber in -lICE" >&5
1857ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
1858if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1859 echo $ac_n "(cached) $ac_c" 1>&6
1860else
1861 ac_save_LIBS="$LIBS"
1862LIBS="-lICE $X_EXTRA_LIBS $LIBS"
1863cat > conftest.$ac_ext <<EOF
1864#line 1865 "configure"
1865#include "confdefs.h"
1866/* Override any gcc2 internal prototype to avoid an error. */
1867#ifdef __cplusplus
1868extern "C"
1869#endif
1870/* We use char because int might match the return type of a gcc2
1871 builtin and then its argument prototype would still apply. */
1872char IceConnectionNumber();
1873
1874int main() {
1875IceConnectionNumber()
1876; return 0; }
1877EOF
1878if { (eval echo configure:1879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1879 rm -rf conftest*
1880 eval "ac_cv_lib_$ac_lib_var=yes"
1881else
1882 echo "configure: failed program was:" >&5
1883 cat conftest.$ac_ext >&5
1884 rm -rf conftest*
1885 eval "ac_cv_lib_$ac_lib_var=no"
1886fi
1887rm -f conftest*
1888LIBS="$ac_save_LIBS"
1889
1890fi
1891if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1892 echo "$ac_t""yes" 1>&6
1893 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
1894else
1895 echo "$ac_t""no" 1>&6
1896fi
1897
1898 LDFLAGS="$ac_save_LDFLAGS"
1899
1900fi
1901
1902
1903# Check whether --with-installed-zlib or --without-installed-zlib was given.
1904if test "${with_installed_zlib+set}" = set; then
1905 withval="$with_installed_zlib"
1906 :
1907fi
1908
1909
1910if test "$with_installed_zlib" = yes; then
1911 echo "using installed zlib"
1912 ZLIB_LIB=-lz
1913else
1914 ZLIB_DIR=zlib
1915 ZLIB_INCLUDE='-I$(top_srcdir)/zlib'
1916 ZLIB_LIB='$(top_srcdir)/zlib/libz.a'
1917 echo "configuring zlib..."
1918 (cd zlib; ./configure)
1919 echo "...done configuring zlib"
1920fi
1921
1922
1923
1924
1925
1926echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
1927echo "configure:1928: checking for vsnprintf" >&5
1928if eval "test \"`echo '$''{'ac_cv_func_vsnprintf'+set}'`\" = set"; then
1929 echo $ac_n "(cached) $ac_c" 1>&6
1930else
1931 cat > conftest.$ac_ext <<EOF
1932#line 1933 "configure"
1933#include "confdefs.h"
1934/* System header to define __stub macros and hopefully few prototypes,
1935 which can conflict with char vsnprintf(); below. */
1936#include <assert.h>
1937/* Override any gcc2 internal prototype to avoid an error. */
1938#ifdef __cplusplus
1939extern "C"
1940#endif
1941/* We use char because int might match the return type of a gcc2
1942 builtin and then its argument prototype would still apply. */
1943char vsnprintf();
1944
1945int main() {
1946
1947/* The GNU C library defines this for functions which it implements
1948 to always fail with ENOSYS. Some functions are actually named
1949 something starting with __ and the normal name is an alias. */
1950#if defined (__stub_vsnprintf) || defined (__stub___vsnprintf)
1951choke me
1952#else
1953vsnprintf();
1954#endif
1955
1956; return 0; }
1957EOF
1958if { (eval echo configure:1959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1959 rm -rf conftest*
1960 eval "ac_cv_func_vsnprintf=yes"
1961else
1962 echo "configure: failed program was:" >&5
1963 cat conftest.$ac_ext >&5
1964 rm -rf conftest*
1965 eval "ac_cv_func_vsnprintf=no"
1966fi
1967rm -f conftest*
1968fi
1969
1970if eval "test \"`echo '$ac_cv_func_'vsnprintf`\" = yes"; then
1971 echo "$ac_t""yes" 1>&6
1972 VSNPRINTF_DEFINE='-DHAVE_VSNPRINTF'
1973else
1974 echo "$ac_t""no" 1>&6
1975VSNPRINTF_DEFINE=
1976fi
1977
1978
1979
1980echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
1981echo "configure:1982: checking for socklen_t" >&5
1982cat > conftest.$ac_ext <<EOF
1983#line 1984 "configure"
1984#include "confdefs.h"
1985#include <sys/types.h>
1986 #include <sys/socket.h>
1987int main() {
1988socklen_t x;
1989accept(0, 0, &x);
1990; return 0; }
1991EOF
1992if { (eval echo configure:1993: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1993 rm -rf conftest*
1994 echo "$ac_t""yes" 1>&6
1995SOCKLEN_T_DEFINE='-DVNC_SOCKLEN_T=socklen_t'
1996else
1997 echo "configure: failed program was:" >&5
1998 cat conftest.$ac_ext >&5
1999 rm -rf conftest*
2000 echo "$ac_t""using int" 1>&6
2001SOCKLEN_T_DEFINE='-DVNC_SOCKLEN_T=int'
2002fi
2003rm -f conftest*
2004
2005
2006BOILERPLATE=boilerplate.mk
2007
2008if (sh -c "make --version" 2>/dev/null | grep GNU 2>&1 >/dev/null); then
2009 if sh -c "vncmkdepend" >/dev/null 2>&1; then
2010 BOILERPLATE="$BOILERPLATE:depend.mk"
2011 fi
2012fi
2013
2014trap '' 1 2 15
2015cat > confcache <<\EOF
2016# This file is a shell script that caches the results of configure
2017# tests run on this system so they can be shared between configure
2018# scripts and configure runs. It is not useful on other systems.
2019# If it contains results you don't want to keep, you may remove or edit it.
2020#
2021# By default, configure uses ./config.cache as the cache file,
2022# creating it if it does not exist already. You can give configure
2023# the --cache-file=FILE option to use a different cache file; that is
2024# what configure does when it calls configure scripts in
2025# subdirectories, so they share the cache.
2026# Giving --cache-file=/dev/null disables caching, for debugging configure.
2027# config.status only pays attention to the cache file if you give it the
2028# --recheck option to rerun configure.
2029#
2030EOF
2031# The following way of writing the cache mishandles newlines in values,
2032# but we know of no workaround that is simple, portable, and efficient.
2033# So, don't put newlines in cache variables' values.
2034# Ultrix sh set writes to stderr and can't be redirected directly,
2035# and sets the high bit in the cache file unless we assign to the vars.
2036(set) 2>&1 |
2037 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2038 *ac_space=\ *)
2039 # `set' does not quote correctly, so add quotes (double-quote substitution
2040 # turns \\\\ into \\, and sed turns \\ into \).
2041 sed -n \
2042 -e "s/'/'\\\\''/g" \
2043 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2044 ;;
2045 *)
2046 # `set' quotes correctly as required by POSIX, so do not add quotes.
2047 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2048 ;;
2049 esac >> confcache
2050if cmp -s $cache_file confcache; then
2051 :
2052else
2053 if test -w $cache_file; then
2054 echo "updating cache $cache_file"
2055 cat confcache > $cache_file
2056 else
2057 echo "not updating unwritable cache $cache_file"
2058 fi
2059fi
2060rm -f confcache
2061
2062trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2063
2064test "x$prefix" = xNONE && prefix=$ac_default_prefix
2065# Let make expand exec_prefix.
2066test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2067
2068# Any assignment to VPATH causes Sun make to only execute
2069# the first set of double-colon rules, so remove it if not needed.
2070# If there is a colon in the path, we need to keep it.
2071if test "x$srcdir" = x.; then
2072 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2073fi
2074
2075trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2076
2077# Transform confdefs.h into DEFS.
2078# Protect against shell expansion while executing Makefile rules.
2079# Protect against Makefile macro expansion.
2080cat > conftest.defs <<\EOF
2081s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
2082s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
2083s%\[%\\&%g
2084s%\]%\\&%g
2085s%\$%$$%g
2086EOF
2087DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2088rm -f conftest.defs
2089
2090
2091# Without the "./", some shells look in PATH for config.status.
2092: ${CONFIG_STATUS=./config.status}
2093
2094echo creating $CONFIG_STATUS
2095rm -f $CONFIG_STATUS
2096cat > $CONFIG_STATUS <<EOF
2097#! /bin/sh
2098# Generated automatically by configure.
2099# Run this file to recreate the current configuration.
2100# This directory was configured as follows,
2101# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2102#
2103# $0 $ac_configure_args
2104#
2105# Compiler output produced by configure, useful for debugging
2106# configure, is in ./config.log if it exists.
2107
2108ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2109for ac_option
2110do
2111 case "\$ac_option" in
2112 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2113 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2114 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2115 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2116 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2117 exit 0 ;;
2118 -help | --help | --hel | --he | --h)
2119 echo "\$ac_cs_usage"; exit 0 ;;
2120 *) echo "\$ac_cs_usage"; exit 1 ;;
2121 esac
2122done
2123
2124ac_given_srcdir=$srcdir
2125
2126trap 'rm -fr `echo "Makefile:Makefile.in:$BOILERPLATE \
2127 rdr/Makefile:rdr/Makefile.in:$BOILERPLATE \
2128 network/Makefile:network/Makefile.in:$BOILERPLATE \
2129 Xregion/Makefile:Xregion/Makefile.in:$BOILERPLATE \
2130 rfb/Makefile:rfb/Makefile.in:$BOILERPLATE \
2131 tx/Makefile:tx/Makefile.in:$BOILERPLATE \
2132 x0vncserver/Makefile:x0vncserver/Makefile.in:$BOILERPLATE \
2133 vncviewer/Makefile:vncviewer/Makefile.in:$BOILERPLATE \
2134 vncconfig/Makefile:vncconfig/Makefile.in:$BOILERPLATE \
2135 vncpasswd/Makefile:vncpasswd/Makefile.in:$BOILERPLATE \
2136" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2137EOF
2138cat >> $CONFIG_STATUS <<EOF
2139
2140# Protect against being on the right side of a sed subst in config.status.
2141sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2142 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2143$ac_vpsub
2144$extrasub
2145s%@SHELL@%$SHELL%g
2146s%@CFLAGS@%$CFLAGS%g
2147s%@CPPFLAGS@%$CPPFLAGS%g
2148s%@CXXFLAGS@%$CXXFLAGS%g
2149s%@FFLAGS@%$FFLAGS%g
2150s%@DEFS@%$DEFS%g
2151s%@LDFLAGS@%$LDFLAGS%g
2152s%@LIBS@%$LIBS%g
2153s%@exec_prefix@%$exec_prefix%g
2154s%@prefix@%$prefix%g
2155s%@program_transform_name@%$program_transform_name%g
2156s%@bindir@%$bindir%g
2157s%@sbindir@%$sbindir%g
2158s%@libexecdir@%$libexecdir%g
2159s%@datadir@%$datadir%g
2160s%@sysconfdir@%$sysconfdir%g
2161s%@sharedstatedir@%$sharedstatedir%g
2162s%@localstatedir@%$localstatedir%g
2163s%@libdir@%$libdir%g
2164s%@includedir@%$includedir%g
2165s%@oldincludedir@%$oldincludedir%g
2166s%@infodir@%$infodir%g
2167s%@mandir@%$mandir%g
2168s%@CC@%$CC%g
2169s%@CXX@%$CXX%g
2170s%@RANLIB@%$RANLIB%g
2171s%@SET_MAKE@%$SET_MAKE%g
2172s%@MITSHM_CPPFLAGS@%$MITSHM_CPPFLAGS%g
2173s%@CXXCPP@%$CXXCPP%g
2174s%@X_CFLAGS@%$X_CFLAGS%g
2175s%@X_PRE_LIBS@%$X_PRE_LIBS%g
2176s%@X_LIBS@%$X_LIBS%g
2177s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
2178s%@ZLIB_DIR@%$ZLIB_DIR%g
2179s%@ZLIB_INCLUDE@%$ZLIB_INCLUDE%g
2180s%@ZLIB_LIB@%$ZLIB_LIB%g
2181s%@VSNPRINTF_DEFINE@%$VSNPRINTF_DEFINE%g
2182s%@SOCKLEN_T_DEFINE@%$SOCKLEN_T_DEFINE%g
2183
2184CEOF
2185EOF
2186
2187cat >> $CONFIG_STATUS <<\EOF
2188
2189# Split the substitutions into bite-sized pieces for seds with
2190# small command number limits, like on Digital OSF/1 and HP-UX.
2191ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2192ac_file=1 # Number of current file.
2193ac_beg=1 # First line for current file.
2194ac_end=$ac_max_sed_cmds # Line after last line for current file.
2195ac_more_lines=:
2196ac_sed_cmds=""
2197while $ac_more_lines; do
2198 if test $ac_beg -gt 1; then
2199 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2200 else
2201 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2202 fi
2203 if test ! -s conftest.s$ac_file; then
2204 ac_more_lines=false
2205 rm -f conftest.s$ac_file
2206 else
2207 if test -z "$ac_sed_cmds"; then
2208 ac_sed_cmds="sed -f conftest.s$ac_file"
2209 else
2210 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2211 fi
2212 ac_file=`expr $ac_file + 1`
2213 ac_beg=$ac_end
2214 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2215 fi
2216done
2217if test -z "$ac_sed_cmds"; then
2218 ac_sed_cmds=cat
2219fi
2220EOF
2221
2222cat >> $CONFIG_STATUS <<EOF
2223
2224CONFIG_FILES=\${CONFIG_FILES-"Makefile:Makefile.in:$BOILERPLATE \
2225 rdr/Makefile:rdr/Makefile.in:$BOILERPLATE \
2226 network/Makefile:network/Makefile.in:$BOILERPLATE \
2227 Xregion/Makefile:Xregion/Makefile.in:$BOILERPLATE \
2228 rfb/Makefile:rfb/Makefile.in:$BOILERPLATE \
2229 tx/Makefile:tx/Makefile.in:$BOILERPLATE \
2230 x0vncserver/Makefile:x0vncserver/Makefile.in:$BOILERPLATE \
2231 vncviewer/Makefile:vncviewer/Makefile.in:$BOILERPLATE \
2232 vncconfig/Makefile:vncconfig/Makefile.in:$BOILERPLATE \
2233 vncpasswd/Makefile:vncpasswd/Makefile.in:$BOILERPLATE \
2234"}
2235EOF
2236cat >> $CONFIG_STATUS <<\EOF
2237for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2238 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2239 case "$ac_file" in
2240 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2241 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2242 *) ac_file_in="${ac_file}.in" ;;
2243 esac
2244
2245 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2246
2247 # Remove last slash and all that follows it. Not all systems have dirname.
2248 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2249 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2250 # The file is in a subdirectory.
2251 test ! -d "$ac_dir" && mkdir "$ac_dir"
2252 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2253 # A "../" for each directory in $ac_dir_suffix.
2254 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2255 else
2256 ac_dir_suffix= ac_dots=
2257 fi
2258
2259 case "$ac_given_srcdir" in
2260 .) srcdir=.
2261 if test -z "$ac_dots"; then top_srcdir=.
2262 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2263 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2264 *) # Relative path.
2265 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2266 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2267 esac
2268
2269
2270 echo creating "$ac_file"
2271 rm -f "$ac_file"
2272 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2273 case "$ac_file" in
2274 *Makefile*) ac_comsub="1i\\
2275# $configure_input" ;;
2276 *) ac_comsub= ;;
2277 esac
2278
2279 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2280 sed -e "$ac_comsub
2281s%@configure_input@%$configure_input%g
2282s%@srcdir@%$srcdir%g
2283s%@top_srcdir@%$top_srcdir%g
2284" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2285fi; done
2286rm -f conftest.s*
2287
2288EOF
2289cat >> $CONFIG_STATUS <<EOF
2290
2291EOF
2292cat >> $CONFIG_STATUS <<\EOF
2293
2294exit 0
2295EOF
2296chmod +x $CONFIG_STATUS
2297rm -fr confdefs* $ac_clean_files
2298test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2299