configure revision 1.1.1.12.2.1 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52.20210105.
4 #
5 # Copyright 2003-2020,2021 Thomas E. Dickey
6 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7 # Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10
11 # Avoid depending upon Character Ranges.
12 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15 as_cr_digits='0123456789'
16 as_cr_alnum=$as_cr_Letters$as_cr_digits
17
18 # Sed expression to map a string onto a valid variable name.
19 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
20
21 # Sed expression to map a string onto a valid CPP name.
22 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23
24 # Be Bourne compatible
25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26 emulate sh
27 NULLCMD=:
28 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29 set -o posix
30 fi
31
32 # Name of the executable.
33 as_me=`echo "$0" |sed 's,.*[\\/],,'`
34
35 if expr a : '\(a\)' >/dev/null 2>&1; then
36 as_expr=expr
37 else
38 as_expr=false
39 fi
40
41 rm -f conf$$ conf$$.exe conf$$.file
42 echo >conf$$.file
43 if ln -s conf$$.file conf$$ 2>/dev/null; then
44 # We could just check for DJGPP; but this test a) works b) is more generic
45 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
46 if test -f conf$$.exe; then
47 # Don't use ln at all; we don't have any links
48 as_ln_s='cp -p'
49 else
50 as_ln_s='ln -s'
51 fi
52 elif ln conf$$.file conf$$ 2>/dev/null; then
53 as_ln_s=ln
54 else
55 as_ln_s='cp -p'
56 fi
57 rm -f conf$$ conf$$.exe conf$$.file
58
59 as_executable_p="test -f"
60
61 # Support unset when possible.
62 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
63 as_unset="unset"
64 else
65 as_unset="false"
66 fi
67
68 # NLS nuisances.
69 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
70 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
71 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
72 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
73 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
74 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
75 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
76 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
77
78 # IFS
79 # We need space, tab and new line, in precisely that order.
80 as_nl='
81 '
82 IFS=" $as_nl"
83
84 # CDPATH.
85 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
86
87 # Name of the host.
88 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
89 # so uname gets run too.
90 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
91
92 exec 6>&1
93
94 #
95 # Initializations.
96 #
97 ac_default_prefix=/usr/local
98 cross_compiling=no
99 subdirs=
100 MFLAGS=
101 MAKEFLAGS=
102 SHELL=${CONFIG_SHELL-/bin/sh}
103
104 # Maximum number of lines to put in a shell here document.
105 # This variable seems obsolete. It should probably be removed, and
106 # only ac_max_sed_lines should be used.
107 : "${ac_max_here_lines=38}"
108
109 ac_unique_file="charproc.c"
110 # Factoring default headers for most tests.
111 ac_includes_default="\
112 #include <stdio.h>
113 #if HAVE_SYS_TYPES_H
114 # include <sys/types.h>
115 #endif
116 #if HAVE_SYS_STAT_H
117 # include <sys/stat.h>
118 #endif
119 #if STDC_HEADERS
120 # include <stdlib.h>
121 # include <stddef.h>
122 #else
123 # if HAVE_STDLIB_H
124 # include <stdlib.h>
125 # endif
126 #endif
127 #if HAVE_STRING_H
128 # if !STDC_HEADERS && HAVE_MEMORY_H
129 # include <memory.h>
130 # endif
131 # include <string.h>
132 #endif
133 #if HAVE_STRINGS_H
134 # include <strings.h>
135 #endif
136 #if HAVE_INTTYPES_H
137 # include <inttypes.h>
138 #else
139 # if HAVE_STDINT_H
140 # include <stdint.h>
141 # endif
142 #endif
143 #if HAVE_UNISTD_H
144 # include <unistd.h>
145 #endif"
146
147 # Initialize some variables set by options.
148 ac_init_help=
149 ac_init_version=false
150 # The variables have the same names as the options, with
151 # dashes changed to underlines.
152 cache_file=/dev/null
153 exec_prefix=NONE
154 no_create=
155 no_recursion=
156 prefix=NONE
157 program_prefix=NONE
158 program_suffix=NONE
159 program_transform_name=s,x,x,
160 silent=
161 site=
162 srcdir=
163 verbose=
164 x_includes=NONE
165 x_libraries=NONE
166
167 # Installation directory options.
168 # These are left unexpanded so users can "make install exec_prefix=/foo"
169 # and all the variables that are supposed to be based on exec_prefix
170 # by default will actually change.
171 # Use braces instead of parens because sh, perl, etc. also accept them.
172 bindir='${exec_prefix}/bin'
173 sbindir='${exec_prefix}/sbin'
174 libexecdir='${exec_prefix}/libexec'
175 datarootdir='${prefix}/share'
176 datadir='${datarootdir}'
177 sysconfdir='${prefix}/etc'
178 sharedstatedir='${prefix}/com'
179 localstatedir='${prefix}/var'
180 runstatedir='${localstatedir}/run'
181 libdir='${exec_prefix}/lib'
182 includedir='${prefix}/include'
183 oldincludedir='/usr/include'
184 infodir='${datarootdir}/info'
185 mandir='${datarootdir}/man'
186
187 # Identity of this package.
188 PACKAGE_NAME=
189 PACKAGE_TARNAME=
190 PACKAGE_VERSION=
191 PACKAGE_STRING=
192 PACKAGE_BUGREPORT=
193
194 ac_prev=
195 for ac_option
196 do
197 # If the previous option needs an argument, assign it.
198 if test -n "$ac_prev"; then
199 eval "$ac_prev=\$ac_option"
200 ac_prev=
201 continue
202 fi
203
204 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
205
206 # Accept the important Cygnus configure options, so we can diagnose typos.
207
208 case "$ac_option" in
209
210 -bindir | --bindir | --bindi | --bind | --bin | --bi)
211 ac_prev=bindir ;;
212 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
213 bindir=$ac_optarg ;;
214
215 -build | --build | --buil | --bui | --bu)
216 ac_prev=build_alias ;;
217 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
218 build_alias=$ac_optarg ;;
219
220 -cache-file | --cache-file | --cache-fil | --cache-fi \
221 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
222 ac_prev=cache_file ;;
223 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
224 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
225 cache_file=$ac_optarg ;;
226
227 --config-cache | -C)
228 cache_file=config.cache ;;
229
230 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
231 ac_prev=datadir ;;
232 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
233 | --da=*)
234 datadir=$ac_optarg ;;
235
236 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
237 | --dataroo | --dataro | --datar)
238 ac_prev=datarootdir ;;
239 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
240 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
241 datarootdir=$ac_optarg ;;
242
243 -disable-* | --disable-*)
244 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
245 # Reject names that are not valid shell variable names.
246 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
247 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
248 { (exit 1); exit 1; }; }
249 ac_feature=`echo "$ac_feature" | sed 's/-/_/g'`
250 eval "enable_$ac_feature=no" ;;
251
252 -enable-* | --enable-*)
253 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
254 # Reject names that are not valid shell variable names.
255 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
256 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
257 { (exit 1); exit 1; }; }
258 ac_feature=`echo "$ac_feature" | sed 's/-/_/g'`
259 case "$ac_option" in
260 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
261 *) ac_optarg=yes ;;
262 esac
263 eval "enable_$ac_feature='$ac_optarg'" ;;
264
265 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
266 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
267 | --exec | --exe | --ex)
268 ac_prev=exec_prefix ;;
269 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
270 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
271 | --exec=* | --exe=* | --ex=*)
272 exec_prefix=$ac_optarg ;;
273
274 -gas | --gas | --ga | --g)
275 # Obsolete; use --with-gas.
276 with_gas=yes ;;
277
278 -help | --help | --hel | --he | -h)
279 ac_init_help=long ;;
280 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
281 ac_init_help=recursive ;;
282 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
283 ac_init_help=short ;;
284
285 -host | --host | --hos | --ho)
286 ac_prev=host_alias ;;
287 -host=* | --host=* | --hos=* | --ho=*)
288 host_alias=$ac_optarg ;;
289
290 -includedir | --includedir | --includedi | --included | --include \
291 | --includ | --inclu | --incl | --inc)
292 ac_prev=includedir ;;
293 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
294 | --includ=* | --inclu=* | --incl=* | --inc=*)
295 includedir=$ac_optarg ;;
296
297 -infodir | --infodir | --infodi | --infod | --info | --inf)
298 ac_prev=infodir ;;
299 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
300 infodir=$ac_optarg ;;
301
302 -libdir | --libdir | --libdi | --libd)
303 ac_prev=libdir ;;
304 -libdir=* | --libdir=* | --libdi=* | --libd=*)
305 libdir=$ac_optarg ;;
306
307 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
308 | --libexe | --libex | --libe)
309 ac_prev=libexecdir ;;
310 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
311 | --libexe=* | --libex=* | --libe=*)
312 libexecdir=$ac_optarg ;;
313
314 -localstatedir | --localstatedir | --localstatedi | --localstated \
315 | --localstate | --localstat | --localsta | --localst \
316 | --locals | --local | --loca | --loc | --lo)
317 ac_prev=localstatedir ;;
318 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
319 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
320 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
321 localstatedir=$ac_optarg ;;
322
323 -runstatedir | --runstatedir | --runstatedi | --runstated \
324 | --runstate | --runstat | --runsta | --runst \
325 | --runs | --run | --ru)
326 ac_prev=runstatedir ;;
327 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
328 | --runstate=* | --runstat=* | --runsta=* | --runst=* \
329 | --runs=* | --run=* | --ru=*)
330 runstatedir=$ac_optarg ;;
331
332 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
333 ac_prev=mandir ;;
334 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
335 mandir=$ac_optarg ;;
336
337 -nfp | --nfp | --nf)
338 # Obsolete; use --without-fp.
339 with_fp=no ;;
340
341 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
342 | --no-cr | --no-c)
343 no_create=yes ;;
344
345 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
346 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
347 no_recursion=yes ;;
348
349 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
350 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
351 | --oldin | --oldi | --old | --ol | --o)
352 ac_prev=oldincludedir ;;
353 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
354 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
355 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
356 oldincludedir=$ac_optarg ;;
357
358 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
359 ac_prev=prefix ;;
360 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
361 prefix=$ac_optarg ;;
362
363 -program-prefix | --program-prefix | --program-prefi | --program-pref \
364 | --program-pre | --program-pr | --program-p)
365 ac_prev=program_prefix ;;
366 -program-prefix=* | --program-prefix=* | --program-prefi=* \
367 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
368 program_prefix=$ac_optarg ;;
369
370 -program-suffix | --program-suffix | --program-suffi | --program-suff \
371 | --program-suf | --program-su | --program-s)
372 ac_prev=program_suffix ;;
373 -program-suffix=* | --program-suffix=* | --program-suffi=* \
374 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
375 program_suffix=$ac_optarg ;;
376
377 -program-transform-name | --program-transform-name \
378 | --program-transform-nam | --program-transform-na \
379 | --program-transform-n | --program-transform- \
380 | --program-transform | --program-transfor \
381 | --program-transfo | --program-transf \
382 | --program-trans | --program-tran \
383 | --progr-tra | --program-tr | --program-t)
384 ac_prev=program_transform_name ;;
385 -program-transform-name=* | --program-transform-name=* \
386 | --program-transform-nam=* | --program-transform-na=* \
387 | --program-transform-n=* | --program-transform-=* \
388 | --program-transform=* | --program-transfor=* \
389 | --program-transfo=* | --program-transf=* \
390 | --program-trans=* | --program-tran=* \
391 | --progr-tra=* | --program-tr=* | --program-t=*)
392 program_transform_name=$ac_optarg ;;
393
394 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
395 | -silent | --silent | --silen | --sile | --sil)
396 silent=yes ;;
397
398 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
399 ac_prev=sbindir ;;
400 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
401 | --sbi=* | --sb=*)
402 sbindir=$ac_optarg ;;
403
404 -sharedstatedir | --sharedstatedir | --sharedstatedi \
405 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
406 | --sharedst | --shareds | --shared | --share | --shar \
407 | --sha | --sh)
408 ac_prev=sharedstatedir ;;
409 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
410 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
411 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
412 | --sha=* | --sh=*)
413 sharedstatedir=$ac_optarg ;;
414
415 -site | --site | --sit)
416 ac_prev=site ;;
417 -site=* | --site=* | --sit=*)
418 site=$ac_optarg ;;
419
420 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
421 ac_prev=srcdir ;;
422 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
423 srcdir=$ac_optarg ;;
424
425 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
426 | --syscon | --sysco | --sysc | --sys | --sy)
427 ac_prev=sysconfdir ;;
428 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
429 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
430 sysconfdir=$ac_optarg ;;
431
432 -target | --target | --targe | --targ | --tar | --ta | --t)
433 ac_prev=target_alias ;;
434 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
435 target_alias=$ac_optarg ;;
436
437 -v | -verbose | --verbose | --verbos | --verbo | --verb)
438 verbose=yes ;;
439
440 -version | --version | --versio | --versi | --vers | -V)
441 ac_init_version=: ;;
442
443 -with-* | --with-*)
444 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
445 # Reject names that are not valid shell variable names.
446 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
447 { echo "$as_me: error: invalid package name: $ac_package" >&2
448 { (exit 1); exit 1; }; }
449 ac_package=`echo "$ac_package" | sed 's/-/_/g'`
450 case "$ac_option" in
451 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
452 *) ac_optarg=yes ;;
453 esac
454 eval "with_$ac_package='$ac_optarg'" ;;
455
456 -without-* | --without-*)
457 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
458 # Reject names that are not valid shell variable names.
459 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
460 { echo "$as_me: error: invalid package name: $ac_package" >&2
461 { (exit 1); exit 1; }; }
462 ac_package=`echo "$ac_package" | sed 's/-/_/g'`
463 eval "with_$ac_package=no" ;;
464
465 --x)
466 # Obsolete; use --with-x.
467 with_x=yes ;;
468
469 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
470 | --x-incl | --x-inc | --x-in | --x-i)
471 ac_prev=x_includes ;;
472 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
473 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
474 x_includes=$ac_optarg ;;
475
476 -x-libraries | --x-libraries | --x-librarie | --x-librari \
477 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
478 ac_prev=x_libraries ;;
479 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
480 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
481 x_libraries=$ac_optarg ;;
482
483 -*) { echo "$as_me: error: unrecognized option: $ac_option
484 Try \`$0 --help' for more information." >&2
485 { (exit 1); exit 1; }; }
486 ;;
487
488 *=*)
489 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
490 # Reject names that are not valid shell variable names.
491 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
492 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
493 { (exit 1); exit 1; }; }
494 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
495 eval "$ac_envvar='$ac_optarg'"
496 export "$ac_envvar" ;;
497
498 *)
499 # FIXME: should be removed in autoconf 3.0.
500 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
501 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
502 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
503 : "${build_alias=$ac_option}" "${host_alias=$ac_option}" "${target_alias=$ac_option}"
504 ;;
505
506 esac
507 done
508
509 if test -n "$ac_prev"; then
510 ac_option=--`echo "$ac_prev" | sed 's/_/-/g'`
511 { echo "$as_me: error: missing argument to $ac_option" >&2
512 { (exit 1); exit 1; }; }
513 fi
514
515 # Be sure to have absolute paths.
516 for ac_var in exec_prefix prefix
517 do
518 eval ac_val=$`echo "$ac_var"`
519 case "$ac_val" in
520 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
521 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
522 { (exit 1); exit 1; }; };;
523 esac
524 done
525
526 # Be sure to have absolute paths.
527 for ac_var in bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir \
528 localstatedir libdir includedir oldincludedir infodir mandir
529 do
530 eval ac_val=$`echo "$ac_var"`
531 case "$ac_val" in
532 [\\/$]* | ?:[\\/]* ) ;;
533 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
534 { (exit 1); exit 1; }; };;
535 esac
536 done
537
538 # There might be people who depend on the old broken behavior: `$host'
539 # used to hold the argument of --host etc.
540 build=$build_alias
541 host=$host_alias
542 target=$target_alias
543
544 # FIXME: should be removed in autoconf 3.0.
545 if test "x$host_alias" != x; then
546 if test "x$build_alias" = x; then
547 cross_compiling=maybe
548 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
549 If a cross compiler is detected then cross compile mode will be used." >&2
550 elif test "x$build_alias" != "x$host_alias"; then
551 cross_compiling=yes
552 fi
553 fi
554
555 ac_tool_prefix=
556 test -n "$host_alias" && ac_tool_prefix=$host_alias-
557
558 test "$silent" = yes && exec 6>/dev/null
559
560 # Find the source files, if location was not specified.
561 if test -z "$srcdir"; then
562 ac_srcdir_defaulted=yes
563 # Try the directory containing this script, then its parent.
564 ac_prog=$0
565 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
566 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
567 srcdir=$ac_confdir
568 if test ! -r "$srcdir/$ac_unique_file"; then
569 srcdir=..
570 fi
571 else
572 ac_srcdir_defaulted=no
573 fi
574 if test ! -r "$srcdir/$ac_unique_file"; then
575 if test "$ac_srcdir_defaulted" = yes; then
576 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
577 { (exit 1); exit 1; }; }
578 else
579 { echo "$as_me: error: cannot find sources in $srcdir" >&2
580 { (exit 1); exit 1; }; }
581 fi
582 fi
583 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
584 ac_env_build_alias_set=${build_alias+set}
585 ac_env_build_alias_value=$build_alias
586 ac_cv_env_build_alias_set=${build_alias+set}
587 ac_cv_env_build_alias_value=$build_alias
588 ac_env_host_alias_set=${host_alias+set}
589 ac_env_host_alias_value=$host_alias
590 ac_cv_env_host_alias_set=${host_alias+set}
591 ac_cv_env_host_alias_value=$host_alias
592 ac_env_target_alias_set=${target_alias+set}
593 ac_env_target_alias_value=$target_alias
594 ac_cv_env_target_alias_set=${target_alias+set}
595 ac_cv_env_target_alias_value=$target_alias
596 ac_env_CC_set=${CC+set}
597 ac_env_CC_value=$CC
598 ac_cv_env_CC_set=${CC+set}
599 ac_cv_env_CC_value=$CC
600 ac_env_CFLAGS_set=${CFLAGS+set}
601 ac_env_CFLAGS_value=$CFLAGS
602 ac_cv_env_CFLAGS_set=${CFLAGS+set}
603 ac_cv_env_CFLAGS_value=$CFLAGS
604 ac_env_LDFLAGS_set=${LDFLAGS+set}
605 ac_env_LDFLAGS_value=$LDFLAGS
606 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
607 ac_cv_env_LDFLAGS_value=$LDFLAGS
608 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
609 ac_env_CPPFLAGS_value=$CPPFLAGS
610 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
611 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
612 ac_env_CPP_set=${CPP+set}
613 ac_env_CPP_value=$CPP
614 ac_cv_env_CPP_set=${CPP+set}
615 ac_cv_env_CPP_value=$CPP
616
617 #
618 # Report the --help message.
619 #
620 if test "$ac_init_help" = "long"; then
621 # Omit some internal or obsolete options to make the list less imposing.
622 # This message is too long to be a string in the A/UX 3.1 sh.
623 cat <<EOF
624 \`configure' configures this package to adapt to many kinds of systems.
625
626 Usage: $0 [OPTION]... [VAR=VALUE]...
627
628 To assign environment variables (e.g., CC, CFLAGS...), specify them as
629 VAR=VALUE. See below for descriptions of some of the useful variables.
630
631 Defaults for the options are specified in brackets.
632
633 Configuration:
634 -h, --help display this help and exit
635 --help=short display options specific to this package
636 --help=recursive display the short help of all the included packages
637 -V, --version display version information and exit
638 -q, --quiet, --silent do not print \`checking...' messages
639 --cache-file=FILE cache test results in FILE [disabled]
640 -C, --config-cache alias for \`--cache-file=config.cache'
641 -n, --no-create do not create output files
642 --srcdir=DIR find the sources in DIR [configure dir or \`..']
643
644 EOF
645
646 cat <<EOF
647 Installation directories:
648 --prefix=PREFIX install architecture-independent files in PREFIX
649 [$ac_default_prefix]
650 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
651 [PREFIX]
652
653 By default, \`make install' will install all the files in
654 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
655 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
656 for instance \`--prefix=\$HOME'.
657
658 For better control, use the options below.
659
660 Fine tuning of the installation directories:
661 --bindir=DIR user executables [EPREFIX/bin]
662 --sbindir=DIR system admin executables [EPREFIX/sbin]
663 --libexecdir=DIR program executables [EPREFIX/libexec]
664 --datarootdir=DIR read-only architecture-independent data [PREFIX/share]
665 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
666 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
667 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
668 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
669 --runstatedir=DIR extra definition of runtime data [LOCALSTATEDIR/run]
670 --libdir=DIR object code libraries [EPREFIX/lib]
671 --includedir=DIR C header files [PREFIX/include]
672 --oldincludedir=DIR C header files for non-gcc [/usr/include]
673 --infodir=DIR info documentation [DATAROOTDIR/info]
674 --mandir=DIR man documentation [DATAROOTDIR/man]
675 EOF
676
677 cat <<\EOF
678
679 Program names:
680 --program-prefix=PREFIX prepend PREFIX to installed program names
681 --program-suffix=SUFFIX append SUFFIX to installed program names
682 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
683
684 X features:
685 --x-includes=DIR X include files are in DIR
686 --x-libraries=DIR X library files are in DIR
687
688 System types:
689 --build=BUILD configure for building on BUILD [guessed]
690 --host=HOST build programs to run on HOST [BUILD]
691 EOF
692 fi
693
694 if test -n "$ac_init_help"; then
695
696 cat <<\EOF
697
698 Optional Features:
699 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
700 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
701
702 Optional Packages:
703 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
704 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
705
706 Compile/Install Options:
707 --disable-full-tgetent disable check for full tgetent function
708 --with-app-class=XXX override X applications class (default XTerm)
709 --with-app-defaults=DIR directory in which to install resource files (EPREFIX/lib/X11/app-defaults)
710 --with-icon-name=XXXX override icon name (default: mini.xterm)
711 --with-icon-symlink=XXX make symbolic link for icon name (default: xterm)
712 --with-pixmapdir=DIR directory in which to install pixmaps (DATADIR/pixmaps)
713 --with-icondir=DIR directory in which to install icons for desktop
714 --with-icon-theme=XXX install icons into desktop theme (hicolor)
715 --disable-desktop disable install of xterm desktop files
716 --with-desktop-category=XXX one or more desktop catgories or auto
717 --with-reference=XXX program to use as permissions-reference
718 --with-xterm-symlink=XXX make symbolic link to installed xterm
719 --disable-openpty disable openpty, prefer other interfaces
720 --disable-setuid disable setuid in xterm, do not install setuid/setgid
721 --disable-setgid disable setgid in xterm, do not install setuid/setgid
722 --with-setuid=XXX use the given setuid user
723 --with-utmp-setgid=XXX use setgid to match utmp/utmpx file
724 --with-utempter use utempter library for access to utmp
725 --with-tty-group=XXX use XXX for the tty-group
726 --with-x use the X Window System
727 --with-pkg-config{=path} enable/disable use of pkg-config
728 --with-xpm=DIR use Xpm library for colored icon, may specify path
729 --without-xinerama do not use Xinerama extension for multiscreen support
730 --with-Xaw3d link with Xaw 3d library
731 --with-Xaw3dxft link with Xaw 3d xft library
732 --with-neXtaw link with neXT Athena library
733 --with-XawPlus link with Athena-Plus library
734 --enable-narrowproto enable narrow prototypes for X libraries
735 --disable-imake disable use of imake for definitions
736 --with-man2html=XXX use XXX rather than groff
737 Terminal Configuration:
738 --with-terminal-id=V set default decTerminalID (default: vt420)
739 --with-terminal-type=T set default $TERM (default: xterm)
740 --enable-backarrow-key set default backarrowKey resource (default: true)
741 --enable-backarrow-is-erase set default backarrowKeyIsErase resource (default: false)
742 --enable-delete-is-del set default deleteIsDEL resource (default: maybe)
743 --enable-pty-erase set default ptyInitialErase resource (default: maybe)
744 --enable-alt-sends-esc set default altSendsEscape resource (default: no)
745 --enable-meta-sends-esc set default metaSendsEscape resource (default: no)
746 --with-own-terminfo=P set default $TERMINFO (default: from environment)
747 --enable-env-terminfo setenv $TERMINFO if --with-own-terminfo gives value
748 Optional Features:
749 --disable-active-icon disable X11R6.3 active-icon feature
750 --disable-ansi-color disable ANSI color
751 --disable-16-color disable 16-color support
752 --disable-256-color disable 256-color support
753 --disable-direct-color disable direct-color support
754 --disable-88-color disable 88-color support
755 --disable-blink-cursor disable support for blinking cursor
756 --enable-broken-osc allow broken Linux OSC-strings
757 --disable-broken-st disallow broken string-terminators
758 --enable-builtin-xpms compile-in icon data
759 --disable-c1-print disallow -k8 option for printable 128-159
760 --disable-bold-color disable PC-style mapping of bold colors
761 --disable-color-class disable separate color class resources
762 --disable-color-mode disable default colorMode resource
763 --disable-highlighting disable support for color highlighting
764 --disable-doublechars disable support for double-size chars
765 --disable-boxchars disable fallback-support for box chars
766 --enable-exec-xterm enable "spawn-new-terminal" action
767 --enable-double-buffer enable double-buffering in default resources
768 --disable-freetype disable freetype library-support
769 --with-freetype-config configure script to use for FreeType
770 --with-freetype-cflags -D/-I options for compiling with FreeType
771 --with-freetype-libs -L/-l options to link FreeType
772 --enable-hp-fkeys enable support for HP-style function keys
773 --enable-sco-fkeys enable support for SCO-style function keys
774 --disable-sun-fkeys disable support for Sun-style function keys
775 --disable-fifo-lines disable FIFO-storage for saved-lines
776 --disable-i18n disable internationalization
777 --disable-initial-erase disable setup for stty erase
778 --disable-input-method disable input-method
779 --enable-load-vt-fonts enable load-vt-fonts() action
780 --enable-logging enable logging
781 --enable-logfile-exec enable exec'd logfile filter
782 --disable-maximize disable actions for iconify/deiconify/maximize/restore
783 --disable-num-lock disable NumLock keypad support
784 --disable-paste64 disable get/set base64 selection data
785 --disable-pty-handshake disable pty-handshake support
786 --enable-readline-mouse enable support for mouse in readline applications
787 --disable-regex disable regular-expression selections
788 --with-pcre2 use PCRE2 for regular-expressions
789 --with-pcre use PCRE for regular-expressions
790 --disable-rightbar disable right-scrollbar support
791 --disable-samename disable check for redundant name-change
792 --disable-selection-ops disable selection-action operations
793 --disable-session-mgt disable support for session management
794 --disable-tcap-fkeys disable termcap function-keys support
795 --disable-tcap-query disable compiled-in termcap-query support
796 --disable-tek4014 disable tek4014 emulation
797 --enable-toolbar compile-in toolbar for pulldown menus
798 --disable-vt52 disable VT52 emulation
799 --disable-wide-attrs disable wide-attribute support
800 --disable-wide-chars disable wide-character support
801 --enable-16bit-chars enable 16-bit character support
802 --enable-mini-luit enable mini-luit (built-in Latin9 support)
803 --disable-luit enable luit filter (Unicode translation)
804 --enable-dabbrev enable dynamic-abbreviation support
805 --enable-dec-locator enable DECterm Locator support
806 --disable-screen-dumps disable XHTML and SVG screen dumps
807 --enable-regis-graphics enable ReGIS graphics support
808 --disable-sixel-graphics disable sixel graphics support
809 --disable-print-graphics disable screen dump to sixel support
810 --disable-rectangles disable VT420 rectangle support
811 --disable-ziconbeep disable -ziconbeep option
812 Testing/development Options:
813 --enable-trace test: set to enable debugging traces
814 --with-dmalloc test: use Gray Watson's dmalloc library
815 --with-dbmalloc test: use Conor Cahill's dbmalloc library
816 --with-valgrind test: use valgrind
817 --disable-leaks test: free permanent memory, analyze leaks
818 --disable-echo do not display "compiling" commands
819 --enable-xmc-glitch test: enable xmc magic-cookie emulation
820 --enable-warnings test: turn on gcc compiler warnings
821 --disable-rpath-hack don't add rpath options for additional libraries
822
823 Some influential environment variables:
824 CC C compiler command
825 CFLAGS C compiler flags
826 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
827 nonstandard directory <lib dir>
828 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
829 headers in a nonstandard directory <include dir>
830 CPP C preprocessor
831
832 Use these variables to override the choices made by `configure' or to help
833 it to find libraries and programs with nonstandard names/locations.
834
835 EOF
836 fi
837
838 if test "$ac_init_help" = "recursive"; then
839 # If there are subdirs, report their specific --help.
840 ac_popdir=`pwd`
841 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
842 cd "$ac_subdir"
843 # A "../" for each directory in /$ac_subdir.
844 ac_dots=`echo "$ac_subdir" |
845 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
846
847 case "$srcdir" in
848 .) # No --srcdir option. We are building in place.
849 ac_sub_srcdir="$srcdir" ;;
850 [\\/]* | ?:[\\/]* ) # Absolute path.
851 ac_sub_srcdir="$srcdir/$ac_subdir" ;;
852 *) # Relative path.
853 ac_sub_srcdir="$ac_dots$srcdir/$ac_subdir" ;;
854 esac
855
856 # Check for guested configure; otherwise get Cygnus style configure.
857 if test -f "$ac_sub_srcdir/configure.gnu"; then
858 echo
859 $SHELL "$ac_sub_srcdir/configure.gnu" --help=recursive
860 elif test -f "$ac_sub_srcdir/configure"; then
861 echo
862 $SHELL "$ac_sub_srcdir/configure" --help=recursive
863 elif test -f "$ac_sub_srcdir/configure.ac" ||
864 test -f "$ac_sub_srcdir/configure.in"; then
865 echo
866 "$ac_configure" --help
867 else
868 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
869 fi
870 cd "$ac_popdir"
871 done
872 fi
873
874 test -n "$ac_init_help" && exit 0
875 if "$ac_init_version"; then
876 cat <<\EOF
877
878 Copyright 2003-2020,2021 Thomas E. Dickey
879 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
880 Free Software Foundation, Inc.
881 This configure script is free software; the Free Software Foundation
882 gives unlimited permission to copy, distribute and modify it.
883 EOF
884 exit 0
885 fi
886 exec 5>config.log
887 cat >&5 <<EOF
888 This file contains any messages produced by compilers while
889 running configure, to aid debugging if configure makes a mistake.
890
891 It was created by $as_me, which was
892 generated by GNU Autoconf 2.52.20210105. Invocation command line was
893
894 $ $0 $@
895
896 EOF
897 {
898 cat <<_ASUNAME
899 ## ---------- ##
900 ## Platform. ##
901 ## ---------- ##
902
903 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
904 uname -m = `(uname -m) 2>/dev/null || echo unknown`
905 uname -r = `(uname -r) 2>/dev/null || echo unknown`
906 uname -s = `(uname -s) 2>/dev/null || echo unknown`
907 uname -v = `(uname -v) 2>/dev/null || echo unknown`
908
909 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
910 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
911
912 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
913 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
914 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
915 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
916 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
917 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
918 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
919
920 PATH = $PATH
921
922 _ASUNAME
923 } >&5
924
925 cat >&5 <<EOF
926 ## ------------ ##
927 ## Core tests. ##
928 ## ------------ ##
929
930 EOF
931
932 # Keep a trace of the command line.
933 # Strip out --no-create and --no-recursion so they do not pile up.
934 # Also quote any args containing shell meta-characters.
935 ac_configure_args=
936 ac_sep=
937 for ac_arg
938 do
939 case "$ac_arg" in
940 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
941 | --no-cr | --no-c) ;;
942 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
943 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
944 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
945 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
946 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
947 ac_sep=" " ;;
948 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
949 ac_sep=" " ;;
950 esac
951 # Get rid of the leading space.
952 done
953
954 # When interrupted or exit'd, cleanup temporary files, and complete
955 # config.log. We remove comments because anyway the quotes in there
956 # would cause problems or look ugly.
957 trap 'exit_status=$?
958 # Save into config.log some information that might help in debugging.
959 echo >&5
960 echo "## ----------------- ##" >&5
961 echo "## Cache variables. ##" >&5
962 echo "## ----------------- ##" >&5
963 echo >&5
964 # The following way of writing the cache mishandles newlines in values,
965 {
966 (set) 2>&1 |
967 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
968 *ac_space=\ *)
969 sed -n \
970 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
971 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
972 ;;
973 *)
974 sed -n \
975 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
976 ;;
977 esac;
978 } >&5
979 sed "/^$/d" confdefs.h >conftest.log
980 if test -s conftest.log; then
981 echo >&5
982 echo "## ------------ ##" >&5
983 echo "## confdefs.h. ##" >&5
984 echo "## ------------ ##" >&5
985 echo >&5
986 cat conftest.log >&5
987 fi
988 (echo; echo) >&5
989 test "$ac_signal" != 0 &&
990 echo "$as_me: caught signal $ac_signal" >&5
991 echo "$as_me: exit $exit_status" >&5
992 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
993 exit $exit_status
994 ' 0
995 for ac_signal in 1 2 13 15; do
996 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' "$ac_signal"
997 done
998 ac_signal=0
999
1000 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1001 rm -rf conftest* confdefs.h
1002 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1003 echo >confdefs.h
1004
1005 # Let the site file select an alternate cache file if it wants to.
1006 # Prefer explicitly selected file to automatically selected ones.
1007 if test -z "$CONFIG_SITE"; then
1008 if test "x$prefix" != xNONE; then
1009 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1010 else
1011 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1012 fi
1013 fi
1014 for ac_site_file in $CONFIG_SITE; do
1015 if test -r "$ac_site_file"; then
1016 { echo "$as_me:1016: loading site script $ac_site_file" >&5
1017 echo "$as_me: loading site script $ac_site_file" >&6;}
1018 cat "$ac_site_file" >&5
1019 . "$ac_site_file"
1020 fi
1021 done
1022
1023 if test -r "$cache_file"; then
1024 # Some versions of bash will fail to source /dev/null (special
1025 # files actually), so we avoid doing that.
1026 if test -f "$cache_file"; then
1027 { echo "$as_me:1027: loading cache $cache_file" >&5
1028 echo "$as_me: loading cache $cache_file" >&6;}
1029 case $cache_file in
1030 [\\/]* | ?:[\\/]* ) . $cache_file;;
1031 *) . ./$cache_file;;
1032 esac
1033 fi
1034 else
1035 { echo "$as_me:1035: creating cache $cache_file" >&5
1036 echo "$as_me: creating cache $cache_file" >&6;}
1037 >$cache_file
1038 fi
1039
1040 # Check that the precious variables saved in the cache have kept the same
1041 # value.
1042 ac_cache_corrupted=false
1043 for ac_var in `(set) 2>&1 |
1044 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1045 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1046 eval ac_new_set=\$ac_env_${ac_var}_set
1047 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1048 eval ac_new_val="\$ac_env_${ac_var}_value"
1049 case "$ac_old_set,$ac_new_set" in
1050 set,)
1051 { echo "$as_me:1051: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1052 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1053 ac_cache_corrupted=: ;;
1054 ,set)
1055 { echo "$as_me:1055: error: \`$ac_var' was not set in the previous run" >&5
1056 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1057 ac_cache_corrupted=: ;;
1058 ,);;
1059 *)
1060 if test "x$ac_old_val" != "x$ac_new_val"; then
1061 { echo "$as_me:1061: error: \`$ac_var' has changed since the previous run:" >&5
1062 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1063 { echo "$as_me:1063: former value: $ac_old_val" >&5
1064 echo "$as_me: former value: $ac_old_val" >&2;}
1065 { echo "$as_me:1065: current value: $ac_new_val" >&5
1066 echo "$as_me: current value: $ac_new_val" >&2;}
1067 ac_cache_corrupted=:
1068 fi;;
1069 esac
1070 # Pass precious variables to config.status. It doesn't matter if
1071 # we pass some twice (in addition to the command line arguments).
1072 if test "$ac_new_set" = set; then
1073 case "$ac_new_val" in
1074 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1075 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1076 ac_configure_args="$ac_configure_args '$ac_arg'"
1077 ;;
1078 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1079 ;;
1080 esac
1081 fi
1082 done
1083 if "$ac_cache_corrupted"; then
1084 { echo "$as_me:1084: error: changes in the environment can compromise the build" >&5
1085 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1086 { { echo "$as_me:1086: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1087 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1088 { (exit 1); exit 1; }; }
1089 fi
1090
1091 ac_ext=c
1092 ac_cpp='$CPP $CPPFLAGS'
1093 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
1094 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
1095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1096 ac_main_return="return"
1097
1098 case `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in
1099 *c*,-n*) ECHO_N=
1100 ECHO_C= # newlines do not sed ;-) only broken shells would use this case anyway
1101 ECHO_T=' '
1102 ;;
1103 *c*,* ) ECHO_N=-n
1104 ECHO_C=
1105 ECHO_T=
1106 ;;
1107 *) ECHO_N=
1108 ECHO_C='\c'
1109 ECHO_T=
1110 ;;
1111 esac
1112 echo "#! $SHELL" >conftest.sh
1113 echo "exit 0" >>conftest.sh
1114 chmod +x conftest.sh
1115 if { (echo "$as_me:1115: PATH=\".;.\"; conftest.sh") >&5
1116 (PATH=".;."; conftest.sh) 2>&5
1117 ac_status=$?
1118 echo "$as_me:1118: \$? = $ac_status" >&5
1119 (exit "$ac_status"); }; then
1120 ac_path_separator=';'
1121 else
1122 ac_path_separator=:
1123 fi
1124 PATH_SEPARATOR="$ac_path_separator"
1125 rm -f conftest.sh
1126
1127 ac_config_headers="$ac_config_headers xtermcfg.h:xtermcfg.hin"
1128
1129 ac_aux_dir=
1130 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1131 if test -f "$ac_dir/install-sh"; then
1132 ac_aux_dir=$ac_dir
1133 ac_install_sh="$ac_aux_dir/install-sh -c"
1134 break
1135 elif test -f "$ac_dir/install.sh"; then
1136 ac_aux_dir=$ac_dir
1137 ac_install_sh="$ac_aux_dir/install.sh -c"
1138 break
1139 elif test -f "$ac_dir/shtool"; then
1140 ac_aux_dir=$ac_dir
1141 ac_install_sh="$ac_aux_dir/shtool install -c"
1142 break
1143 fi
1144 done
1145 if test -z "$ac_aux_dir"; then
1146 { { echo "$as_me:1146: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1147 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1148 { (exit 1); exit 1; }; }
1149 fi
1150 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1151 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1152 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1153
1154 # Make sure we can run config.sub.
1155 $ac_config_sub sun4 >/dev/null 2>&1 ||
1156 { { echo "$as_me:1156: error: cannot run $ac_config_sub" >&5
1157 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1158 { (exit 1); exit 1; }; }
1159
1160 echo "$as_me:1160: checking build system type" >&5
1161 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1162 if test "${ac_cv_build+set}" = set; then
1163 echo $ECHO_N "(cached) $ECHO_C" >&6
1164 else
1165 ac_cv_build_alias=$build_alias
1166 test -z "$ac_cv_build_alias" &&
1167 ac_cv_build_alias=`$ac_config_guess`
1168 test -z "$ac_cv_build_alias" &&
1169 { { echo "$as_me:1169: error: cannot guess build type; you must specify one" >&5
1170 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1171 { (exit 1); exit 1; }; }
1172 ac_cv_build=`$ac_config_sub "$ac_cv_build_alias"` ||
1173 { { echo "$as_me:1173: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1174 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1175 { (exit 1); exit 1; }; }
1176
1177 fi
1178 echo "$as_me:1178: result: $ac_cv_build" >&5
1179 echo "${ECHO_T}$ac_cv_build" >&6
1180 build=$ac_cv_build
1181 build_cpu=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1182 build_vendor=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1183 build_os=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1184
1185 if test -f "$srcdir/config.guess" || test -f "$ac_aux_dir/config.guess" ; then
1186 echo "$as_me:1186: checking host system type" >&5
1187 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1188 if test "${ac_cv_host+set}" = set; then
1189 echo $ECHO_N "(cached) $ECHO_C" >&6
1190 else
1191 ac_cv_host_alias=$host_alias
1192 test -z "$ac_cv_host_alias" &&
1193 ac_cv_host_alias=$ac_cv_build_alias
1194 ac_cv_host=`$ac_config_sub "$ac_cv_host_alias"` ||
1195 { { echo "$as_me:1195: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1196 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1197 { (exit 1); exit 1; }; }
1198
1199 fi
1200 echo "$as_me:1200: result: $ac_cv_host" >&5
1201 echo "${ECHO_T}$ac_cv_host" >&6
1202 host=$ac_cv_host
1203 host_cpu=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1204 host_vendor=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1205 host_os=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1206
1207 system_name="$host_os"
1208 else
1209 system_name="`(uname -s -r) 2>/dev/null`"
1210 if test -z "$system_name" ; then
1211 system_name="`(hostname) 2>/dev/null`"
1212 fi
1213 fi
1214 test -n "$system_name" &&
1215 cat >>confdefs.h <<EOF
1216 #define SYSTEM_NAME "$system_name"
1217 EOF
1218
1219 if test "${cf_cv_system_name+set}" = set; then
1220 echo $ECHO_N "(cached) $ECHO_C" >&6
1221 else
1222 cf_cv_system_name="$system_name"
1223 fi
1224
1225 test -z "$system_name" && system_name="$cf_cv_system_name"
1226 test -n "$cf_cv_system_name" && echo "$as_me:1226: result: Configuring for $cf_cv_system_name" >&5
1227 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1228
1229 if test ".$system_name" != ".$cf_cv_system_name" ; then
1230 echo "$as_me:1230: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1231 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1232 { { echo "$as_me:1232: error: \"Please remove config.cache and try again.\"" >&5
1233 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1234 { (exit 1); exit 1; }; }
1235 fi
1236
1237 ### checks for alternative programs
1238
1239 case "$host_os" in
1240 (openedition) : "${CFLAGS=\"-O2 -Wc,dll -Wl,EDIT=NO\"}"
1241 : "${CPPFLAGS=\"-D_ALL_SOURCE\"}"
1242 : "${LIBS=\"/usr/lib/Xaw.x /usr/lib/SM.x /usr/lib/ICE.x /usr/lib/X11.x\"}"
1243 : "${CC=c89}";;
1244 (darwin*)
1245 : "${LDFLAGS}=\"${LDFLAGS} -Wl,-bind_at_load\"";;
1246 esac
1247
1248 ac_ext=c
1249 ac_cpp='$CPP $CPPFLAGS'
1250 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
1251 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
1252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1253 ac_main_return="return"
1254 if test -n "$ac_tool_prefix"; then
1255 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1256 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1257 echo "$as_me:1257: checking for $ac_word" >&5
1258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1259 if test "${ac_cv_prog_CC+set}" = set; then
1260 echo $ECHO_N "(cached) $ECHO_C" >&6
1261 else
1262 if test -n "$CC"; then
1263 ac_cv_prog_CC="$CC" # Let the user override the test.
1264 else
1265 ac_save_IFS=$IFS; IFS=$ac_path_separator
1266 ac_dummy="$PATH"
1267 for ac_dir in $ac_dummy; do
1268 IFS=$ac_save_IFS
1269 test -z "$ac_dir" && ac_dir=.
1270 $as_executable_p "$ac_dir/$ac_word" || continue
1271 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1272 echo "$as_me:1272: found $ac_dir/$ac_word" >&5
1273 break
1274 done
1275
1276 fi
1277 fi
1278 CC=$ac_cv_prog_CC
1279 if test -n "$CC"; then
1280 echo "$as_me:1280: result: $CC" >&5
1281 echo "${ECHO_T}$CC" >&6
1282 else
1283 echo "$as_me:1283: result: no" >&5
1284 echo "${ECHO_T}no" >&6
1285 fi
1286
1287 fi
1288 if test -z "$ac_cv_prog_CC"; then
1289 ac_ct_CC=$CC
1290 # Extract the first word of "gcc", so it can be a program name with args.
1291 set dummy gcc; ac_word=$2
1292 echo "$as_me:1292: checking for $ac_word" >&5
1293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1294 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1295 echo $ECHO_N "(cached) $ECHO_C" >&6
1296 else
1297 if test -n "$ac_ct_CC"; then
1298 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1299 else
1300 ac_save_IFS=$IFS; IFS=$ac_path_separator
1301 ac_dummy="$PATH"
1302 for ac_dir in $ac_dummy; do
1303 IFS=$ac_save_IFS
1304 test -z "$ac_dir" && ac_dir=.
1305 $as_executable_p "$ac_dir/$ac_word" || continue
1306 ac_cv_prog_ac_ct_CC="gcc"
1307 echo "$as_me:1307: found $ac_dir/$ac_word" >&5
1308 break
1309 done
1310
1311 fi
1312 fi
1313 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1314 if test -n "$ac_ct_CC"; then
1315 echo "$as_me:1315: result: $ac_ct_CC" >&5
1316 echo "${ECHO_T}$ac_ct_CC" >&6
1317 else
1318 echo "$as_me:1318: result: no" >&5
1319 echo "${ECHO_T}no" >&6
1320 fi
1321
1322 CC=$ac_ct_CC
1323 else
1324 CC="$ac_cv_prog_CC"
1325 fi
1326
1327 if test -z "$CC"; then
1328 if test -n "$ac_tool_prefix"; then
1329 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1330 set dummy ${ac_tool_prefix}cc; ac_word=$2
1331 echo "$as_me:1331: checking for $ac_word" >&5
1332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1333 if test "${ac_cv_prog_CC+set}" = set; then
1334 echo $ECHO_N "(cached) $ECHO_C" >&6
1335 else
1336 if test -n "$CC"; then
1337 ac_cv_prog_CC="$CC" # Let the user override the test.
1338 else
1339 ac_save_IFS=$IFS; IFS=$ac_path_separator
1340 ac_dummy="$PATH"
1341 for ac_dir in $ac_dummy; do
1342 IFS=$ac_save_IFS
1343 test -z "$ac_dir" && ac_dir=.
1344 $as_executable_p "$ac_dir/$ac_word" || continue
1345 ac_cv_prog_CC="${ac_tool_prefix}cc"
1346 echo "$as_me:1346: found $ac_dir/$ac_word" >&5
1347 break
1348 done
1349
1350 fi
1351 fi
1352 CC=$ac_cv_prog_CC
1353 if test -n "$CC"; then
1354 echo "$as_me:1354: result: $CC" >&5
1355 echo "${ECHO_T}$CC" >&6
1356 else
1357 echo "$as_me:1357: result: no" >&5
1358 echo "${ECHO_T}no" >&6
1359 fi
1360
1361 fi
1362 if test -z "$ac_cv_prog_CC"; then
1363 ac_ct_CC=$CC
1364 # Extract the first word of "cc", so it can be a program name with args.
1365 set dummy cc; ac_word=$2
1366 echo "$as_me:1366: checking for $ac_word" >&5
1367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1368 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1369 echo $ECHO_N "(cached) $ECHO_C" >&6
1370 else
1371 if test -n "$ac_ct_CC"; then
1372 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1373 else
1374 ac_save_IFS=$IFS; IFS=$ac_path_separator
1375 ac_dummy="$PATH"
1376 for ac_dir in $ac_dummy; do
1377 IFS=$ac_save_IFS
1378 test -z "$ac_dir" && ac_dir=.
1379 $as_executable_p "$ac_dir/$ac_word" || continue
1380 ac_cv_prog_ac_ct_CC="cc"
1381 echo "$as_me:1381: found $ac_dir/$ac_word" >&5
1382 break
1383 done
1384
1385 fi
1386 fi
1387 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1388 if test -n "$ac_ct_CC"; then
1389 echo "$as_me:1389: result: $ac_ct_CC" >&5
1390 echo "${ECHO_T}$ac_ct_CC" >&6
1391 else
1392 echo "$as_me:1392: result: no" >&5
1393 echo "${ECHO_T}no" >&6
1394 fi
1395
1396 CC=$ac_ct_CC
1397 else
1398 CC="$ac_cv_prog_CC"
1399 fi
1400
1401 fi
1402 if test -z "$CC"; then
1403 # Extract the first word of "cc", so it can be a program name with args.
1404 set dummy cc; ac_word=$2
1405 echo "$as_me:1405: checking for $ac_word" >&5
1406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1407 if test "${ac_cv_prog_CC+set}" = set; then
1408 echo $ECHO_N "(cached) $ECHO_C" >&6
1409 else
1410 if test -n "$CC"; then
1411 ac_cv_prog_CC="$CC" # Let the user override the test.
1412 else
1413 ac_prog_rejected=no
1414 ac_save_IFS=$IFS; IFS=$ac_path_separator
1415 ac_dummy="$PATH"
1416 for ac_dir in $ac_dummy; do
1417 IFS=$ac_save_IFS
1418 test -z "$ac_dir" && ac_dir=.
1419 $as_executable_p "$ac_dir/$ac_word" || continue
1420 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1421 ac_prog_rejected=yes
1422 continue
1423 fi
1424 ac_cv_prog_CC="cc"
1425 echo "$as_me:1425: found $ac_dir/$ac_word" >&5
1426 break
1427 done
1428
1429 if test "$ac_prog_rejected" = yes; then
1430 # We found a bogon in the path, so make sure we never use it.
1431 set dummy $ac_cv_prog_CC
1432 shift
1433 if test $# != 0; then
1434 # We chose a different compiler from the bogus one.
1435 # However, it has the same basename, so the bogon will be chosen
1436 # first if we set CC to just the basename; use the full file name.
1437 shift
1438 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1439 shift
1440 ac_cv_prog_CC="$@"
1441 fi
1442 fi
1443 fi
1444 fi
1445 CC=$ac_cv_prog_CC
1446 if test -n "$CC"; then
1447 echo "$as_me:1447: result: $CC" >&5
1448 echo "${ECHO_T}$CC" >&6
1449 else
1450 echo "$as_me:1450: result: no" >&5
1451 echo "${ECHO_T}no" >&6
1452 fi
1453
1454 fi
1455 if test -z "$CC"; then
1456 if test -n "$ac_tool_prefix"; then
1457 for ac_prog in cl
1458 do
1459 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1460 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1461 echo "$as_me:1461: checking for $ac_word" >&5
1462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1463 if test "${ac_cv_prog_CC+set}" = set; then
1464 echo $ECHO_N "(cached) $ECHO_C" >&6
1465 else
1466 if test -n "$CC"; then
1467 ac_cv_prog_CC="$CC" # Let the user override the test.
1468 else
1469 ac_save_IFS=$IFS; IFS=$ac_path_separator
1470 ac_dummy="$PATH"
1471 for ac_dir in $ac_dummy; do
1472 IFS=$ac_save_IFS
1473 test -z "$ac_dir" && ac_dir=.
1474 $as_executable_p "$ac_dir/$ac_word" || continue
1475 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1476 echo "$as_me:1476: found $ac_dir/$ac_word" >&5
1477 break
1478 done
1479
1480 fi
1481 fi
1482 CC=$ac_cv_prog_CC
1483 if test -n "$CC"; then
1484 echo "$as_me:1484: result: $CC" >&5
1485 echo "${ECHO_T}$CC" >&6
1486 else
1487 echo "$as_me:1487: result: no" >&5
1488 echo "${ECHO_T}no" >&6
1489 fi
1490
1491 test -n "$CC" && break
1492 done
1493 fi
1494 if test -z "$CC"; then
1495 ac_ct_CC=$CC
1496 for ac_prog in cl
1497 do
1498 # Extract the first word of "$ac_prog", so it can be a program name with args.
1499 set dummy $ac_prog; ac_word=$2
1500 echo "$as_me:1500: checking for $ac_word" >&5
1501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1502 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1503 echo $ECHO_N "(cached) $ECHO_C" >&6
1504 else
1505 if test -n "$ac_ct_CC"; then
1506 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1507 else
1508 ac_save_IFS=$IFS; IFS=$ac_path_separator
1509 ac_dummy="$PATH"
1510 for ac_dir in $ac_dummy; do
1511 IFS=$ac_save_IFS
1512 test -z "$ac_dir" && ac_dir=.
1513 $as_executable_p "$ac_dir/$ac_word" || continue
1514 ac_cv_prog_ac_ct_CC="$ac_prog"
1515 echo "$as_me:1515: found $ac_dir/$ac_word" >&5
1516 break
1517 done
1518
1519 fi
1520 fi
1521 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1522 if test -n "$ac_ct_CC"; then
1523 echo "$as_me:1523: result: $ac_ct_CC" >&5
1524 echo "${ECHO_T}$ac_ct_CC" >&6
1525 else
1526 echo "$as_me:1526: result: no" >&5
1527 echo "${ECHO_T}no" >&6
1528 fi
1529
1530 test -n "$ac_ct_CC" && break
1531 done
1532
1533 CC=$ac_ct_CC
1534 fi
1535
1536 fi
1537
1538 test -z "$CC" && { { echo "$as_me:1538: error: no acceptable cc found in \$PATH" >&5
1539 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1540 { (exit 1); exit 1; }; }
1541
1542 # Provide some information about the compiler.
1543 echo "$as_me:1543:" \
1544 "checking for C compiler version" >&5
1545 ac_compiler=`set X $ac_compile; echo "$2"`
1546 { (eval echo "$as_me:1546: \"$ac_compiler --version </dev/null >&5\"") >&5
1547 (eval $ac_compiler --version </dev/null >&5) 2>&5
1548 ac_status=$?
1549 echo "$as_me:1549: \$? = $ac_status" >&5
1550 (exit "$ac_status"); }
1551 { (eval echo "$as_me:1551: \"$ac_compiler -v </dev/null >&5\"") >&5
1552 (eval $ac_compiler -v </dev/null >&5) 2>&5
1553 ac_status=$?
1554 echo "$as_me:1554: \$? = $ac_status" >&5
1555 (exit "$ac_status"); }
1556 { (eval echo "$as_me:1556: \"$ac_compiler -V </dev/null >&5\"") >&5
1557 (eval $ac_compiler -V </dev/null >&5) 2>&5
1558 ac_status=$?
1559 echo "$as_me:1559: \$? = $ac_status" >&5
1560 (exit "$ac_status"); }
1561
1562 cat >"conftest.$ac_ext" <<_ACEOF
1563 #line 1563 "configure"
1564 #include "confdefs.h"
1565
1566 int
1567 main (void)
1568 {
1569
1570 ;
1571 return 0;
1572 }
1573 _ACEOF
1574 ac_clean_files_save=$ac_clean_files
1575 ac_clean_files="$ac_clean_files a.out a.exe"
1576 # Try to create an executable without -o first, disregard a.out.
1577 # It will help us diagnose broken compilers, and finding out an intuition
1578 # of exeext.
1579 echo "$as_me:1579: checking for C compiler default output" >&5
1580 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1581 ac_link_default=`echo "$ac_link" | sed 's/ -o *"conftest[^"]*"//'`
1582 if { (eval echo "$as_me:1582: \"$ac_link_default\"") >&5
1583 (eval $ac_link_default) 2>&5
1584 ac_status=$?
1585 echo "$as_me:1585: \$? = $ac_status" >&5
1586 (exit "$ac_status"); }; then
1587 # Find the output, starting from the most likely. This scheme is
1588 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1589 # resort.
1590 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1591 ls a.out conftest 2>/dev/null;
1592 ls a.* conftest.* 2>/dev/null`; do
1593 case $ac_file in
1594 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1595 a.out ) # We found the default executable, but exeext='' is most
1596 # certainly right.
1597 break;;
1598 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1599 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1600 export ac_cv_exeext
1601 break;;
1602 * ) break;;
1603 esac
1604 done
1605 else
1606 echo "$as_me: failed program was:" >&5
1607 cat "conftest.$ac_ext" >&5
1608 { { echo "$as_me:1608: error: C compiler cannot create executables" >&5
1609 echo "$as_me: error: C compiler cannot create executables" >&2;}
1610 { (exit 77); exit 77; }; }
1611 fi
1612
1613 ac_exeext=$ac_cv_exeext
1614 echo "$as_me:1614: result: $ac_file" >&5
1615 echo "${ECHO_T}$ac_file" >&6
1616
1617 # Check the compiler produces executables we can run. If not, either
1618 # the compiler is broken, or we cross compile.
1619 echo "$as_me:1619: checking whether the C compiler works" >&5
1620 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1621 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1622 # If not cross compiling, check that we can run a simple program.
1623 if test "$cross_compiling" != yes; then
1624 if { ac_try='./$ac_file'
1625 { (eval echo "$as_me:1625: \"$ac_try\"") >&5
1626 (eval $ac_try) 2>&5
1627 ac_status=$?
1628 echo "$as_me:1628: \$? = $ac_status" >&5
1629 (exit "$ac_status"); }; }; then
1630 cross_compiling=no
1631 else
1632 if test "$cross_compiling" = maybe; then
1633 cross_compiling=yes
1634 else
1635 { { echo "$as_me:1635: error: cannot run C compiled programs.
1636 If you meant to cross compile, use \`--host'." >&5
1637 echo "$as_me: error: cannot run C compiled programs.
1638 If you meant to cross compile, use \`--host'." >&2;}
1639 { (exit 1); exit 1; }; }
1640 fi
1641 fi
1642 fi
1643 echo "$as_me:1643: result: yes" >&5
1644 echo "${ECHO_T}yes" >&6
1645
1646 rm -f a.out a.exe "conftest$ac_cv_exeext"
1647 ac_clean_files=$ac_clean_files_save
1648 # Check the compiler produces executables we can run. If not, either
1649 # the compiler is broken, or we cross compile.
1650 echo "$as_me:1650: checking whether we are cross compiling" >&5
1651 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1652 echo "$as_me:1652: result: $cross_compiling" >&5
1653 echo "${ECHO_T}$cross_compiling" >&6
1654
1655 echo "$as_me:1655: checking for executable suffix" >&5
1656 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1657 if { (eval echo "$as_me:1657: \"$ac_link\"") >&5
1658 (eval $ac_link) 2>&5
1659 ac_status=$?
1660 echo "$as_me:1660: \$? = $ac_status" >&5
1661 (exit "$ac_status"); }; then
1662 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1663 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1664 # work properly (i.e., refer to `conftest.exe'), while it won't with
1665 # `rm'.
1666 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1667 case $ac_file in
1668 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1669 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1670 export ac_cv_exeext
1671 break;;
1672 * ) break;;
1673 esac
1674 done
1675 else
1676 { { echo "$as_me:1676: error: cannot compute EXEEXT: cannot compile and link" >&5
1677 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1678 { (exit 1); exit 1; }; }
1679 fi
1680
1681 rm -f "conftest$ac_cv_exeext"
1682 echo "$as_me:1682: result: $ac_cv_exeext" >&5
1683 echo "${ECHO_T}$ac_cv_exeext" >&6
1684
1685 rm -f "conftest.$ac_ext"
1686 EXEEXT=$ac_cv_exeext
1687 ac_exeext=$EXEEXT
1688 echo "$as_me:1688: checking for object suffix" >&5
1689 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1690 if test "${ac_cv_objext+set}" = set; then
1691 echo $ECHO_N "(cached) $ECHO_C" >&6
1692 else
1693 cat >"conftest.$ac_ext" <<_ACEOF
1694 #line 1694 "configure"
1695 #include "confdefs.h"
1696
1697 int
1698 main (void)
1699 {
1700
1701 ;
1702 return 0;
1703 }
1704 _ACEOF
1705 rm -f conftest.o conftest.obj
1706 if { (eval echo "$as_me:1706: \"$ac_compile\"") >&5
1707 (eval $ac_compile) 2>&5
1708 ac_status=$?
1709 echo "$as_me:1709: \$? = $ac_status" >&5
1710 (exit "$ac_status"); }; then
1711 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1712 case $ac_file in
1713 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1714 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1715 break;;
1716 esac
1717 done
1718 else
1719 echo "$as_me: failed program was:" >&5
1720 cat "conftest.$ac_ext" >&5
1721 { { echo "$as_me:1721: error: cannot compute OBJEXT: cannot compile" >&5
1722 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1723 { (exit 1); exit 1; }; }
1724 fi
1725
1726 rm -f "conftest.$ac_cv_objext" "conftest.$ac_ext"
1727 fi
1728 echo "$as_me:1728: result: $ac_cv_objext" >&5
1729 echo "${ECHO_T}$ac_cv_objext" >&6
1730 OBJEXT=$ac_cv_objext
1731 ac_objext=$OBJEXT
1732 echo "$as_me:1732: checking whether we are using the GNU C compiler" >&5
1733 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1734 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1735 echo $ECHO_N "(cached) $ECHO_C" >&6
1736 else
1737 cat >"conftest.$ac_ext" <<_ACEOF
1738 #line 1738 "configure"
1739 #include "confdefs.h"
1740
1741 int
1742 main (void)
1743 {
1744 #ifndef __GNUC__
1745 choke me
1746 #endif
1747
1748 ;
1749 return 0;
1750 }
1751 _ACEOF
1752 rm -f "conftest.$ac_objext"
1753 if { (eval echo "$as_me:1753: \"$ac_compile\"") >&5
1754 (eval $ac_compile) 2>&5
1755 ac_status=$?
1756 echo "$as_me:1756: \$? = $ac_status" >&5
1757 (exit "$ac_status"); } &&
1758 { ac_try='test -s "conftest.$ac_objext"'
1759 { (eval echo "$as_me:1759: \"$ac_try\"") >&5
1760 (eval $ac_try) 2>&5
1761 ac_status=$?
1762 echo "$as_me:1762: \$? = $ac_status" >&5
1763 (exit "$ac_status"); }; }; then
1764 ac_compiler_gnu=yes
1765 else
1766 echo "$as_me: failed program was:" >&5
1767 cat "conftest.$ac_ext" >&5
1768 ac_compiler_gnu=no
1769 fi
1770 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
1771 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1772
1773 fi
1774 echo "$as_me:1774: result: $ac_cv_c_compiler_gnu" >&5
1775 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1776 GCC=`test $ac_compiler_gnu = yes && echo yes`
1777 ac_test_CFLAGS=${CFLAGS+set}
1778 ac_save_CFLAGS=$CFLAGS
1779 CFLAGS="-g"
1780 echo "$as_me:1780: checking whether $CC accepts -g" >&5
1781 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1782 if test "${ac_cv_prog_cc_g+set}" = set; then
1783 echo $ECHO_N "(cached) $ECHO_C" >&6
1784 else
1785 cat >"conftest.$ac_ext" <<_ACEOF
1786 #line 1786 "configure"
1787 #include "confdefs.h"
1788
1789 int
1790 main (void)
1791 {
1792
1793 ;
1794 return 0;
1795 }
1796 _ACEOF
1797 rm -f "conftest.$ac_objext"
1798 if { (eval echo "$as_me:1798: \"$ac_compile\"") >&5
1799 (eval $ac_compile) 2>&5
1800 ac_status=$?
1801 echo "$as_me:1801: \$? = $ac_status" >&5
1802 (exit "$ac_status"); } &&
1803 { ac_try='test -s "conftest.$ac_objext"'
1804 { (eval echo "$as_me:1804: \"$ac_try\"") >&5
1805 (eval $ac_try) 2>&5
1806 ac_status=$?
1807 echo "$as_me:1807: \$? = $ac_status" >&5
1808 (exit "$ac_status"); }; }; then
1809 ac_cv_prog_cc_g=yes
1810 else
1811 echo "$as_me: failed program was:" >&5
1812 cat "conftest.$ac_ext" >&5
1813 ac_cv_prog_cc_g=no
1814 fi
1815 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
1816 fi
1817 echo "$as_me:1817: result: $ac_cv_prog_cc_g" >&5
1818 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1819 if test "$ac_test_CFLAGS" = set; then
1820 CFLAGS=$ac_save_CFLAGS
1821 elif test $ac_cv_prog_cc_g = yes; then
1822 if test "$GCC" = yes; then
1823 CFLAGS="-g -O2"
1824 else
1825 CFLAGS="-g"
1826 fi
1827 else
1828 if test "$GCC" = yes; then
1829 CFLAGS="-O2"
1830 else
1831 CFLAGS=
1832 fi
1833 fi
1834 # Some people use a C++ compiler to compile C. Since we use `exit',
1835 # in C++ we need to declare it. In case someone uses the same compiler
1836 # for both compiling C and C++ we need to have the C++ compiler decide
1837 # the declaration of exit, since it's the most demanding environment.
1838 cat >"conftest.$ac_ext" <<_ACEOF
1839 #ifndef __cplusplus
1840 choke me
1841 #endif
1842 _ACEOF
1843 rm -f "conftest.$ac_objext"
1844 if { (eval echo "$as_me:1844: \"$ac_compile\"") >&5
1845 (eval $ac_compile) 2>&5
1846 ac_status=$?
1847 echo "$as_me:1847: \$? = $ac_status" >&5
1848 (exit "$ac_status"); } &&
1849 { ac_try='test -s "conftest.$ac_objext"'
1850 { (eval echo "$as_me:1850: \"$ac_try\"") >&5
1851 (eval $ac_try) 2>&5
1852 ac_status=$?
1853 echo "$as_me:1853: \$? = $ac_status" >&5
1854 (exit "$ac_status"); }; }; then
1855 for ac_declaration in \
1856 ''\
1857 '#include <stdlib.h>' \
1858 'extern "C" void std::exit (int) throw (); using std::exit;' \
1859 'extern "C" void std::exit (int); using std::exit;' \
1860 'extern "C" void exit (int) throw ();' \
1861 'extern "C" void exit (int);' \
1862 'void exit (int);'
1863 do
1864 cat >"conftest.$ac_ext" <<_ACEOF
1865 #line 1865 "configure"
1866 #include "confdefs.h"
1867 #include <stdlib.h>
1868 $ac_declaration
1869 int
1870 main (void)
1871 {
1872 exit (42);
1873 ;
1874 return 0;
1875 }
1876 _ACEOF
1877 rm -f "conftest.$ac_objext"
1878 if { (eval echo "$as_me:1878: \"$ac_compile\"") >&5
1879 (eval $ac_compile) 2>&5
1880 ac_status=$?
1881 echo "$as_me:1881: \$? = $ac_status" >&5
1882 (exit "$ac_status"); } &&
1883 { ac_try='test -s "conftest.$ac_objext"'
1884 { (eval echo "$as_me:1884: \"$ac_try\"") >&5
1885 (eval $ac_try) 2>&5
1886 ac_status=$?
1887 echo "$as_me:1887: \$? = $ac_status" >&5
1888 (exit "$ac_status"); }; }; then
1889 :
1890 else
1891 echo "$as_me: failed program was:" >&5
1892 cat "conftest.$ac_ext" >&5
1893 continue
1894 fi
1895 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
1896 cat >"conftest.$ac_ext" <<_ACEOF
1897 #line 1897 "configure"
1898 #include "confdefs.h"
1899 $ac_declaration
1900 int
1901 main (void)
1902 {
1903 exit (42);
1904 ;
1905 return 0;
1906 }
1907 _ACEOF
1908 rm -f "conftest.$ac_objext"
1909 if { (eval echo "$as_me:1909: \"$ac_compile\"") >&5
1910 (eval $ac_compile) 2>&5
1911 ac_status=$?
1912 echo "$as_me:1912: \$? = $ac_status" >&5
1913 (exit "$ac_status"); } &&
1914 { ac_try='test -s "conftest.$ac_objext"'
1915 { (eval echo "$as_me:1915: \"$ac_try\"") >&5
1916 (eval $ac_try) 2>&5
1917 ac_status=$?
1918 echo "$as_me:1918: \$? = $ac_status" >&5
1919 (exit "$ac_status"); }; }; then
1920 break
1921 else
1922 echo "$as_me: failed program was:" >&5
1923 cat "conftest.$ac_ext" >&5
1924 fi
1925 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
1926 done
1927 rm -rf conftest*
1928 if test -n "$ac_declaration"; then
1929 echo '#ifdef __cplusplus' >>confdefs.h
1930 echo "$ac_declaration" >>confdefs.h
1931 echo '#endif' >>confdefs.h
1932 fi
1933
1934 else
1935 echo "$as_me: failed program was:" >&5
1936 cat "conftest.$ac_ext" >&5
1937 fi
1938 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
1939 ac_ext=c
1940 ac_cpp='$CPP $CPPFLAGS'
1941 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
1942 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
1943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1944 ac_main_return="return"
1945
1946 GCC_VERSION=none
1947 if test "$GCC" = yes ; then
1948 echo "$as_me:1948: checking version of $CC" >&5
1949 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
1950 GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC[^)]*) //' -e 's/^.*(Debian[^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
1951 test -z "$GCC_VERSION" && GCC_VERSION=unknown
1952 echo "$as_me:1952: result: $GCC_VERSION" >&5
1953 echo "${ECHO_T}$GCC_VERSION" >&6
1954 fi
1955
1956 INTEL_COMPILER=no
1957
1958 if test "$GCC" = yes ; then
1959 case "$host_os" in
1960 (linux*|gnu*)
1961 echo "$as_me:1961: checking if this is really Intel C compiler" >&5
1962 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
1963 cf_save_CFLAGS="$CFLAGS"
1964 CFLAGS="$CFLAGS -no-gcc"
1965 cat >"conftest.$ac_ext" <<_ACEOF
1966 #line 1966 "configure"
1967 #include "confdefs.h"
1968
1969 int
1970 main (void)
1971 {
1972
1973 #ifdef __INTEL_COMPILER
1974 #else
1975 make an error
1976 #endif
1977
1978 ;
1979 return 0;
1980 }
1981 _ACEOF
1982 rm -f "conftest.$ac_objext"
1983 if { (eval echo "$as_me:1983: \"$ac_compile\"") >&5
1984 (eval $ac_compile) 2>&5
1985 ac_status=$?
1986 echo "$as_me:1986: \$? = $ac_status" >&5
1987 (exit "$ac_status"); } &&
1988 { ac_try='test -s "conftest.$ac_objext"'
1989 { (eval echo "$as_me:1989: \"$ac_try\"") >&5
1990 (eval $ac_try) 2>&5
1991 ac_status=$?
1992 echo "$as_me:1992: \$? = $ac_status" >&5
1993 (exit "$ac_status"); }; }; then
1994 INTEL_COMPILER=yes
1995 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
1996
1997 else
1998 echo "$as_me: failed program was:" >&5
1999 cat "conftest.$ac_ext" >&5
2000 fi
2001 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2002 CFLAGS="$cf_save_CFLAGS"
2003 echo "$as_me:2003: result: $INTEL_COMPILER" >&5
2004 echo "${ECHO_T}$INTEL_COMPILER" >&6
2005 ;;
2006 esac
2007 fi
2008
2009 CLANG_COMPILER=no
2010
2011 if test "$GCC" = yes ; then
2012 echo "$as_me:2012: checking if this is really Clang C compiler" >&5
2013 echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6
2014 cf_save_CFLAGS="$CFLAGS"
2015 cat >"conftest.$ac_ext" <<_ACEOF
2016 #line 2016 "configure"
2017 #include "confdefs.h"
2018
2019 int
2020 main (void)
2021 {
2022
2023 #ifdef __clang__
2024 #else
2025 make an error
2026 #endif
2027
2028 ;
2029 return 0;
2030 }
2031 _ACEOF
2032 rm -f "conftest.$ac_objext"
2033 if { (eval echo "$as_me:2033: \"$ac_compile\"") >&5
2034 (eval $ac_compile) 2>&5
2035 ac_status=$?
2036 echo "$as_me:2036: \$? = $ac_status" >&5
2037 (exit "$ac_status"); } &&
2038 { ac_try='test -s "conftest.$ac_objext"'
2039 { (eval echo "$as_me:2039: \"$ac_try\"") >&5
2040 (eval $ac_try) 2>&5
2041 ac_status=$?
2042 echo "$as_me:2042: \$? = $ac_status" >&5
2043 (exit "$ac_status"); }; }; then
2044 CLANG_COMPILER=yes
2045
2046 else
2047 echo "$as_me: failed program was:" >&5
2048 cat "conftest.$ac_ext" >&5
2049 fi
2050 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2051 CFLAGS="$cf_save_CFLAGS"
2052 echo "$as_me:2052: result: $CLANG_COMPILER" >&5
2053 echo "${ECHO_T}$CLANG_COMPILER" >&6
2054 fi
2055
2056 CLANG_VERSION=none
2057
2058 if test "x$CLANG_COMPILER" = "xyes" ; then
2059 case "$CC" in
2060 (c[1-9][0-9]|*/c[1-9][0-9])
2061 { echo "$as_me:2061: WARNING: replacing broken compiler alias $CC" >&5
2062 echo "$as_me: WARNING: replacing broken compiler alias $CC" >&2;}
2063 CFLAGS="$CFLAGS -std=`echo "$CC" | sed -e 's%.*/%%'`"
2064 CC=clang
2065 ;;
2066 esac
2067
2068 echo "$as_me:2068: checking version of $CC" >&5
2069 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2070 CLANG_VERSION="`$CC --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(CLANG[^)]*) //' -e 's/^.*(Debian[^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
2071 test -z "$CLANG_VERSION" && CLANG_VERSION=unknown
2072 echo "$as_me:2072: result: $CLANG_VERSION" >&5
2073 echo "${ECHO_T}$CLANG_VERSION" >&6
2074
2075 for cf_clang_opt in \
2076 -Qunused-arguments \
2077 -Wno-error=implicit-function-declaration
2078 do
2079 echo "$as_me:2079: checking if option $cf_clang_opt works" >&5
2080 echo $ECHO_N "checking if option $cf_clang_opt works... $ECHO_C" >&6
2081 cf_save_CFLAGS="$CFLAGS"
2082 CFLAGS="$CFLAGS $cf_clang_opt"
2083 cat >"conftest.$ac_ext" <<_ACEOF
2084 #line 2084 "configure"
2085 #include "confdefs.h"
2086
2087 #include <stdio.h>
2088 int
2089 main (void)
2090 {
2091
2092 printf("hello!\\n");
2093 ;
2094 return 0;
2095 }
2096 _ACEOF
2097 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
2098 if { (eval echo "$as_me:2098: \"$ac_link\"") >&5
2099 (eval $ac_link) 2>&5
2100 ac_status=$?
2101 echo "$as_me:2101: \$? = $ac_status" >&5
2102 (exit "$ac_status"); } &&
2103 { ac_try='test -s "conftest$ac_exeext"'
2104 { (eval echo "$as_me:2104: \"$ac_try\"") >&5
2105 (eval $ac_try) 2>&5
2106 ac_status=$?
2107 echo "$as_me:2107: \$? = $ac_status" >&5
2108 (exit "$ac_status"); }; }; then
2109
2110 cf_clang_optok=yes
2111 else
2112 echo "$as_me: failed program was:" >&5
2113 cat "conftest.$ac_ext" >&5
2114
2115 cf_clang_optok=no
2116 fi
2117 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
2118 echo "$as_me:2118: result: $cf_clang_optok" >&5
2119 echo "${ECHO_T}$cf_clang_optok" >&6
2120 CFLAGS="$cf_save_CFLAGS"
2121 if test "$cf_clang_optok" = yes; then
2122 test -n "$verbose" && echo " adding option $cf_clang_opt" 1>&6
2123
2124 echo "${as_me:-configure}:2124: testing adding option $cf_clang_opt ..." 1>&5
2125
2126 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2127 CFLAGS="${CFLAGS}$cf_clang_opt"
2128
2129 fi
2130 done
2131 fi
2132
2133 echo "$as_me:2133: checking for $CC option to accept ANSI C" >&5
2134 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2135 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2136 echo $ECHO_N "(cached) $ECHO_C" >&6
2137 else
2138 ac_cv_prog_cc_stdc=no
2139 ac_save_CC=$CC
2140 cat >"conftest.$ac_ext" <<_ACEOF
2141 #line 2141 "configure"
2142 #include "confdefs.h"
2143 #include <stdarg.h>
2144 #include <stdio.h>
2145 #include <sys/types.h>
2146 #include <sys/stat.h>
2147 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2148 struct buf { int x; };
2149 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2150 static char *e (p, i)
2151 char **p;
2152 int i;
2153 {
2154 return p[i];
2155 }
2156 static char *f (char * (*g) (char **, int), char **p, ...)
2157 {
2158 char *s;
2159 va_list v;
2160 va_start (v,p);
2161 s = g (p, va_arg (v,int));
2162 va_end (v);
2163 return s;
2164 }
2165 int test (int i, double x);
2166 struct s1 {int (*f) (int a);};
2167 struct s2 {int (*f) (double a);};
2168 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2169 int argc;
2170 char **argv;
2171 int
2172 main (void)
2173 {
2174 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2175 ;
2176 return 0;
2177 }
2178 _ACEOF
2179 # Don't try gcc -ansi; that turns off useful extensions and
2180 # breaks some systems' header files.
2181 # AIX -qlanglvl=ansi
2182 # Ultrix and OSF/1 -std1
2183 # HP-UX 10.20 and later -Ae
2184 # HP-UX older versions -Aa -D_HPUX_SOURCE
2185 # SVR4 -Xc -D__EXTENSIONS__
2186 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2187 do
2188 CC="$ac_save_CC $ac_arg"
2189 rm -f "conftest.$ac_objext"
2190 if { (eval echo "$as_me:2190: \"$ac_compile\"") >&5
2191 (eval $ac_compile) 2>&5
2192 ac_status=$?
2193 echo "$as_me:2193: \$? = $ac_status" >&5
2194 (exit "$ac_status"); } &&
2195 { ac_try='test -s "conftest.$ac_objext"'
2196 { (eval echo "$as_me:2196: \"$ac_try\"") >&5
2197 (eval $ac_try) 2>&5
2198 ac_status=$?
2199 echo "$as_me:2199: \$? = $ac_status" >&5
2200 (exit "$ac_status"); }; }; then
2201 ac_cv_prog_cc_stdc=$ac_arg
2202 break
2203 else
2204 echo "$as_me: failed program was:" >&5
2205 cat "conftest.$ac_ext" >&5
2206 fi
2207 rm -f "conftest.$ac_objext"
2208 done
2209 rm -f "conftest.$ac_ext" "conftest.$ac_objext"
2210 CC=$ac_save_CC
2211
2212 fi
2213
2214 case "x$ac_cv_prog_cc_stdc" in
2215 x|xno)
2216 echo "$as_me:2216: result: none needed" >&5
2217 echo "${ECHO_T}none needed" >&6 ;;
2218 *)
2219 echo "$as_me:2219: result: $ac_cv_prog_cc_stdc" >&5
2220 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2221 CC="$CC $ac_cv_prog_cc_stdc" ;;
2222 esac
2223
2224 # This should have been defined by AC_PROG_CC
2225 : "${CC:=cc}"
2226
2227 echo "$as_me:2227: checking \$CFLAGS variable" >&5
2228 echo $ECHO_N "checking \$CFLAGS variable... $ECHO_C" >&6
2229 case "x$CFLAGS" in
2230 (*-[IUD]*)
2231 echo "$as_me:2231: result: broken" >&5
2232 echo "${ECHO_T}broken" >&6
2233 { echo "$as_me:2233: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&5
2234 echo "$as_me: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&2;}
2235 cf_flags="$CFLAGS"
2236 CFLAGS=
2237 for cf_arg in $cf_flags
2238 do
2239
2240 cf_fix_cppflags=no
2241 cf_new_cflags=
2242 cf_new_cppflags=
2243 cf_new_extra_cppflags=
2244
2245 for cf_add_cflags in $cf_arg
2246 do
2247 case "$cf_fix_cppflags" in
2248 (no)
2249 case "$cf_add_cflags" in
2250 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2251 case "$cf_add_cflags" in
2252 (-D*)
2253 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2254
2255 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2256 && test -z "${cf_tst_cflags}" \
2257 && cf_fix_cppflags=yes
2258
2259 if test "$cf_fix_cppflags" = yes ; then
2260
2261 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2262 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2263
2264 continue
2265 elif test "${cf_tst_cflags}" = "\"'" ; then
2266
2267 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2268 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2269
2270 continue
2271 fi
2272 ;;
2273 esac
2274 case "$CPPFLAGS" in
2275 (*$cf_add_cflags)
2276 ;;
2277 (*)
2278 case "$cf_add_cflags" in
2279 (-D*)
2280 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2281
2282 CPPFLAGS=`echo "$CPPFLAGS" | \
2283 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2284 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2285
2286 ;;
2287 esac
2288
2289 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2290 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2291
2292 ;;
2293 esac
2294 ;;
2295 (*)
2296
2297 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2298 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2299
2300 ;;
2301 esac
2302 ;;
2303 (yes)
2304
2305 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2306 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2307
2308 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
2309
2310 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2311 && test -z "${cf_tst_cflags}" \
2312 && cf_fix_cppflags=no
2313 ;;
2314 esac
2315 done
2316
2317 if test -n "$cf_new_cflags" ; then
2318
2319 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2320 CFLAGS="${CFLAGS}$cf_new_cflags"
2321
2322 fi
2323
2324 if test -n "$cf_new_cppflags" ; then
2325
2326 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2327 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2328
2329 fi
2330
2331 if test -n "$cf_new_extra_cppflags" ; then
2332
2333 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2334 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2335
2336 fi
2337
2338 done
2339 ;;
2340 (*)
2341 echo "$as_me:2341: result: ok" >&5
2342 echo "${ECHO_T}ok" >&6
2343 ;;
2344 esac
2345
2346 echo "$as_me:2346: checking \$CC variable" >&5
2347 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2348 case "$CC" in
2349 (*[\ \ ]-*)
2350 echo "$as_me:2350: result: broken" >&5
2351 echo "${ECHO_T}broken" >&6
2352 { echo "$as_me:2352: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2353 echo "$as_me: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2354 # humor him...
2355 cf_prog=`echo "$CC" | sed -e 's/ / /g' -e 's/[ ]* / /g' -e 's/[ ]*[ ]-[^ ].*//'`
2356 cf_flags=`echo "$CC" | ${AWK:-awk} -v prog="$cf_prog" '{ printf("%s", substr($0,1+length(prog))); }'`
2357 CC="$cf_prog"
2358 for cf_arg in $cf_flags
2359 do
2360 case "x$cf_arg" in
2361 (x-[IUDfgOW]*)
2362
2363 cf_fix_cppflags=no
2364 cf_new_cflags=
2365 cf_new_cppflags=
2366 cf_new_extra_cppflags=
2367
2368 for cf_add_cflags in $cf_arg
2369 do
2370 case "$cf_fix_cppflags" in
2371 (no)
2372 case "$cf_add_cflags" in
2373 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2374 case "$cf_add_cflags" in
2375 (-D*)
2376 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2377
2378 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2379 && test -z "${cf_tst_cflags}" \
2380 && cf_fix_cppflags=yes
2381
2382 if test "$cf_fix_cppflags" = yes ; then
2383
2384 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2385 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2386
2387 continue
2388 elif test "${cf_tst_cflags}" = "\"'" ; then
2389
2390 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2391 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2392
2393 continue
2394 fi
2395 ;;
2396 esac
2397 case "$CPPFLAGS" in
2398 (*$cf_add_cflags)
2399 ;;
2400 (*)
2401 case "$cf_add_cflags" in
2402 (-D*)
2403 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2404
2405 CPPFLAGS=`echo "$CPPFLAGS" | \
2406 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2407 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2408
2409 ;;
2410 esac
2411
2412 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2413 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2414
2415 ;;
2416 esac
2417 ;;
2418 (*)
2419
2420 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2421 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2422
2423 ;;
2424 esac
2425 ;;
2426 (yes)
2427
2428 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2429 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2430
2431 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
2432
2433 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2434 && test -z "${cf_tst_cflags}" \
2435 && cf_fix_cppflags=no
2436 ;;
2437 esac
2438 done
2439
2440 if test -n "$cf_new_cflags" ; then
2441
2442 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2443 CFLAGS="${CFLAGS}$cf_new_cflags"
2444
2445 fi
2446
2447 if test -n "$cf_new_cppflags" ; then
2448
2449 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2450 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2451
2452 fi
2453
2454 if test -n "$cf_new_extra_cppflags" ; then
2455
2456 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2457 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2458
2459 fi
2460
2461 ;;
2462 (*)
2463 CC="$CC $cf_arg"
2464 ;;
2465 esac
2466 done
2467 test -n "$verbose" && echo " resulting CC: '$CC'" 1>&6
2468
2469 echo "${as_me:-configure}:2469: testing resulting CC: '$CC' ..." 1>&5
2470
2471 test -n "$verbose" && echo " resulting CFLAGS: '$CFLAGS'" 1>&6
2472
2473 echo "${as_me:-configure}:2473: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5
2474
2475 test -n "$verbose" && echo " resulting CPPFLAGS: '$CPPFLAGS'" 1>&6
2476
2477 echo "${as_me:-configure}:2477: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5
2478
2479 ;;
2480 (*)
2481 echo "$as_me:2481: result: ok" >&5
2482 echo "${ECHO_T}ok" >&6
2483 ;;
2484 esac
2485
2486 for ac_prog in ggrep grep
2487 do
2488 # Extract the first word of "$ac_prog", so it can be a program name with args.
2489 set dummy $ac_prog; ac_word=$2
2490 echo "$as_me:2490: checking for $ac_word" >&5
2491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2492 if test "${ac_cv_prog_GREP+set}" = set; then
2493 echo $ECHO_N "(cached) $ECHO_C" >&6
2494 else
2495 if test -n "$GREP"; then
2496 ac_cv_prog_GREP="$GREP" # Let the user override the test.
2497 else
2498 ac_save_IFS=$IFS; IFS=$ac_path_separator
2499 ac_dummy="$PATH"
2500 for ac_dir in $ac_dummy; do
2501 IFS=$ac_save_IFS
2502 test -z "$ac_dir" && ac_dir=.
2503 $as_executable_p "$ac_dir/$ac_word" || continue
2504 ac_cv_prog_GREP="$ac_prog"
2505 echo "$as_me:2505: found $ac_dir/$ac_word" >&5
2506 break
2507 done
2508
2509 fi
2510 fi
2511 GREP=$ac_cv_prog_GREP
2512 if test -n "$GREP"; then
2513 echo "$as_me:2513: result: $GREP" >&5
2514 echo "${ECHO_T}$GREP" >&6
2515 else
2516 echo "$as_me:2516: result: no" >&5
2517 echo "${ECHO_T}no" >&6
2518 fi
2519
2520 test -n "$GREP" && break
2521 done
2522 test -n "$GREP" || GREP=": "
2523
2524 echo "$as_me:2524: checking for egrep" >&5
2525 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2526 if test "${ac_cv_path_EGREP+set}" = set; then
2527 echo $ECHO_N "(cached) $ECHO_C" >&6
2528 else
2529 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
2530 then ac_cv_path_EGREP="$GREP -E"
2531 else
2532 for ac_prog in gegrep egrep
2533 do
2534 # Extract the first word of "$ac_prog", so it can be a program name with args.
2535 set dummy $ac_prog; ac_word=$2
2536 echo "$as_me:2536: checking for $ac_word" >&5
2537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2538 if test "${ac_cv_path_EGREP+set}" = set; then
2539 echo $ECHO_N "(cached) $ECHO_C" >&6
2540 else
2541 case $EGREP in
2542 [\\/]* | ?:[\\/]*)
2543 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
2544 ;;
2545 *)
2546 ac_save_IFS=$IFS; IFS=$ac_path_separator
2547 ac_dummy="$PATH"
2548 for ac_dir in $ac_dummy; do
2549 IFS=$ac_save_IFS
2550 test -z "$ac_dir" && ac_dir=.
2551 if $as_executable_p "$ac_dir/$ac_word"; then
2552 ac_cv_path_EGREP="$ac_dir/$ac_word"
2553 echo "$as_me:2553: found $ac_dir/$ac_word" >&5
2554 break
2555 fi
2556 done
2557
2558 ;;
2559 esac
2560 fi
2561 EGREP=$ac_cv_path_EGREP
2562
2563 if test -n "$EGREP"; then
2564 echo "$as_me:2564: result: $EGREP" >&5
2565 echo "${ECHO_T}$EGREP" >&6
2566 else
2567 echo "$as_me:2567: result: no" >&5
2568 echo "${ECHO_T}no" >&6
2569 fi
2570
2571 test -n "$EGREP" && break
2572 done
2573 test -n "$EGREP" || EGREP=": "
2574
2575 test "x$ac_cv_path_EGREP" = "x:" && { { echo "$as_me:2575: error: cannot find workable egrep" >&5
2576 echo "$as_me: error: cannot find workable egrep" >&2;}
2577 { (exit 1); exit 1; }; }
2578 fi
2579 fi
2580 echo "$as_me:2580: result: $ac_cv_path_EGREP" >&5
2581 echo "${ECHO_T}$ac_cv_path_EGREP" >&6
2582 EGREP="$ac_cv_path_EGREP"
2583
2584 ac_ext=c
2585 ac_cpp='$CPP $CPPFLAGS'
2586 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
2587 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
2588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2589 ac_main_return="return"
2590 echo "$as_me:2590: checking how to run the C preprocessor" >&5
2591 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2592 # On Suns, sometimes $CPP names a directory.
2593 if test -n "$CPP" && test -d "$CPP"; then
2594 CPP=
2595 fi
2596 if test -z "$CPP"; then
2597 if test "${ac_cv_prog_CPP+set}" = set; then
2598 echo $ECHO_N "(cached) $ECHO_C" >&6
2599 else
2600 # Double quotes because CPP needs to be expanded
2601 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2602 do
2603 ac_preproc_ok=false
2604 for ac_c_preproc_warn_flag in '' yes
2605 do
2606 # Use a header file that comes with gcc, so configuring glibc
2607 # with a fresh cross-compiler works.
2608 # On the NeXT, cc -E runs the code through the compiler's parser,
2609 # not just through cpp. "Syntax error" is here to catch this case.
2610 cat >"conftest.$ac_ext" <<_ACEOF
2611 #line 2611 "configure"
2612 #include "confdefs.h"
2613 #include <assert.h>
2614 Syntax error
2615 _ACEOF
2616 if { (eval echo "$as_me:2616: \"$ac_cpp "conftest.$ac_ext"\"") >&5
2617 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
2618 ac_status=$?
2619 $EGREP -v '^ *\+' conftest.er1 >conftest.err
2620 rm -f conftest.er1
2621 cat conftest.err >&5
2622 echo "$as_me:2622: \$? = $ac_status" >&5
2623 (exit "$ac_status"); } >/dev/null; then
2624 if test -s conftest.err; then
2625 ac_cpp_err=$ac_c_preproc_warn_flag
2626 else
2627 ac_cpp_err=
2628 fi
2629 else
2630 ac_cpp_err=yes
2631 fi
2632 if test -z "$ac_cpp_err"; then
2633 :
2634 else
2635 echo "$as_me: failed program was:" >&5
2636 cat "conftest.$ac_ext" >&5
2637 # Broken: fails on valid input.
2638 continue
2639 fi
2640 rm -f conftest.err "conftest.$ac_ext"
2641
2642 # OK, works on sane cases. Now check whether non-existent headers
2643 # can be detected and how.
2644 cat >"conftest.$ac_ext" <<_ACEOF
2645 #line 2645 "configure"
2646 #include "confdefs.h"
2647 #include <ac_nonexistent.h>
2648 _ACEOF
2649 if { (eval echo "$as_me:2649: \"$ac_cpp "conftest.$ac_ext"\"") >&5
2650 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
2651 ac_status=$?
2652 $EGREP -v '^ *\+' conftest.er1 >conftest.err
2653 rm -f conftest.er1
2654 cat conftest.err >&5
2655 echo "$as_me:2655: \$? = $ac_status" >&5
2656 (exit "$ac_status"); } >/dev/null; then
2657 if test -s conftest.err; then
2658 ac_cpp_err=$ac_c_preproc_warn_flag
2659 else
2660 ac_cpp_err=
2661 fi
2662 else
2663 ac_cpp_err=yes
2664 fi
2665 if test -z "$ac_cpp_err"; then
2666 # Broken: success on invalid input.
2667 continue
2668 else
2669 echo "$as_me: failed program was:" >&5
2670 cat "conftest.$ac_ext" >&5
2671 # Passes both tests.
2672 ac_preproc_ok=:
2673 break
2674 fi
2675 rm -f conftest.err "conftest.$ac_ext"
2676
2677 done
2678 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2679 rm -f conftest.err "conftest.$ac_ext"
2680 if $ac_preproc_ok; then
2681 break
2682 fi
2683
2684 done
2685 ac_cv_prog_CPP=$CPP
2686
2687 fi
2688 CPP=$ac_cv_prog_CPP
2689 else
2690 ac_cv_prog_CPP=$CPP
2691 fi
2692 echo "$as_me:2692: result: $CPP" >&5
2693 echo "${ECHO_T}$CPP" >&6
2694 ac_preproc_ok=false
2695 for ac_c_preproc_warn_flag in '' yes
2696 do
2697 # Use a header file that comes with gcc, so configuring glibc
2698 # with a fresh cross-compiler works.
2699 # On the NeXT, cc -E runs the code through the compiler's parser,
2700 # not just through cpp. "Syntax error" is here to catch this case.
2701 cat >"conftest.$ac_ext" <<_ACEOF
2702 #line 2702 "configure"
2703 #include "confdefs.h"
2704 #include <assert.h>
2705 Syntax error
2706 _ACEOF
2707 if { (eval echo "$as_me:2707: \"$ac_cpp "conftest.$ac_ext"\"") >&5
2708 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
2709 ac_status=$?
2710 $EGREP -v '^ *\+' conftest.er1 >conftest.err
2711 rm -f conftest.er1
2712 cat conftest.err >&5
2713 echo "$as_me:2713: \$? = $ac_status" >&5
2714 (exit "$ac_status"); } >/dev/null; then
2715 if test -s conftest.err; then
2716 ac_cpp_err=$ac_c_preproc_warn_flag
2717 else
2718 ac_cpp_err=
2719 fi
2720 else
2721 ac_cpp_err=yes
2722 fi
2723 if test -z "$ac_cpp_err"; then
2724 :
2725 else
2726 echo "$as_me: failed program was:" >&5
2727 cat "conftest.$ac_ext" >&5
2728 # Broken: fails on valid input.
2729 continue
2730 fi
2731 rm -f conftest.err "conftest.$ac_ext"
2732
2733 # OK, works on sane cases. Now check whether non-existent headers
2734 # can be detected and how.
2735 cat >"conftest.$ac_ext" <<_ACEOF
2736 #line 2736 "configure"
2737 #include "confdefs.h"
2738 #include <ac_nonexistent.h>
2739 _ACEOF
2740 if { (eval echo "$as_me:2740: \"$ac_cpp "conftest.$ac_ext"\"") >&5
2741 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
2742 ac_status=$?
2743 $EGREP -v '^ *\+' conftest.er1 >conftest.err
2744 rm -f conftest.er1
2745 cat conftest.err >&5
2746 echo "$as_me:2746: \$? = $ac_status" >&5
2747 (exit "$ac_status"); } >/dev/null; then
2748 if test -s conftest.err; then
2749 ac_cpp_err=$ac_c_preproc_warn_flag
2750 else
2751 ac_cpp_err=
2752 fi
2753 else
2754 ac_cpp_err=yes
2755 fi
2756 if test -z "$ac_cpp_err"; then
2757 # Broken: success on invalid input.
2758 continue
2759 else
2760 echo "$as_me: failed program was:" >&5
2761 cat "conftest.$ac_ext" >&5
2762 # Passes both tests.
2763 ac_preproc_ok=:
2764 break
2765 fi
2766 rm -f conftest.err "conftest.$ac_ext"
2767
2768 done
2769 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2770 rm -f conftest.err "conftest.$ac_ext"
2771 if $ac_preproc_ok; then
2772 :
2773 else
2774 { { echo "$as_me:2774: error: C preprocessor \"$CPP\" fails sanity check" >&5
2775 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2776 { (exit 1); exit 1; }; }
2777 fi
2778
2779 ac_ext=c
2780 ac_cpp='$CPP $CPPFLAGS'
2781 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
2782 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
2783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2784 ac_main_return="return"
2785
2786 for ac_prog in mawk gawk nawk awk
2787 do
2788 # Extract the first word of "$ac_prog", so it can be a program name with args.
2789 set dummy $ac_prog; ac_word=$2
2790 echo "$as_me:2790: checking for $ac_word" >&5
2791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2792 if test "${ac_cv_prog_AWK+set}" = set; then
2793 echo $ECHO_N "(cached) $ECHO_C" >&6
2794 else
2795 if test -n "$AWK"; then
2796 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2797 else
2798 ac_save_IFS=$IFS; IFS=$ac_path_separator
2799 ac_dummy="$PATH"
2800 for ac_dir in $ac_dummy; do
2801 IFS=$ac_save_IFS
2802 test -z "$ac_dir" && ac_dir=.
2803 $as_executable_p "$ac_dir/$ac_word" || continue
2804 ac_cv_prog_AWK="$ac_prog"
2805 echo "$as_me:2805: found $ac_dir/$ac_word" >&5
2806 break
2807 done
2808
2809 fi
2810 fi
2811 AWK=$ac_cv_prog_AWK
2812 if test -n "$AWK"; then
2813 echo "$as_me:2813: result: $AWK" >&5
2814 echo "${ECHO_T}$AWK" >&6
2815 else
2816 echo "$as_me:2816: result: no" >&5
2817 echo "${ECHO_T}no" >&6
2818 fi
2819
2820 test -n "$AWK" && break
2821 done
2822
2823 # Find a good install program. We prefer a C program (faster),
2824 # so one script is as good as another. But avoid the broken or
2825 # incompatible versions:
2826 # SysV /etc/install, /usr/sbin/install
2827 # SunOS /usr/etc/install
2828 # IRIX /sbin/install
2829 # AIX /bin/install
2830 # AmigaOS /C/install, which installs bootblocks on floppy discs
2831 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2832 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2833 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2834 # ./install, which can be erroneously created by make from ./install.sh.
2835 echo "$as_me:2835: checking for a BSD compatible install" >&5
2836 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2837 if test -z "$INSTALL"; then
2838 if test "${ac_cv_path_install+set}" = set; then
2839 echo $ECHO_N "(cached) $ECHO_C" >&6
2840 else
2841 ac_save_IFS=$IFS; IFS=$ac_path_separator
2842 for ac_dir in $PATH; do
2843 IFS=$ac_save_IFS
2844 # Account for people who put trailing slashes in PATH elements.
2845 case $ac_dir/ in
2846 / | ./ | .// | /cC/* \
2847 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2848 | /usr/ucb/* ) ;;
2849 *)
2850 # OSF1 and SCO ODT 3.0 have their own names for install.
2851 # Don't use installbsd from OSF since it installs stuff as root
2852 # by default.
2853 for ac_prog in ginstall scoinst install; do
2854 if $as_executable_p "$ac_dir/$ac_prog"; then
2855 if test $ac_prog = install &&
2856 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2857 # AIX install. It has an incompatible calling convention.
2858 :
2859 elif test $ac_prog = install &&
2860 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2861 # program-specific install script used by HP pwplus--don't use.
2862 :
2863 else
2864 ac_cv_path_install="$ac_dir/$ac_prog -c"
2865 break 2
2866 fi
2867 fi
2868 done
2869 ;;
2870 esac
2871 done
2872
2873 fi
2874 if test "${ac_cv_path_install+set}" = set; then
2875 INSTALL=$ac_cv_path_install
2876 else
2877 # As a last resort, use the slow shell script. We don't cache a
2878 # path for INSTALL within a source directory, because that will
2879 # break other packages using the cache if that directory is
2880 # removed, or if the path is relative.
2881 INSTALL=$ac_install_sh
2882 fi
2883 fi
2884 echo "$as_me:2884: result: $INSTALL" >&5
2885 echo "${ECHO_T}$INSTALL" >&6
2886
2887 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2888 # It thinks the first close brace ends the variable substitution.
2889 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2890
2891 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2892
2893 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2894
2895 echo "$as_me:2895: checking whether ln -s works" >&5
2896 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2897 LN_S=$as_ln_s
2898 if test "$LN_S" = "ln -s"; then
2899 echo "$as_me:2899: result: yes" >&5
2900 echo "${ECHO_T}yes" >&6
2901 else
2902 echo "$as_me:2902: result: no, using $LN_S" >&5
2903 echo "${ECHO_T}no, using $LN_S" >&6
2904 fi
2905
2906 test "$program_prefix" != NONE &&
2907 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2908 # Use a double $ so make ignores it.
2909 test "$program_suffix" != NONE &&
2910 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2911 # Double any \ or $. echo might interpret backslashes.
2912 # By default was `s,x,x', remove it if useless.
2913 cat <<\_ACEOF >conftest.sed
2914 s/[\\$]/&&/g;s/;s,x,x,$//
2915 _ACEOF
2916 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2917 rm conftest.sed
2918
2919 for ac_prog in lint cppcheck splint
2920 do
2921 # Extract the first word of "$ac_prog", so it can be a program name with args.
2922 set dummy $ac_prog; ac_word=$2
2923 echo "$as_me:2923: checking for $ac_word" >&5
2924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2925 if test "${ac_cv_prog_LINT+set}" = set; then
2926 echo $ECHO_N "(cached) $ECHO_C" >&6
2927 else
2928 if test -n "$LINT"; then
2929 ac_cv_prog_LINT="$LINT" # Let the user override the test.
2930 else
2931 ac_save_IFS=$IFS; IFS=$ac_path_separator
2932 ac_dummy="$PATH"
2933 for ac_dir in $ac_dummy; do
2934 IFS=$ac_save_IFS
2935 test -z "$ac_dir" && ac_dir=.
2936 $as_executable_p "$ac_dir/$ac_word" || continue
2937 ac_cv_prog_LINT="$ac_prog"
2938 echo "$as_me:2938: found $ac_dir/$ac_word" >&5
2939 break
2940 done
2941
2942 fi
2943 fi
2944 LINT=$ac_cv_prog_LINT
2945 if test -n "$LINT"; then
2946 echo "$as_me:2946: result: $LINT" >&5
2947 echo "${ECHO_T}$LINT" >&6
2948 else
2949 echo "$as_me:2949: result: no" >&5
2950 echo "${ECHO_T}no" >&6
2951 fi
2952
2953 test -n "$LINT" && break
2954 done
2955
2956 case "x$LINT" in
2957 (xcppcheck|x*/cppcheck)
2958 test -z "$LINT_OPTS" && LINT_OPTS="--enable=all"
2959 ;;
2960 esac
2961
2962 ### checks for compiler characteristics
2963
2964 echo "$as_me:2964: checking if the POSIX test-macros are already defined" >&5
2965 echo $ECHO_N "checking if the POSIX test-macros are already defined... $ECHO_C" >&6
2966 if test "${cf_cv_posix_visible+set}" = set; then
2967 echo $ECHO_N "(cached) $ECHO_C" >&6
2968 else
2969
2970 cat >"conftest.$ac_ext" <<_ACEOF
2971 #line 2971 "configure"
2972 #include "confdefs.h"
2973 #include <stdio.h>
2974 int
2975 main (void)
2976 {
2977
2978 #if defined(__POSIX_VISIBLE) && ((__POSIX_VISIBLE - 0L) > 0) \
2979 && defined(__XSI_VISIBLE) && ((__XSI_VISIBLE - 0L) > 0) \
2980 && defined(__BSD_VISIBLE) && ((__BSD_VISIBLE - 0L) > 0) \
2981 && defined(__ISO_C_VISIBLE) && ((__ISO_C_VISIBLE - 0L) > 0)
2982 #error conflicting symbols found
2983 #endif
2984
2985 ;
2986 return 0;
2987 }
2988 _ACEOF
2989 rm -f "conftest.$ac_objext"
2990 if { (eval echo "$as_me:2990: \"$ac_compile\"") >&5
2991 (eval $ac_compile) 2>&5
2992 ac_status=$?
2993 echo "$as_me:2993: \$? = $ac_status" >&5
2994 (exit "$ac_status"); } &&
2995 { ac_try='test -s "conftest.$ac_objext"'
2996 { (eval echo "$as_me:2996: \"$ac_try\"") >&5
2997 (eval $ac_try) 2>&5
2998 ac_status=$?
2999 echo "$as_me:2999: \$? = $ac_status" >&5
3000 (exit "$ac_status"); }; }; then
3001 cf_cv_posix_visible=no
3002 else
3003 echo "$as_me: failed program was:" >&5
3004 cat "conftest.$ac_ext" >&5
3005 cf_cv_posix_visible=yes
3006 fi
3007 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3008
3009 fi
3010 echo "$as_me:3010: result: $cf_cv_posix_visible" >&5
3011 echo "${ECHO_T}$cf_cv_posix_visible" >&6
3012
3013 if test "$cf_cv_posix_visible" = no; then
3014
3015 cf_XOPEN_SOURCE=700
3016 cf_POSIX_C_SOURCE=199506L
3017 cf_xopen_source=
3018
3019 case "$host_os" in
3020 (aix[4-7]*)
3021 cf_xopen_source="-D_ALL_SOURCE"
3022 ;;
3023 (msys)
3024 cf_XOPEN_SOURCE=600
3025 ;;
3026 (darwin[0-8].*)
3027 cf_xopen_source="-D_APPLE_C_SOURCE"
3028 ;;
3029 (darwin*)
3030 cf_xopen_source="-D_DARWIN_C_SOURCE"
3031 cf_XOPEN_SOURCE=
3032 ;;
3033 (freebsd*|dragonfly*|midnightbsd*)
3034 # 5.x headers associate
3035 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
3036 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
3037 cf_POSIX_C_SOURCE=200112L
3038 cf_XOPEN_SOURCE=600
3039 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
3040 ;;
3041 (hpux11*)
3042 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
3043 ;;
3044 (hpux*)
3045 cf_xopen_source="-D_HPUX_SOURCE"
3046 ;;
3047 (irix[56].*)
3048 cf_xopen_source="-D_SGI_SOURCE"
3049 cf_XOPEN_SOURCE=
3050 ;;
3051 (linux*|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin)
3052
3053 cf_gnu_xopen_source=$cf_XOPEN_SOURCE
3054
3055 echo "$as_me:3055: checking if this is the GNU C library" >&5
3056 echo $ECHO_N "checking if this is the GNU C library... $ECHO_C" >&6
3057 if test "${cf_cv_gnu_library+set}" = set; then
3058 echo $ECHO_N "(cached) $ECHO_C" >&6
3059 else
3060
3061 cat >"conftest.$ac_ext" <<_ACEOF
3062 #line 3062 "configure"
3063 #include "confdefs.h"
3064 #include <sys/types.h>
3065 int
3066 main (void)
3067 {
3068
3069 #if __GLIBC__ > 0 && __GLIBC_MINOR__ >= 0
3070 return 0;
3071 #elif __NEWLIB__ > 0 && __NEWLIB_MINOR__ >= 0
3072 return 0;
3073 #else
3074 # error not GNU C library
3075 #endif
3076 ;
3077 return 0;
3078 }
3079 _ACEOF
3080 rm -f "conftest.$ac_objext"
3081 if { (eval echo "$as_me:3081: \"$ac_compile\"") >&5
3082 (eval $ac_compile) 2>&5
3083 ac_status=$?
3084 echo "$as_me:3084: \$? = $ac_status" >&5
3085 (exit "$ac_status"); } &&
3086 { ac_try='test -s "conftest.$ac_objext"'
3087 { (eval echo "$as_me:3087: \"$ac_try\"") >&5
3088 (eval $ac_try) 2>&5
3089 ac_status=$?
3090 echo "$as_me:3090: \$? = $ac_status" >&5
3091 (exit "$ac_status"); }; }; then
3092 cf_cv_gnu_library=yes
3093 else
3094 echo "$as_me: failed program was:" >&5
3095 cat "conftest.$ac_ext" >&5
3096 cf_cv_gnu_library=no
3097 fi
3098 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3099
3100 fi
3101 echo "$as_me:3101: result: $cf_cv_gnu_library" >&5
3102 echo "${ECHO_T}$cf_cv_gnu_library" >&6
3103
3104 if test x$cf_cv_gnu_library = xyes; then
3105
3106 # With glibc 2.19 (13 years after this check was begun), _DEFAULT_SOURCE
3107 # was changed to help a little. newlib incorporated the change about 4
3108 # years later.
3109 echo "$as_me:3109: checking if _DEFAULT_SOURCE can be used as a basis" >&5
3110 echo $ECHO_N "checking if _DEFAULT_SOURCE can be used as a basis... $ECHO_C" >&6
3111 if test "${cf_cv_gnu_library_219+set}" = set; then
3112 echo $ECHO_N "(cached) $ECHO_C" >&6
3113 else
3114
3115 cf_save="$CPPFLAGS"
3116
3117 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
3118 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE"
3119
3120 cat >"conftest.$ac_ext" <<_ACEOF
3121 #line 3121 "configure"
3122 #include "confdefs.h"
3123 #include <sys/types.h>
3124 int
3125 main (void)
3126 {
3127
3128 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 19) || (__GLIBC__ > 2)
3129 return 0;
3130 #elif (__NEWLIB__ == 2 && __NEWLIB_MINOR__ >= 4) || (__GLIBC__ > 3)
3131 return 0;
3132 #else
3133 # error GNU C library __GLIBC__.__GLIBC_MINOR__ is too old
3134 #endif
3135 ;
3136 return 0;
3137 }
3138 _ACEOF
3139 rm -f "conftest.$ac_objext"
3140 if { (eval echo "$as_me:3140: \"$ac_compile\"") >&5
3141 (eval $ac_compile) 2>&5
3142 ac_status=$?
3143 echo "$as_me:3143: \$? = $ac_status" >&5
3144 (exit "$ac_status"); } &&
3145 { ac_try='test -s "conftest.$ac_objext"'
3146 { (eval echo "$as_me:3146: \"$ac_try\"") >&5
3147 (eval $ac_try) 2>&5
3148 ac_status=$?
3149 echo "$as_me:3149: \$? = $ac_status" >&5
3150 (exit "$ac_status"); }; }; then
3151 cf_cv_gnu_library_219=yes
3152 else
3153 echo "$as_me: failed program was:" >&5
3154 cat "conftest.$ac_ext" >&5
3155 cf_cv_gnu_library_219=no
3156 fi
3157 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3158 CPPFLAGS="$cf_save"
3159
3160 fi
3161 echo "$as_me:3161: result: $cf_cv_gnu_library_219" >&5
3162 echo "${ECHO_T}$cf_cv_gnu_library_219" >&6
3163
3164 if test "x$cf_cv_gnu_library_219" = xyes; then
3165 cf_save="$CPPFLAGS"
3166 echo "$as_me:3166: checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE" >&5
3167 echo $ECHO_N "checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE... $ECHO_C" >&6
3168 if test "${cf_cv_gnu_dftsrc_219+set}" = set; then
3169 echo $ECHO_N "(cached) $ECHO_C" >&6
3170 else
3171
3172 cf_fix_cppflags=no
3173 cf_new_cflags=
3174 cf_new_cppflags=
3175 cf_new_extra_cppflags=
3176
3177 for cf_add_cflags in -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=$cf_gnu_xopen_source
3178 do
3179 case "$cf_fix_cppflags" in
3180 (no)
3181 case "$cf_add_cflags" in
3182 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3183 case "$cf_add_cflags" in
3184 (-D*)
3185 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3186
3187 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3188 && test -z "${cf_tst_cflags}" \
3189 && cf_fix_cppflags=yes
3190
3191 if test "$cf_fix_cppflags" = yes ; then
3192
3193 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3194 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3195
3196 continue
3197 elif test "${cf_tst_cflags}" = "\"'" ; then
3198
3199 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3200 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3201
3202 continue
3203 fi
3204 ;;
3205 esac
3206 case "$CPPFLAGS" in
3207 (*$cf_add_cflags)
3208 ;;
3209 (*)
3210 case "$cf_add_cflags" in
3211 (-D*)
3212 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3213
3214 CPPFLAGS=`echo "$CPPFLAGS" | \
3215 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3216 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3217
3218 ;;
3219 esac
3220
3221 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
3222 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
3223
3224 ;;
3225 esac
3226 ;;
3227 (*)
3228
3229 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
3230 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
3231
3232 ;;
3233 esac
3234 ;;
3235 (yes)
3236
3237 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3238 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3239
3240 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
3241
3242 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3243 && test -z "${cf_tst_cflags}" \
3244 && cf_fix_cppflags=no
3245 ;;
3246 esac
3247 done
3248
3249 if test -n "$cf_new_cflags" ; then
3250
3251 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
3252 CFLAGS="${CFLAGS}$cf_new_cflags"
3253
3254 fi
3255
3256 if test -n "$cf_new_cppflags" ; then
3257
3258 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
3259 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
3260
3261 fi
3262
3263 if test -n "$cf_new_extra_cppflags" ; then
3264
3265 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
3266 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
3267
3268 fi
3269
3270 cat >"conftest.$ac_ext" <<_ACEOF
3271 #line 3271 "configure"
3272 #include "confdefs.h"
3273
3274 #include <limits.h>
3275 #include <sys/types.h>
3276
3277 int
3278 main (void)
3279 {
3280
3281 #if (_XOPEN_SOURCE >= $cf_gnu_xopen_source) && (MB_LEN_MAX > 1)
3282 return 0;
3283 #else
3284 # error GNU C library is too old
3285 #endif
3286 ;
3287 return 0;
3288 }
3289 _ACEOF
3290 rm -f "conftest.$ac_objext"
3291 if { (eval echo "$as_me:3291: \"$ac_compile\"") >&5
3292 (eval $ac_compile) 2>&5
3293 ac_status=$?
3294 echo "$as_me:3294: \$? = $ac_status" >&5
3295 (exit "$ac_status"); } &&
3296 { ac_try='test -s "conftest.$ac_objext"'
3297 { (eval echo "$as_me:3297: \"$ac_try\"") >&5
3298 (eval $ac_try) 2>&5
3299 ac_status=$?
3300 echo "$as_me:3300: \$? = $ac_status" >&5
3301 (exit "$ac_status"); }; }; then
3302 cf_cv_gnu_dftsrc_219=yes
3303 else
3304 echo "$as_me: failed program was:" >&5
3305 cat "conftest.$ac_ext" >&5
3306 cf_cv_gnu_dftsrc_219=no
3307 fi
3308 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3309
3310 fi
3311 echo "$as_me:3311: result: $cf_cv_gnu_dftsrc_219" >&5
3312 echo "${ECHO_T}$cf_cv_gnu_dftsrc_219" >&6
3313 test "x$cf_cv_gnu_dftsrc_219" = "xyes" || CPPFLAGS="$cf_save"
3314 else
3315 cf_cv_gnu_dftsrc_219=maybe
3316 fi
3317
3318 if test "x$cf_cv_gnu_dftsrc_219" != xyes; then
3319
3320 echo "$as_me:3320: checking if we must define _GNU_SOURCE" >&5
3321 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
3322 if test "${cf_cv_gnu_source+set}" = set; then
3323 echo $ECHO_N "(cached) $ECHO_C" >&6
3324 else
3325
3326 cat >"conftest.$ac_ext" <<_ACEOF
3327 #line 3327 "configure"
3328 #include "confdefs.h"
3329 #include <sys/types.h>
3330 int
3331 main (void)
3332 {
3333
3334 #ifndef _XOPEN_SOURCE
3335 #error expected _XOPEN_SOURCE to be defined
3336 #endif
3337 ;
3338 return 0;
3339 }
3340 _ACEOF
3341 rm -f "conftest.$ac_objext"
3342 if { (eval echo "$as_me:3342: \"$ac_compile\"") >&5
3343 (eval $ac_compile) 2>&5
3344 ac_status=$?
3345 echo "$as_me:3345: \$? = $ac_status" >&5
3346 (exit "$ac_status"); } &&
3347 { ac_try='test -s "conftest.$ac_objext"'
3348 { (eval echo "$as_me:3348: \"$ac_try\"") >&5
3349 (eval $ac_try) 2>&5
3350 ac_status=$?
3351 echo "$as_me:3351: \$? = $ac_status" >&5
3352 (exit "$ac_status"); }; }; then
3353 cf_cv_gnu_source=no
3354 else
3355 echo "$as_me: failed program was:" >&5
3356 cat "conftest.$ac_ext" >&5
3357 cf_save="$CPPFLAGS"
3358
3359 cf_fix_cppflags=no
3360 cf_new_cflags=
3361 cf_new_cppflags=
3362 cf_new_extra_cppflags=
3363
3364 for cf_add_cflags in -D_GNU_SOURCE
3365 do
3366 case "$cf_fix_cppflags" in
3367 (no)
3368 case "$cf_add_cflags" in
3369 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3370 case "$cf_add_cflags" in
3371 (-D*)
3372 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3373
3374 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3375 && test -z "${cf_tst_cflags}" \
3376 && cf_fix_cppflags=yes
3377
3378 if test "$cf_fix_cppflags" = yes ; then
3379
3380 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3381 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3382
3383 continue
3384 elif test "${cf_tst_cflags}" = "\"'" ; then
3385
3386 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3387 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3388
3389 continue
3390 fi
3391 ;;
3392 esac
3393 case "$CPPFLAGS" in
3394 (*$cf_add_cflags)
3395 ;;
3396 (*)
3397 case "$cf_add_cflags" in
3398 (-D*)
3399 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3400
3401 CPPFLAGS=`echo "$CPPFLAGS" | \
3402 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3403 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3404
3405 ;;
3406 esac
3407
3408 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
3409 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
3410
3411 ;;
3412 esac
3413 ;;
3414 (*)
3415
3416 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
3417 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
3418
3419 ;;
3420 esac
3421 ;;
3422 (yes)
3423
3424 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3425 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3426
3427 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
3428
3429 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3430 && test -z "${cf_tst_cflags}" \
3431 && cf_fix_cppflags=no
3432 ;;
3433 esac
3434 done
3435
3436 if test -n "$cf_new_cflags" ; then
3437
3438 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
3439 CFLAGS="${CFLAGS}$cf_new_cflags"
3440
3441 fi
3442
3443 if test -n "$cf_new_cppflags" ; then
3444
3445 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
3446 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
3447
3448 fi
3449
3450 if test -n "$cf_new_extra_cppflags" ; then
3451
3452 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
3453 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
3454
3455 fi
3456
3457 cat >"conftest.$ac_ext" <<_ACEOF
3458 #line 3458 "configure"
3459 #include "confdefs.h"
3460 #include <sys/types.h>
3461 int
3462 main (void)
3463 {
3464
3465 #ifdef _XOPEN_SOURCE
3466 #error expected _XOPEN_SOURCE to be undefined
3467 #endif
3468 ;
3469 return 0;
3470 }
3471 _ACEOF
3472 rm -f "conftest.$ac_objext"
3473 if { (eval echo "$as_me:3473: \"$ac_compile\"") >&5
3474 (eval $ac_compile) 2>&5
3475 ac_status=$?
3476 echo "$as_me:3476: \$? = $ac_status" >&5
3477 (exit "$ac_status"); } &&
3478 { ac_try='test -s "conftest.$ac_objext"'
3479 { (eval echo "$as_me:3479: \"$ac_try\"") >&5
3480 (eval $ac_try) 2>&5
3481 ac_status=$?
3482 echo "$as_me:3482: \$? = $ac_status" >&5
3483 (exit "$ac_status"); }; }; then
3484 cf_cv_gnu_source=no
3485 else
3486 echo "$as_me: failed program was:" >&5
3487 cat "conftest.$ac_ext" >&5
3488 cf_cv_gnu_source=yes
3489 fi
3490 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3491 CPPFLAGS="$cf_save"
3492
3493 fi
3494 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3495
3496 fi
3497 echo "$as_me:3497: result: $cf_cv_gnu_source" >&5
3498 echo "${ECHO_T}$cf_cv_gnu_source" >&6
3499
3500 if test "$cf_cv_gnu_source" = yes
3501 then
3502 echo "$as_me:3502: checking if we should also define _DEFAULT_SOURCE" >&5
3503 echo $ECHO_N "checking if we should also define _DEFAULT_SOURCE... $ECHO_C" >&6
3504 if test "${cf_cv_default_source+set}" = set; then
3505 echo $ECHO_N "(cached) $ECHO_C" >&6
3506 else
3507
3508 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
3509 CPPFLAGS="${CPPFLAGS}-D_GNU_SOURCE"
3510
3511 cat >"conftest.$ac_ext" <<_ACEOF
3512 #line 3512 "configure"
3513 #include "confdefs.h"
3514 #include <sys/types.h>
3515 int
3516 main (void)
3517 {
3518
3519 #ifdef _DEFAULT_SOURCE
3520 #error expected _DEFAULT_SOURCE to be undefined
3521 #endif
3522 ;
3523 return 0;
3524 }
3525 _ACEOF
3526 rm -f "conftest.$ac_objext"
3527 if { (eval echo "$as_me:3527: \"$ac_compile\"") >&5
3528 (eval $ac_compile) 2>&5
3529 ac_status=$?
3530 echo "$as_me:3530: \$? = $ac_status" >&5
3531 (exit "$ac_status"); } &&
3532 { ac_try='test -s "conftest.$ac_objext"'
3533 { (eval echo "$as_me:3533: \"$ac_try\"") >&5
3534 (eval $ac_try) 2>&5
3535 ac_status=$?
3536 echo "$as_me:3536: \$? = $ac_status" >&5
3537 (exit "$ac_status"); }; }; then
3538 cf_cv_default_source=no
3539 else
3540 echo "$as_me: failed program was:" >&5
3541 cat "conftest.$ac_ext" >&5
3542 cf_cv_default_source=yes
3543 fi
3544 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3545
3546 fi
3547 echo "$as_me:3547: result: $cf_cv_default_source" >&5
3548 echo "${ECHO_T}$cf_cv_default_source" >&6
3549 if test "$cf_cv_default_source" = yes
3550 then
3551
3552 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
3553 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE"
3554
3555 fi
3556 fi
3557 fi
3558
3559 fi
3560
3561 ;;
3562 (minix*)
3563 cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this...
3564 ;;
3565 (mirbsd*)
3566 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
3567 cf_XOPEN_SOURCE=
3568
3569 if test "$cf_cv_posix_visible" = no; then
3570
3571 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
3572
3573 cf_save_CFLAGS="$CFLAGS"
3574 cf_save_CPPFLAGS="$CPPFLAGS"
3575
3576 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
3577 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3578 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3579
3580 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
3581 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3582 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3583
3584 echo "$as_me:3584: checking if we should define _POSIX_C_SOURCE" >&5
3585 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
3586 if test "${cf_cv_posix_c_source+set}" = set; then
3587 echo $ECHO_N "(cached) $ECHO_C" >&6
3588 else
3589
3590 echo "${as_me:-configure}:3590: testing if the symbol is already defined go no further ..." 1>&5
3591
3592 cat >"conftest.$ac_ext" <<_ACEOF
3593 #line 3593 "configure"
3594 #include "confdefs.h"
3595 #include <sys/types.h>
3596 int
3597 main (void)
3598 {
3599
3600 #ifndef _POSIX_C_SOURCE
3601 make an error
3602 #endif
3603 ;
3604 return 0;
3605 }
3606 _ACEOF
3607 rm -f "conftest.$ac_objext"
3608 if { (eval echo "$as_me:3608: \"$ac_compile\"") >&5
3609 (eval $ac_compile) 2>&5
3610 ac_status=$?
3611 echo "$as_me:3611: \$? = $ac_status" >&5
3612 (exit "$ac_status"); } &&
3613 { ac_try='test -s "conftest.$ac_objext"'
3614 { (eval echo "$as_me:3614: \"$ac_try\"") >&5
3615 (eval $ac_try) 2>&5
3616 ac_status=$?
3617 echo "$as_me:3617: \$? = $ac_status" >&5
3618 (exit "$ac_status"); }; }; then
3619 cf_cv_posix_c_source=no
3620 else
3621 echo "$as_me: failed program was:" >&5
3622 cat "conftest.$ac_ext" >&5
3623 cf_want_posix_source=no
3624 case .$cf_POSIX_C_SOURCE in
3625 (.[12]??*)
3626 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3627 ;;
3628 (.2)
3629 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3630 cf_want_posix_source=yes
3631 ;;
3632 (.*)
3633 cf_want_posix_source=yes
3634 ;;
3635 esac
3636 if test "$cf_want_posix_source" = yes ; then
3637 cat >"conftest.$ac_ext" <<_ACEOF
3638 #line 3638 "configure"
3639 #include "confdefs.h"
3640 #include <sys/types.h>
3641 int
3642 main (void)
3643 {
3644
3645 #ifdef _POSIX_SOURCE
3646 make an error
3647 #endif
3648 ;
3649 return 0;
3650 }
3651 _ACEOF
3652 rm -f "conftest.$ac_objext"
3653 if { (eval echo "$as_me:3653: \"$ac_compile\"") >&5
3654 (eval $ac_compile) 2>&5
3655 ac_status=$?
3656 echo "$as_me:3656: \$? = $ac_status" >&5
3657 (exit "$ac_status"); } &&
3658 { ac_try='test -s "conftest.$ac_objext"'
3659 { (eval echo "$as_me:3659: \"$ac_try\"") >&5
3660 (eval $ac_try) 2>&5
3661 ac_status=$?
3662 echo "$as_me:3662: \$? = $ac_status" >&5
3663 (exit "$ac_status"); }; }; then
3664 :
3665 else
3666 echo "$as_me: failed program was:" >&5
3667 cat "conftest.$ac_ext" >&5
3668 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
3669 fi
3670 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3671 fi
3672
3673 echo "${as_me:-configure}:3673: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
3674
3675 CFLAGS="$cf_trim_CFLAGS"
3676 CPPFLAGS="$cf_trim_CPPFLAGS"
3677
3678 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
3679 CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source"
3680
3681 echo "${as_me:-configure}:3681: testing if the second compile does not leave our definition intact error ..." 1>&5
3682
3683 cat >"conftest.$ac_ext" <<_ACEOF
3684 #line 3684 "configure"
3685 #include "confdefs.h"
3686 #include <sys/types.h>
3687 int
3688 main (void)
3689 {
3690
3691 #ifndef _POSIX_C_SOURCE
3692 make an error
3693 #endif
3694 ;
3695 return 0;
3696 }
3697 _ACEOF
3698 rm -f "conftest.$ac_objext"
3699 if { (eval echo "$as_me:3699: \"$ac_compile\"") >&5
3700 (eval $ac_compile) 2>&5
3701 ac_status=$?
3702 echo "$as_me:3702: \$? = $ac_status" >&5
3703 (exit "$ac_status"); } &&
3704 { ac_try='test -s "conftest.$ac_objext"'
3705 { (eval echo "$as_me:3705: \"$ac_try\"") >&5
3706 (eval $ac_try) 2>&5
3707 ac_status=$?
3708 echo "$as_me:3708: \$? = $ac_status" >&5
3709 (exit "$ac_status"); }; }; then
3710 :
3711 else
3712 echo "$as_me: failed program was:" >&5
3713 cat "conftest.$ac_ext" >&5
3714 cf_cv_posix_c_source=no
3715 fi
3716 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3717 CFLAGS="$cf_save_CFLAGS"
3718 CPPFLAGS="$cf_save_CPPFLAGS"
3719
3720 fi
3721 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3722
3723 fi
3724 echo "$as_me:3724: result: $cf_cv_posix_c_source" >&5
3725 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
3726
3727 if test "$cf_cv_posix_c_source" != no ; then
3728 CFLAGS="$cf_trim_CFLAGS"
3729 CPPFLAGS="$cf_trim_CPPFLAGS"
3730
3731 cf_fix_cppflags=no
3732 cf_new_cflags=
3733 cf_new_cppflags=
3734 cf_new_extra_cppflags=
3735
3736 for cf_add_cflags in $cf_cv_posix_c_source
3737 do
3738 case "$cf_fix_cppflags" in
3739 (no)
3740 case "$cf_add_cflags" in
3741 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3742 case "$cf_add_cflags" in
3743 (-D*)
3744 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3745
3746 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3747 && test -z "${cf_tst_cflags}" \
3748 && cf_fix_cppflags=yes
3749
3750 if test "$cf_fix_cppflags" = yes ; then
3751
3752 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3753 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3754
3755 continue
3756 elif test "${cf_tst_cflags}" = "\"'" ; then
3757
3758 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3759 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3760
3761 continue
3762 fi
3763 ;;
3764 esac
3765 case "$CPPFLAGS" in
3766 (*$cf_add_cflags)
3767 ;;
3768 (*)
3769 case "$cf_add_cflags" in
3770 (-D*)
3771 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3772
3773 CPPFLAGS=`echo "$CPPFLAGS" | \
3774 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3775 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3776
3777 ;;
3778 esac
3779
3780 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
3781 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
3782
3783 ;;
3784 esac
3785 ;;
3786 (*)
3787
3788 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
3789 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
3790
3791 ;;
3792 esac
3793 ;;
3794 (yes)
3795
3796 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3797 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3798
3799 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
3800
3801 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3802 && test -z "${cf_tst_cflags}" \
3803 && cf_fix_cppflags=no
3804 ;;
3805 esac
3806 done
3807
3808 if test -n "$cf_new_cflags" ; then
3809
3810 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
3811 CFLAGS="${CFLAGS}$cf_new_cflags"
3812
3813 fi
3814
3815 if test -n "$cf_new_cppflags" ; then
3816
3817 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
3818 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
3819
3820 fi
3821
3822 if test -n "$cf_new_extra_cppflags" ; then
3823
3824 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
3825 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
3826
3827 fi
3828
3829 fi
3830
3831 fi # cf_cv_posix_visible
3832
3833 ;;
3834 (netbsd*)
3835 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
3836 ;;
3837 (openbsd[4-9]*)
3838 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
3839 cf_xopen_source="-D_BSD_SOURCE"
3840 cf_XOPEN_SOURCE=600
3841 ;;
3842 (openbsd*)
3843 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
3844 ;;
3845 (osf[45]*)
3846 cf_xopen_source="-D_OSF_SOURCE"
3847 ;;
3848 (nto-qnx*)
3849 cf_xopen_source="-D_QNX_SOURCE"
3850 ;;
3851 (sco*)
3852 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
3853 ;;
3854 (solaris2.*)
3855 cf_xopen_source="-D__EXTENSIONS__"
3856 cf_cv_xopen_source=broken
3857 ;;
3858 (sysv4.2uw2.*) # Novell/SCO UnixWare 2.x (tested on 2.1.2)
3859 cf_XOPEN_SOURCE=
3860 cf_POSIX_C_SOURCE=
3861 ;;
3862 (*)
3863
3864 echo "$as_me:3864: checking if we should define _XOPEN_SOURCE" >&5
3865 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
3866 if test "${cf_cv_xopen_source+set}" = set; then
3867 echo $ECHO_N "(cached) $ECHO_C" >&6
3868 else
3869
3870 cat >"conftest.$ac_ext" <<_ACEOF
3871 #line 3871 "configure"
3872 #include "confdefs.h"
3873
3874 #include <stdlib.h>
3875 #include <string.h>
3876 #include <sys/types.h>
3877
3878 int
3879 main (void)
3880 {
3881
3882 #ifndef _XOPEN_SOURCE
3883 make an error
3884 #endif
3885 ;
3886 return 0;
3887 }
3888 _ACEOF
3889 rm -f "conftest.$ac_objext"
3890 if { (eval echo "$as_me:3890: \"$ac_compile\"") >&5
3891 (eval $ac_compile) 2>&5
3892 ac_status=$?
3893 echo "$as_me:3893: \$? = $ac_status" >&5
3894 (exit "$ac_status"); } &&
3895 { ac_try='test -s "conftest.$ac_objext"'
3896 { (eval echo "$as_me:3896: \"$ac_try\"") >&5
3897 (eval $ac_try) 2>&5
3898 ac_status=$?
3899 echo "$as_me:3899: \$? = $ac_status" >&5
3900 (exit "$ac_status"); }; }; then
3901 cf_cv_xopen_source=no
3902 else
3903 echo "$as_me: failed program was:" >&5
3904 cat "conftest.$ac_ext" >&5
3905 cf_save="$CPPFLAGS"
3906
3907 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
3908 CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
3909
3910 cat >"conftest.$ac_ext" <<_ACEOF
3911 #line 3911 "configure"
3912 #include "confdefs.h"
3913
3914 #include <stdlib.h>
3915 #include <string.h>
3916 #include <sys/types.h>
3917
3918 int
3919 main (void)
3920 {
3921
3922 #ifdef _XOPEN_SOURCE
3923 make an error
3924 #endif
3925 ;
3926 return 0;
3927 }
3928 _ACEOF
3929 rm -f "conftest.$ac_objext"
3930 if { (eval echo "$as_me:3930: \"$ac_compile\"") >&5
3931 (eval $ac_compile) 2>&5
3932 ac_status=$?
3933 echo "$as_me:3933: \$? = $ac_status" >&5
3934 (exit "$ac_status"); } &&
3935 { ac_try='test -s "conftest.$ac_objext"'
3936 { (eval echo "$as_me:3936: \"$ac_try\"") >&5
3937 (eval $ac_try) 2>&5
3938 ac_status=$?
3939 echo "$as_me:3939: \$? = $ac_status" >&5
3940 (exit "$ac_status"); }; }; then
3941 cf_cv_xopen_source=no
3942 else
3943 echo "$as_me: failed program was:" >&5
3944 cat "conftest.$ac_ext" >&5
3945 cf_cv_xopen_source=$cf_XOPEN_SOURCE
3946 fi
3947 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3948 CPPFLAGS="$cf_save"
3949
3950 fi
3951 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3952
3953 fi
3954 echo "$as_me:3954: result: $cf_cv_xopen_source" >&5
3955 echo "${ECHO_T}$cf_cv_xopen_source" >&6
3956
3957 if test "$cf_cv_xopen_source" != no ; then
3958
3959 CFLAGS=`echo "$CFLAGS" | \
3960 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3961 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3962
3963 CPPFLAGS=`echo "$CPPFLAGS" | \
3964 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3965 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3966
3967 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
3968
3969 cf_fix_cppflags=no
3970 cf_new_cflags=
3971 cf_new_cppflags=
3972 cf_new_extra_cppflags=
3973
3974 for cf_add_cflags in $cf_temp_xopen_source
3975 do
3976 case "$cf_fix_cppflags" in
3977 (no)
3978 case "$cf_add_cflags" in
3979 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3980 case "$cf_add_cflags" in
3981 (-D*)
3982 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3983
3984 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3985 && test -z "${cf_tst_cflags}" \
3986 && cf_fix_cppflags=yes
3987
3988 if test "$cf_fix_cppflags" = yes ; then
3989
3990 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3991 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3992
3993 continue
3994 elif test "${cf_tst_cflags}" = "\"'" ; then
3995
3996 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3997 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3998
3999 continue
4000 fi
4001 ;;
4002 esac
4003 case "$CPPFLAGS" in
4004 (*$cf_add_cflags)
4005 ;;
4006 (*)
4007 case "$cf_add_cflags" in
4008 (-D*)
4009 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4010
4011 CPPFLAGS=`echo "$CPPFLAGS" | \
4012 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4013 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4014
4015 ;;
4016 esac
4017
4018 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
4019 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
4020
4021 ;;
4022 esac
4023 ;;
4024 (*)
4025
4026 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
4027 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
4028
4029 ;;
4030 esac
4031 ;;
4032 (yes)
4033
4034 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4035 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4036
4037 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
4038
4039 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4040 && test -z "${cf_tst_cflags}" \
4041 && cf_fix_cppflags=no
4042 ;;
4043 esac
4044 done
4045
4046 if test -n "$cf_new_cflags" ; then
4047
4048 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
4049 CFLAGS="${CFLAGS}$cf_new_cflags"
4050
4051 fi
4052
4053 if test -n "$cf_new_cppflags" ; then
4054
4055 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4056 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
4057
4058 fi
4059
4060 if test -n "$cf_new_extra_cppflags" ; then
4061
4062 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
4063 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
4064
4065 fi
4066
4067 fi
4068
4069 if test "$cf_cv_posix_visible" = no; then
4070
4071 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
4072
4073 cf_save_CFLAGS="$CFLAGS"
4074 cf_save_CPPFLAGS="$CPPFLAGS"
4075
4076 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
4077 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
4078 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
4079
4080 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
4081 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
4082 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
4083
4084 echo "$as_me:4084: checking if we should define _POSIX_C_SOURCE" >&5
4085 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
4086 if test "${cf_cv_posix_c_source+set}" = set; then
4087 echo $ECHO_N "(cached) $ECHO_C" >&6
4088 else
4089
4090 echo "${as_me:-configure}:4090: testing if the symbol is already defined go no further ..." 1>&5
4091
4092 cat >"conftest.$ac_ext" <<_ACEOF
4093 #line 4093 "configure"
4094 #include "confdefs.h"
4095 #include <sys/types.h>
4096 int
4097 main (void)
4098 {
4099
4100 #ifndef _POSIX_C_SOURCE
4101 make an error
4102 #endif
4103 ;
4104 return 0;
4105 }
4106 _ACEOF
4107 rm -f "conftest.$ac_objext"
4108 if { (eval echo "$as_me:4108: \"$ac_compile\"") >&5
4109 (eval $ac_compile) 2>&5
4110 ac_status=$?
4111 echo "$as_me:4111: \$? = $ac_status" >&5
4112 (exit "$ac_status"); } &&
4113 { ac_try='test -s "conftest.$ac_objext"'
4114 { (eval echo "$as_me:4114: \"$ac_try\"") >&5
4115 (eval $ac_try) 2>&5
4116 ac_status=$?
4117 echo "$as_me:4117: \$? = $ac_status" >&5
4118 (exit "$ac_status"); }; }; then
4119 cf_cv_posix_c_source=no
4120 else
4121 echo "$as_me: failed program was:" >&5
4122 cat "conftest.$ac_ext" >&5
4123 cf_want_posix_source=no
4124 case .$cf_POSIX_C_SOURCE in
4125 (.[12]??*)
4126 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
4127 ;;
4128 (.2)
4129 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
4130 cf_want_posix_source=yes
4131 ;;
4132 (.*)
4133 cf_want_posix_source=yes
4134 ;;
4135 esac
4136 if test "$cf_want_posix_source" = yes ; then
4137 cat >"conftest.$ac_ext" <<_ACEOF
4138 #line 4138 "configure"
4139 #include "confdefs.h"
4140 #include <sys/types.h>
4141 int
4142 main (void)
4143 {
4144
4145 #ifdef _POSIX_SOURCE
4146 make an error
4147 #endif
4148 ;
4149 return 0;
4150 }
4151 _ACEOF
4152 rm -f "conftest.$ac_objext"
4153 if { (eval echo "$as_me:4153: \"$ac_compile\"") >&5
4154 (eval $ac_compile) 2>&5
4155 ac_status=$?
4156 echo "$as_me:4156: \$? = $ac_status" >&5
4157 (exit "$ac_status"); } &&
4158 { ac_try='test -s "conftest.$ac_objext"'
4159 { (eval echo "$as_me:4159: \"$ac_try\"") >&5
4160 (eval $ac_try) 2>&5
4161 ac_status=$?
4162 echo "$as_me:4162: \$? = $ac_status" >&5
4163 (exit "$ac_status"); }; }; then
4164 :
4165 else
4166 echo "$as_me: failed program was:" >&5
4167 cat "conftest.$ac_ext" >&5
4168 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
4169 fi
4170 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
4171 fi
4172
4173 echo "${as_me:-configure}:4173: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
4174
4175 CFLAGS="$cf_trim_CFLAGS"
4176 CPPFLAGS="$cf_trim_CPPFLAGS"
4177
4178 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4179 CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source"
4180
4181 echo "${as_me:-configure}:4181: testing if the second compile does not leave our definition intact error ..." 1>&5
4182
4183 cat >"conftest.$ac_ext" <<_ACEOF
4184 #line 4184 "configure"
4185 #include "confdefs.h"
4186 #include <sys/types.h>
4187 int
4188 main (void)
4189 {
4190
4191 #ifndef _POSIX_C_SOURCE
4192 make an error
4193 #endif
4194 ;
4195 return 0;
4196 }
4197 _ACEOF
4198 rm -f "conftest.$ac_objext"
4199 if { (eval echo "$as_me:4199: \"$ac_compile\"") >&5
4200 (eval $ac_compile) 2>&5
4201 ac_status=$?
4202 echo "$as_me:4202: \$? = $ac_status" >&5
4203 (exit "$ac_status"); } &&
4204 { ac_try='test -s "conftest.$ac_objext"'
4205 { (eval echo "$as_me:4205: \"$ac_try\"") >&5
4206 (eval $ac_try) 2>&5
4207 ac_status=$?
4208 echo "$as_me:4208: \$? = $ac_status" >&5
4209 (exit "$ac_status"); }; }; then
4210 :
4211 else
4212 echo "$as_me: failed program was:" >&5
4213 cat "conftest.$ac_ext" >&5
4214 cf_cv_posix_c_source=no
4215 fi
4216 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
4217 CFLAGS="$cf_save_CFLAGS"
4218 CPPFLAGS="$cf_save_CPPFLAGS"
4219
4220 fi
4221 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
4222
4223 fi
4224 echo "$as_me:4224: result: $cf_cv_posix_c_source" >&5
4225 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
4226
4227 if test "$cf_cv_posix_c_source" != no ; then
4228 CFLAGS="$cf_trim_CFLAGS"
4229 CPPFLAGS="$cf_trim_CPPFLAGS"
4230
4231 cf_fix_cppflags=no
4232 cf_new_cflags=
4233 cf_new_cppflags=
4234 cf_new_extra_cppflags=
4235
4236 for cf_add_cflags in $cf_cv_posix_c_source
4237 do
4238 case "$cf_fix_cppflags" in
4239 (no)
4240 case "$cf_add_cflags" in
4241 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
4242 case "$cf_add_cflags" in
4243 (-D*)
4244 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4245
4246 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4247 && test -z "${cf_tst_cflags}" \
4248 && cf_fix_cppflags=yes
4249
4250 if test "$cf_fix_cppflags" = yes ; then
4251
4252 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4253 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4254
4255 continue
4256 elif test "${cf_tst_cflags}" = "\"'" ; then
4257
4258 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4259 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4260
4261 continue
4262 fi
4263 ;;
4264 esac
4265 case "$CPPFLAGS" in
4266 (*$cf_add_cflags)
4267 ;;
4268 (*)
4269 case "$cf_add_cflags" in
4270 (-D*)
4271 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4272
4273 CPPFLAGS=`echo "$CPPFLAGS" | \
4274 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4275 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4276
4277 ;;
4278 esac
4279
4280 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
4281 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
4282
4283 ;;
4284 esac
4285 ;;
4286 (*)
4287
4288 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
4289 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
4290
4291 ;;
4292 esac
4293 ;;
4294 (yes)
4295
4296 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4297 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4298
4299 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
4300
4301 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4302 && test -z "${cf_tst_cflags}" \
4303 && cf_fix_cppflags=no
4304 ;;
4305 esac
4306 done
4307
4308 if test -n "$cf_new_cflags" ; then
4309
4310 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
4311 CFLAGS="${CFLAGS}$cf_new_cflags"
4312
4313 fi
4314
4315 if test -n "$cf_new_cppflags" ; then
4316
4317 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4318 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
4319
4320 fi
4321
4322 if test -n "$cf_new_extra_cppflags" ; then
4323
4324 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
4325 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
4326
4327 fi
4328
4329 fi
4330
4331 fi # cf_cv_posix_visible
4332
4333 ;;
4334 esac
4335
4336 if test -n "$cf_xopen_source" ; then
4337
4338 cf_fix_cppflags=no
4339 cf_new_cflags=
4340 cf_new_cppflags=
4341 cf_new_extra_cppflags=
4342
4343 for cf_add_cflags in $cf_xopen_source
4344 do
4345 case "$cf_fix_cppflags" in
4346 (no)
4347 case "$cf_add_cflags" in
4348 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
4349 case "$cf_add_cflags" in
4350 (-D*)
4351 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4352
4353 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4354 && test -z "${cf_tst_cflags}" \
4355 && cf_fix_cppflags=yes
4356
4357 if test "$cf_fix_cppflags" = yes ; then
4358
4359 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4360 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4361
4362 continue
4363 elif test "${cf_tst_cflags}" = "\"'" ; then
4364
4365 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4366 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4367
4368 continue
4369 fi
4370 ;;
4371 esac
4372 case "$CPPFLAGS" in
4373 (*$cf_add_cflags)
4374 ;;
4375 (*)
4376 case "$cf_add_cflags" in
4377 (-D*)
4378 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4379
4380 CPPFLAGS=`echo "$CPPFLAGS" | \
4381 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4382 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4383
4384 ;;
4385 esac
4386
4387 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
4388 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
4389
4390 ;;
4391 esac
4392 ;;
4393 (*)
4394
4395 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
4396 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
4397
4398 ;;
4399 esac
4400 ;;
4401 (yes)
4402
4403 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4404 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4405
4406 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
4407
4408 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4409 && test -z "${cf_tst_cflags}" \
4410 && cf_fix_cppflags=no
4411 ;;
4412 esac
4413 done
4414
4415 if test -n "$cf_new_cflags" ; then
4416 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
4417
4418 echo "${as_me:-configure}:4418: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
4419
4420 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
4421 CFLAGS="${CFLAGS}$cf_new_cflags"
4422
4423 fi
4424
4425 if test -n "$cf_new_cppflags" ; then
4426 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
4427
4428 echo "${as_me:-configure}:4428: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
4429
4430 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4431 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
4432
4433 fi
4434
4435 if test -n "$cf_new_extra_cppflags" ; then
4436 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
4437
4438 echo "${as_me:-configure}:4438: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
4439
4440 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
4441 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
4442
4443 fi
4444
4445 fi
4446
4447 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
4448 echo "$as_me:4448: checking if _XOPEN_SOURCE really is set" >&5
4449 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
4450 cat >"conftest.$ac_ext" <<_ACEOF
4451 #line 4451 "configure"
4452 #include "confdefs.h"
4453 #include <stdlib.h>
4454 int
4455 main (void)
4456 {
4457
4458 #ifndef _XOPEN_SOURCE
4459 make an error
4460 #endif
4461 ;
4462 return 0;
4463 }
4464 _ACEOF
4465 rm -f "conftest.$ac_objext"
4466 if { (eval echo "$as_me:4466: \"$ac_compile\"") >&5
4467 (eval $ac_compile) 2>&5
4468 ac_status=$?
4469 echo "$as_me:4469: \$? = $ac_status" >&5
4470 (exit "$ac_status"); } &&
4471 { ac_try='test -s "conftest.$ac_objext"'
4472 { (eval echo "$as_me:4472: \"$ac_try\"") >&5
4473 (eval $ac_try) 2>&5
4474 ac_status=$?
4475 echo "$as_me:4475: \$? = $ac_status" >&5
4476 (exit "$ac_status"); }; }; then
4477 cf_XOPEN_SOURCE_set=yes
4478 else
4479 echo "$as_me: failed program was:" >&5
4480 cat "conftest.$ac_ext" >&5
4481 cf_XOPEN_SOURCE_set=no
4482 fi
4483 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
4484 echo "$as_me:4484: result: $cf_XOPEN_SOURCE_set" >&5
4485 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
4486 if test "$cf_XOPEN_SOURCE_set" = yes
4487 then
4488 cat >"conftest.$ac_ext" <<_ACEOF
4489 #line 4489 "configure"
4490 #include "confdefs.h"
4491 #include <stdlib.h>
4492 int
4493 main (void)
4494 {
4495
4496 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
4497 make an error
4498 #endif
4499 ;
4500 return 0;
4501 }
4502 _ACEOF
4503 rm -f "conftest.$ac_objext"
4504 if { (eval echo "$as_me:4504: \"$ac_compile\"") >&5
4505 (eval $ac_compile) 2>&5
4506 ac_status=$?
4507 echo "$as_me:4507: \$? = $ac_status" >&5
4508 (exit "$ac_status"); } &&
4509 { ac_try='test -s "conftest.$ac_objext"'
4510 { (eval echo "$as_me:4510: \"$ac_try\"") >&5
4511 (eval $ac_try) 2>&5
4512 ac_status=$?
4513 echo "$as_me:4513: \$? = $ac_status" >&5
4514 (exit "$ac_status"); }; }; then
4515 cf_XOPEN_SOURCE_set_ok=yes
4516 else
4517 echo "$as_me: failed program was:" >&5
4518 cat "conftest.$ac_ext" >&5
4519 cf_XOPEN_SOURCE_set_ok=no
4520 fi
4521 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
4522 if test "$cf_XOPEN_SOURCE_set_ok" = no
4523 then
4524 { echo "$as_me:4524: WARNING: _XOPEN_SOURCE is lower than requested" >&5
4525 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
4526 fi
4527 else
4528
4529 echo "$as_me:4529: checking if we should define _XOPEN_SOURCE" >&5
4530 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
4531 if test "${cf_cv_xopen_source+set}" = set; then
4532 echo $ECHO_N "(cached) $ECHO_C" >&6
4533 else
4534
4535 cat >"conftest.$ac_ext" <<_ACEOF
4536 #line 4536 "configure"
4537 #include "confdefs.h"
4538
4539 #include <stdlib.h>
4540 #include <string.h>
4541 #include <sys/types.h>
4542
4543 int
4544 main (void)
4545 {
4546
4547 #ifndef _XOPEN_SOURCE
4548 make an error
4549 #endif
4550 ;
4551 return 0;
4552 }
4553 _ACEOF
4554 rm -f "conftest.$ac_objext"
4555 if { (eval echo "$as_me:4555: \"$ac_compile\"") >&5
4556 (eval $ac_compile) 2>&5
4557 ac_status=$?
4558 echo "$as_me:4558: \$? = $ac_status" >&5
4559 (exit "$ac_status"); } &&
4560 { ac_try='test -s "conftest.$ac_objext"'
4561 { (eval echo "$as_me:4561: \"$ac_try\"") >&5
4562 (eval $ac_try) 2>&5
4563 ac_status=$?
4564 echo "$as_me:4564: \$? = $ac_status" >&5
4565 (exit "$ac_status"); }; }; then
4566 cf_cv_xopen_source=no
4567 else
4568 echo "$as_me: failed program was:" >&5
4569 cat "conftest.$ac_ext" >&5
4570 cf_save="$CPPFLAGS"
4571
4572 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4573 CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
4574
4575 cat >"conftest.$ac_ext" <<_ACEOF
4576 #line 4576 "configure"
4577 #include "confdefs.h"
4578
4579 #include <stdlib.h>
4580 #include <string.h>
4581 #include <sys/types.h>
4582
4583 int
4584 main (void)
4585 {
4586
4587 #ifdef _XOPEN_SOURCE
4588 make an error
4589 #endif
4590 ;
4591 return 0;
4592 }
4593 _ACEOF
4594 rm -f "conftest.$ac_objext"
4595 if { (eval echo "$as_me:4595: \"$ac_compile\"") >&5
4596 (eval $ac_compile) 2>&5
4597 ac_status=$?
4598 echo "$as_me:4598: \$? = $ac_status" >&5
4599 (exit "$ac_status"); } &&
4600 { ac_try='test -s "conftest.$ac_objext"'
4601 { (eval echo "$as_me:4601: \"$ac_try\"") >&5
4602 (eval $ac_try) 2>&5
4603 ac_status=$?
4604 echo "$as_me:4604: \$? = $ac_status" >&5
4605 (exit "$ac_status"); }; }; then
4606 cf_cv_xopen_source=no
4607 else
4608 echo "$as_me: failed program was:" >&5
4609 cat "conftest.$ac_ext" >&5
4610 cf_cv_xopen_source=$cf_XOPEN_SOURCE
4611 fi
4612 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
4613 CPPFLAGS="$cf_save"
4614
4615 fi
4616 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
4617
4618 fi
4619 echo "$as_me:4619: result: $cf_cv_xopen_source" >&5
4620 echo "${ECHO_T}$cf_cv_xopen_source" >&6
4621
4622 if test "$cf_cv_xopen_source" != no ; then
4623
4624 CFLAGS=`echo "$CFLAGS" | \
4625 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
4626 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
4627
4628 CPPFLAGS=`echo "$CPPFLAGS" | \
4629 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
4630 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
4631
4632 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
4633
4634 cf_fix_cppflags=no
4635 cf_new_cflags=
4636 cf_new_cppflags=
4637 cf_new_extra_cppflags=
4638
4639 for cf_add_cflags in $cf_temp_xopen_source
4640 do
4641 case "$cf_fix_cppflags" in
4642 (no)
4643 case "$cf_add_cflags" in
4644 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
4645 case "$cf_add_cflags" in
4646 (-D*)
4647 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4648
4649 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4650 && test -z "${cf_tst_cflags}" \
4651 && cf_fix_cppflags=yes
4652
4653 if test "$cf_fix_cppflags" = yes ; then
4654
4655 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4656 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4657
4658 continue
4659 elif test "${cf_tst_cflags}" = "\"'" ; then
4660
4661 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4662 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4663
4664 continue
4665 fi
4666 ;;
4667 esac
4668 case "$CPPFLAGS" in
4669 (*$cf_add_cflags)
4670 ;;
4671 (*)
4672 case "$cf_add_cflags" in
4673 (-D*)
4674 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4675
4676 CPPFLAGS=`echo "$CPPFLAGS" | \
4677 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4678 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4679
4680 ;;
4681 esac
4682
4683 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
4684 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
4685
4686 ;;
4687 esac
4688 ;;
4689 (*)
4690
4691 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
4692 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
4693
4694 ;;
4695 esac
4696 ;;
4697 (yes)
4698
4699 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4700 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4701
4702 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
4703
4704 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4705 && test -z "${cf_tst_cflags}" \
4706 && cf_fix_cppflags=no
4707 ;;
4708 esac
4709 done
4710
4711 if test -n "$cf_new_cflags" ; then
4712
4713 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
4714 CFLAGS="${CFLAGS}$cf_new_cflags"
4715
4716 fi
4717
4718 if test -n "$cf_new_cppflags" ; then
4719
4720 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4721 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
4722
4723 fi
4724
4725 if test -n "$cf_new_extra_cppflags" ; then
4726
4727 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
4728 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
4729
4730 fi
4731
4732 fi
4733
4734 fi
4735 fi
4736 fi # cf_cv_posix_visible
4737
4738 echo "$as_me:4738: checking if SIGWINCH is defined" >&5
4739 echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6
4740 if test "${cf_cv_define_sigwinch+set}" = set; then
4741 echo $ECHO_N "(cached) $ECHO_C" >&6
4742 else
4743
4744 cat >"conftest.$ac_ext" <<_ACEOF
4745 #line 4745 "configure"
4746 #include "confdefs.h"
4747
4748 #include <sys/types.h>
4749 #include <sys/signal.h>
4750
4751 int
4752 main (void)
4753 {
4754 int x = SIGWINCH; (void)x
4755 ;
4756 return 0;
4757 }
4758 _ACEOF
4759 rm -f "conftest.$ac_objext"
4760 if { (eval echo "$as_me:4760: \"$ac_compile\"") >&5
4761 (eval $ac_compile) 2>&5
4762 ac_status=$?
4763 echo "$as_me:4763: \$? = $ac_status" >&5
4764 (exit "$ac_status"); } &&
4765 { ac_try='test -s "conftest.$ac_objext"'
4766 { (eval echo "$as_me:4766: \"$ac_try\"") >&5
4767 (eval $ac_try) 2>&5
4768 ac_status=$?
4769 echo "$as_me:4769: \$? = $ac_status" >&5
4770 (exit "$ac_status"); }; }; then
4771 cf_cv_define_sigwinch=yes
4772 else
4773 echo "$as_me: failed program was:" >&5
4774 cat "conftest.$ac_ext" >&5
4775 cat >"conftest.$ac_ext" <<_ACEOF
4776 #line 4776 "configure"
4777 #include "confdefs.h"
4778
4779 #undef _XOPEN_SOURCE
4780 #undef _POSIX_SOURCE
4781 #undef _POSIX_C_SOURCE
4782 #include <sys/types.h>
4783 #include <sys/signal.h>
4784
4785 int
4786 main (void)
4787 {
4788 int x = SIGWINCH; (void)x
4789 ;
4790 return 0;
4791 }
4792 _ACEOF
4793 rm -f "conftest.$ac_objext"
4794 if { (eval echo "$as_me:4794: \"$ac_compile\"") >&5
4795 (eval $ac_compile) 2>&5
4796 ac_status=$?
4797 echo "$as_me:4797: \$? = $ac_status" >&5
4798 (exit "$ac_status"); } &&
4799 { ac_try='test -s "conftest.$ac_objext"'
4800 { (eval echo "$as_me:4800: \"$ac_try\"") >&5
4801 (eval $ac_try) 2>&5
4802 ac_status=$?
4803 echo "$as_me:4803: \$? = $ac_status" >&5
4804 (exit "$ac_status"); }; }; then
4805 cf_cv_define_sigwinch=maybe
4806 else
4807 echo "$as_me: failed program was:" >&5
4808 cat "conftest.$ac_ext" >&5
4809 cf_cv_define_sigwinch=no
4810 fi
4811 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
4812
4813 fi
4814 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
4815
4816 fi
4817 echo "$as_me:4817: result: $cf_cv_define_sigwinch" >&5
4818 echo "${ECHO_T}$cf_cv_define_sigwinch" >&6
4819
4820 if test "$cf_cv_define_sigwinch" = maybe ; then
4821 echo "$as_me:4821: checking for actual SIGWINCH definition" >&5
4822 echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6
4823 if test "${cf_cv_fixup_sigwinch+set}" = set; then
4824 echo $ECHO_N "(cached) $ECHO_C" >&6
4825 else
4826
4827 cf_cv_fixup_sigwinch=unknown
4828 cf_sigwinch=32
4829 while test "$cf_sigwinch" != 1
4830 do
4831 cat >"conftest.$ac_ext" <<_ACEOF
4832 #line 4832 "configure"
4833 #include "confdefs.h"
4834
4835 #undef _XOPEN_SOURCE
4836 #undef _POSIX_SOURCE
4837 #undef _POSIX_C_SOURCE
4838 #include <sys/types.h>
4839 #include <sys/signal.h>
4840
4841 int
4842 main (void)
4843 {
4844
4845 #if SIGWINCH != $cf_sigwinch
4846 make an error
4847 #endif
4848 int x = SIGWINCH; (void)x
4849 ;
4850 return 0;
4851 }
4852 _ACEOF
4853 rm -f "conftest.$ac_objext"
4854 if { (eval echo "$as_me:4854: \"$ac_compile\"") >&5
4855 (eval $ac_compile) 2>&5
4856 ac_status=$?
4857 echo "$as_me:4857: \$? = $ac_status" >&5
4858 (exit "$ac_status"); } &&
4859 { ac_try='test -s "conftest.$ac_objext"'
4860 { (eval echo "$as_me:4860: \"$ac_try\"") >&5
4861 (eval $ac_try) 2>&5
4862 ac_status=$?
4863 echo "$as_me:4863: \$? = $ac_status" >&5
4864 (exit "$ac_status"); }; }; then
4865 cf_cv_fixup_sigwinch=$cf_sigwinch
4866 break
4867 else
4868 echo "$as_me: failed program was:" >&5
4869 cat "conftest.$ac_ext" >&5
4870 fi
4871 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
4872
4873 cf_sigwinch="`expr "$cf_sigwinch" - 1`"
4874 done
4875
4876 fi
4877 echo "$as_me:4877: result: $cf_cv_fixup_sigwinch" >&5
4878 echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6
4879
4880 if test "$cf_cv_fixup_sigwinch" != unknown ; then
4881 CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch"
4882 fi
4883 fi
4884
4885 ### checks for header files
4886
4887 for ac_header in \
4888 ncurses/curses.h \
4889 ncurses/term.h \
4890 stdlib.h \
4891 sys/ptem.h sys/ttydefaults.h \
4892 term.h \
4893 termios.h \
4894 unistd.h \
4895 wchar.h \
4896
4897 do
4898 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4899 echo "$as_me:4899: checking for $ac_header" >&5
4900 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4901 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4902 echo $ECHO_N "(cached) $ECHO_C" >&6
4903 else
4904 cat >"conftest.$ac_ext" <<_ACEOF
4905 #line 4905 "configure"
4906 #include "confdefs.h"
4907 #include <$ac_header>
4908 _ACEOF
4909 if { (eval echo "$as_me:4909: \"$ac_cpp "conftest.$ac_ext"\"") >&5
4910 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
4911 ac_status=$?
4912 $EGREP -v '^ *\+' conftest.er1 >conftest.err
4913 rm -f conftest.er1
4914 cat conftest.err >&5
4915 echo "$as_me:4915: \$? = $ac_status" >&5
4916 (exit "$ac_status"); } >/dev/null; then
4917 if test -s conftest.err; then
4918 ac_cpp_err=$ac_c_preproc_warn_flag
4919 else
4920 ac_cpp_err=
4921 fi
4922 else
4923 ac_cpp_err=yes
4924 fi
4925 if test -z "$ac_cpp_err"; then
4926 eval "$as_ac_Header=yes"
4927 else
4928 echo "$as_me: failed program was:" >&5
4929 cat "conftest.$ac_ext" >&5
4930 eval "$as_ac_Header=no"
4931 fi
4932 rm -f conftest.err "conftest.$ac_ext"
4933 fi
4934 echo "$as_me:4934: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
4935 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
4936 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
4937 cat >>confdefs.h <<EOF
4938 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4939 EOF
4940
4941 fi
4942 done
4943
4944 echo "$as_me:4944: checking whether time.h and sys/time.h may both be included" >&5
4945 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4946 if test "${ac_cv_header_time+set}" = set; then
4947 echo $ECHO_N "(cached) $ECHO_C" >&6
4948 else
4949 cat >"conftest.$ac_ext" <<_ACEOF
4950 #line 4950 "configure"
4951 #include "confdefs.h"
4952 #include <sys/types.h>
4953 #include <sys/time.h>
4954 #include <time.h>
4955
4956 int
4957 main (void)
4958 {
4959 if ((struct tm *) 0)
4960 return 0;
4961 ;
4962 return 0;
4963 }
4964 _ACEOF
4965 rm -f "conftest.$ac_objext"
4966 if { (eval echo "$as_me:4966: \"$ac_compile\"") >&5
4967 (eval $ac_compile) 2>&5
4968 ac_status=$?
4969 echo "$as_me:4969: \$? = $ac_status" >&5
4970 (exit "$ac_status"); } &&
4971 { ac_try='test -s "conftest.$ac_objext"'
4972 { (eval echo "$as_me:4972: \"$ac_try\"") >&5
4973 (eval $ac_try) 2>&5
4974 ac_status=$?
4975 echo "$as_me:4975: \$? = $ac_status" >&5
4976 (exit "$ac_status"); }; }; then
4977 ac_cv_header_time=yes
4978 else
4979 echo "$as_me: failed program was:" >&5
4980 cat "conftest.$ac_ext" >&5
4981 ac_cv_header_time=no
4982 fi
4983 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
4984 fi
4985 echo "$as_me:4985: result: $ac_cv_header_time" >&5
4986 echo "${ECHO_T}$ac_cv_header_time" >&6
4987 if test $ac_cv_header_time = yes; then
4988
4989 cat >>confdefs.h <<\EOF
4990 #define TIME_WITH_SYS_TIME 1
4991 EOF
4992
4993 fi
4994
4995 echo "$as_me:4995: checking for nl_langinfo and CODESET" >&5
4996 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
4997 if test "${am_cv_langinfo_codeset+set}" = set; then
4998 echo $ECHO_N "(cached) $ECHO_C" >&6
4999 else
5000 cat >"conftest.$ac_ext" <<_ACEOF
5001 #line 5001 "configure"
5002 #include "confdefs.h"
5003 #include <langinfo.h>
5004 int
5005 main (void)
5006 {
5007 char* cs = nl_langinfo(CODESET); (void)cs
5008 ;
5009 return 0;
5010 }
5011 _ACEOF
5012 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
5013 if { (eval echo "$as_me:5013: \"$ac_link\"") >&5
5014 (eval $ac_link) 2>&5
5015 ac_status=$?
5016 echo "$as_me:5016: \$? = $ac_status" >&5
5017 (exit "$ac_status"); } &&
5018 { ac_try='test -s "conftest$ac_exeext"'
5019 { (eval echo "$as_me:5019: \"$ac_try\"") >&5
5020 (eval $ac_try) 2>&5
5021 ac_status=$?
5022 echo "$as_me:5022: \$? = $ac_status" >&5
5023 (exit "$ac_status"); }; }; then
5024 am_cv_langinfo_codeset=yes
5025 else
5026 echo "$as_me: failed program was:" >&5
5027 cat "conftest.$ac_ext" >&5
5028 am_cv_langinfo_codeset=no
5029 fi
5030 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
5031
5032 fi
5033 echo "$as_me:5033: result: $am_cv_langinfo_codeset" >&5
5034 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
5035 if test "$am_cv_langinfo_codeset" = yes; then
5036
5037 cat >>confdefs.h <<\EOF
5038 #define HAVE_LANGINFO_CODESET 1
5039 EOF
5040
5041 fi
5042
5043 ### checks for typedefs
5044
5045 echo "$as_me:5045: checking for signal global datatype" >&5
5046 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
5047 if test "${cf_cv_sig_atomic_t+set}" = set; then
5048 echo $ECHO_N "(cached) $ECHO_C" >&6
5049 else
5050
5051 for cf_type in \
5052 "volatile sig_atomic_t" \
5053 "sig_atomic_t" \
5054 "int"
5055 do
5056 cat >"conftest.$ac_ext" <<_ACEOF
5057 #line 5057 "configure"
5058 #include "confdefs.h"
5059
5060 #include <sys/types.h>
5061 #include <signal.h>
5062 #include <stdio.h>
5063
5064 extern $cf_type x;
5065 $cf_type x;
5066 static void handler(int sig)
5067 {
5068 (void)sig;
5069 x = 5;
5070 }
5071 int
5072 main (void)
5073 {
5074 signal(SIGINT, handler);
5075 x = 1
5076 ;
5077 return 0;
5078 }
5079 _ACEOF
5080 rm -f "conftest.$ac_objext"
5081 if { (eval echo "$as_me:5081: \"$ac_compile\"") >&5
5082 (eval $ac_compile) 2>&5
5083 ac_status=$?
5084 echo "$as_me:5084: \$? = $ac_status" >&5
5085 (exit "$ac_status"); } &&
5086 { ac_try='test -s "conftest.$ac_objext"'
5087 { (eval echo "$as_me:5087: \"$ac_try\"") >&5
5088 (eval $ac_try) 2>&5
5089 ac_status=$?
5090 echo "$as_me:5090: \$? = $ac_status" >&5
5091 (exit "$ac_status"); }; }; then
5092 cf_cv_sig_atomic_t=$cf_type
5093 else
5094 echo "$as_me: failed program was:" >&5
5095 cat "conftest.$ac_ext" >&5
5096 cf_cv_sig_atomic_t=no
5097 fi
5098 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
5099 test "$cf_cv_sig_atomic_t" != no && break
5100 done
5101
5102 fi
5103
5104 echo "$as_me:5104: result: $cf_cv_sig_atomic_t" >&5
5105 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
5106 test "$cf_cv_sig_atomic_t" != no &&
5107 cat >>confdefs.h <<EOF
5108 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
5109 EOF
5110
5111 echo "$as_me:5111: checking for ANSI C header files" >&5
5112 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5113 if test "${ac_cv_header_stdc+set}" = set; then
5114 echo $ECHO_N "(cached) $ECHO_C" >&6
5115 else
5116 cat >"conftest.$ac_ext" <<_ACEOF
5117 #line 5117 "configure"
5118 #include "confdefs.h"
5119 #include <stdlib.h>
5120 #include <stdarg.h>
5121 #include <string.h>
5122 #include <float.h>
5123
5124 _ACEOF
5125 if { (eval echo "$as_me:5125: \"$ac_cpp "conftest.$ac_ext"\"") >&5
5126 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
5127 ac_status=$?
5128 $EGREP -v '^ *\+' conftest.er1 >conftest.err
5129 rm -f conftest.er1
5130 cat conftest.err >&5
5131 echo "$as_me:5131: \$? = $ac_status" >&5
5132 (exit "$ac_status"); } >/dev/null; then
5133 if test -s conftest.err; then
5134 ac_cpp_err=$ac_c_preproc_warn_flag
5135 else
5136 ac_cpp_err=
5137 fi
5138 else
5139 ac_cpp_err=yes
5140 fi
5141 if test -z "$ac_cpp_err"; then
5142 ac_cv_header_stdc=yes
5143 else
5144 echo "$as_me: failed program was:" >&5
5145 cat "conftest.$ac_ext" >&5
5146 ac_cv_header_stdc=no
5147 fi
5148 rm -f conftest.err "conftest.$ac_ext"
5149
5150 if test $ac_cv_header_stdc = yes; then
5151 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5152 cat >"conftest.$ac_ext" <<_ACEOF
5153 #line 5153 "configure"
5154 #include "confdefs.h"
5155 #include <string.h>
5156
5157 _ACEOF
5158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5159 $EGREP "memchr" >/dev/null 2>&1; then
5160 :
5161 else
5162 ac_cv_header_stdc=no
5163 fi
5164 rm -rf conftest*
5165
5166 fi
5167
5168 if test $ac_cv_header_stdc = yes; then
5169 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5170 cat >"conftest.$ac_ext" <<_ACEOF
5171 #line 5171 "configure"
5172 #include "confdefs.h"
5173 #include <stdlib.h>
5174
5175 _ACEOF
5176 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5177 $EGREP "free" >/dev/null 2>&1; then
5178 :
5179 else
5180 ac_cv_header_stdc=no
5181 fi
5182 rm -rf conftest*
5183
5184 fi
5185
5186 if test $ac_cv_header_stdc = yes; then
5187 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5188 if test "$cross_compiling" = yes; then
5189 :
5190 else
5191 cat >"conftest.$ac_ext" <<_ACEOF
5192 #line 5192 "configure"
5193 #include "confdefs.h"
5194 #include <ctype.h>
5195 #if ((' ' & 0x0FF) == 0x020)
5196 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5197 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5198 #else
5199 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
5200 || ('j' <= (c) && (c) <= 'r') \
5201 || ('s' <= (c) && (c) <= 'z'))
5202 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5203 #endif
5204
5205 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5206 int
5207 main (void)
5208 {
5209 int i;
5210 for (i = 0; i < 256; i++)
5211 if (XOR (islower (i), ISLOWER (i))
5212 || toupper (i) != TOUPPER (i))
5213 $ac_main_return(2);
5214 $ac_main_return (0);
5215 }
5216 _ACEOF
5217 rm -f "conftest$ac_exeext"
5218 if { (eval echo "$as_me:5218: \"$ac_link\"") >&5
5219 (eval $ac_link) 2>&5
5220 ac_status=$?
5221 echo "$as_me:5221: \$? = $ac_status" >&5
5222 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
5223 { (eval echo "$as_me:5223: \"$ac_try\"") >&5
5224 (eval $ac_try) 2>&5
5225 ac_status=$?
5226 echo "$as_me:5226: \$? = $ac_status" >&5
5227 (exit "$ac_status"); }; }; then
5228 :
5229 else
5230 echo "$as_me: program exited with status $ac_status" >&5
5231 echo "$as_me: failed program was:" >&5
5232 cat "conftest.$ac_ext" >&5
5233 ac_cv_header_stdc=no
5234 fi
5235 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
5236 fi
5237 fi
5238 fi
5239 echo "$as_me:5239: result: $ac_cv_header_stdc" >&5
5240 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5241 if test $ac_cv_header_stdc = yes; then
5242
5243 cat >>confdefs.h <<\EOF
5244 #define STDC_HEADERS 1
5245 EOF
5246
5247 fi
5248
5249 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5250
5251 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5252 inttypes.h stdint.h unistd.h
5253 do
5254 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5255 echo "$as_me:5255: checking for $ac_header" >&5
5256 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5257 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5258 echo $ECHO_N "(cached) $ECHO_C" >&6
5259 else
5260 cat >"conftest.$ac_ext" <<_ACEOF
5261 #line 5261 "configure"
5262 #include "confdefs.h"
5263 $ac_includes_default
5264 #include <$ac_header>
5265 _ACEOF
5266 rm -f "conftest.$ac_objext"
5267 if { (eval echo "$as_me:5267: \"$ac_compile\"") >&5
5268 (eval $ac_compile) 2>&5
5269 ac_status=$?
5270 echo "$as_me:5270: \$? = $ac_status" >&5
5271 (exit "$ac_status"); } &&
5272 { ac_try='test -s "conftest.$ac_objext"'
5273 { (eval echo "$as_me:5273: \"$ac_try\"") >&5
5274 (eval $ac_try) 2>&5
5275 ac_status=$?
5276 echo "$as_me:5276: \$? = $ac_status" >&5
5277 (exit "$ac_status"); }; }; then
5278 eval "$as_ac_Header=yes"
5279 else
5280 echo "$as_me: failed program was:" >&5
5281 cat "conftest.$ac_ext" >&5
5282 eval "$as_ac_Header=no"
5283 fi
5284 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
5285 fi
5286 echo "$as_me:5286: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
5287 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
5288 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
5289 cat >>confdefs.h <<EOF
5290 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5291 EOF
5292
5293 fi
5294 done
5295
5296 echo "$as_me:5296: checking for time_t" >&5
5297 echo $ECHO_N "checking for time_t... $ECHO_C" >&6
5298 if test "${ac_cv_type_time_t+set}" = set; then
5299 echo $ECHO_N "(cached) $ECHO_C" >&6
5300 else
5301 cat >"conftest.$ac_ext" <<_ACEOF
5302 #line 5302 "configure"
5303 #include "confdefs.h"
5304 $ac_includes_default
5305 int
5306 main (void)
5307 {
5308 if ((time_t *) 0)
5309 return 0;
5310 if (sizeof (time_t))
5311 return 0;
5312 ;
5313 return 0;
5314 }
5315 _ACEOF
5316 rm -f "conftest.$ac_objext"
5317 if { (eval echo "$as_me:5317: \"$ac_compile\"") >&5
5318 (eval $ac_compile) 2>&5
5319 ac_status=$?
5320 echo "$as_me:5320: \$? = $ac_status" >&5
5321 (exit "$ac_status"); } &&
5322 { ac_try='test -s "conftest.$ac_objext"'
5323 { (eval echo "$as_me:5323: \"$ac_try\"") >&5
5324 (eval $ac_try) 2>&5
5325 ac_status=$?
5326 echo "$as_me:5326: \$? = $ac_status" >&5
5327 (exit "$ac_status"); }; }; then
5328 ac_cv_type_time_t=yes
5329 else
5330 echo "$as_me: failed program was:" >&5
5331 cat "conftest.$ac_ext" >&5
5332 ac_cv_type_time_t=no
5333 fi
5334 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
5335 fi
5336 echo "$as_me:5336: result: $ac_cv_type_time_t" >&5
5337 echo "${ECHO_T}$ac_cv_type_time_t" >&6
5338 if test "$ac_cv_type_time_t" = yes; then
5339 :
5340 else
5341
5342 cat >>confdefs.h <<EOF
5343 #define time_t long
5344 EOF
5345
5346 fi
5347
5348 echo "$as_me:5348: checking for cc_t in <termios.h> or <termio.h>" >&5
5349 echo $ECHO_N "checking for cc_t in <termios.h> or <termio.h>... $ECHO_C" >&6
5350 if test "${cf_cv_type_cc_t+set}" = set; then
5351 echo $ECHO_N "(cached) $ECHO_C" >&6
5352 else
5353
5354 cat >"conftest.$ac_ext" <<_ACEOF
5355 #line 5355 "configure"
5356 #include "confdefs.h"
5357
5358 #include <sys/types.h>
5359 #if defined(HAVE_TERMIOS_H)
5360 #include <termios.h>
5361 #else
5362 #include <termio.h>
5363 #include <sys/ioctl.h>
5364 #endif
5365
5366 int
5367 main (void)
5368 {
5369 cc_t x; (void)x
5370 ;
5371 return 0;
5372 }
5373 _ACEOF
5374 rm -f "conftest.$ac_objext"
5375 if { (eval echo "$as_me:5375: \"$ac_compile\"") >&5
5376 (eval $ac_compile) 2>&5
5377 ac_status=$?
5378 echo "$as_me:5378: \$? = $ac_status" >&5
5379 (exit "$ac_status"); } &&
5380 { ac_try='test -s "conftest.$ac_objext"'
5381 { (eval echo "$as_me:5381: \"$ac_try\"") >&5
5382 (eval $ac_try) 2>&5
5383 ac_status=$?
5384 echo "$as_me:5384: \$? = $ac_status" >&5
5385 (exit "$ac_status"); }; }; then
5386 cf_cv_type_cc_t=yes
5387 else
5388 echo "$as_me: failed program was:" >&5
5389 cat "conftest.$ac_ext" >&5
5390 cf_cv_type_cc_t=no
5391 fi
5392 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
5393
5394 fi
5395
5396 echo "$as_me:5396: result: $cf_cv_type_cc_t" >&5
5397 echo "${ECHO_T}$cf_cv_type_cc_t" >&6
5398 test $cf_cv_type_cc_t = no &&
5399 cat >>confdefs.h <<\EOF
5400 #define cc_t unsigned char
5401 EOF
5402
5403 echo "$as_me:5403: checking for mode_t" >&5
5404 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
5405 if test "${ac_cv_type_mode_t+set}" = set; then
5406 echo $ECHO_N "(cached) $ECHO_C" >&6
5407 else
5408 cat >"conftest.$ac_ext" <<_ACEOF
5409 #line 5409 "configure"
5410 #include "confdefs.h"
5411 $ac_includes_default
5412 int
5413 main (void)
5414 {
5415 if ((mode_t *) 0)
5416 return 0;
5417 if (sizeof (mode_t))
5418 return 0;
5419 ;
5420 return 0;
5421 }
5422 _ACEOF
5423 rm -f "conftest.$ac_objext"
5424 if { (eval echo "$as_me:5424: \"$ac_compile\"") >&5
5425 (eval $ac_compile) 2>&5
5426 ac_status=$?
5427 echo "$as_me:5427: \$? = $ac_status" >&5
5428 (exit "$ac_status"); } &&
5429 { ac_try='test -s "conftest.$ac_objext"'
5430 { (eval echo "$as_me:5430: \"$ac_try\"") >&5
5431 (eval $ac_try) 2>&5
5432 ac_status=$?
5433 echo "$as_me:5433: \$? = $ac_status" >&5
5434 (exit "$ac_status"); }; }; then
5435 ac_cv_type_mode_t=yes
5436 else
5437 echo "$as_me: failed program was:" >&5
5438 cat "conftest.$ac_ext" >&5
5439 ac_cv_type_mode_t=no
5440 fi
5441 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
5442 fi
5443 echo "$as_me:5443: result: $ac_cv_type_mode_t" >&5
5444 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
5445 if test "$ac_cv_type_mode_t" = yes; then
5446 :
5447 else
5448
5449 cat >>confdefs.h <<EOF
5450 #define mode_t int
5451 EOF
5452
5453 fi
5454
5455 echo "$as_me:5455: checking for pid_t" >&5
5456 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
5457 if test "${ac_cv_type_pid_t+set}" = set; then
5458 echo $ECHO_N "(cached) $ECHO_C" >&6
5459 else
5460 cat >"conftest.$ac_ext" <<_ACEOF
5461 #line 5461 "configure"
5462 #include "confdefs.h"
5463 $ac_includes_default
5464 int
5465 main (void)
5466 {
5467 if ((pid_t *) 0)
5468 return 0;
5469 if (sizeof (pid_t))
5470 return 0;
5471 ;
5472 return 0;
5473 }
5474 _ACEOF
5475 rm -f "conftest.$ac_objext"
5476 if { (eval echo "$as_me:5476: \"$ac_compile\"") >&5
5477 (eval $ac_compile) 2>&5
5478 ac_status=$?
5479 echo "$as_me:5479: \$? = $ac_status" >&5
5480 (exit "$ac_status"); } &&
5481 { ac_try='test -s "conftest.$ac_objext"'
5482 { (eval echo "$as_me:5482: \"$ac_try\"") >&5
5483 (eval $ac_try) 2>&5
5484 ac_status=$?
5485 echo "$as_me:5485: \$? = $ac_status" >&5
5486 (exit "$ac_status"); }; }; then
5487 ac_cv_type_pid_t=yes
5488 else
5489 echo "$as_me: failed program was:" >&5
5490 cat "conftest.$ac_ext" >&5
5491 ac_cv_type_pid_t=no
5492 fi
5493 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
5494 fi
5495 echo "$as_me:5495: result: $ac_cv_type_pid_t" >&5
5496 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
5497 if test "$ac_cv_type_pid_t" = yes; then
5498 :
5499 else
5500
5501 cat >>confdefs.h <<EOF
5502 #define pid_t int
5503 EOF
5504
5505 fi
5506
5507 echo "$as_me:5507: checking for uid_t in sys/types.h" >&5
5508 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
5509 if test "${ac_cv_type_uid_t+set}" = set; then
5510 echo $ECHO_N "(cached) $ECHO_C" >&6
5511 else
5512 cat >"conftest.$ac_ext" <<_ACEOF
5513 #line 5513 "configure"
5514 #include "confdefs.h"
5515 #include <sys/types.h>
5516
5517 _ACEOF
5518 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5519 $EGREP "uid_t" >/dev/null 2>&1; then
5520 ac_cv_type_uid_t=yes
5521 else
5522 ac_cv_type_uid_t=no
5523 fi
5524 rm -rf conftest*
5525
5526 fi
5527 echo "$as_me:5527: result: $ac_cv_type_uid_t" >&5
5528 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
5529 if test $ac_cv_type_uid_t = no; then
5530
5531 cat >>confdefs.h <<\EOF
5532 #define uid_t int
5533 EOF
5534
5535 cat >>confdefs.h <<\EOF
5536 #define gid_t int
5537 EOF
5538
5539 fi
5540
5541 echo "$as_me:5541: checking for off_t" >&5
5542 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5543 if test "${ac_cv_type_off_t+set}" = set; then
5544 echo $ECHO_N "(cached) $ECHO_C" >&6
5545 else
5546 cat >"conftest.$ac_ext" <<_ACEOF
5547 #line 5547 "configure"
5548 #include "confdefs.h"
5549 $ac_includes_default
5550 int
5551 main (void)
5552 {
5553 if ((off_t *) 0)
5554 return 0;
5555 if (sizeof (off_t))
5556 return 0;
5557 ;
5558 return 0;
5559 }
5560 _ACEOF
5561 rm -f "conftest.$ac_objext"
5562 if { (eval echo "$as_me:5562: \"$ac_compile\"") >&5
5563 (eval $ac_compile) 2>&5
5564 ac_status=$?
5565 echo "$as_me:5565: \$? = $ac_status" >&5
5566 (exit "$ac_status"); } &&
5567 { ac_try='test -s "conftest.$ac_objext"'
5568 { (eval echo "$as_me:5568: \"$ac_try\"") >&5
5569 (eval $ac_try) 2>&5
5570 ac_status=$?
5571 echo "$as_me:5571: \$? = $ac_status" >&5
5572 (exit "$ac_status"); }; }; then
5573 ac_cv_type_off_t=yes
5574 else
5575 echo "$as_me: failed program was:" >&5
5576 cat "conftest.$ac_ext" >&5
5577 ac_cv_type_off_t=no
5578 fi
5579 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
5580 fi
5581 echo "$as_me:5581: result: $ac_cv_type_off_t" >&5
5582 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5583 if test "$ac_cv_type_off_t" = yes; then
5584 :
5585 else
5586
5587 cat >>confdefs.h <<EOF
5588 #define off_t long
5589 EOF
5590
5591 fi
5592
5593 ### checks for library functions
5594
5595 for ac_func in \
5596 gethostname \
5597 getusershell \
5598 endusershell \
5599 getlogin \
5600 initgroups \
5601 mkdtemp \
5602 putenv \
5603 unsetenv \
5604 sched_yield \
5605 setpgid \
5606 strftime \
5607 tcgetattr \
5608 waitpid \
5609 wcswidth \
5610 wcwidth
5611 do
5612 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5613 echo "$as_me:5613: checking for $ac_func" >&5
5614 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5615 if eval "test \"\${$as_ac_var+set}\" = set"; then
5616 echo $ECHO_N "(cached) $ECHO_C" >&6
5617 else
5618 cat >"conftest.$ac_ext" <<_ACEOF
5619 #line 5619 "configure"
5620 #include "confdefs.h"
5621 #define $ac_func autoconf_temporary
5622 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
5623 #undef $ac_func
5624
5625 #ifdef __cplusplus
5626 extern "C"
5627 #endif
5628
5629 /* We use char because int might match the return type of a gcc2
5630 builtin and then its argument prototype would still apply. */
5631 char $ac_func (void);
5632
5633 int
5634 main (void)
5635 {
5636
5637 /* The GNU C library defines stubs for functions which it implements
5638 to always fail with ENOSYS. Some functions are actually named
5639 something starting with __ and the normal name is an alias. */
5640 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5641 #error found stub for $ac_func
5642 #endif
5643
5644 return $ac_func ();
5645 ;
5646 return 0;
5647 }
5648 _ACEOF
5649 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
5650 if { (eval echo "$as_me:5650: \"$ac_link\"") >&5
5651 (eval $ac_link) 2>&5
5652 ac_status=$?
5653 echo "$as_me:5653: \$? = $ac_status" >&5
5654 (exit "$ac_status"); } &&
5655 { ac_try='test -s "conftest$ac_exeext"'
5656 { (eval echo "$as_me:5656: \"$ac_try\"") >&5
5657 (eval $ac_try) 2>&5
5658 ac_status=$?
5659 echo "$as_me:5659: \$? = $ac_status" >&5
5660 (exit "$ac_status"); }; }; then
5661 eval "$as_ac_var=yes"
5662 else
5663 echo "$as_me: failed program was:" >&5
5664 cat "conftest.$ac_ext" >&5
5665 eval "$as_ac_var=no"
5666 fi
5667 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
5668 fi
5669 echo "$as_me:5669: result: `eval echo '${'"$as_ac_var"'}'`" >&5
5670 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
5671 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
5672 cat >>confdefs.h <<EOF
5673 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5674 EOF
5675
5676 fi
5677 done
5678
5679 for ac_header in lastlog.h paths.h
5680 do
5681 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5682 echo "$as_me:5682: checking for $ac_header" >&5
5683 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5684 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5685 echo $ECHO_N "(cached) $ECHO_C" >&6
5686 else
5687 cat >"conftest.$ac_ext" <<_ACEOF
5688 #line 5688 "configure"
5689 #include "confdefs.h"
5690 #include <$ac_header>
5691 _ACEOF
5692 if { (eval echo "$as_me:5692: \"$ac_cpp "conftest.$ac_ext"\"") >&5
5693 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
5694 ac_status=$?
5695 $EGREP -v '^ *\+' conftest.er1 >conftest.err
5696 rm -f conftest.er1
5697 cat conftest.err >&5
5698 echo "$as_me:5698: \$? = $ac_status" >&5
5699 (exit "$ac_status"); } >/dev/null; then
5700 if test -s conftest.err; then
5701 ac_cpp_err=$ac_c_preproc_warn_flag
5702 else
5703 ac_cpp_err=
5704 fi
5705 else
5706 ac_cpp_err=yes
5707 fi
5708 if test -z "$ac_cpp_err"; then
5709 eval "$as_ac_Header=yes"
5710 else
5711 echo "$as_me: failed program was:" >&5
5712 cat "conftest.$ac_ext" >&5
5713 eval "$as_ac_Header=no"
5714 fi
5715 rm -f conftest.err "conftest.$ac_ext"
5716 fi
5717 echo "$as_me:5717: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
5718 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
5719 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
5720 cat >>confdefs.h <<EOF
5721 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5722 EOF
5723
5724 fi
5725 done
5726
5727 echo "$as_me:5727: checking for lastlog path" >&5
5728 echo $ECHO_N "checking for lastlog path... $ECHO_C" >&6
5729 if test "${cf_cv_path_lastlog+set}" = set; then
5730 echo $ECHO_N "(cached) $ECHO_C" >&6
5731 else
5732
5733 cat >"conftest.$ac_ext" <<_ACEOF
5734 #line 5734 "configure"
5735 #include "confdefs.h"
5736
5737 #include <sys/types.h>
5738 #ifdef HAVE_LASTLOG_H
5739 #include <lastlog.h>
5740 #else
5741 #ifdef HAVE_PATHS_H
5742 #include <paths.h>
5743 #endif
5744 #endif
5745 int
5746 main (void)
5747 {
5748 char *path = _PATH_LASTLOG; (void)path
5749 ;
5750 return 0;
5751 }
5752 _ACEOF
5753 rm -f "conftest.$ac_objext"
5754 if { (eval echo "$as_me:5754: \"$ac_compile\"") >&5
5755 (eval $ac_compile) 2>&5
5756 ac_status=$?
5757 echo "$as_me:5757: \$? = $ac_status" >&5
5758 (exit "$ac_status"); } &&
5759 { ac_try='test -s "conftest.$ac_objext"'
5760 { (eval echo "$as_me:5760: \"$ac_try\"") >&5
5761 (eval $ac_try) 2>&5
5762 ac_status=$?
5763 echo "$as_me:5763: \$? = $ac_status" >&5
5764 (exit "$ac_status"); }; }; then
5765 cf_cv_path_lastlog="_PATH_LASTLOG"
5766 else
5767 echo "$as_me: failed program was:" >&5
5768 cat "conftest.$ac_ext" >&5
5769 if test -f /usr/adm/lastlog ; then
5770 cf_cv_path_lastlog=/usr/adm/lastlog
5771 else
5772 cf_cv_path_lastlog=no
5773 fi
5774 fi
5775 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
5776
5777 fi
5778 echo "$as_me:5778: result: $cf_cv_path_lastlog" >&5
5779 echo "${ECHO_T}$cf_cv_path_lastlog" >&6
5780 test "$cf_cv_path_lastlog" != no &&
5781 cat >>confdefs.h <<\EOF
5782 #define USE_LASTLOG 1
5783 EOF
5784
5785 echo "$as_me:5785: checking for utmp implementation" >&5
5786 echo $ECHO_N "checking for utmp implementation... $ECHO_C" >&6
5787 if test "${cf_cv_have_utmp+set}" = set; then
5788 echo $ECHO_N "(cached) $ECHO_C" >&6
5789 else
5790
5791 cf_cv_have_utmp=no
5792 for cf_header in utmpx utmp ; do
5793 cf_utmp_includes="
5794 #include <sys/types.h>
5795 #include <${cf_header}.h>
5796 #define getutent getutxent
5797 #ifdef USE_LASTLOG
5798 #include <lastlog.h> /* may conflict with utmpx.h on Linux */
5799 #endif
5800 "
5801 cat >"conftest.$ac_ext" <<_ACEOF
5802 #line 5802 "configure"
5803 #include "confdefs.h"
5804 $cf_utmp_includes
5805 int
5806 main (void)
5807 {
5808 struct $cf_header x;
5809 char *name = x.ut_name; /* utmp.h and compatible definitions */
5810 (void)x;
5811 (void)name;
5812
5813 ;
5814 return 0;
5815 }
5816 _ACEOF
5817 rm -f "conftest.$ac_objext"
5818 if { (eval echo "$as_me:5818: \"$ac_compile\"") >&5
5819 (eval $ac_compile) 2>&5
5820 ac_status=$?
5821 echo "$as_me:5821: \$? = $ac_status" >&5
5822 (exit "$ac_status"); } &&
5823 { ac_try='test -s "conftest.$ac_objext"'
5824 { (eval echo "$as_me:5824: \"$ac_try\"") >&5
5825 (eval $ac_try) 2>&5
5826 ac_status=$?
5827 echo "$as_me:5827: \$? = $ac_status" >&5
5828 (exit "$ac_status"); }; }; then
5829 cf_cv_have_utmp=$cf_header
5830 break
5831 else
5832 echo "$as_me: failed program was:" >&5
5833 cat "conftest.$ac_ext" >&5
5834
5835 cat >"conftest.$ac_ext" <<_ACEOF
5836 #line 5836 "configure"
5837 #include "confdefs.h"
5838 $cf_utmp_includes
5839 int
5840 main (void)
5841 {
5842 struct $cf_header x;
5843 char *name = x.ut_user; /* utmpx.h must declare this */
5844 (void)x;
5845 (void)name;
5846
5847 ;
5848 return 0;
5849 }
5850 _ACEOF
5851 rm -f "conftest.$ac_objext"
5852 if { (eval echo "$as_me:5852: \"$ac_compile\"") >&5
5853 (eval $ac_compile) 2>&5
5854 ac_status=$?
5855 echo "$as_me:5855: \$? = $ac_status" >&5
5856 (exit "$ac_status"); } &&
5857 { ac_try='test -s "conftest.$ac_objext"'
5858 { (eval echo "$as_me:5858: \"$ac_try\"") >&5
5859 (eval $ac_try) 2>&5
5860 ac_status=$?
5861 echo "$as_me:5861: \$? = $ac_status" >&5
5862 (exit "$ac_status"); }; }; then
5863 cf_cv_have_utmp=$cf_header
5864 break
5865
5866 else
5867 echo "$as_me: failed program was:" >&5
5868 cat "conftest.$ac_ext" >&5
5869 fi
5870 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
5871 fi
5872 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
5873 done
5874
5875 fi
5876 echo "$as_me:5876: result: $cf_cv_have_utmp" >&5
5877 echo "${ECHO_T}$cf_cv_have_utmp" >&6
5878
5879 if test "$cf_cv_have_utmp" != no ; then
5880
5881 cat >>confdefs.h <<\EOF
5882 #define HAVE_UTMP 1
5883 EOF
5884
5885 test "$cf_cv_have_utmp" = utmpx &&
5886 cat >>confdefs.h <<\EOF
5887 #define UTMPX_FOR_UTMP 1
5888 EOF
5889
5890 if test "$cf_cv_have_utmp" != no ; then
5891 echo "$as_me:5891: checking if ${cf_cv_have_utmp}.ut_host is declared" >&5
5892 echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_host is declared... $ECHO_C" >&6
5893 if test "${cf_cv_have_utmp_ut_host+set}" = set; then
5894 echo $ECHO_N "(cached) $ECHO_C" >&6
5895 else
5896
5897 cat >"conftest.$ac_ext" <<_ACEOF
5898 #line 5898 "configure"
5899 #include "confdefs.h"
5900
5901 #include <sys/types.h>
5902 #include <${cf_cv_have_utmp}.h>
5903 int
5904 main (void)
5905 {
5906 struct $cf_cv_have_utmp x;
5907 char *y = &x.ut_host[0];
5908 (void)x;
5909 (void)y
5910 ;
5911 return 0;
5912 }
5913 _ACEOF
5914 rm -f "conftest.$ac_objext"
5915 if { (eval echo "$as_me:5915: \"$ac_compile\"") >&5
5916 (eval $ac_compile) 2>&5
5917 ac_status=$?
5918 echo "$as_me:5918: \$? = $ac_status" >&5
5919 (exit "$ac_status"); } &&
5920 { ac_try='test -s "conftest.$ac_objext"'
5921 { (eval echo "$as_me:5921: \"$ac_try\"") >&5
5922 (eval $ac_try) 2>&5
5923 ac_status=$?
5924 echo "$as_me:5924: \$? = $ac_status" >&5
5925 (exit "$ac_status"); }; }; then
5926 cf_cv_have_utmp_ut_host=yes
5927 else
5928 echo "$as_me: failed program was:" >&5
5929 cat "conftest.$ac_ext" >&5
5930 cf_cv_have_utmp_ut_host=no
5931 fi
5932 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
5933
5934 fi
5935
5936 echo "$as_me:5936: result: $cf_cv_have_utmp_ut_host" >&5
5937 echo "${ECHO_T}$cf_cv_have_utmp_ut_host" >&6
5938 test "$cf_cv_have_utmp_ut_host" != no &&
5939 cat >>confdefs.h <<\EOF
5940 #define HAVE_UTMP_UT_HOST 1
5941 EOF
5942
5943 fi
5944
5945 if test "$cf_cv_have_utmp" != no ; then
5946 echo "$as_me:5946: checking if ${cf_cv_have_utmp}.ut_syslen is declared" >&5
5947 echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_syslen is declared... $ECHO_C" >&6
5948 if test "${cf_cv_have_utmp_ut_syslen+set}" = set; then
5949 echo $ECHO_N "(cached) $ECHO_C" >&6
5950 else
5951
5952 cat >"conftest.$ac_ext" <<_ACEOF
5953 #line 5953 "configure"
5954 #include "confdefs.h"
5955
5956 #include <sys/types.h>
5957 #include <${cf_cv_have_utmp}.h>
5958 int
5959 main (void)
5960 {
5961 struct $cf_cv_have_utmp x;
5962 int y = x.ut_syslen;
5963 (void)x;
5964 (void)y
5965 ;
5966 return 0;
5967 }
5968 _ACEOF
5969 rm -f "conftest.$ac_objext"
5970 if { (eval echo "$as_me:5970: \"$ac_compile\"") >&5
5971 (eval $ac_compile) 2>&5
5972 ac_status=$?
5973 echo "$as_me:5973: \$? = $ac_status" >&5
5974 (exit "$ac_status"); } &&
5975 { ac_try='test -s "conftest.$ac_objext"'
5976 { (eval echo "$as_me:5976: \"$ac_try\"") >&5
5977 (eval $ac_try) 2>&5
5978 ac_status=$?
5979 echo "$as_me:5979: \$? = $ac_status" >&5
5980 (exit "$ac_status"); }; }; then
5981 cf_cv_have_utmp_ut_syslen=yes
5982 else
5983 echo "$as_me: failed program was:" >&5
5984 cat "conftest.$ac_ext" >&5
5985 cf_cv_have_utmp_ut_syslen=no
5986 fi
5987 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
5988
5989 fi
5990
5991 echo "$as_me:5991: result: $cf_cv_have_utmp_ut_syslen" >&5
5992 echo "${ECHO_T}$cf_cv_have_utmp_ut_syslen" >&6
5993 test "$cf_cv_have_utmp_ut_syslen" != no &&
5994 cat >>confdefs.h <<\EOF
5995 #define HAVE_UTMP_UT_SYSLEN 1
5996 EOF
5997
5998 fi
5999
6000 if test "$cf_cv_have_utmp" != no ; then
6001 echo "$as_me:6001: checking if ${cf_cv_have_utmp}.ut_name is declared" >&5
6002 echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_name is declared... $ECHO_C" >&6
6003 if test "${cf_cv_have_utmp_ut_name+set}" = set; then
6004 echo $ECHO_N "(cached) $ECHO_C" >&6
6005 else
6006
6007 cf_cv_have_utmp_ut_name=no
6008 cf_utmp_includes="
6009 #include <sys/types.h>
6010 #include <${cf_cv_have_utmp}.h>
6011 #define getutent getutxent
6012 #ifdef USE_LASTLOG
6013 #include <lastlog.h> /* may conflict with utmpx.h on Linux */
6014 #endif
6015 "
6016 for cf_header in ut_name ut_user ; do
6017 cat >"conftest.$ac_ext" <<_ACEOF
6018 #line 6018 "configure"
6019 #include "confdefs.h"
6020 $cf_utmp_includes
6021 int
6022 main (void)
6023 {
6024 struct $cf_cv_have_utmp x;
6025 char *name = x.$cf_header;
6026 (void)x;
6027 (void)name;
6028
6029 ;
6030 return 0;
6031 }
6032 _ACEOF
6033 rm -f "conftest.$ac_objext"
6034 if { (eval echo "$as_me:6034: \"$ac_compile\"") >&5
6035 (eval $ac_compile) 2>&5
6036 ac_status=$?
6037 echo "$as_me:6037: \$? = $ac_status" >&5
6038 (exit "$ac_status"); } &&
6039 { ac_try='test -s "conftest.$ac_objext"'
6040 { (eval echo "$as_me:6040: \"$ac_try\"") >&5
6041 (eval $ac_try) 2>&5
6042 ac_status=$?
6043 echo "$as_me:6043: \$? = $ac_status" >&5
6044 (exit "$ac_status"); }; }; then
6045 cf_cv_have_utmp_ut_name=$cf_header
6046 break
6047 else
6048 echo "$as_me: failed program was:" >&5
6049 cat "conftest.$ac_ext" >&5
6050 fi
6051 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
6052 done
6053
6054 fi
6055 echo "$as_me:6055: result: $cf_cv_have_utmp_ut_name" >&5
6056 echo "${ECHO_T}$cf_cv_have_utmp_ut_name" >&6
6057
6058 case "$cf_cv_have_utmp_ut_name" in
6059 (no)
6060 { { echo "$as_me:6060: error: Cannot find declaration for ut.ut_name" >&5
6061 echo "$as_me: error: Cannot find declaration for ut.ut_name" >&2;}
6062 { (exit 1); exit 1; }; }
6063 ;;
6064 (ut_user)
6065
6066 cat >>confdefs.h <<\EOF
6067 #define ut_name ut_user
6068 EOF
6069
6070 ;;
6071 esac
6072 fi
6073
6074 if test "$cf_cv_have_utmp" != no ; then
6075 echo "$as_me:6075: checking for exit-status in $cf_cv_have_utmp" >&5
6076 echo $ECHO_N "checking for exit-status in $cf_cv_have_utmp... $ECHO_C" >&6
6077 if test "${cf_cv_have_utmp_ut_xstatus+set}" = set; then
6078 echo $ECHO_N "(cached) $ECHO_C" >&6
6079 else
6080
6081 for cf_result in \
6082 ut_exit.__e_exit \
6083 ut_exit.e_exit \
6084 ut_exit.ut_e_exit \
6085 ut_exit.ut_exit
6086 do
6087 cat >"conftest.$ac_ext" <<_ACEOF
6088 #line 6088 "configure"
6089 #include "confdefs.h"
6090
6091 #include <sys/types.h>
6092 #include <${cf_cv_have_utmp}.h>
6093 int
6094 main (void)
6095 {
6096 struct $cf_cv_have_utmp x;
6097 long y = x.$cf_result = 0;
6098 (void)x;
6099 (void)y
6100 ;
6101 return 0;
6102 }
6103 _ACEOF
6104 rm -f "conftest.$ac_objext"
6105 if { (eval echo "$as_me:6105: \"$ac_compile\"") >&5
6106 (eval $ac_compile) 2>&5
6107 ac_status=$?
6108 echo "$as_me:6108: \$? = $ac_status" >&5
6109 (exit "$ac_status"); } &&
6110 { ac_try='test -s "conftest.$ac_objext"'
6111 { (eval echo "$as_me:6111: \"$ac_try\"") >&5
6112 (eval $ac_try) 2>&5
6113 ac_status=$?
6114 echo "$as_me:6114: \$? = $ac_status" >&5
6115 (exit "$ac_status"); }; }; then
6116 cf_cv_have_utmp_ut_xstatus=$cf_result
6117 break
6118 else
6119 echo "$as_me: failed program was:" >&5
6120 cat "conftest.$ac_ext" >&5
6121 cf_cv_have_utmp_ut_xstatus=no
6122 fi
6123 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
6124 done
6125
6126 fi
6127 echo "$as_me:6127: result: $cf_cv_have_utmp_ut_xstatus" >&5
6128 echo "${ECHO_T}$cf_cv_have_utmp_ut_xstatus" >&6
6129 if test "$cf_cv_have_utmp_ut_xstatus" != no ; then
6130
6131 cat >>confdefs.h <<\EOF
6132 #define HAVE_UTMP_UT_XSTATUS 1
6133 EOF
6134
6135 cat >>confdefs.h <<EOF
6136 #define ut_xstatus $cf_cv_have_utmp_ut_xstatus
6137 EOF
6138
6139 fi
6140 fi
6141
6142 if test "$cf_cv_have_utmp" != no ; then
6143 echo "$as_me:6143: checking if ${cf_cv_have_utmp}.ut_xtime is declared" >&5
6144 echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_xtime is declared... $ECHO_C" >&6
6145 if test "${cf_cv_have_utmp_ut_xtime+set}" = set; then
6146 echo $ECHO_N "(cached) $ECHO_C" >&6
6147 else
6148
6149 cat >"conftest.$ac_ext" <<_ACEOF
6150 #line 6150 "configure"
6151 #include "confdefs.h"
6152
6153 #include <sys/types.h>
6154 #include <${cf_cv_have_utmp}.h>
6155 int
6156 main (void)
6157 {
6158 struct $cf_cv_have_utmp x;
6159 long y = x.ut_xtime = 0;
6160 (void)x;
6161 (void)y
6162 ;
6163 return 0;
6164 }
6165 _ACEOF
6166 rm -f "conftest.$ac_objext"
6167 if { (eval echo "$as_me:6167: \"$ac_compile\"") >&5
6168 (eval $ac_compile) 2>&5
6169 ac_status=$?
6170 echo "$as_me:6170: \$? = $ac_status" >&5
6171 (exit "$ac_status"); } &&
6172 { ac_try='test -s "conftest.$ac_objext"'
6173 { (eval echo "$as_me:6173: \"$ac_try\"") >&5
6174 (eval $ac_try) 2>&5
6175 ac_status=$?
6176 echo "$as_me:6176: \$? = $ac_status" >&5
6177 (exit "$ac_status"); }; }; then
6178 cf_cv_have_utmp_ut_xtime=yes
6179 else
6180 echo "$as_me: failed program was:" >&5
6181 cat "conftest.$ac_ext" >&5
6182 cat >"conftest.$ac_ext" <<_ACEOF
6183 #line 6183 "configure"
6184 #include "confdefs.h"
6185
6186 #include <sys/types.h>
6187 #include <${cf_cv_have_utmp}.h>
6188 int
6189 main (void)
6190 {
6191 struct $cf_cv_have_utmp x;
6192 long y = x.ut_tv.tv_sec;
6193 (void)x;
6194 (void)y
6195 ;
6196 return 0;
6197 }
6198 _ACEOF
6199 rm -f "conftest.$ac_objext"
6200 if { (eval echo "$as_me:6200: \"$ac_compile\"") >&5
6201 (eval $ac_compile) 2>&5
6202 ac_status=$?
6203 echo "$as_me:6203: \$? = $ac_status" >&5
6204 (exit "$ac_status"); } &&
6205 { ac_try='test -s "conftest.$ac_objext"'
6206 { (eval echo "$as_me:6206: \"$ac_try\"") >&5
6207 (eval $ac_try) 2>&5
6208 ac_status=$?
6209 echo "$as_me:6209: \$? = $ac_status" >&5
6210 (exit "$ac_status"); }; }; then
6211 cf_cv_have_utmp_ut_xtime=define
6212 else
6213 echo "$as_me: failed program was:" >&5
6214 cat "conftest.$ac_ext" >&5
6215 cf_cv_have_utmp_ut_xtime=no
6216 fi
6217 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
6218
6219 fi
6220 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
6221
6222 fi
6223 echo "$as_me:6223: result: $cf_cv_have_utmp_ut_xtime" >&5
6224 echo "${ECHO_T}$cf_cv_have_utmp_ut_xtime" >&6
6225 if test "$cf_cv_have_utmp_ut_xtime" != no ; then
6226
6227 cat >>confdefs.h <<\EOF
6228 #define HAVE_UTMP_UT_XTIME 1
6229 EOF
6230
6231 if test "$cf_cv_have_utmp_ut_xtime" = define ; then
6232
6233 cat >>confdefs.h <<\EOF
6234 #define ut_xtime ut_tv.tv_sec
6235 EOF
6236
6237 fi
6238 fi
6239 fi
6240
6241 if test "$cf_cv_have_utmp" != no ; then
6242 echo "$as_me:6242: checking if ${cf_cv_have_utmp}.ut_session is declared" >&5
6243 echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_session is declared... $ECHO_C" >&6
6244 if test "${cf_cv_have_utmp_ut_session+set}" = set; then
6245 echo $ECHO_N "(cached) $ECHO_C" >&6
6246 else
6247
6248 cat >"conftest.$ac_ext" <<_ACEOF
6249 #line 6249 "configure"
6250 #include "confdefs.h"
6251
6252 #include <sys/types.h>
6253 #include <${cf_cv_have_utmp}.h>
6254 int
6255 main (void)
6256 {
6257 struct $cf_cv_have_utmp x;
6258 long y = x.ut_session;
6259 (void)x;
6260 (void)y
6261 ;
6262 return 0;
6263 }
6264 _ACEOF
6265 rm -f "conftest.$ac_objext"
6266 if { (eval echo "$as_me:6266: \"$ac_compile\"") >&5
6267 (eval $ac_compile) 2>&5
6268 ac_status=$?
6269 echo "$as_me:6269: \$? = $ac_status" >&5
6270 (exit "$ac_status"); } &&
6271 { ac_try='test -s "conftest.$ac_objext"'
6272 { (eval echo "$as_me:6272: \"$ac_try\"") >&5
6273 (eval $ac_try) 2>&5
6274 ac_status=$?
6275 echo "$as_me:6275: \$? = $ac_status" >&5
6276 (exit "$ac_status"); }; }; then
6277 cf_cv_have_utmp_ut_session=yes
6278 else
6279 echo "$as_me: failed program was:" >&5
6280 cat "conftest.$ac_ext" >&5
6281 cf_cv_have_utmp_ut_session=no
6282 fi
6283 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
6284
6285 fi
6286 echo "$as_me:6286: result: $cf_cv_have_utmp_ut_session" >&5
6287 echo "${ECHO_T}$cf_cv_have_utmp_ut_session" >&6
6288 if test "$cf_cv_have_utmp_ut_session" != no ; then
6289
6290 cat >>confdefs.h <<\EOF
6291 #define HAVE_UTMP_UT_SESSION 1
6292 EOF
6293
6294 fi
6295 fi
6296
6297 echo "$as_me:6297: checking if $cf_cv_have_utmp is SYSV flavor" >&5
6298 echo $ECHO_N "checking if $cf_cv_have_utmp is SYSV flavor... $ECHO_C" >&6
6299 if test "${cf_cv_sysv_utmp+set}" = set; then
6300 echo $ECHO_N "(cached) $ECHO_C" >&6
6301 else
6302
6303 test "$cf_cv_have_utmp" = "utmp" && cf_prefix="ut" || cf_prefix="utx"
6304 cat >"conftest.$ac_ext" <<_ACEOF
6305 #line 6305 "configure"
6306 #include "confdefs.h"
6307
6308 #include <sys/types.h>
6309 #include <${cf_cv_have_utmp}.h>
6310 int
6311 main (void)
6312 {
6313
6314 struct $cf_cv_have_utmp x;
6315 set${cf_prefix}ent ();
6316 get${cf_prefix}id(&x);
6317 put${cf_prefix}line(&x);
6318 end${cf_prefix}ent();
6319 ;
6320 return 0;
6321 }
6322 _ACEOF
6323 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
6324 if { (eval echo "$as_me:6324: \"$ac_link\"") >&5
6325 (eval $ac_link) 2>&5
6326 ac_status=$?
6327 echo "$as_me:6327: \$? = $ac_status" >&5
6328 (exit "$ac_status"); } &&
6329 { ac_try='test -s "conftest$ac_exeext"'
6330 { (eval echo "$as_me:6330: \"$ac_try\"") >&5
6331 (eval $ac_try) 2>&5
6332 ac_status=$?
6333 echo "$as_me:6333: \$? = $ac_status" >&5
6334 (exit "$ac_status"); }; }; then
6335 cf_cv_sysv_utmp=yes
6336 else
6337 echo "$as_me: failed program was:" >&5
6338 cat "conftest.$ac_ext" >&5
6339 cf_cv_sysv_utmp=no
6340 fi
6341 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
6342
6343 fi
6344 echo "$as_me:6344: result: $cf_cv_sysv_utmp" >&5
6345 echo "${ECHO_T}$cf_cv_sysv_utmp" >&6
6346 test "$cf_cv_sysv_utmp" = yes &&
6347 cat >>confdefs.h <<\EOF
6348 #define USE_SYSV_UTMP 1
6349 EOF
6350
6351 fi
6352
6353 for ac_header in lastlog.h
6354 do
6355 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6356 echo "$as_me:6356: checking for $ac_header" >&5
6357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6358 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6359 echo $ECHO_N "(cached) $ECHO_C" >&6
6360 else
6361 cat >"conftest.$ac_ext" <<_ACEOF
6362 #line 6362 "configure"
6363 #include "confdefs.h"
6364 #include <$ac_header>
6365 _ACEOF
6366 if { (eval echo "$as_me:6366: \"$ac_cpp "conftest.$ac_ext"\"") >&5
6367 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
6368 ac_status=$?
6369 $EGREP -v '^ *\+' conftest.er1 >conftest.err
6370 rm -f conftest.er1
6371 cat conftest.err >&5
6372 echo "$as_me:6372: \$? = $ac_status" >&5
6373 (exit "$ac_status"); } >/dev/null; then
6374 if test -s conftest.err; then
6375 ac_cpp_err=$ac_c_preproc_warn_flag
6376 else
6377 ac_cpp_err=
6378 fi
6379 else
6380 ac_cpp_err=yes
6381 fi
6382 if test -z "$ac_cpp_err"; then
6383 eval "$as_ac_Header=yes"
6384 else
6385 echo "$as_me: failed program was:" >&5
6386 cat "conftest.$ac_ext" >&5
6387 eval "$as_ac_Header=no"
6388 fi
6389 rm -f conftest.err "conftest.$ac_ext"
6390 fi
6391 echo "$as_me:6391: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
6392 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
6393 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
6394 cat >>confdefs.h <<EOF
6395 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6396 EOF
6397
6398 fi
6399 done
6400
6401 echo "$as_me:6401: checking for struct lastlog" >&5
6402 echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6
6403 if test "${cf_cv_struct_lastlog+set}" = set; then
6404 echo $ECHO_N "(cached) $ECHO_C" >&6
6405 else
6406
6407 if test "$cross_compiling" = yes; then
6408
6409 cf_cv_struct_lastlog=unknown
6410 else
6411 cat >"conftest.$ac_ext" <<_ACEOF
6412 #line 6412 "configure"
6413 #include "confdefs.h"
6414
6415 #include <sys/types.h>
6416 #include <time.h>
6417 #include <lastlog.h>
6418
6419 int main(void)
6420 {
6421 struct lastlog data;
6422 return (sizeof(data.ll_time) != sizeof(time_t));
6423 }
6424 _ACEOF
6425 rm -f "conftest$ac_exeext"
6426 if { (eval echo "$as_me:6426: \"$ac_link\"") >&5
6427 (eval $ac_link) 2>&5
6428 ac_status=$?
6429 echo "$as_me:6429: \$? = $ac_status" >&5
6430 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
6431 { (eval echo "$as_me:6431: \"$ac_try\"") >&5
6432 (eval $ac_try) 2>&5
6433 ac_status=$?
6434 echo "$as_me:6434: \$? = $ac_status" >&5
6435 (exit "$ac_status"); }; }; then
6436
6437 cf_cv_struct_lastlog=yes
6438 else
6439 echo "$as_me: program exited with status $ac_status" >&5
6440 echo "$as_me: failed program was:" >&5
6441 cat "conftest.$ac_ext" >&5
6442
6443 cf_cv_struct_lastlog=no
6444 fi
6445 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
6446 fi
6447 fi
6448 echo "$as_me:6448: result: $cf_cv_struct_lastlog" >&5
6449 echo "${ECHO_T}$cf_cv_struct_lastlog" >&6
6450
6451 test $cf_cv_struct_lastlog != no &&
6452 cat >>confdefs.h <<\EOF
6453 #define USE_STRUCT_LASTLOG 1
6454 EOF
6455
6456 for ac_header in \
6457 sys/param.h \
6458
6459 do
6460 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6461 echo "$as_me:6461: checking for $ac_header" >&5
6462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6463 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6464 echo $ECHO_N "(cached) $ECHO_C" >&6
6465 else
6466 cat >"conftest.$ac_ext" <<_ACEOF
6467 #line 6467 "configure"
6468 #include "confdefs.h"
6469 #include <$ac_header>
6470 _ACEOF
6471 if { (eval echo "$as_me:6471: \"$ac_cpp "conftest.$ac_ext"\"") >&5
6472 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
6473 ac_status=$?
6474 $EGREP -v '^ *\+' conftest.er1 >conftest.err
6475 rm -f conftest.er1
6476 cat conftest.err >&5
6477 echo "$as_me:6477: \$? = $ac_status" >&5
6478 (exit "$ac_status"); } >/dev/null; then
6479 if test -s conftest.err; then
6480 ac_cpp_err=$ac_c_preproc_warn_flag
6481 else
6482 ac_cpp_err=
6483 fi
6484 else
6485 ac_cpp_err=yes
6486 fi
6487 if test -z "$ac_cpp_err"; then
6488 eval "$as_ac_Header=yes"
6489 else
6490 echo "$as_me: failed program was:" >&5
6491 cat "conftest.$ac_ext" >&5
6492 eval "$as_ac_Header=no"
6493 fi
6494 rm -f conftest.err "conftest.$ac_ext"
6495 fi
6496 echo "$as_me:6496: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
6497 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
6498 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
6499 cat >>confdefs.h <<EOF
6500 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6501 EOF
6502
6503 fi
6504 done
6505
6506 echo "$as_me:6506: checking if POSIX saved-ids are supported" >&5
6507 echo $ECHO_N "checking if POSIX saved-ids are supported... $ECHO_C" >&6
6508 if test "${cf_cv_posix_saved_ids+set}" = set; then
6509 echo $ECHO_N "(cached) $ECHO_C" >&6
6510 else
6511
6512 cat >"conftest.$ac_ext" <<_ACEOF
6513 #line 6513 "configure"
6514 #include "confdefs.h"
6515
6516 #include <unistd.h>
6517 #ifdef HAVE_SYS_PARAM_H
6518 #include <sys/param.h> /* this may define "BSD" */
6519 #endif
6520
6521 int
6522 main (void)
6523 {
6524
6525 #if defined(_POSIX_SAVED_IDS) && (_POSIX_SAVED_IDS > 0)
6526 void *p = (void *) seteuid;
6527 int x = seteuid(geteuid());
6528 (void)p;
6529 (void)x;
6530 #elif defined(BSD) && (BSD >= 199103)
6531 /* The BSD's may implement the runtime check - and it fails.
6532 * However, saved-ids work almost like POSIX (close enough for most uses).
6533 */
6534 #else
6535 make an error
6536 #endif
6537
6538 ;
6539 return 0;
6540 }
6541 _ACEOF
6542 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
6543 if { (eval echo "$as_me:6543: \"$ac_link\"") >&5
6544 (eval $ac_link) 2>&5
6545 ac_status=$?
6546 echo "$as_me:6546: \$? = $ac_status" >&5
6547 (exit "$ac_status"); } &&
6548 { ac_try='test -s "conftest$ac_exeext"'
6549 { (eval echo "$as_me:6549: \"$ac_try\"") >&5
6550 (eval $ac_try) 2>&5
6551 ac_status=$?
6552 echo "$as_me:6552: \$? = $ac_status" >&5
6553 (exit "$ac_status"); }; }; then
6554 cf_cv_posix_saved_ids=yes
6555
6556 else
6557 echo "$as_me: failed program was:" >&5
6558 cat "conftest.$ac_ext" >&5
6559
6560 if test "$cross_compiling" = yes; then
6561 cf_cv_posix_saved_ids=unknown
6562 else
6563 cat >"conftest.$ac_ext" <<_ACEOF
6564 #line 6564 "configure"
6565 #include "confdefs.h"
6566
6567 #ifdef HAVE_STDLIB_H
6568 #include <stdlib.h>
6569 #endif
6570 #include <unistd.h>
6571 int main(void)
6572 {
6573 void *p = (void *) seteuid;
6574 long code = sysconf(_SC_SAVED_IDS);
6575 (void)p;
6576 ${cf_cv_main_return:-return} ((code > 0) ? 0 : 1);
6577 }
6578 _ACEOF
6579 rm -f "conftest$ac_exeext"
6580 if { (eval echo "$as_me:6580: \"$ac_link\"") >&5
6581 (eval $ac_link) 2>&5
6582 ac_status=$?
6583 echo "$as_me:6583: \$? = $ac_status" >&5
6584 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
6585 { (eval echo "$as_me:6585: \"$ac_try\"") >&5
6586 (eval $ac_try) 2>&5
6587 ac_status=$?
6588 echo "$as_me:6588: \$? = $ac_status" >&5
6589 (exit "$ac_status"); }; }; then
6590 cf_cv_posix_saved_ids=yes
6591 else
6592 echo "$as_me: program exited with status $ac_status" >&5
6593 echo "$as_me: failed program was:" >&5
6594 cat "conftest.$ac_ext" >&5
6595 cf_cv_posix_saved_ids=no
6596 fi
6597 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
6598 fi
6599
6600 fi
6601 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
6602
6603 fi
6604 echo "$as_me:6604: result: $cf_cv_posix_saved_ids" >&5
6605 echo "${ECHO_T}$cf_cv_posix_saved_ids" >&6
6606
6607 test "$cf_cv_posix_saved_ids" = yes &&
6608 cat >>confdefs.h <<\EOF
6609 #define HAVE_POSIX_SAVED_IDS 1
6610 EOF
6611
6612 # compute a reasonable value for $TERM to give tgetent(), since we may be
6613 # running in 'screen', which sets $TERMCAP to a specific entry that is not
6614 # necessarily in /etc/termcap - unsetenv is not portable, so we cannot simply
6615 # discard $TERMCAP.
6616 cf_TERMVAR=vt100
6617 if test -n "$TERMCAP"
6618 then
6619 cf_TERMCAP=`echo "$TERMCAP" | tr '\n' ' ' | sed -e 's/^..|//' -e 's/|.*//'`
6620 case "$cf_TERMCAP" in
6621 (screen*.*)
6622 ;;
6623 (*)
6624 cf_TERMVAR="$cf_TERMCAP"
6625 ;;
6626 esac
6627 fi
6628 test -z "$cf_TERMVAR" && cf_TERMVAR=vt100
6629
6630 # BSD termcap used no header file
6631 # SVr4 provided termcap prototypes as a legacy feature in term.h
6632 # GNU termcap provided termcap prototypes in termcap.h
6633 # ncurses provides termcap prototypes in both term.h and termcap.h
6634 #
6635 # The terminfo-based termcap interfaces do not provide a full tgetent (i.e., do
6636 # not return the text of the termcap entry in the buffer), but as a special
6637 # case, FreeBSD provides ncurses' termcap.h with a modified termcap reader that
6638 # returns the termcap text.
6639
6640 for ac_header in termcap.h
6641 do
6642 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6643 echo "$as_me:6643: checking for $ac_header" >&5
6644 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6645 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6646 echo $ECHO_N "(cached) $ECHO_C" >&6
6647 else
6648 cat >"conftest.$ac_ext" <<_ACEOF
6649 #line 6649 "configure"
6650 #include "confdefs.h"
6651 #include <$ac_header>
6652 _ACEOF
6653 if { (eval echo "$as_me:6653: \"$ac_cpp "conftest.$ac_ext"\"") >&5
6654 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
6655 ac_status=$?
6656 $EGREP -v '^ *\+' conftest.er1 >conftest.err
6657 rm -f conftest.er1
6658 cat conftest.err >&5
6659 echo "$as_me:6659: \$? = $ac_status" >&5
6660 (exit "$ac_status"); } >/dev/null; then
6661 if test -s conftest.err; then
6662 ac_cpp_err=$ac_c_preproc_warn_flag
6663 else
6664 ac_cpp_err=
6665 fi
6666 else
6667 ac_cpp_err=yes
6668 fi
6669 if test -z "$ac_cpp_err"; then
6670 eval "$as_ac_Header=yes"
6671 else
6672 echo "$as_me: failed program was:" >&5
6673 cat "conftest.$ac_ext" >&5
6674 eval "$as_ac_Header=no"
6675 fi
6676 rm -f conftest.err "conftest.$ac_ext"
6677 fi
6678 echo "$as_me:6678: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
6679 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
6680 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
6681 cat >>confdefs.h <<EOF
6682 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6683 EOF
6684
6685 fi
6686 done
6687
6688 echo "$as_me:6688: checking if we want full tgetent function" >&5
6689 echo $ECHO_N "checking if we want full tgetent function... $ECHO_C" >&6
6690
6691 # Check whether --enable-full-tgetent or --disable-full-tgetent was given.
6692 if test "${enable_full_tgetent+set}" = set; then
6693 enableval="$enable_full_tgetent"
6694 test "$enableval" != no && enableval=yes
6695 if test "$enableval" != "yes" ; then
6696 cf_full_tgetent=no
6697 else
6698 cf_full_tgetent=yes
6699 fi
6700 else
6701 enableval=yes
6702 cf_full_tgetent=yes
6703
6704 fi;
6705 echo "$as_me:6705: result: $cf_full_tgetent" >&5
6706 echo "${ECHO_T}$cf_full_tgetent" >&6
6707
6708 if test "$cf_full_tgetent" = yes ; then
6709 cf_test_message="full tgetent"
6710 else
6711 cf_test_message="tgetent"
6712 fi
6713
6714 echo "$as_me:6714: checking for $cf_test_message function" >&5
6715 echo $ECHO_N "checking for $cf_test_message function... $ECHO_C" >&6
6716 if test "${cf_cv_lib_tgetent+set}" = set; then
6717 echo $ECHO_N "(cached) $ECHO_C" >&6
6718 else
6719
6720 cf_save_LIBS="$LIBS"
6721 cf_cv_lib_tgetent=no
6722 if test "$cf_full_tgetent" = yes ; then
6723 cf_TERMLIB="otermcap termcap termlib ncurses curses"
6724 cf_TERMTST="buffer[0] == 0"
6725 else
6726 cf_TERMLIB="termlib ncurses curses"
6727 cf_TERMTST="0"
6728 fi
6729 for cf_termlib in '' $cf_TERMLIB ; do
6730 LIBS="$cf_save_LIBS"
6731 test -n "$cf_termlib" && {
6732 cf_add_libs="$LIBS"
6733 # reverse order
6734 cf_add_0lib=
6735 for cf_add_1lib in -l$cf_termlib; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
6736 # filter duplicates
6737 for cf_add_1lib in $cf_add_0lib; do
6738 for cf_add_2lib in $cf_add_libs; do
6739 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
6740 cf_add_1lib=
6741 break
6742 fi
6743 done
6744 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
6745 done
6746 LIBS="$cf_add_libs"
6747 }
6748 if test "$cross_compiling" = yes; then
6749 echo "cross-compiling, cannot verify if a termcap/tgetent is present in $cf_termlib" 1>&5
6750 else
6751 cat >"conftest.$ac_ext" <<_ACEOF
6752 #line 6752 "configure"
6753 #include "confdefs.h"
6754
6755 #ifdef HAVE_TERMCAP_H
6756 #include <termcap.h>
6757 #endif
6758 /* terminfo implementations ignore the buffer argument, making it useless for
6759 * the xterm application, which uses this information to make a new TERMCAP
6760 * environment variable.
6761 */
6762 int main(void)
6763 {
6764 char buffer[1024];
6765 buffer[0] = 0;
6766 tgetent(buffer, "$cf_TERMVAR");
6767 ${cf_cv_main_return:-return} ($cf_TERMTST); }
6768 _ACEOF
6769 rm -f "conftest$ac_exeext"
6770 if { (eval echo "$as_me:6770: \"$ac_link\"") >&5
6771 (eval $ac_link) 2>&5
6772 ac_status=$?
6773 echo "$as_me:6773: \$? = $ac_status" >&5
6774 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
6775 { (eval echo "$as_me:6775: \"$ac_try\"") >&5
6776 (eval $ac_try) 2>&5
6777 ac_status=$?
6778 echo "$as_me:6778: \$? = $ac_status" >&5
6779 (exit "$ac_status"); }; }; then
6780 echo "yes, there is a termcap/tgetent in $cf_termlib" 1>&5
6781 if test -n "$cf_termlib" ; then
6782 cf_cv_lib_tgetent="-l$cf_termlib"
6783 else
6784 cf_cv_lib_tgetent=yes
6785 fi
6786 break
6787 else
6788 echo "$as_me: program exited with status $ac_status" >&5
6789 echo "$as_me: failed program was:" >&5
6790 cat "conftest.$ac_ext" >&5
6791 echo "no, there is no termcap/tgetent in $cf_termlib" 1>&5
6792 fi
6793 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
6794 fi
6795 done
6796 LIBS="$cf_save_LIBS"
6797
6798 fi
6799 echo "$as_me:6799: result: $cf_cv_lib_tgetent" >&5
6800 echo "${ECHO_T}$cf_cv_lib_tgetent" >&6
6801
6802 # If we found a working tgetent(), set LIBS and check for termcap.h.
6803 # (LIBS cannot be set inside AC_CACHE_CHECK; the commands there should
6804 # not have side effects other than setting the cache variable, because
6805 # they are not executed when a cached value exists.)
6806 if test "x$cf_cv_lib_tgetent" != xno ; then
6807 test "x$cf_cv_lib_tgetent" != xyes && {
6808 cf_add_libs="$LIBS"
6809 # reverse order
6810 cf_add_0lib=
6811 for cf_add_1lib in $cf_cv_lib_tgetent; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
6812 # filter duplicates
6813 for cf_add_1lib in $cf_add_0lib; do
6814 for cf_add_2lib in $cf_add_libs; do
6815 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
6816 cf_add_1lib=
6817 break
6818 fi
6819 done
6820 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
6821 done
6822 LIBS="$cf_add_libs"
6823 }
6824
6825 cat >>confdefs.h <<\EOF
6826 #define USE_TERMCAP 1
6827 EOF
6828
6829 if test "$cf_full_tgetent" = no ; then
6830 cat >"conftest.$ac_ext" <<_ACEOF
6831 #line 6831 "configure"
6832 #include "confdefs.h"
6833
6834 #include <termcap.h>
6835 int
6836 main (void)
6837 {
6838
6839 #ifdef NCURSES_VERSION
6840 make an error
6841 #endif
6842 ;
6843 return 0;
6844 }
6845 _ACEOF
6846 rm -f "conftest.$ac_objext"
6847 if { (eval echo "$as_me:6847: \"$ac_compile\"") >&5
6848 (eval $ac_compile) 2>&5
6849 ac_status=$?
6850 echo "$as_me:6850: \$? = $ac_status" >&5
6851 (exit "$ac_status"); } &&
6852 { ac_try='test -s "conftest.$ac_objext"'
6853 { (eval echo "$as_me:6853: \"$ac_try\"") >&5
6854 (eval $ac_try) 2>&5
6855 ac_status=$?
6856 echo "$as_me:6856: \$? = $ac_status" >&5
6857 (exit "$ac_status"); }; }; then
6858 cat >>confdefs.h <<\EOF
6859 #define HAVE_TERMCAP_H 1
6860 EOF
6861
6862 else
6863 echo "$as_me: failed program was:" >&5
6864 cat "conftest.$ac_ext" >&5
6865 fi
6866 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
6867 else
6868
6869 for ac_header in termcap.h
6870 do
6871 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6872 echo "$as_me:6872: checking for $ac_header" >&5
6873 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6874 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6875 echo $ECHO_N "(cached) $ECHO_C" >&6
6876 else
6877 cat >"conftest.$ac_ext" <<_ACEOF
6878 #line 6878 "configure"
6879 #include "confdefs.h"
6880 #include <$ac_header>
6881 _ACEOF
6882 if { (eval echo "$as_me:6882: \"$ac_cpp "conftest.$ac_ext"\"") >&5
6883 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
6884 ac_status=$?
6885 $EGREP -v '^ *\+' conftest.er1 >conftest.err
6886 rm -f conftest.er1
6887 cat conftest.err >&5
6888 echo "$as_me:6888: \$? = $ac_status" >&5
6889 (exit "$ac_status"); } >/dev/null; then
6890 if test -s conftest.err; then
6891 ac_cpp_err=$ac_c_preproc_warn_flag
6892 else
6893 ac_cpp_err=
6894 fi
6895 else
6896 ac_cpp_err=yes
6897 fi
6898 if test -z "$ac_cpp_err"; then
6899 eval "$as_ac_Header=yes"
6900 else
6901 echo "$as_me: failed program was:" >&5
6902 cat "conftest.$ac_ext" >&5
6903 eval "$as_ac_Header=no"
6904 fi
6905 rm -f conftest.err "conftest.$ac_ext"
6906 fi
6907 echo "$as_me:6907: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
6908 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
6909 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
6910 cat >>confdefs.h <<EOF
6911 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6912 EOF
6913
6914 fi
6915 done
6916
6917 fi
6918 else
6919 # If we didn't find a tgetent() that supports the buffer
6920 # argument, look again to see whether we can find even
6921 # a crippled one. A crippled tgetent() is still useful to
6922 # validate values for the TERM environment variable given to
6923 # child processes.
6924 echo "$as_me:6924: checking for partial tgetent function" >&5
6925 echo $ECHO_N "checking for partial tgetent function... $ECHO_C" >&6
6926 if test "${cf_cv_lib_part_tgetent+set}" = set; then
6927 echo $ECHO_N "(cached) $ECHO_C" >&6
6928 else
6929
6930 cf_cv_lib_part_tgetent=no
6931 for cf_termlib in $cf_TERMLIB ; do
6932 LIBS="$cf_save_LIBS -l$cf_termlib"
6933 cat >"conftest.$ac_ext" <<_ACEOF
6934 #line 6934 "configure"
6935 #include "confdefs.h"
6936
6937 int
6938 main (void)
6939 {
6940 tgetent(0, "$cf_TERMVAR")
6941 ;
6942 return 0;
6943 }
6944 _ACEOF
6945 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
6946 if { (eval echo "$as_me:6946: \"$ac_link\"") >&5
6947 (eval $ac_link) 2>&5
6948 ac_status=$?
6949 echo "$as_me:6949: \$? = $ac_status" >&5
6950 (exit "$ac_status"); } &&
6951 { ac_try='test -s "conftest$ac_exeext"'
6952 { (eval echo "$as_me:6952: \"$ac_try\"") >&5
6953 (eval $ac_try) 2>&5
6954 ac_status=$?
6955 echo "$as_me:6955: \$? = $ac_status" >&5
6956 (exit "$ac_status"); }; }; then
6957 echo "there is a terminfo/tgetent in $cf_termlib" 1>&5
6958 cf_cv_lib_part_tgetent="-l$cf_termlib"
6959 break
6960 else
6961 echo "$as_me: failed program was:" >&5
6962 cat "conftest.$ac_ext" >&5
6963 fi
6964 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
6965 done
6966 LIBS="$cf_save_LIBS"
6967
6968 fi
6969 echo "$as_me:6969: result: $cf_cv_lib_part_tgetent" >&5
6970 echo "${ECHO_T}$cf_cv_lib_part_tgetent" >&6
6971
6972 if test "$cf_cv_lib_part_tgetent" != no ; then
6973
6974 cf_add_libs="$LIBS"
6975 # reverse order
6976 cf_add_0lib=
6977 for cf_add_1lib in $cf_cv_lib_part_tgetent; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
6978 # filter duplicates
6979 for cf_add_1lib in $cf_add_0lib; do
6980 for cf_add_2lib in $cf_add_libs; do
6981 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
6982 cf_add_1lib=
6983 break
6984 fi
6985 done
6986 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
6987 done
6988 LIBS="$cf_add_libs"
6989
6990 for ac_header in termcap.h
6991 do
6992 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6993 echo "$as_me:6993: checking for $ac_header" >&5
6994 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6995 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6996 echo $ECHO_N "(cached) $ECHO_C" >&6
6997 else
6998 cat >"conftest.$ac_ext" <<_ACEOF
6999 #line 6999 "configure"
7000 #include "confdefs.h"
7001 #include <$ac_header>
7002 _ACEOF
7003 if { (eval echo "$as_me:7003: \"$ac_cpp "conftest.$ac_ext"\"") >&5
7004 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
7005 ac_status=$?
7006 $EGREP -v '^ *\+' conftest.er1 >conftest.err
7007 rm -f conftest.er1
7008 cat conftest.err >&5
7009 echo "$as_me:7009: \$? = $ac_status" >&5
7010 (exit "$ac_status"); } >/dev/null; then
7011 if test -s conftest.err; then
7012 ac_cpp_err=$ac_c_preproc_warn_flag
7013 else
7014 ac_cpp_err=
7015 fi
7016 else
7017 ac_cpp_err=yes
7018 fi
7019 if test -z "$ac_cpp_err"; then
7020 eval "$as_ac_Header=yes"
7021 else
7022 echo "$as_me: failed program was:" >&5
7023 cat "conftest.$ac_ext" >&5
7024 eval "$as_ac_Header=no"
7025 fi
7026 rm -f conftest.err "conftest.$ac_ext"
7027 fi
7028 echo "$as_me:7028: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
7029 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
7030 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
7031 cat >>confdefs.h <<EOF
7032 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7033 EOF
7034
7035 fi
7036 done
7037
7038 # If this is linking against ncurses, we'll trigger the
7039 # ifdef in resize.c that turns the termcap stuff back off.
7040
7041 cat >>confdefs.h <<\EOF
7042 #define USE_TERMINFO 1
7043 EOF
7044
7045 fi
7046 fi
7047
7048 echo "$as_me:7048: checking for X applications class" >&5
7049 echo $ECHO_N "checking for X applications class... $ECHO_C" >&6
7050
7051 # Check whether --with-app-class or --without-app-class was given.
7052 if test "${with_app_class+set}" = set; then
7053 withval="$with_app_class"
7054 APP_CLASS=$withval
7055 else
7056 APP_CLASS=XTerm
7057 fi;
7058
7059 case x$APP_CLASS in
7060 (*[/@,%]*)
7061 { echo "$as_me:7061: WARNING: X applications class cannot contain punctuation" >&5
7062 echo "$as_me: WARNING: X applications class cannot contain punctuation" >&2;}
7063 APP_CLASS=XTerm
7064 ;;
7065 (x[A-Z]*)
7066 ;;
7067 (*)
7068 { echo "$as_me:7068: WARNING: X applications class must start with capital, ignoring $APP_CLASS" >&5
7069 echo "$as_me: WARNING: X applications class must start with capital, ignoring $APP_CLASS" >&2;}
7070 APP_CLASS=XTerm
7071 ;;
7072 esac
7073
7074 echo "$as_me:7074: result: $APP_CLASS" >&5
7075 echo "${ECHO_T}$APP_CLASS" >&6
7076
7077 echo "$as_me:7077: checking for directory to install resource files" >&5
7078 echo $ECHO_N "checking for directory to install resource files... $ECHO_C" >&6
7079
7080 # Check whether --with-app-defaults or --without-app-defaults was given.
7081 if test "${with_app_defaults+set}" = set; then
7082 withval="$with_app_defaults"
7083 APPSDIR=$withval
7084 else
7085 APPSDIR='${exec_prefix}/lib/X11/app-defaults'
7086 fi;
7087
7088 if test "x$APPSDIR" = xauto
7089 then
7090 APPSDIR='${exec_prefix}/lib/X11/app-defaults'
7091 for cf_path in \
7092 /opt/local/share/X11/app-defaults \
7093 /opt/X11/share/X11/app-defaults \
7094 /usr/share/X11/app-defaults \
7095 /usr/X11/share/X11/app-defaults \
7096 /usr/X11/lib/X11/app-defaults \
7097 /usr/lib/X11/app-defaults \
7098 /etc/X11/app-defaults \
7099 /usr/pkg/lib/X11/app-defaults \
7100 /usr/X11R7/lib/X11/app-defaults \
7101 /usr/X11R6/lib/X11/app-defaults \
7102 /usr/X11R5/lib/X11/app-defaults \
7103 /usr/X11R4/lib/X11/app-defaults \
7104 /usr/local/lib/X11/app-defaults \
7105 /usr/local/share/X11/app-defaults \
7106 /usr/lib64/X11/app-defaults
7107 do
7108 if test -d "$cf_path" ; then
7109 APPSDIR="$cf_path"
7110 break
7111 fi
7112 done
7113 else
7114 cf_path=$APPSDIR
7115
7116 if test "x$prefix" != xNONE; then
7117 cf_path_syntax="$prefix"
7118 else
7119 cf_path_syntax="$ac_default_prefix"
7120 fi
7121
7122 case ".$cf_path" in
7123 (.\$\(*\)*|.\'*\'*)
7124 ;;
7125 (..|./*|.\\*)
7126 ;;
7127 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
7128 ;;
7129 (.\$\{*prefix\}*|.\$\{*dir\}*)
7130 eval cf_path="$cf_path"
7131 case ".$cf_path" in
7132 (.NONE/*)
7133 cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%`
7134 ;;
7135 esac
7136 ;;
7137 (.no|.NONE/*)
7138 cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%`
7139 ;;
7140 (*)
7141 { { echo "$as_me:7141: error: expected a pathname, not \"$cf_path\"" >&5
7142 echo "$as_me: error: expected a pathname, not \"$cf_path\"" >&2;}
7143 { (exit 1); exit 1; }; }
7144 ;;
7145 esac
7146
7147 fi
7148
7149 echo "$as_me:7149: result: $APPSDIR" >&5
7150 echo "${ECHO_T}$APPSDIR" >&6
7151
7152 no_appsdir=
7153 if test "$APPSDIR" = no
7154 then
7155 no_appsdir="#"
7156 else
7157 EXTRA_INSTALL_DIRS="$EXTRA_INSTALL_DIRS \$(APPSDIR)"
7158 fi
7159
7160 echo "$as_me:7160: checking for the icon name" >&5
7161 echo $ECHO_N "checking for the icon name... $ECHO_C" >&6
7162
7163 # Check whether --with-icon-name or --without-icon-name was given.
7164 if test "${with_icon_name+set}" = set; then
7165 withval="$with_icon_name"
7166 ICON_NAME="$withval"
7167 else
7168 ICON_NAME=mini.xterm
7169 fi;
7170 case "x$ICON_NAME" in
7171 (xyes|xno|x)
7172 ICON_NAME=mini.xterm
7173 ;;
7174 esac
7175
7176 echo "$as_me:7176: result: $ICON_NAME" >&5
7177 echo "${ECHO_T}$ICON_NAME" >&6
7178
7179 echo "$as_me:7179: checking for icon symlink to use" >&5
7180 echo $ECHO_N "checking for icon symlink to use... $ECHO_C" >&6
7181
7182 # Check whether --with-icon-symlink or --without-icon-symlink was given.
7183 if test "${with_icon_symlink+set}" = set; then
7184 withval="$with_icon_symlink"
7185 ICON_SYMLINK="$withval"
7186 else
7187 ICON_SYMLINK=NONE
7188 fi;
7189 case "x$ICON_SYMLINK" in
7190 (xyes)
7191 ICON_SYMLINK=xterm
7192 ;;
7193 (xno|x)
7194 ICON_SYMLINK=NONE
7195 ;;
7196 esac
7197
7198 echo "$as_me:7198: result: $ICON_SYMLINK" >&5
7199 echo "${ECHO_T}$ICON_SYMLINK" >&6
7200
7201 # Install all icons except for the overused "terminal".
7202 cf_cv_icon_list=
7203 for my_item in $srcdir/icons/*.svg
7204 do
7205 test -f "$my_item" || continue
7206 cf_icon_name=`echo "$my_item" |sed -e "s,.svg,," -e "s,^$srcdir/,,"`
7207 case $cf_icon_name in
7208 (*_48x48)
7209 continue
7210 ;;
7211 esac
7212 test -n "$verbose" && echo " adding $cf_icon_name to icon-list" 1>&6
7213
7214 echo "${as_me:-configure}:7214: testing adding $cf_icon_name to icon-list ..." 1>&5
7215
7216 cf_cv_icon_list="$cf_cv_icon_list $cf_icon_name"
7217 if test -f "${cf_icon_name}_48x48.png"
7218 then
7219 test -n "$verbose" && echo " adding ${cf_icon_name}_48x48 to icon-list" 1>&6
7220
7221 echo "${as_me:-configure}:7221: testing adding ${cf_icon_name}_48x48 to icon-list ..." 1>&5
7222
7223 cf_cv_icon_list="$cf_cv_icon_list ${cf_icon_name}_48x48"
7224 fi
7225 done
7226
7227 echo "$as_me:7227: checking for directory to install pixmaps" >&5
7228 echo $ECHO_N "checking for directory to install pixmaps... $ECHO_C" >&6
7229
7230 # Check whether --with-pixmapdir or --without-pixmapdir was given.
7231 if test "${with_pixmapdir+set}" = set; then
7232 withval="$with_pixmapdir"
7233 PIXMAPDIR=$withval
7234 else
7235 test -z "$PIXMAPDIR" && PIXMAPDIR='${datadir}/pixmaps'
7236 fi;
7237
7238 if test "x$PIXMAPDIR" = xauto
7239 then
7240 PIXMAPDIR='${datadir}/pixmaps'
7241 for cf_path in \
7242 /usr/share/pixmaps \
7243 /usr/X11R6/share/pixmaps
7244 do
7245 if test -d "$cf_path" ; then
7246 PIXMAPDIR="$cf_path"
7247 break
7248 fi
7249 done
7250 else
7251 cf_path=$PIXMAPDIR
7252
7253 if test "x$prefix" != xNONE; then
7254 cf_path_syntax="$prefix"
7255 else
7256 cf_path_syntax="$ac_default_prefix"
7257 fi
7258
7259 case ".$cf_path" in
7260 (.\$\(*\)*|.\'*\'*)
7261 ;;
7262 (..|./*|.\\*)
7263 ;;
7264 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
7265 ;;
7266 (.\$\{*prefix\}*|.\$\{*dir\}*)
7267 eval cf_path="$cf_path"
7268 case ".$cf_path" in
7269 (.NONE/*)
7270 cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%`
7271 ;;
7272 esac
7273 ;;
7274 (.no|.NONE/*)
7275 cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%`
7276 ;;
7277 (*)
7278 { { echo "$as_me:7278: error: expected a pathname, not \"$cf_path\"" >&5
7279 echo "$as_me: error: expected a pathname, not \"$cf_path\"" >&2;}
7280 { (exit 1); exit 1; }; }
7281 ;;
7282 esac
7283
7284 fi
7285 echo "$as_me:7285: result: $PIXMAPDIR" >&5
7286 echo "${ECHO_T}$PIXMAPDIR" >&6
7287
7288 no_pixmapdir=
7289 if test "$PIXMAPDIR" = no
7290 then
7291 no_pixmapdir="#"
7292 else
7293 EXTRA_INSTALL_DIRS="$EXTRA_INSTALL_DIRS \$(PIXMAPDIR)"
7294 fi
7295
7296 echo "$as_me:7296: checking for directory to install icons" >&5
7297 echo $ECHO_N "checking for directory to install icons... $ECHO_C" >&6
7298
7299 # Check whether --with-icondir or --without-icondir was given.
7300 if test "${with_icondir+set}" = set; then
7301 withval="$with_icondir"
7302 ICONDIR=$withval
7303 else
7304 test -z "$ICONDIR" && ICONDIR=no
7305 fi;
7306
7307 if test "x$ICONDIR" = xauto
7308 then
7309 ICONDIR='${datadir}/icons'
7310 for cf_path in \
7311 /usr/share/icons \
7312 /usr/X11R6/share/icons
7313 do
7314 if test -d "$cf_path" ; then
7315 ICONDIR="$cf_path"
7316 break
7317 fi
7318 done
7319 else
7320 cf_path=$ICONDIR
7321
7322 if test "x$prefix" != xNONE; then
7323 cf_path_syntax="$prefix"
7324 else
7325 cf_path_syntax="$ac_default_prefix"
7326 fi
7327
7328 case ".$cf_path" in
7329 (.\$\(*\)*|.\'*\'*)
7330 ;;
7331 (..|./*|.\\*)
7332 ;;
7333 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
7334 ;;
7335 (.\$\{*prefix\}*|.\$\{*dir\}*)
7336 eval cf_path="$cf_path"
7337 case ".$cf_path" in
7338 (.NONE/*)
7339 cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%`
7340 ;;
7341 esac
7342 ;;
7343 (.no|.NONE/*)
7344 cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%`
7345 ;;
7346 (*)
7347 { { echo "$as_me:7347: error: expected a pathname, not \"$cf_path\"" >&5
7348 echo "$as_me: error: expected a pathname, not \"$cf_path\"" >&2;}
7349 { (exit 1); exit 1; }; }
7350 ;;
7351 esac
7352
7353 fi
7354 echo "$as_me:7354: result: $ICONDIR" >&5
7355 echo "${ECHO_T}$ICONDIR" >&6
7356
7357 no_icondir=
7358 if test "$ICONDIR" = no
7359 then
7360 no_icondir="#"
7361 else
7362 EXTRA_INSTALL_DIRS="$EXTRA_INSTALL_DIRS \$(ICONDIR)"
7363 fi
7364
7365 echo "$as_me:7365: checking if icon theme should be used" >&5
7366 echo $ECHO_N "checking if icon theme should be used... $ECHO_C" >&6
7367
7368 # Check whether --with-icon-theme or --without-icon-theme was given.
7369 if test "${with_icon_theme+set}" = set; then
7370 withval="$with_icon_theme"
7371 ICON_THEME=$withval
7372 else
7373 ICON_THEME=no
7374 fi;
7375
7376 case "x$ICON_THEME" in
7377 (xno)
7378 ;;
7379 (x|xyes)
7380 ICON_THEME=hicolor
7381 ;;
7382 esac
7383 echo "$as_me:7383: result: $ICON_THEME" >&5
7384 echo "${ECHO_T}$ICON_THEME" >&6
7385
7386 if test "x$ICON_THEME" = xno
7387 then
7388 if test "x$ICONDIR" != xno
7389 then
7390 test -n "$verbose" && echo " ignoring icondir without theme" 1>&6
7391
7392 echo "${as_me:-configure}:7392: testing ignoring icondir without theme ..." 1>&5
7393
7394 no_icondir="#"
7395 fi
7396 else
7397 if test "x$ICONDIR" = xno
7398 then
7399 { { echo "$as_me:7399: error: icondir must be set for icon theme" >&5
7400 echo "$as_me: error: icondir must be set for icon theme" >&2;}
7401 { (exit 1); exit 1; }; }
7402 fi
7403 fi
7404
7405 : ${ICON_FORMAT:=".svg .png .xpm"}
7406
7407 ICON_LIST=
7408
7409 if test "x$ICON_THEME" != xno
7410 then
7411 cf_icon_list="$cf_cv_icon_list"
7412 else
7413 cf_icon_list="icons/${ICON_NAME}_48x48"
7414 fi
7415
7416 echo "$as_me:7416: checking for icon(s) to install" >&5
7417 echo $ECHO_N "checking for icon(s) to install... $ECHO_C" >&6
7418 for cf_name in $cf_icon_list
7419 do
7420 test -n "$verbose" && echo " using $ICON_FORMAT" 1>&6
7421
7422 echo "${as_me:-configure}:7422: testing using $ICON_FORMAT ..." 1>&5
7423
7424 for cf_suffix in $ICON_FORMAT
7425 do
7426 cf_icon="${cf_name}${cf_suffix}"
7427 cf_left=`echo "$cf_icon" | sed -e 's/:.*//'`
7428 if test ! -f "${cf_left}"
7429 then
7430 if test "x$srcdir" != "x."
7431 then
7432 cf_icon="${srcdir}/${cf_left}"
7433 cf_left=`echo "$cf_icon" | sed -e 's/:.*//'`
7434 if test ! -f "${cf_left}"
7435 then
7436 continue
7437 fi
7438 else
7439 continue
7440 fi
7441 fi
7442 if test "x$ICON_THEME" != xno
7443 then
7444 cf_base=`basename "$cf_left"`
7445 cf_trim=`echo "$cf_base" | sed -e 's/_[0-9][0-9]x[0-9][0-9]\././'`
7446 case "x${cf_base}" in
7447 (*:*)
7448 cf_next=$cf_base
7449 # user-defined mapping
7450 ;;
7451 (*.png)
7452 cf_size=`file "$cf_left"|sed -e 's/^[^:]*://' -e 's/^.*[^0-9]\([0-9][0-9]* x [0-9][0-9]*\)[^0-9].*$/\1/' -e 's/ //g'`
7453 if test -z "$cf_size"
7454 then
7455 { echo "$as_me:7455: WARNING: cannot determine size of $cf_left" >&5
7456 echo "$as_me: WARNING: cannot determine size of $cf_left" >&2;}
7457 continue
7458 fi
7459 cf_next="$cf_size/apps/$cf_trim"
7460 ;;
7461 (*.svg)
7462 cf_next="scalable/apps/$cf_trim"
7463 ;;
7464 (*.xpm)
7465 test -n "$verbose" && echo " ignored XPM file in icon theme" 1>&6
7466
7467 echo "${as_me:-configure}:7467: testing ignored XPM file in icon theme ..." 1>&5
7468
7469 continue
7470 ;;
7471 (*_[0-9][0-9]*x[0-9][0-9]*.*)
7472 cf_size=`echo "$cf_left"|sed -e 's/^.*_\([0-9][0-9]*x[0-9][0-9]*\)\..*$/\1/'`
7473 cf_left=`echo "$cf_left"|sed -e 's/^\(.*\)_\([0-9][0-9]*x[0-9][0-9]*\)\(\..*\)$/\1\3/'`
7474 cf_next="$cf_size/apps/$cf_base"
7475 ;;
7476 esac
7477 test -n "$verbose" && echo " adding $cf_next" 1>&6
7478
7479 echo "${as_me:-configure}:7479: testing adding $cf_next ..." 1>&5
7480
7481 cf_icon="${cf_icon}:${cf_next}"
7482 fi
7483 test -n "$ICON_LIST" && ICON_LIST="$ICON_LIST "
7484 ICON_LIST="$ICON_LIST${cf_icon}"
7485 if test -z "$ICON_NAME"
7486 then
7487 ICON_NAME=`basename "$cf_icon" | sed -e 's/[.:].*//'`
7488 fi
7489 done
7490 done
7491
7492 if test -n "$verbose"
7493 then
7494 echo "$as_me:7494: checking result" >&5
7495 echo $ECHO_N "checking result... $ECHO_C" >&6
7496 fi
7497 echo "$as_me:7497: result: $ICON_LIST" >&5
7498 echo "${ECHO_T}$ICON_LIST" >&6
7499
7500 if test -z "$ICON_LIST"
7501 then
7502 { { echo "$as_me:7502: error: no icons found" >&5
7503 echo "$as_me: error: no icons found" >&2;}
7504 { (exit 1); exit 1; }; }
7505 fi
7506
7507 echo "$as_me:7507: checking for icon name" >&5
7508 echo $ECHO_N "checking for icon name... $ECHO_C" >&6
7509 echo "$as_me:7509: result: $ICON_NAME" >&5
7510 echo "${ECHO_T}$ICON_NAME" >&6
7511
7512 # Comment-out the install-desktop rule if the desktop-utils are not found.
7513 echo "$as_me:7513: checking if you want to install desktop files" >&5
7514 echo $ECHO_N "checking if you want to install desktop files... $ECHO_C" >&6
7515
7516 # Check whether --enable-desktop or --disable-desktop was given.
7517 if test "${enable_desktop+set}" = set; then
7518 enableval="$enable_desktop"
7519 test "$enableval" != no && enableval=yes
7520 if test "$enableval" != "yes" ; then
7521 enable_desktop=$enableval
7522 else
7523 enable_desktop=$enableval
7524 fi
7525 else
7526 enableval=yes
7527 enable_desktop=$enableval
7528
7529 fi;
7530 echo "$as_me:7530: result: $enable_desktop" >&5
7531 echo "${ECHO_T}$enable_desktop" >&6
7532
7533 desktop_utils=
7534 if test "$enable_desktop" = yes ; then
7535 # Extract the first word of "desktop-file-install", so it can be a program name with args.
7536 set dummy desktop-file-install; ac_word=$2
7537 echo "$as_me:7537: checking for $ac_word" >&5
7538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7539 if test "${ac_cv_prog_desktop_utils+set}" = set; then
7540 echo $ECHO_N "(cached) $ECHO_C" >&6
7541 else
7542 if test -n "$desktop_utils"; then
7543 ac_cv_prog_desktop_utils="$desktop_utils" # Let the user override the test.
7544 else
7545 ac_save_IFS=$IFS; IFS=$ac_path_separator
7546 ac_dummy="$PATH"
7547 for ac_dir in $ac_dummy; do
7548 IFS=$ac_save_IFS
7549 test -z "$ac_dir" && ac_dir=.
7550 $as_executable_p "$ac_dir/$ac_word" || continue
7551 ac_cv_prog_desktop_utils="yes"
7552 echo "$as_me:7552: found $ac_dir/$ac_word" >&5
7553 break
7554 done
7555
7556 test -z "$ac_cv_prog_desktop_utils" && ac_cv_prog_desktop_utils="no"
7557 fi
7558 fi
7559 desktop_utils=$ac_cv_prog_desktop_utils
7560 if test -n "$desktop_utils"; then
7561 echo "$as_me:7561: result: $desktop_utils" >&5
7562 echo "${ECHO_T}$desktop_utils" >&6
7563 else
7564 echo "$as_me:7564: result: no" >&5
7565 echo "${ECHO_T}no" >&6
7566 fi
7567
7568 fi
7569
7570 test "$desktop_utils" = yes && desktop_utils= || desktop_utils="#"
7571
7572 if test -z "$desktop_utils"
7573 then
7574 echo "$as_me:7574: checking for requested desktop-category" >&5
7575 echo $ECHO_N "checking for requested desktop-category... $ECHO_C" >&6
7576
7577 # Check whether --with-desktop-category or --without-desktop-category was given.
7578 if test "${with_desktop_category+set}" = set; then
7579 withval="$with_desktop_category"
7580 cf_desktop_want=$withval
7581 else
7582 cf_desktop_want=auto
7583 fi;
7584 echo "$as_me:7584: result: $cf_desktop_want" >&5
7585 echo "${ECHO_T}$cf_desktop_want" >&6
7586
7587 if test "$cf_desktop_want" = auto
7588 then
7589 rm -rf conftest*
7590 cf_desktop_also=
7591 for cf_desktop_dir in \
7592 /usr/share/app-install \
7593 /usr/share/applications
7594 do
7595 if test -d $cf_desktop_dir
7596 then
7597 find $cf_desktop_dir -name '*.desktop' | \
7598 while true
7599 do
7600 read cf_desktop_path
7601 test -z "$cf_desktop_path" && break
7602 cf_desktop_name=`basename "$cf_desktop_path" .desktop`
7603 case $cf_desktop_name in
7604 (xterm|*-xterm|*rxvt*|*konsole|*[Tt]erminal)
7605 test -n "$verbose" && echo " inspect $cf_desktop_path" 1>&6
7606
7607 echo "${as_me:-configure}:7607: testing inspect $cf_desktop_path ..." 1>&5
7608
7609 ${EGREP-egrep} '^Categories=' "$cf_desktop_path" | \
7610 tr ';' '\n' | \
7611 sed -e 's%^.*=%%' -e '/^$/d' >>conftest.1
7612 ;;
7613 esac
7614 done
7615 fi
7616 done
7617 if test -s conftest.1
7618 then
7619 cf_desktop_last=
7620 sort conftest.1 | \
7621 while true
7622 do
7623 read cf_desktop_this
7624 test -z "$cf_desktop_this" && break
7625 if test -s conftest.2
7626 then
7627 grep -w "$cf_desktop_this" conftest.2 >/dev/null && continue
7628 elif test -s conftest.3
7629 then
7630 grep -w "$cf_desktop_this" conftest.3 >/dev/null && continue
7631 fi
7632 case "$cf_desktop_this" in
7633 (-*)
7634 ;;
7635 (Qt*|*Xfce*|*[ABCDEFGHIJKLMNOPQRSTUVWXYZ][ABCDEFGHIJKLMNOPQRSTUVWXYZ]*)
7636 test -n "$verbose" && echo " ignored $cf_desktop_this" 1>&6
7637
7638 echo "${as_me:-configure}:7638: testing ignored $cf_desktop_this ..." 1>&5
7639
7640 echo "$cf_desktop_this" >> conftest.3
7641 ;;
7642 (System|TerminalEmulator|*)
7643 test -n "$verbose" && echo " applied $cf_desktop_this" 1>&6
7644
7645 echo "${as_me:-configure}:7645: testing applied $cf_desktop_this ..." 1>&5
7646
7647 test "x$cf_desktop_last" != "x$cf_desktop_this" && echo "$cf_desktop_this" >>conftest.2
7648 ;;
7649 esac
7650 cf_desktop_last=$cf_desktop_this
7651 done
7652 cf_desktop_want="`tr '\n' ';' < conftest.2`"
7653 fi
7654 if test -n "$cf_desktop_want"
7655 then
7656 if test "$cf_desktop_want" = auto
7657 then
7658 cf_desktop_want=
7659 else
7660 # do a sanity check on the semicolon-separated list, ignore on failure
7661 cf_desktop_test=`echo "$cf_desktop_want" | sed -e 's/[^;]//g'`
7662 test -z "$cf_desktop_test" && cf_desktop_want=
7663 cf_desktop_test=`echo "$cf_desktop_want" | sed -e 's/^.*;$/./g'`
7664 test -z "$cf_desktop_test" && cf_desktop_want=
7665 fi
7666 fi
7667 if test -z "$cf_desktop_want"
7668 then
7669 cf_desktop_want="`echo "System|TerminalEmulator|*" | sed -e 's/\*//g' -e 's/|/;/g' -e 's/;*$/;/g'`"
7670 test -n "$verbose" && echo " no usable value found for desktop category" 1>&6
7671
7672 echo "${as_me:-configure}:7672: testing no usable value found for desktop category ..." 1>&5
7673
7674 fi
7675 fi
7676 DESKTOP_CATEGORY=`echo "$cf_desktop_want" | sed -e 's/[ ,]/;/g'`
7677 test -n "$verbose" && echo " will use Categories=$DESKTOP_CATEGORY" 1>&6
7678
7679 echo "${as_me:-configure}:7679: testing will use Categories=$DESKTOP_CATEGORY ..." 1>&5
7680
7681 fi
7682
7683 echo "$as_me:7683: checking for install-permissions reference" >&5
7684 echo $ECHO_N "checking for install-permissions reference... $ECHO_C" >&6
7685
7686 # Check whether --with-reference or --without-reference was given.
7687 if test "${with_reference+set}" = set; then
7688 withval="$with_reference"
7689 with_reference=$withval
7690 else
7691 with_reference=xterm
7692 fi;
7693 echo "$as_me:7693: result: $with_reference" >&5
7694 echo "${ECHO_T}$with_reference" >&6
7695
7696 with_full_paths=yes
7697
7698 echo "$as_me:7698: checking for PATH separator" >&5
7699 echo $ECHO_N "checking for PATH separator... $ECHO_C" >&6
7700 case "$cf_cv_system_name" in
7701 (os2*) PATH_SEPARATOR=';' ;;
7702 (*) ${PATH_SEPARATOR:=':'} ;;
7703 esac
7704
7705 echo "$as_me:7705: result: $PATH_SEPARATOR" >&5
7706 echo "${ECHO_T}$PATH_SEPARATOR" >&6
7707
7708 test -z "$XTERM_PATH" && XTERM_PATH="$with_reference"
7709 for ac_prog in $XTERM_PATH $with_reference
7710 do
7711 # Extract the first word of "$ac_prog", so it can be a program name with args.
7712 set dummy $ac_prog; ac_word=$2
7713 echo "$as_me:7713: checking for $ac_word" >&5
7714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7715 if test "${ac_cv_path_XTERM_PATH+set}" = set; then
7716 echo $ECHO_N "(cached) $ECHO_C" >&6
7717 else
7718 case $XTERM_PATH in
7719 [\\/]* | ?:[\\/]*)
7720 ac_cv_path_XTERM_PATH="$XTERM_PATH" # Let the user override the test with a path.
7721 ;;
7722 *)
7723 ac_save_IFS=$IFS; IFS=$ac_path_separator
7724 ac_dummy="$PATH"
7725 for ac_dir in $ac_dummy; do
7726 IFS=$ac_save_IFS
7727 test -z "$ac_dir" && ac_dir=.
7728 if $as_executable_p "$ac_dir/$ac_word"; then
7729 ac_cv_path_XTERM_PATH="$ac_dir/$ac_word"
7730 echo "$as_me:7730: found $ac_dir/$ac_word" >&5
7731 break
7732 fi
7733 done
7734
7735 ;;
7736 esac
7737 fi
7738 XTERM_PATH=$ac_cv_path_XTERM_PATH
7739
7740 if test -n "$XTERM_PATH"; then
7741 echo "$as_me:7741: result: $XTERM_PATH" >&5
7742 echo "${ECHO_T}$XTERM_PATH" >&6
7743 else
7744 echo "$as_me:7744: result: no" >&5
7745 echo "${ECHO_T}no" >&6
7746 fi
7747
7748 test -n "$XTERM_PATH" && break
7749 done
7750 test -n "$XTERM_PATH" || XTERM_PATH="$XTERM_PATH"
7751
7752 cf_path_prog=""
7753 cf_path_args=""
7754 IFS="${IFS:- }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR"
7755 for cf_temp in $ac_cv_path_XTERM_PATH
7756 do
7757 if test -z "$cf_path_prog" ; then
7758 if test "$with_full_paths" = yes ; then
7759
7760 if test "x$prefix" != xNONE; then
7761 cf_path_syntax="$prefix"
7762 else
7763 cf_path_syntax="$ac_default_prefix"
7764 fi
7765
7766 case ".$cf_temp" in
7767 (.\$\(*\)*|.\'*\'*)
7768 ;;
7769 (..|./*|.\\*)
7770 ;;
7771 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
7772 ;;
7773 (.\$\{*prefix\}*|.\$\{*dir\}*)
7774 eval cf_temp="$cf_temp"
7775 case ".$cf_temp" in
7776 (.NONE/*)
7777 cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%`
7778 ;;
7779 esac
7780 ;;
7781 (.no|.NONE/*)
7782 cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%`
7783 ;;
7784 (*)
7785 break
7786 ;;
7787 esac
7788
7789 cf_path_prog="$cf_temp"
7790 else
7791 cf_path_prog="`basename "$cf_temp"`"
7792 fi
7793 elif test -z "$cf_path_args" ; then
7794 cf_path_args="$cf_temp"
7795 else
7796 cf_path_args="$cf_path_args $cf_temp"
7797 fi
7798 done
7799 IFS="$cf_save_ifs"
7800
7801 if test -n "$cf_path_prog" ; then
7802
7803 echo "${as_me:-configure}:7803: testing defining path for ${cf_path_prog} ..." 1>&5
7804
7805 cat >>confdefs.h <<EOF
7806 #define XTERM_PATH_PATH "$cf_path_prog"
7807 EOF
7808
7809 test -n "$cf_path_args" &&
7810 cat >>confdefs.h <<EOF
7811 #define XTERM_PATH_ARGS "$cf_path_args"
7812 EOF
7813
7814 fi
7815
7816 # If any of --program-prefix, --program-suffix or --program-transform-name is
7817 # given, accept an option tell the makefile to create a symbolic link, e.g.,
7818 # to "xterm" on install.
7819 XTERM_SYMLINK=NONE
7820
7821 if test "$program_transform_name" != "'s,,,'" ; then
7822 cf_name=`echo "$program_transform_name" | sed -e 's,\\$\\$,$,g'`
7823 cf_name=`echo xterm |sed -e "$cf_name"`
7824 echo "$as_me:7824: checking for symbolic link to create to $cf_name" >&5
7825 echo $ECHO_N "checking for symbolic link to create to $cf_name... $ECHO_C" >&6
7826
7827 # Check whether --with-xterm-symlink or --without-xterm-symlink was given.
7828 if test "${with_xterm_symlink+set}" = set; then
7829 withval="$with_xterm_symlink"
7830 with_symlink=$withval
7831 else
7832 with_symlink=xterm
7833 fi;
7834 echo "$as_me:7834: result: $with_symlink" >&5
7835 echo "${ECHO_T}$with_symlink" >&6
7836 test "$with_symlink" = yes && with_symlink=xterm
7837 test -n "$with_symlink" && \
7838 test "$with_symlink" != no && \
7839 test "$with_symlink" != "$cf_name" && \
7840 XTERM_SYMLINK="$with_symlink"
7841 fi
7842
7843 echo "$as_me:7843: checking if you want to disable openpty" >&5
7844 echo $ECHO_N "checking if you want to disable openpty... $ECHO_C" >&6
7845
7846 # Check whether --enable-openpty or --disable-openpty was given.
7847 if test "${enable_openpty+set}" = set; then
7848 enableval="$enable_openpty"
7849 test "$enableval" != no && enableval=yes
7850 if test "$enableval" != "yes" ; then
7851 disable_openpty=yes
7852 else
7853 disable_openpty=no
7854 fi
7855 else
7856 enableval=yes
7857 disable_openpty=no
7858
7859 fi;
7860 echo "$as_me:7860: result: $disable_openpty" >&5
7861 echo "${ECHO_T}$disable_openpty" >&6
7862
7863 echo "$as_me:7863: checking if you want to disable setuid" >&5
7864 echo $ECHO_N "checking if you want to disable setuid... $ECHO_C" >&6
7865
7866 # Check whether --enable-setuid or --disable-setuid was given.
7867 if test "${enable_setuid+set}" = set; then
7868 enableval="$enable_setuid"
7869 test "$enableval" != no && enableval=yes
7870 if test "$enableval" != "yes" ; then
7871 disable_setuid=yes
7872 else
7873 disable_setuid=no
7874 fi
7875 else
7876 enableval=yes
7877 disable_setuid=no
7878
7879 fi;
7880 echo "$as_me:7880: result: $disable_setuid" >&5
7881 echo "${ECHO_T}$disable_setuid" >&6
7882
7883 echo "$as_me:7883: checking if you want to disable setgid" >&5
7884 echo $ECHO_N "checking if you want to disable setgid... $ECHO_C" >&6
7885
7886 # Check whether --enable-setgid or --disable-setgid was given.
7887 if test "${enable_setgid+set}" = set; then
7888 enableval="$enable_setgid"
7889 test "$enableval" != no && enableval=yes
7890 if test "$enableval" != "yes" ; then
7891 disable_setgid=yes
7892 else
7893 disable_setgid=no
7894 fi
7895 else
7896 enableval=yes
7897 disable_setgid=no
7898
7899 fi;
7900 echo "$as_me:7900: result: $disable_setgid" >&5
7901 echo "${ECHO_T}$disable_setgid" >&6
7902
7903 echo "$as_me:7903: checking if you want to run xterm setuid to a given user" >&5
7904 echo $ECHO_N "checking if you want to run xterm setuid to a given user... $ECHO_C" >&6
7905
7906 # Check whether --with-setuid or --without-setuid was given.
7907 if test "${with_setuid+set}" = set; then
7908 withval="$with_setuid"
7909 use_given_setuid=$withval
7910 else
7911 use_given_setuid=no
7912 fi;
7913 echo "$as_me:7913: result: $use_given_setuid" >&5
7914 echo "${ECHO_T}$use_given_setuid" >&6
7915
7916 if test "$use_given_setuid" != no ; then
7917 if test "$use_given_setuid" = yes ; then
7918 cf_cv_given_setuid=root
7919 else
7920 cf_cv_given_setuid=$use_given_setuid
7921 fi
7922 # inherit SINSTALL_OPTS from environment to allow packager to customize it.
7923 SINSTALL_OPTS="$SINSTALL_OPTS u+s -u $cf_cv_given_setuid"
7924 fi
7925
7926 echo "$as_me:7926: checking if you want to run xterm setgid to match utmp/utmpx file" >&5
7927 echo $ECHO_N "checking if you want to run xterm setgid to match utmp/utmpx file... $ECHO_C" >&6
7928
7929 # Check whether --with-utmp-setgid or --without-utmp-setgid was given.
7930 if test "${with_utmp_setgid+set}" = set; then
7931 withval="$with_utmp_setgid"
7932 use_utmp_setgid=$withval
7933 else
7934 use_utmp_setgid=no
7935 fi;
7936 echo "$as_me:7936: result: $use_utmp_setgid" >&5
7937 echo "${ECHO_T}$use_utmp_setgid" >&6
7938
7939 if test "$use_utmp_setgid" != no ; then
7940 if test "$use_utmp_setgid" = yes ; then
7941
7942 if test $cf_cv_have_utmp != no ; then
7943 echo "$as_me:7943: checking for utmp/utmpx group" >&5
7944 echo $ECHO_N "checking for utmp/utmpx group... $ECHO_C" >&6
7945 if test "${cf_cv_utmp_group+set}" = set; then
7946 echo $ECHO_N "(cached) $ECHO_C" >&6
7947 else
7948
7949 for cf_utmp_path in /var/adm /var/run
7950 do
7951 for cf_utmp_file in utmpx utmp
7952 do
7953 if test -f $cf_utmp_path/$cf_utmp_file
7954 then
7955 cf_cv_utmp_group=root
7956
7957 cf_option="-lL"
7958
7959 # Expect listing to have fields like this:
7960 #-r--r--r-- 1 user group 34293 Jul 18 16:29 pathname
7961 ls "$cf_option" "$cf_utmp_path/$cf_utmp_file" >conftest
7962 read cf_mode cf_links cf_usr cf_grp cf_size cf_date1 cf_date2 cf_date3 cf_rest <conftest
7963 if test -z "$cf_rest" ; then
7964 cf_option="${cf_option}g"
7965 ls "$cf_option" "$cf_utmp_path/$cf_utmp_file" >conftest
7966 read cf_mode cf_links cf_usr cf_grp cf_size cf_date1 cf_date2 cf_date3 cf_rest <conftest
7967 fi
7968 rm -f conftest
7969
7970 # If we have a pathname, and the date fields look right, assume we've
7971 # captured the group as well.
7972 if test -n "$cf_rest" ; then
7973 cf_test=`echo "${cf_date2}${cf_date3}" | sed -e 's/[0-9:]//g'`
7974 if test -z "$cf_test" ; then
7975 cf_cv_utmp_group=$cf_grp;
7976 fi
7977 fi
7978 break
7979 fi
7980 done
7981 test -n "$cf_cv_utmp_group" && break
7982 done
7983
7984 fi
7985 echo "$as_me:7985: result: $cf_cv_utmp_group" >&5
7986 echo "${ECHO_T}$cf_cv_utmp_group" >&6
7987 else
7988 { { echo "$as_me:7988: error: cannot find utmp group" >&5
7989 echo "$as_me: error: cannot find utmp group" >&2;}
7990 { (exit 1); exit 1; }; }
7991 fi
7992
7993 else
7994 cf_cv_utmp_group=$use_utmp_setgid
7995 fi
7996 if test "$cf_cv_posix_saved_ids" != yes ; then
7997 { { echo "$as_me:7997: error: Your system does not support POSIX saved-ids" >&5
7998 echo "$as_me: error: Your system does not support POSIX saved-ids" >&2;}
7999 { (exit 1); exit 1; }; }
8000 fi
8001
8002 cat >>confdefs.h <<\EOF
8003 #define USE_UTMP_SETGID 1
8004 EOF
8005
8006 SINSTALL_OPTS="$SINSTALL_OPTS g+s -g $cf_cv_utmp_group"
8007 fi
8008
8009 echo "$as_me:8009: checking if you want to link with utempter" >&5
8010 echo $ECHO_N "checking if you want to link with utempter... $ECHO_C" >&6
8011
8012 # Check whether --with-utempter or --without-utempter was given.
8013 if test "${with_utempter+set}" = set; then
8014 withval="$with_utempter"
8015 use_utempter=$withval
8016 else
8017 use_utempter=no
8018 fi;
8019 echo "$as_me:8019: result: $use_utempter" >&5
8020 echo "${ECHO_T}$use_utempter" >&6
8021
8022 if test "$use_utempter" = yes ; then
8023
8024 echo "$as_me:8024: checking if we can link with utempter library" >&5
8025 echo $ECHO_N "checking if we can link with utempter library... $ECHO_C" >&6
8026 if test "${cf_cv_have_utempter+set}" = set; then
8027 echo $ECHO_N "(cached) $ECHO_C" >&6
8028 else
8029
8030 cf_save_LIBS="$LIBS"
8031
8032 cf_add_libs="$LIBS"
8033 # reverse order
8034 cf_add_0lib=
8035 for cf_add_1lib in -lutempter; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
8036 # filter duplicates
8037 for cf_add_1lib in $cf_add_0lib; do
8038 for cf_add_2lib in $cf_add_libs; do
8039 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
8040 cf_add_1lib=
8041 break
8042 fi
8043 done
8044 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
8045 done
8046 LIBS="$cf_add_libs"
8047
8048 cat >"conftest.$ac_ext" <<_ACEOF
8049 #line 8049 "configure"
8050 #include "confdefs.h"
8051
8052 #include <utempter.h>
8053
8054 int
8055 main (void)
8056 {
8057
8058 addToUtmp("/dev/tty", 0, 1);
8059 removeFromUtmp();
8060
8061 ;
8062 return 0;
8063 }
8064 _ACEOF
8065 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
8066 if { (eval echo "$as_me:8066: \"$ac_link\"") >&5
8067 (eval $ac_link) 2>&5
8068 ac_status=$?
8069 echo "$as_me:8069: \$? = $ac_status" >&5
8070 (exit "$ac_status"); } &&
8071 { ac_try='test -s "conftest$ac_exeext"'
8072 { (eval echo "$as_me:8072: \"$ac_try\"") >&5
8073 (eval $ac_try) 2>&5
8074 ac_status=$?
8075 echo "$as_me:8075: \$? = $ac_status" >&5
8076 (exit "$ac_status"); }; }; then
8077
8078 cf_cv_have_utempter=yes
8079 else
8080 echo "$as_me: failed program was:" >&5
8081 cat "conftest.$ac_ext" >&5
8082
8083 cf_cv_have_utempter=no
8084 fi
8085 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
8086 LIBS="$cf_save_LIBS"
8087
8088 fi
8089 echo "$as_me:8089: result: $cf_cv_have_utempter" >&5
8090 echo "${ECHO_T}$cf_cv_have_utempter" >&6
8091 if test "$cf_cv_have_utempter" = yes ; then
8092
8093 cat >>confdefs.h <<\EOF
8094 #define USE_UTEMPTER 1
8095 EOF
8096
8097 cf_add_libs="$LIBS"
8098 # reverse order
8099 cf_add_0lib=
8100 for cf_add_1lib in -lutempter; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
8101 # filter duplicates
8102 for cf_add_1lib in $cf_add_0lib; do
8103 for cf_add_2lib in $cf_add_libs; do
8104 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
8105 cf_add_1lib=
8106 break
8107 fi
8108 done
8109 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
8110 done
8111 LIBS="$cf_add_libs"
8112
8113 fi
8114
8115 test "$cf_cv_have_utempter" != yes && use_utempter=no
8116 else
8117 use_utempter=no
8118 fi
8119
8120 # Some configurations permit (or require) either setuid or setgid mode.
8121 # Let the user decide.
8122 if test "$use_utempter" = yes ; then
8123 if test "${enable_setuid+set}" != set ; then
8124 disable_setuid=yes
8125 test -n "$verbose" && echo " No --disable-setuid option given, force to yes" 1>&6
8126
8127 echo "${as_me:-configure}:8127: testing No --disable-setuid option given, force to yes ..." 1>&5
8128
8129 fi
8130 fi
8131
8132 ### checks for external data
8133
8134 echo "$as_me:8134: checking if external errno is declared" >&5
8135 echo $ECHO_N "checking if external errno is declared... $ECHO_C" >&6
8136 if test "${cf_cv_dcl_errno+set}" = set; then
8137 echo $ECHO_N "(cached) $ECHO_C" >&6
8138 else
8139
8140 cat >"conftest.$ac_ext" <<_ACEOF
8141 #line 8141 "configure"
8142 #include "confdefs.h"
8143
8144 #ifdef HAVE_STDLIB_H
8145 #include <stdlib.h>
8146 #endif
8147 #include <stdio.h>
8148 #include <sys/types.h>
8149 #include <errno.h>
8150 int
8151 main (void)
8152 {
8153 int x = (int) errno; (void)x
8154 ;
8155 return 0;
8156 }
8157 _ACEOF
8158 rm -f "conftest.$ac_objext"
8159 if { (eval echo "$as_me:8159: \"$ac_compile\"") >&5
8160 (eval $ac_compile) 2>&5
8161 ac_status=$?
8162 echo "$as_me:8162: \$? = $ac_status" >&5
8163 (exit "$ac_status"); } &&
8164 { ac_try='test -s "conftest.$ac_objext"'
8165 { (eval echo "$as_me:8165: \"$ac_try\"") >&5
8166 (eval $ac_try) 2>&5
8167 ac_status=$?
8168 echo "$as_me:8168: \$? = $ac_status" >&5
8169 (exit "$ac_status"); }; }; then
8170 cf_cv_dcl_errno=yes
8171 else
8172 echo "$as_me: failed program was:" >&5
8173 cat "conftest.$ac_ext" >&5
8174 cf_cv_dcl_errno=no
8175 fi
8176 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
8177
8178 fi
8179 echo "$as_me:8179: result: $cf_cv_dcl_errno" >&5
8180 echo "${ECHO_T}$cf_cv_dcl_errno" >&6
8181
8182 if test "$cf_cv_dcl_errno" = no ; then
8183
8184 cf_result=`echo "decl_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
8185
8186 cat >>confdefs.h <<EOF
8187 #define $cf_result 1
8188 EOF
8189
8190 fi
8191
8192 # It's possible (for near-UNIX clones) that the data doesn't exist
8193
8194 echo "$as_me:8194: checking if external errno exists" >&5
8195 echo $ECHO_N "checking if external errno exists... $ECHO_C" >&6
8196 if test "${cf_cv_have_errno+set}" = set; then
8197 echo $ECHO_N "(cached) $ECHO_C" >&6
8198 else
8199
8200 cat >"conftest.$ac_ext" <<_ACEOF
8201 #line 8201 "configure"
8202 #include "confdefs.h"
8203
8204 #undef errno
8205 extern int errno;
8206
8207 int
8208 main (void)
8209 {
8210 errno = 2
8211 ;
8212 return 0;
8213 }
8214 _ACEOF
8215 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
8216 if { (eval echo "$as_me:8216: \"$ac_link\"") >&5
8217 (eval $ac_link) 2>&5
8218 ac_status=$?
8219 echo "$as_me:8219: \$? = $ac_status" >&5
8220 (exit "$ac_status"); } &&
8221 { ac_try='test -s "conftest$ac_exeext"'
8222 { (eval echo "$as_me:8222: \"$ac_try\"") >&5
8223 (eval $ac_try) 2>&5
8224 ac_status=$?
8225 echo "$as_me:8225: \$? = $ac_status" >&5
8226 (exit "$ac_status"); }; }; then
8227 cf_cv_have_errno=yes
8228 else
8229 echo "$as_me: failed program was:" >&5
8230 cat "conftest.$ac_ext" >&5
8231 cf_cv_have_errno=no
8232 fi
8233 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
8234
8235 fi
8236 echo "$as_me:8236: result: $cf_cv_have_errno" >&5
8237 echo "${ECHO_T}$cf_cv_have_errno" >&6
8238
8239 if test "$cf_cv_have_errno" = yes ; then
8240
8241 cf_result=`echo "have_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
8242
8243 cat >>confdefs.h <<EOF
8244 #define $cf_result 1
8245 EOF
8246
8247 fi
8248
8249 echo "$as_me:8249: checking for explicit tty group name" >&5
8250 echo $ECHO_N "checking for explicit tty group name... $ECHO_C" >&6
8251
8252 # Check whether --with-tty-group or --without-tty-group was given.
8253 if test "${with_tty_group+set}" = set; then
8254 withval="$with_tty_group"
8255 cf_tty_group=$withval
8256 else
8257 cf_tty_group=auto...
8258 fi;
8259 test -z "$cf_tty_group" && cf_tty_group=auto...
8260 test "$cf_tty_group" = yes && cf_tty_group=auto...
8261 echo "$as_me:8261: result: $cf_tty_group" >&5
8262 echo "${ECHO_T}$cf_tty_group" >&6
8263
8264 if test "$cf_tty_group" = "auto..." ; then
8265 echo "$as_me:8265: checking for tty group name" >&5
8266 echo $ECHO_N "checking for tty group name... $ECHO_C" >&6
8267 if test "${cf_cv_tty_group_name+set}" = set; then
8268 echo $ECHO_N "(cached) $ECHO_C" >&6
8269 else
8270
8271 # If we are configuring as root, it is hard to get a clue about the tty group.
8272 # But we'll guess based on how our connection is set up - assuming it is done
8273 # properly.
8274
8275 cf_uid="`id | sed -e 's/^^=*=//' -e 's/(.*$//'`"
8276 # )vi
8277 if test "$cf_uid" != 0 ; then
8278 cf_cv_tty_group_name=
8279 cf_tty_name="`tty`"
8280 test "$cf_tty_name" = "not a tty" && cf_tty_name=/dev/tty
8281 test -z "$cf_tty_name" && cf_tty_name=/dev/tty
8282 if test -c "$cf_tty_name"
8283 then
8284 cf_option="-lL"
8285
8286 # Expect listing to have fields like this:
8287 #-rwxrwxrwx 1 user group 34293 Jul 18 16:29 pathname
8288 ls $cf_option "$cf_tty_name" >conftest.out
8289 read cf_mode cf_links cf_usr cf_grp cf_size cf_date1 cf_date2 cf_date3 cf_rest <conftest.out
8290 if test -z "$cf_rest" ; then
8291 cf_option="${cf_option}g"
8292 ls "$cf_option" "$cf_tty_name" >conftest.out
8293 read cf_mode cf_links cf_usr cf_grp cf_size cf_date1 cf_date2 cf_date3 cf_rest <conftest.out
8294 fi
8295 rm -f conftest.out
8296 cf_cv_tty_group_name=$cf_grp
8297 fi
8298 fi
8299
8300 # If we cannot deduce the tty group, fall back on hardcoded cases
8301
8302 if test -z "$cf_cv_tty_group_name"
8303 then
8304 case $host_os in
8305 (osf*)
8306 cf_cv_tty_group_name="terminal"
8307 ;;
8308 (*)
8309 cf_cv_tty_group_name="unknown"
8310 if ( ${EGREP-egrep} '^tty:' /etc/group 2>/dev/null 1>/dev/null ) then
8311 cf_cv_tty_group_name="tty"
8312 fi
8313 ;;
8314 esac
8315 fi
8316
8317 fi
8318 echo "$as_me:8318: result: $cf_cv_tty_group_name" >&5
8319 echo "${ECHO_T}$cf_cv_tty_group_name" >&6
8320 cf_tty_group="$cf_cv_tty_group_name"
8321 else
8322 # if configure option, always do this
8323
8324 cat >>confdefs.h <<\EOF
8325 #define USE_TTY_GROUP 1
8326 EOF
8327
8328 fi
8329
8330 cat >>confdefs.h <<EOF
8331 #define TTY_GROUP_NAME "$cf_tty_group"
8332 EOF
8333
8334 # This is only a double-check that the group-name we obtained above really
8335 # does apply to the device. We cannot perform this test if we are in batch
8336 # mode, or if we are cross-compiling.
8337
8338 echo "$as_me:8338: checking if we may use the $cf_tty_group group" >&5
8339 echo $ECHO_N "checking if we may use the $cf_tty_group group... $ECHO_C" >&6
8340 if test "${cf_cv_tty_group+set}" = set; then
8341 echo $ECHO_N "(cached) $ECHO_C" >&6
8342 else
8343
8344 cf_tty_name="`tty`"
8345 if test "$cf_tty_name" != "not a tty"
8346 then
8347 if test "$cross_compiling" = yes; then
8348 cf_cv_tty_group=unknown
8349 else
8350 cat >"conftest.$ac_ext" <<_ACEOF
8351 #line 8351 "configure"
8352 #include "confdefs.h"
8353
8354 #include <unistd.h>
8355 #include <sys/types.h>
8356 #include <sys/stat.h>
8357 #include <grp.h>
8358 int main(void)
8359 {
8360 struct stat sb;
8361 struct group *ttygrp;
8362 int fd;
8363 char *name;
8364
8365 for (fd = 0; fd < 3; ++fd) {
8366 if ((name = ttyname(fd)) != 0)
8367 break;
8368 }
8369 if (name == 0)
8370 name = "/dev/tty";
8371
8372 ttygrp = getgrnam(TTY_GROUP_NAME);
8373 endgrent();
8374
8375 if (ttygrp != 0
8376 && name != 0
8377 && stat(name, &sb) == 0
8378 && sb.st_gid != getgid()
8379 && sb.st_gid == ttygrp->gr_gid) {
8380 ${cf_cv_main_return:-return} (0);
8381 }
8382 ${cf_cv_main_return:-return} (1);
8383 }
8384
8385 _ACEOF
8386 rm -f "conftest$ac_exeext"
8387 if { (eval echo "$as_me:8387: \"$ac_link\"") >&5
8388 (eval $ac_link) 2>&5
8389 ac_status=$?
8390 echo "$as_me:8390: \$? = $ac_status" >&5
8391 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
8392 { (eval echo "$as_me:8392: \"$ac_try\"") >&5
8393 (eval $ac_try) 2>&5
8394 ac_status=$?
8395 echo "$as_me:8395: \$? = $ac_status" >&5
8396 (exit "$ac_status"); }; }; then
8397 cf_cv_tty_group=yes
8398 else
8399 echo "$as_me: program exited with status $ac_status" >&5
8400 echo "$as_me: failed program was:" >&5
8401 cat "conftest.$ac_ext" >&5
8402 cf_cv_tty_group=no
8403 fi
8404 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
8405 fi
8406 elif test "$cross_compiling" = yes; then
8407 cf_cv_tty_group=unknown
8408 else
8409 cf_cv_tty_group=yes
8410 fi
8411
8412 fi
8413 echo "$as_me:8413: result: $cf_cv_tty_group" >&5
8414 echo "${ECHO_T}$cf_cv_tty_group" >&6
8415
8416 if test $cf_cv_tty_group = no ; then
8417 { echo "$as_me:8417: WARNING: Cannot use $cf_tty_group group" >&5
8418 echo "$as_me: WARNING: Cannot use $cf_tty_group group" >&2;}
8419 else
8420 cat >>confdefs.h <<\EOF
8421 #define USE_TTY_GROUP 1
8422 EOF
8423
8424 fi
8425
8426 ### checks for system services and user specified options
8427
8428 echo "$as_me:8428: checking for X" >&5
8429 echo $ECHO_N "checking for X... $ECHO_C" >&6
8430
8431 # Check whether --with-x or --without-x was given.
8432 if test "${with_x+set}" = set; then
8433 withval="$with_x"
8434
8435 fi;
8436 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8437 if test "x$with_x" = xno; then
8438 # The user explicitly disabled X.
8439 have_x=disabled
8440 else
8441 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8442 # Both variables are already set.
8443 have_x=yes
8444 else
8445 if test "${ac_cv_have_x+set}" = set; then
8446 echo $ECHO_N "(cached) $ECHO_C" >&6
8447 else
8448 # One or both of the vars are not set, and there is no cached value.
8449 ac_x_includes=no ac_x_libraries=no
8450 rm -fr conftest.dir
8451 if mkdir conftest.dir; then
8452 cd conftest.dir
8453 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8454 cat >Imakefile <<'EOF'
8455 acfindx:
8456 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8457 EOF
8458 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8459 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8460 eval "`${MAKE-make} acfindx 2>/dev/null | grep -v make`"
8461 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8462 for ac_extension in a so sl dylib dll; do
8463 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8464 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8465 ac_im_usrlibdir=$ac_im_libdir; break
8466 fi
8467 done
8468 # Screen out bogus values from the imake configuration. They are
8469 # bogus both because they are the default anyway, and because
8470 # using them would break gcc on systems where it needs fixed includes.
8471 case $ac_im_incroot in
8472 /usr/include) ;;
8473 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8474 esac
8475 case $ac_im_usrlibdir in
8476 /usr/lib | /lib) ;;
8477 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8478 esac
8479 fi
8480 cd ..
8481 rm -fr conftest.dir
8482 fi
8483
8484 # Standard set of common directories for X headers.
8485 # Check X11 before X11Rn because it is often a symlink to the current release.
8486 ac_x_header_dirs='
8487 /usr/X11/include
8488 /usr/X11R7/include
8489 /usr/X11R6/include
8490 /usr/X11R5/include
8491 /usr/X11R4/include
8492
8493 /opt/local/include
8494 /opt/X11/include
8495
8496 /usr/include/X11
8497 /usr/include/X11R7
8498 /usr/include/X11R6
8499 /usr/include/X11R5
8500 /usr/include/X11R4
8501
8502 /usr/local/X11/include
8503 /usr/local/X11R7/include
8504 /usr/local/X11R6/include
8505 /usr/local/X11R5/include
8506 /usr/local/X11R4/include
8507
8508 /usr/local/include/X11
8509 /usr/local/include/X11R7
8510 /usr/local/include/X11R6
8511 /usr/local/include/X11R5
8512 /usr/local/include/X11R4
8513
8514 /usr/X386/include
8515 /usr/x386/include
8516 /usr/XFree86/include/X11
8517
8518 /usr/include
8519 /usr/local/include
8520 /usr/unsupported/include
8521 /usr/athena/include
8522 /usr/local/x11r5/include
8523 /usr/lpp/Xamples/include
8524
8525 /usr/openwin/include
8526 /usr/openwin/share/include'
8527
8528 if test "$ac_x_includes" = no; then
8529 # Guess where to find include files, by looking for Intrinsic.h.
8530 # First, try using that file with no special directory specified.
8531 cat >"conftest.$ac_ext" <<_ACEOF
8532 #line 8532 "configure"
8533 #include "confdefs.h"
8534 #include <X11/Intrinsic.h>
8535 _ACEOF
8536 if { (eval echo "$as_me:8536: \"$ac_cpp "conftest.$ac_ext"\"") >&5
8537 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
8538 ac_status=$?
8539 $EGREP -v '^ *\+' conftest.er1 >conftest.err
8540 rm -f conftest.er1
8541 cat conftest.err >&5
8542 echo "$as_me:8542: \$? = $ac_status" >&5
8543 (exit "$ac_status"); } >/dev/null; then
8544 if test -s conftest.err; then
8545 ac_cpp_err=$ac_c_preproc_warn_flag
8546 else
8547 ac_cpp_err=
8548 fi
8549 else
8550 ac_cpp_err=yes
8551 fi
8552 if test -z "$ac_cpp_err"; then
8553 # We can compile using X headers with no special include directory.
8554 ac_x_includes=
8555 else
8556 echo "$as_me: failed program was:" >&5
8557 cat "conftest.$ac_ext" >&5
8558 for ac_dir in $ac_x_header_dirs; do
8559 if test -r "$ac_dir/X11/Intrinsic.h"; then
8560 ac_x_includes=$ac_dir
8561 break
8562 fi
8563 done
8564 fi
8565 rm -f conftest.err "conftest.$ac_ext"
8566 fi # $ac_x_includes = no
8567
8568 if test "$ac_x_libraries" = no; then
8569 # Check for the libraries.
8570 # See if we find them without any special options.
8571 # Don't add to $LIBS permanently.
8572 ac_save_LIBS=$LIBS
8573 LIBS="-lXt $LIBS"
8574 cat >"conftest.$ac_ext" <<_ACEOF
8575 #line 8575 "configure"
8576 #include "confdefs.h"
8577 #include <X11/Intrinsic.h>
8578 int
8579 main (void)
8580 {
8581 XtMalloc (0)
8582 ;
8583 return 0;
8584 }
8585 _ACEOF
8586 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
8587 if { (eval echo "$as_me:8587: \"$ac_link\"") >&5
8588 (eval $ac_link) 2>&5
8589 ac_status=$?
8590 echo "$as_me:8590: \$? = $ac_status" >&5
8591 (exit "$ac_status"); } &&
8592 { ac_try='test -s "conftest$ac_exeext"'
8593 { (eval echo "$as_me:8593: \"$ac_try\"") >&5
8594 (eval $ac_try) 2>&5
8595 ac_status=$?
8596 echo "$as_me:8596: \$? = $ac_status" >&5
8597 (exit "$ac_status"); }; }; then
8598 LIBS=$ac_save_LIBS
8599 # We can link X programs with no special library path.
8600 ac_x_libraries=
8601 else
8602 echo "$as_me: failed program was:" >&5
8603 cat "conftest.$ac_ext" >&5
8604 LIBS=$ac_save_LIBS
8605 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8606 do
8607 # Don't even attempt the hair of trying to link an X program!
8608 for ac_extension in a so sl dylib dll; do
8609 if test -r "$ac_dir/libXt.$ac_extension"; then
8610 ac_x_libraries=$ac_dir
8611 break 2
8612 fi
8613 done
8614 done
8615 fi
8616 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
8617 fi # $ac_x_libraries = no
8618
8619 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8620 # Didn't find X anywhere. Cache the known absence of X.
8621 ac_cv_have_x="have_x=no"
8622 else
8623 # Record where we found X for the cache.
8624 ac_cv_have_x="have_x=yes \
8625 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8626 fi
8627 fi
8628
8629 fi
8630 eval "$ac_cv_have_x"
8631 fi # $with_x != no
8632
8633 if test "$have_x" != yes; then
8634 echo "$as_me:8634: result: $have_x" >&5
8635 echo "${ECHO_T}$have_x" >&6
8636 no_x=yes
8637 else
8638 # If each of the values was on the command line, it overrides each guess.
8639 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8640 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8641 # Update the cache value to reflect the command line values.
8642 ac_cv_have_x="have_x=yes \
8643 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8644 echo "$as_me:8644: result: libraries $x_libraries, headers $x_includes" >&5
8645 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8646 fi
8647
8648 if test "$no_x" = yes; then
8649 # Not all programs may use this symbol, but it does not hurt to define it.
8650
8651 cat >>confdefs.h <<\EOF
8652 #define X_DISPLAY_MISSING 1
8653 EOF
8654
8655 X_CFLAGS=
8656 X_PRE_LIBS=
8657 X_LIBS=
8658 X_EXTRA_LIBS=
8659 else
8660 if test -n "$x_includes"; then
8661 X_CFLAGS="$X_CFLAGS -I$x_includes"
8662 fi
8663
8664 # It would also be nice to do this for all -L options, not just this one.
8665 if test -n "$x_libraries"; then
8666 X_LIBS="$X_LIBS -L$x_libraries"
8667 # For Solaris; some versions of Sun CC require a space after -R and
8668 # others require no space. Words are not sufficient . . . .
8669 case `(uname -sr) 2>/dev/null` in
8670 "SunOS 5"*)
8671 echo "$as_me:8671: checking whether -R must be followed by a space" >&5
8672 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
8673 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8674 cat >"conftest.$ac_ext" <<_ACEOF
8675 #line 8675 "configure"
8676 #include "confdefs.h"
8677
8678 int
8679 main (void)
8680 {
8681
8682 ;
8683 return 0;
8684 }
8685 _ACEOF
8686 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
8687 if { (eval echo "$as_me:8687: \"$ac_link\"") >&5
8688 (eval $ac_link) 2>&5
8689 ac_status=$?
8690 echo "$as_me:8690: \$? = $ac_status" >&5
8691 (exit "$ac_status"); } &&
8692 { ac_try='test -s "conftest$ac_exeext"'
8693 { (eval echo "$as_me:8693: \"$ac_try\"") >&5
8694 (eval $ac_try) 2>&5
8695 ac_status=$?
8696 echo "$as_me:8696: \$? = $ac_status" >&5
8697 (exit "$ac_status"); }; }; then
8698 ac_R_nospace=yes
8699 else
8700 echo "$as_me: failed program was:" >&5
8701 cat "conftest.$ac_ext" >&5
8702 ac_R_nospace=no
8703 fi
8704 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
8705 if test $ac_R_nospace = yes; then
8706 echo "$as_me:8706: result: no" >&5
8707 echo "${ECHO_T}no" >&6
8708 X_LIBS="$X_LIBS -R$x_libraries"
8709 else
8710 LIBS="$ac_xsave_LIBS -R $x_libraries"
8711 cat >"conftest.$ac_ext" <<_ACEOF
8712 #line 8712 "configure"
8713 #include "confdefs.h"
8714
8715 int
8716 main (void)
8717 {
8718
8719 ;
8720 return 0;
8721 }
8722 _ACEOF
8723 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
8724 if { (eval echo "$as_me:8724: \"$ac_link\"") >&5
8725 (eval $ac_link) 2>&5
8726 ac_status=$?
8727 echo "$as_me:8727: \$? = $ac_status" >&5
8728 (exit "$ac_status"); } &&
8729 { ac_try='test -s "conftest$ac_exeext"'
8730 { (eval echo "$as_me:8730: \"$ac_try\"") >&5
8731 (eval $ac_try) 2>&5
8732 ac_status=$?
8733 echo "$as_me:8733: \$? = $ac_status" >&5
8734 (exit "$ac_status"); }; }; then
8735 ac_R_space=yes
8736 else
8737 echo "$as_me: failed program was:" >&5
8738 cat "conftest.$ac_ext" >&5
8739 ac_R_space=no
8740 fi
8741 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
8742 if test $ac_R_space = yes; then
8743 echo "$as_me:8743: result: yes" >&5
8744 echo "${ECHO_T}yes" >&6
8745 X_LIBS="$X_LIBS -R $x_libraries"
8746 else
8747 echo "$as_me:8747: result: neither works" >&5
8748 echo "${ECHO_T}neither works" >&6
8749 fi
8750 fi
8751 LIBS=$ac_xsave_LIBS
8752 esac
8753 fi
8754
8755 # Check for system-dependent libraries X programs must link with.
8756 # Do this before checking for the system-independent R6 libraries
8757 # (-lICE), since we may need -lsocket or whatever for X linking.
8758
8759 if test "$ISC" = yes; then
8760 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8761 else
8762 # Martyn Johnson says this is needed for Ultrix, if the X
8763 # libraries were built with DECnet support. And Karl Berry says
8764 # the Alpha needs dnet_stub (dnet does not exist).
8765 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8766 cat >"conftest.$ac_ext" <<_ACEOF
8767 #line 8767 "configure"
8768 #include "confdefs.h"
8769
8770 /* Override any gcc2 internal prototype to avoid an error. */
8771 #ifdef __cplusplus
8772 extern "C"
8773 #endif
8774 /* We use char because int might match the return type of a gcc2
8775 builtin and then its argument prototype would still apply. */
8776 char XOpenDisplay ();
8777 int
8778 main (void)
8779 {
8780 XOpenDisplay ();
8781 ;
8782 return 0;
8783 }
8784 _ACEOF
8785 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
8786 if { (eval echo "$as_me:8786: \"$ac_link\"") >&5
8787 (eval $ac_link) 2>&5
8788 ac_status=$?
8789 echo "$as_me:8789: \$? = $ac_status" >&5
8790 (exit "$ac_status"); } &&
8791 { ac_try='test -s "conftest$ac_exeext"'
8792 { (eval echo "$as_me:8792: \"$ac_try\"") >&5
8793 (eval $ac_try) 2>&5
8794 ac_status=$?
8795 echo "$as_me:8795: \$? = $ac_status" >&5
8796 (exit "$ac_status"); }; }; then
8797 :
8798 else
8799 echo "$as_me: failed program was:" >&5
8800 cat "conftest.$ac_ext" >&5
8801 echo "$as_me:8801: checking for dnet_ntoa in -ldnet" >&5
8802 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8803 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8804 echo $ECHO_N "(cached) $ECHO_C" >&6
8805 else
8806 ac_check_lib_save_LIBS=$LIBS
8807 LIBS="-ldnet $LIBS"
8808 cat >"conftest.$ac_ext" <<_ACEOF
8809 #line 8809 "configure"
8810 #include "confdefs.h"
8811
8812 /* Override any gcc2 internal prototype to avoid an error. */
8813 #ifdef __cplusplus
8814 extern "C"
8815 #endif
8816 /* We use char because int might match the return type of a gcc2
8817 builtin and then its argument prototype would still apply. */
8818 char dnet_ntoa ();
8819 int
8820 main (void)
8821 {
8822 dnet_ntoa ();
8823 ;
8824 return 0;
8825 }
8826 _ACEOF
8827 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
8828 if { (eval echo "$as_me:8828: \"$ac_link\"") >&5
8829 (eval $ac_link) 2>&5
8830 ac_status=$?
8831 echo "$as_me:8831: \$? = $ac_status" >&5
8832 (exit "$ac_status"); } &&
8833 { ac_try='test -s "conftest$ac_exeext"'
8834 { (eval echo "$as_me:8834: \"$ac_try\"") >&5
8835 (eval $ac_try) 2>&5
8836 ac_status=$?
8837 echo "$as_me:8837: \$? = $ac_status" >&5
8838 (exit "$ac_status"); }; }; then
8839 ac_cv_lib_dnet_dnet_ntoa=yes
8840 else
8841 echo "$as_me: failed program was:" >&5
8842 cat "conftest.$ac_ext" >&5
8843 ac_cv_lib_dnet_dnet_ntoa=no
8844 fi
8845 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
8846 LIBS=$ac_check_lib_save_LIBS
8847 fi
8848 echo "$as_me:8848: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8849 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8850 if test "$ac_cv_lib_dnet_dnet_ntoa" = yes; then
8851 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8852 fi
8853
8854 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8855 echo "$as_me:8855: checking for dnet_ntoa in -ldnet_stub" >&5
8856 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8857 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8858 echo $ECHO_N "(cached) $ECHO_C" >&6
8859 else
8860 ac_check_lib_save_LIBS=$LIBS
8861 LIBS="-ldnet_stub $LIBS"
8862 cat >"conftest.$ac_ext" <<_ACEOF
8863 #line 8863 "configure"
8864 #include "confdefs.h"
8865
8866 /* Override any gcc2 internal prototype to avoid an error. */
8867 #ifdef __cplusplus
8868 extern "C"
8869 #endif
8870 /* We use char because int might match the return type of a gcc2
8871 builtin and then its argument prototype would still apply. */
8872 char dnet_ntoa ();
8873 int
8874 main (void)
8875 {
8876 dnet_ntoa ();
8877 ;
8878 return 0;
8879 }
8880 _ACEOF
8881 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
8882 if { (eval echo "$as_me:8882: \"$ac_link\"") >&5
8883 (eval $ac_link) 2>&5
8884 ac_status=$?
8885 echo "$as_me:8885: \$? = $ac_status" >&5
8886 (exit "$ac_status"); } &&
8887 { ac_try='test -s "conftest$ac_exeext"'
8888 { (eval echo "$as_me:8888: \"$ac_try\"") >&5
8889 (eval $ac_try) 2>&5
8890 ac_status=$?
8891 echo "$as_me:8891: \$? = $ac_status" >&5
8892 (exit "$ac_status"); }; }; then
8893 ac_cv_lib_dnet_stub_dnet_ntoa=yes
8894 else
8895 echo "$as_me: failed program was:" >&5
8896 cat "conftest.$ac_ext" >&5
8897 ac_cv_lib_dnet_stub_dnet_ntoa=no
8898 fi
8899 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
8900 LIBS=$ac_check_lib_save_LIBS
8901 fi
8902 echo "$as_me:8902: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8903 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8904 if test "$ac_cv_lib_dnet_stub_dnet_ntoa" = yes; then
8905 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8906 fi
8907
8908 fi
8909 fi
8910 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
8911 LIBS="$ac_xsave_LIBS"
8912
8913 # msh (at] cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8914 # to get the SysV transport functions.
8915 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8916 # needs -lnsl.
8917 # The nsl library prevents programs from opening the X display
8918 # on Irix 5.2, according to T.E. Dickey.
8919 # The functions gethostbyname, getservbyname, and inet_addr are
8920 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8921 echo "$as_me:8921: checking for gethostbyname" >&5
8922 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8923 if test "${ac_cv_func_gethostbyname+set}" = set; then
8924 echo $ECHO_N "(cached) $ECHO_C" >&6
8925 else
8926 cat >"conftest.$ac_ext" <<_ACEOF
8927 #line 8927 "configure"
8928 #include "confdefs.h"
8929 #define gethostbyname autoconf_temporary
8930 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
8931 #undef gethostbyname
8932
8933 #ifdef __cplusplus
8934 extern "C"
8935 #endif
8936
8937 /* We use char because int might match the return type of a gcc2
8938 builtin and then its argument prototype would still apply. */
8939 char gethostbyname (void);
8940
8941 int
8942 main (void)
8943 {
8944
8945 /* The GNU C library defines stubs for functions which it implements
8946 to always fail with ENOSYS. Some functions are actually named
8947 something starting with __ and the normal name is an alias. */
8948 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8949 #error found stub for gethostbyname
8950 #endif
8951
8952 return gethostbyname ();
8953 ;
8954 return 0;
8955 }
8956 _ACEOF
8957 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
8958 if { (eval echo "$as_me:8958: \"$ac_link\"") >&5
8959 (eval $ac_link) 2>&5
8960 ac_status=$?
8961 echo "$as_me:8961: \$? = $ac_status" >&5
8962 (exit "$ac_status"); } &&
8963 { ac_try='test -s "conftest$ac_exeext"'
8964 { (eval echo "$as_me:8964: \"$ac_try\"") >&5
8965 (eval $ac_try) 2>&5
8966 ac_status=$?
8967 echo "$as_me:8967: \$? = $ac_status" >&5
8968 (exit "$ac_status"); }; }; then
8969 ac_cv_func_gethostbyname=yes
8970 else
8971 echo "$as_me: failed program was:" >&5
8972 cat "conftest.$ac_ext" >&5
8973 ac_cv_func_gethostbyname=no
8974 fi
8975 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
8976 fi
8977 echo "$as_me:8977: result: $ac_cv_func_gethostbyname" >&5
8978 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8979
8980 if test $ac_cv_func_gethostbyname = no; then
8981 echo "$as_me:8981: checking for gethostbyname in -lnsl" >&5
8982 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8983 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8984 echo $ECHO_N "(cached) $ECHO_C" >&6
8985 else
8986 ac_check_lib_save_LIBS=$LIBS
8987 LIBS="-lnsl $LIBS"
8988 cat >"conftest.$ac_ext" <<_ACEOF
8989 #line 8989 "configure"
8990 #include "confdefs.h"
8991
8992 /* Override any gcc2 internal prototype to avoid an error. */
8993 #ifdef __cplusplus
8994 extern "C"
8995 #endif
8996 /* We use char because int might match the return type of a gcc2
8997 builtin and then its argument prototype would still apply. */
8998 char gethostbyname ();
8999 int
9000 main (void)
9001 {
9002 gethostbyname ();
9003 ;
9004 return 0;
9005 }
9006 _ACEOF
9007 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
9008 if { (eval echo "$as_me:9008: \"$ac_link\"") >&5
9009 (eval $ac_link) 2>&5
9010 ac_status=$?
9011 echo "$as_me:9011: \$? = $ac_status" >&5
9012 (exit "$ac_status"); } &&
9013 { ac_try='test -s "conftest$ac_exeext"'
9014 { (eval echo "$as_me:9014: \"$ac_try\"") >&5
9015 (eval $ac_try) 2>&5
9016 ac_status=$?
9017 echo "$as_me:9017: \$? = $ac_status" >&5
9018 (exit "$ac_status"); }; }; then
9019 ac_cv_lib_nsl_gethostbyname=yes
9020 else
9021 echo "$as_me: failed program was:" >&5
9022 cat "conftest.$ac_ext" >&5
9023 ac_cv_lib_nsl_gethostbyname=no
9024 fi
9025 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
9026 LIBS=$ac_check_lib_save_LIBS
9027 fi
9028 echo "$as_me:9028: result: $ac_cv_lib_nsl_gethostbyname" >&5
9029 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
9030 if test "$ac_cv_lib_nsl_gethostbyname" = yes; then
9031 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
9032 fi
9033
9034 if test $ac_cv_lib_nsl_gethostbyname = no; then
9035 echo "$as_me:9035: checking for gethostbyname in -lbsd" >&5
9036 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
9037 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
9038 echo $ECHO_N "(cached) $ECHO_C" >&6
9039 else
9040 ac_check_lib_save_LIBS=$LIBS
9041 LIBS="-lbsd $LIBS"
9042 cat >"conftest.$ac_ext" <<_ACEOF
9043 #line 9043 "configure"
9044 #include "confdefs.h"
9045
9046 /* Override any gcc2 internal prototype to avoid an error. */
9047 #ifdef __cplusplus
9048 extern "C"
9049 #endif
9050 /* We use char because int might match the return type of a gcc2
9051 builtin and then its argument prototype would still apply. */
9052 char gethostbyname ();
9053 int
9054 main (void)
9055 {
9056 gethostbyname ();
9057 ;
9058 return 0;
9059 }
9060 _ACEOF
9061 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
9062 if { (eval echo "$as_me:9062: \"$ac_link\"") >&5
9063 (eval $ac_link) 2>&5
9064 ac_status=$?
9065 echo "$as_me:9065: \$? = $ac_status" >&5
9066 (exit "$ac_status"); } &&
9067 { ac_try='test -s "conftest$ac_exeext"'
9068 { (eval echo "$as_me:9068: \"$ac_try\"") >&5
9069 (eval $ac_try) 2>&5
9070 ac_status=$?
9071 echo "$as_me:9071: \$? = $ac_status" >&5
9072 (exit "$ac_status"); }; }; then
9073 ac_cv_lib_bsd_gethostbyname=yes
9074 else
9075 echo "$as_me: failed program was:" >&5
9076 cat "conftest.$ac_ext" >&5
9077 ac_cv_lib_bsd_gethostbyname=no
9078 fi
9079 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
9080 LIBS=$ac_check_lib_save_LIBS
9081 fi
9082 echo "$as_me:9082: result: $ac_cv_lib_bsd_gethostbyname" >&5
9083 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
9084 if test "$ac_cv_lib_bsd_gethostbyname" = yes; then
9085 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
9086 fi
9087
9088 fi
9089 fi
9090
9091 # lieder (at] skyler.mavd.honeywell.com says without -lsocket,
9092 # socket/setsockopt and other routines are undefined under SCO ODT
9093 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
9094 # on later versions), says Simon Leinen: it contains gethostby*
9095 # variants that don't use the nameserver (or something). -lsocket
9096 # must be given before -lnsl if both are needed. We assume that
9097 # if connect needs -lnsl, so does gethostbyname.
9098 echo "$as_me:9098: checking for connect" >&5
9099 echo $ECHO_N "checking for connect... $ECHO_C" >&6
9100 if test "${ac_cv_func_connect+set}" = set; then
9101 echo $ECHO_N "(cached) $ECHO_C" >&6
9102 else
9103 cat >"conftest.$ac_ext" <<_ACEOF
9104 #line 9104 "configure"
9105 #include "confdefs.h"
9106 #define connect autoconf_temporary
9107 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
9108 #undef connect
9109
9110 #ifdef __cplusplus
9111 extern "C"
9112 #endif
9113
9114 /* We use char because int might match the return type of a gcc2
9115 builtin and then its argument prototype would still apply. */
9116 char connect (void);
9117
9118 int
9119 main (void)
9120 {
9121
9122 /* The GNU C library defines stubs for functions which it implements
9123 to always fail with ENOSYS. Some functions are actually named
9124 something starting with __ and the normal name is an alias. */
9125 #if defined (__stub_connect) || defined (__stub___connect)
9126 #error found stub for connect
9127 #endif
9128
9129 return connect ();
9130 ;
9131 return 0;
9132 }
9133 _ACEOF
9134 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
9135 if { (eval echo "$as_me:9135: \"$ac_link\"") >&5
9136 (eval $ac_link) 2>&5
9137 ac_status=$?
9138 echo "$as_me:9138: \$? = $ac_status" >&5
9139 (exit "$ac_status"); } &&
9140 { ac_try='test -s "conftest$ac_exeext"'
9141 { (eval echo "$as_me:9141: \"$ac_try\"") >&5
9142 (eval $ac_try) 2>&5
9143 ac_status=$?
9144 echo "$as_me:9144: \$? = $ac_status" >&5
9145 (exit "$ac_status"); }; }; then
9146 ac_cv_func_connect=yes
9147 else
9148 echo "$as_me: failed program was:" >&5
9149 cat "conftest.$ac_ext" >&5
9150 ac_cv_func_connect=no
9151 fi
9152 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
9153 fi
9154 echo "$as_me:9154: result: $ac_cv_func_connect" >&5
9155 echo "${ECHO_T}$ac_cv_func_connect" >&6
9156
9157 if test $ac_cv_func_connect = no; then
9158 echo "$as_me:9158: checking for connect in -lsocket" >&5
9159 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
9160 if test "${ac_cv_lib_socket_connect+set}" = set; then
9161 echo $ECHO_N "(cached) $ECHO_C" >&6
9162 else
9163 ac_check_lib_save_LIBS=$LIBS
9164 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
9165 cat >"conftest.$ac_ext" <<_ACEOF
9166 #line 9166 "configure"
9167 #include "confdefs.h"
9168
9169 /* Override any gcc2 internal prototype to avoid an error. */
9170 #ifdef __cplusplus
9171 extern "C"
9172 #endif
9173 /* We use char because int might match the return type of a gcc2
9174 builtin and then its argument prototype would still apply. */
9175 char connect ();
9176 int
9177 main (void)
9178 {
9179 connect ();
9180 ;
9181 return 0;
9182 }
9183 _ACEOF
9184 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
9185 if { (eval echo "$as_me:9185: \"$ac_link\"") >&5
9186 (eval $ac_link) 2>&5
9187 ac_status=$?
9188 echo "$as_me:9188: \$? = $ac_status" >&5
9189 (exit "$ac_status"); } &&
9190 { ac_try='test -s "conftest$ac_exeext"'
9191 { (eval echo "$as_me:9191: \"$ac_try\"") >&5
9192 (eval $ac_try) 2>&5
9193 ac_status=$?
9194 echo "$as_me:9194: \$? = $ac_status" >&5
9195 (exit "$ac_status"); }; }; then
9196 ac_cv_lib_socket_connect=yes
9197 else
9198 echo "$as_me: failed program was:" >&5
9199 cat "conftest.$ac_ext" >&5
9200 ac_cv_lib_socket_connect=no
9201 fi
9202 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
9203 LIBS=$ac_check_lib_save_LIBS
9204 fi
9205 echo "$as_me:9205: result: $ac_cv_lib_socket_connect" >&5
9206 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
9207 if test "$ac_cv_lib_socket_connect" = yes; then
9208 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
9209 fi
9210
9211 fi
9212
9213 # Guillermo Gomez says -lposix is necessary on A/UX.
9214 echo "$as_me:9214: checking for remove" >&5
9215 echo $ECHO_N "checking for remove... $ECHO_C" >&6
9216 if test "${ac_cv_func_remove+set}" = set; then
9217 echo $ECHO_N "(cached) $ECHO_C" >&6
9218 else
9219 cat >"conftest.$ac_ext" <<_ACEOF
9220 #line 9220 "configure"
9221 #include "confdefs.h"
9222 #define remove autoconf_temporary
9223 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
9224 #undef remove
9225
9226 #ifdef __cplusplus
9227 extern "C"
9228 #endif
9229
9230 /* We use char because int might match the return type of a gcc2
9231 builtin and then its argument prototype would still apply. */
9232 char remove (void);
9233
9234 int
9235 main (void)
9236 {
9237
9238 /* The GNU C library defines stubs for functions which it implements
9239 to always fail with ENOSYS. Some functions are actually named
9240 something starting with __ and the normal name is an alias. */
9241 #if defined (__stub_remove) || defined (__stub___remove)
9242 #error found stub for remove
9243 #endif
9244
9245 return remove ();
9246 ;
9247 return 0;
9248 }
9249 _ACEOF
9250 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
9251 if { (eval echo "$as_me:9251: \"$ac_link\"") >&5
9252 (eval $ac_link) 2>&5
9253 ac_status=$?
9254 echo "$as_me:9254: \$? = $ac_status" >&5
9255 (exit "$ac_status"); } &&
9256 { ac_try='test -s "conftest$ac_exeext"'
9257 { (eval echo "$as_me:9257: \"$ac_try\"") >&5
9258 (eval $ac_try) 2>&5
9259 ac_status=$?
9260 echo "$as_me:9260: \$? = $ac_status" >&5
9261 (exit "$ac_status"); }; }; then
9262 ac_cv_func_remove=yes
9263 else
9264 echo "$as_me: failed program was:" >&5
9265 cat "conftest.$ac_ext" >&5
9266 ac_cv_func_remove=no
9267 fi
9268 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
9269 fi
9270 echo "$as_me:9270: result: $ac_cv_func_remove" >&5
9271 echo "${ECHO_T}$ac_cv_func_remove" >&6
9272
9273 if test $ac_cv_func_remove = no; then
9274 echo "$as_me:9274: checking for remove in -lposix" >&5
9275 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
9276 if test "${ac_cv_lib_posix_remove+set}" = set; then
9277 echo $ECHO_N "(cached) $ECHO_C" >&6
9278 else
9279 ac_check_lib_save_LIBS=$LIBS
9280 LIBS="-lposix $LIBS"
9281 cat >"conftest.$ac_ext" <<_ACEOF
9282 #line 9282 "configure"
9283 #include "confdefs.h"
9284
9285 /* Override any gcc2 internal prototype to avoid an error. */
9286 #ifdef __cplusplus
9287 extern "C"
9288 #endif
9289 /* We use char because int might match the return type of a gcc2
9290 builtin and then its argument prototype would still apply. */
9291 char remove ();
9292 int
9293 main (void)
9294 {
9295 remove ();
9296 ;
9297 return 0;
9298 }
9299 _ACEOF
9300 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
9301 if { (eval echo "$as_me:9301: \"$ac_link\"") >&5
9302 (eval $ac_link) 2>&5
9303 ac_status=$?
9304 echo "$as_me:9304: \$? = $ac_status" >&5
9305 (exit "$ac_status"); } &&
9306 { ac_try='test -s "conftest$ac_exeext"'
9307 { (eval echo "$as_me:9307: \"$ac_try\"") >&5
9308 (eval $ac_try) 2>&5
9309 ac_status=$?
9310 echo "$as_me:9310: \$? = $ac_status" >&5
9311 (exit "$ac_status"); }; }; then
9312 ac_cv_lib_posix_remove=yes
9313 else
9314 echo "$as_me: failed program was:" >&5
9315 cat "conftest.$ac_ext" >&5
9316 ac_cv_lib_posix_remove=no
9317 fi
9318 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
9319 LIBS=$ac_check_lib_save_LIBS
9320 fi
9321 echo "$as_me:9321: result: $ac_cv_lib_posix_remove" >&5
9322 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
9323 if test "$ac_cv_lib_posix_remove" = yes; then
9324 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
9325 fi
9326
9327 fi
9328
9329 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
9330 echo "$as_me:9330: checking for shmat" >&5
9331 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
9332 if test "${ac_cv_func_shmat+set}" = set; then
9333 echo $ECHO_N "(cached) $ECHO_C" >&6
9334 else
9335 cat >"conftest.$ac_ext" <<_ACEOF
9336 #line 9336 "configure"
9337 #include "confdefs.h"
9338 #define shmat autoconf_temporary
9339 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
9340 #undef shmat
9341
9342 #ifdef __cplusplus
9343 extern "C"
9344 #endif
9345
9346 /* We use char because int might match the return type of a gcc2
9347 builtin and then its argument prototype would still apply. */
9348 char shmat (void);
9349
9350 int
9351 main (void)
9352 {
9353
9354 /* The GNU C library defines stubs for functions which it implements
9355 to always fail with ENOSYS. Some functions are actually named
9356 something starting with __ and the normal name is an alias. */
9357 #if defined (__stub_shmat) || defined (__stub___shmat)
9358 #error found stub for shmat
9359 #endif
9360
9361 return shmat ();
9362 ;
9363 return 0;
9364 }
9365 _ACEOF
9366 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
9367 if { (eval echo "$as_me:9367: \"$ac_link\"") >&5
9368 (eval $ac_link) 2>&5
9369 ac_status=$?
9370 echo "$as_me:9370: \$? = $ac_status" >&5
9371 (exit "$ac_status"); } &&
9372 { ac_try='test -s "conftest$ac_exeext"'
9373 { (eval echo "$as_me:9373: \"$ac_try\"") >&5
9374 (eval $ac_try) 2>&5
9375 ac_status=$?
9376 echo "$as_me:9376: \$? = $ac_status" >&5
9377 (exit "$ac_status"); }; }; then
9378 ac_cv_func_shmat=yes
9379 else
9380 echo "$as_me: failed program was:" >&5
9381 cat "conftest.$ac_ext" >&5
9382 ac_cv_func_shmat=no
9383 fi
9384 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
9385 fi
9386 echo "$as_me:9386: result: $ac_cv_func_shmat" >&5
9387 echo "${ECHO_T}$ac_cv_func_shmat" >&6
9388
9389 if test $ac_cv_func_shmat = no; then
9390 echo "$as_me:9390: checking for shmat in -lipc" >&5
9391 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
9392 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
9393 echo $ECHO_N "(cached) $ECHO_C" >&6
9394 else
9395 ac_check_lib_save_LIBS=$LIBS
9396 LIBS="-lipc $LIBS"
9397 cat >"conftest.$ac_ext" <<_ACEOF
9398 #line 9398 "configure"
9399 #include "confdefs.h"
9400
9401 /* Override any gcc2 internal prototype to avoid an error. */
9402 #ifdef __cplusplus
9403 extern "C"
9404 #endif
9405 /* We use char because int might match the return type of a gcc2
9406 builtin and then its argument prototype would still apply. */
9407 char shmat ();
9408 int
9409 main (void)
9410 {
9411 shmat ();
9412 ;
9413 return 0;
9414 }
9415 _ACEOF
9416 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
9417 if { (eval echo "$as_me:9417: \"$ac_link\"") >&5
9418 (eval $ac_link) 2>&5
9419 ac_status=$?
9420 echo "$as_me:9420: \$? = $ac_status" >&5
9421 (exit "$ac_status"); } &&
9422 { ac_try='test -s "conftest$ac_exeext"'
9423 { (eval echo "$as_me:9423: \"$ac_try\"") >&5
9424 (eval $ac_try) 2>&5
9425 ac_status=$?
9426 echo "$as_me:9426: \$? = $ac_status" >&5
9427 (exit "$ac_status"); }; }; then
9428 ac_cv_lib_ipc_shmat=yes
9429 else
9430 echo "$as_me: failed program was:" >&5
9431 cat "conftest.$ac_ext" >&5
9432 ac_cv_lib_ipc_shmat=no
9433 fi
9434 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
9435 LIBS=$ac_check_lib_save_LIBS
9436 fi
9437 echo "$as_me:9437: result: $ac_cv_lib_ipc_shmat" >&5
9438 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
9439 if test "$ac_cv_lib_ipc_shmat" = yes; then
9440 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9441 fi
9442
9443 fi
9444 fi
9445
9446 # Check for libraries that X11R6 Xt/Xaw programs need.
9447 ac_save_LDFLAGS=$LDFLAGS
9448 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9449 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9450 # check for ICE first), but we must link in the order -lSM -lICE or
9451 # we get undefined symbols. So assume we have SM if we have ICE.
9452 # These have to be linked with before -lX11, unlike the other
9453 # libraries we check for below, so use a different variable.
9454 # John Interrante, Karl Berry
9455 echo "$as_me:9455: checking for IceConnectionNumber in -lICE" >&5
9456 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
9457 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9458 echo $ECHO_N "(cached) $ECHO_C" >&6
9459 else
9460 ac_check_lib_save_LIBS=$LIBS
9461 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9462 cat >"conftest.$ac_ext" <<_ACEOF
9463 #line 9463 "configure"
9464 #include "confdefs.h"
9465
9466 /* Override any gcc2 internal prototype to avoid an error. */
9467 #ifdef __cplusplus
9468 extern "C"
9469 #endif
9470 /* We use char because int might match the return type of a gcc2
9471 builtin and then its argument prototype would still apply. */
9472 char IceConnectionNumber ();
9473 int
9474 main (void)
9475 {
9476 IceConnectionNumber ();
9477 ;
9478 return 0;
9479 }
9480 _ACEOF
9481 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
9482 if { (eval echo "$as_me:9482: \"$ac_link\"") >&5
9483 (eval $ac_link) 2>&5
9484 ac_status=$?
9485 echo "$as_me:9485: \$? = $ac_status" >&5
9486 (exit "$ac_status"); } &&
9487 { ac_try='test -s "conftest$ac_exeext"'
9488 { (eval echo "$as_me:9488: \"$ac_try\"") >&5
9489 (eval $ac_try) 2>&5
9490 ac_status=$?
9491 echo "$as_me:9491: \$? = $ac_status" >&5
9492 (exit "$ac_status"); }; }; then
9493 ac_cv_lib_ICE_IceConnectionNumber=yes
9494 else
9495 echo "$as_me: failed program was:" >&5
9496 cat "conftest.$ac_ext" >&5
9497 ac_cv_lib_ICE_IceConnectionNumber=no
9498 fi
9499 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
9500 LIBS=$ac_check_lib_save_LIBS
9501 fi
9502 echo "$as_me:9502: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9503 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9504 if test "$ac_cv_lib_ICE_IceConnectionNumber" = yes; then
9505 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9506 fi
9507
9508 LDFLAGS=$ac_save_LDFLAGS
9509
9510 fi
9511
9512 echo "$as_me:9512: checking for sys/wait.h that is POSIX.1 compatible" >&5
9513 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
9514 if test "${ac_cv_header_sys_wait_h+set}" = set; then
9515 echo $ECHO_N "(cached) $ECHO_C" >&6
9516 else
9517 cat >"conftest.$ac_ext" <<_ACEOF
9518 #line 9518 "configure"
9519 #include "confdefs.h"
9520 #include <sys/types.h>
9521 #include <sys/wait.h>
9522 #ifndef WEXITSTATUS
9523 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
9524 #endif
9525 #ifndef WIFEXITED
9526 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9527 #endif
9528
9529 int
9530 main (void)
9531 {
9532 int s;
9533 wait (&s);
9534 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9535 ;
9536 return 0;
9537 }
9538 _ACEOF
9539 rm -f "conftest.$ac_objext"
9540 if { (eval echo "$as_me:9540: \"$ac_compile\"") >&5
9541 (eval $ac_compile) 2>&5
9542 ac_status=$?
9543 echo "$as_me:9543: \$? = $ac_status" >&5
9544 (exit "$ac_status"); } &&
9545 { ac_try='test -s "conftest.$ac_objext"'
9546 { (eval echo "$as_me:9546: \"$ac_try\"") >&5
9547 (eval $ac_try) 2>&5
9548 ac_status=$?
9549 echo "$as_me:9549: \$? = $ac_status" >&5
9550 (exit "$ac_status"); }; }; then
9551 ac_cv_header_sys_wait_h=yes
9552 else
9553 echo "$as_me: failed program was:" >&5
9554 cat "conftest.$ac_ext" >&5
9555 ac_cv_header_sys_wait_h=no
9556 fi
9557 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
9558 fi
9559 echo "$as_me:9559: result: $ac_cv_header_sys_wait_h" >&5
9560 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
9561 if test $ac_cv_header_sys_wait_h = yes; then
9562
9563 cat >>confdefs.h <<\EOF
9564 #define HAVE_SYS_WAIT_H 1
9565 EOF
9566
9567 fi
9568
9569 echo "$as_me:9569: checking for POSIX wait functions" >&5
9570 echo $ECHO_N "checking for POSIX wait functions... $ECHO_C" >&6
9571 if test "${cf_cv_posix_wait+set}" = set; then
9572 echo $ECHO_N "(cached) $ECHO_C" >&6
9573 else
9574
9575 cat >"conftest.$ac_ext" <<_ACEOF
9576 #line 9576 "configure"
9577 #include "confdefs.h"
9578
9579 #include <stdlib.h>
9580 #include <stdio.h>
9581 #include <sys/types.h>
9582 #ifdef HAVE_SYS_WAIT_H
9583 #include <sys/wait.h>
9584 #endif
9585
9586 int
9587 main (void)
9588 {
9589
9590 int stat_loc;
9591 pid_t pid = waitpid(-1, &stat_loc, WNOHANG|WUNTRACED);
9592 pid_t pid2 = wait(&stat_loc);
9593 (void)pid;
9594 (void)pid2;
9595
9596 ;
9597 return 0;
9598 }
9599 _ACEOF
9600 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
9601 if { (eval echo "$as_me:9601: \"$ac_link\"") >&5
9602 (eval $ac_link) 2>&5
9603 ac_status=$?
9604 echo "$as_me:9604: \$? = $ac_status" >&5
9605 (exit "$ac_status"); } &&
9606 { ac_try='test -s "conftest$ac_exeext"'
9607 { (eval echo "$as_me:9607: \"$ac_try\"") >&5
9608 (eval $ac_try) 2>&5
9609 ac_status=$?
9610 echo "$as_me:9610: \$? = $ac_status" >&5
9611 (exit "$ac_status"); }; }; then
9612 cf_cv_posix_wait=yes
9613 else
9614 echo "$as_me: failed program was:" >&5
9615 cat "conftest.$ac_ext" >&5
9616 cf_cv_posix_wait=no
9617 fi
9618 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
9619
9620 fi
9621 echo "$as_me:9621: result: $cf_cv_posix_wait" >&5
9622 echo "${ECHO_T}$cf_cv_posix_wait" >&6
9623 test "$cf_cv_posix_wait" = yes &&
9624 cat >>confdefs.h <<\EOF
9625 #define USE_POSIX_WAIT 1
9626 EOF
9627
9628 echo "$as_me:9628: checking if external sys_nerr is declared" >&5
9629 echo $ECHO_N "checking if external sys_nerr is declared... $ECHO_C" >&6
9630 if test "${cf_cv_dcl_sys_nerr+set}" = set; then
9631 echo $ECHO_N "(cached) $ECHO_C" >&6
9632 else
9633
9634 cat >"conftest.$ac_ext" <<_ACEOF
9635 #line 9635 "configure"
9636 #include "confdefs.h"
9637
9638 #ifdef HAVE_STDLIB_H
9639 #include <stdlib.h>
9640 #endif
9641 #include <stdio.h>
9642 #include <sys/types.h>
9643 #include <errno.h>
9644 int
9645 main (void)
9646 {
9647 int x = (int) sys_nerr; (void)x
9648 ;
9649 return 0;
9650 }
9651 _ACEOF
9652 rm -f "conftest.$ac_objext"
9653 if { (eval echo "$as_me:9653: \"$ac_compile\"") >&5
9654 (eval $ac_compile) 2>&5
9655 ac_status=$?
9656 echo "$as_me:9656: \$? = $ac_status" >&5
9657 (exit "$ac_status"); } &&
9658 { ac_try='test -s "conftest.$ac_objext"'
9659 { (eval echo "$as_me:9659: \"$ac_try\"") >&5
9660 (eval $ac_try) 2>&5
9661 ac_status=$?
9662 echo "$as_me:9662: \$? = $ac_status" >&5
9663 (exit "$ac_status"); }; }; then
9664 cf_cv_dcl_sys_nerr=yes
9665 else
9666 echo "$as_me: failed program was:" >&5
9667 cat "conftest.$ac_ext" >&5
9668 cf_cv_dcl_sys_nerr=no
9669 fi
9670 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
9671
9672 fi
9673 echo "$as_me:9673: result: $cf_cv_dcl_sys_nerr" >&5
9674 echo "${ECHO_T}$cf_cv_dcl_sys_nerr" >&6
9675
9676 if test "$cf_cv_dcl_sys_nerr" = no ; then
9677
9678 cf_result=`echo "decl_sys_nerr" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
9679
9680 cat >>confdefs.h <<EOF
9681 #define $cf_result 1
9682 EOF
9683
9684 fi
9685
9686 # It's possible (for near-UNIX clones) that the data doesn't exist
9687
9688 echo "$as_me:9688: checking if external sys_nerr exists" >&5
9689 echo $ECHO_N "checking if external sys_nerr exists... $ECHO_C" >&6
9690 if test "${cf_cv_have_sys_nerr+set}" = set; then
9691 echo $ECHO_N "(cached) $ECHO_C" >&6
9692 else
9693
9694 cat >"conftest.$ac_ext" <<_ACEOF
9695 #line 9695 "configure"
9696 #include "confdefs.h"
9697
9698 #undef sys_nerr
9699 extern int sys_nerr;
9700
9701 int
9702 main (void)
9703 {
9704 sys_nerr = 2
9705 ;
9706 return 0;
9707 }
9708 _ACEOF
9709 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
9710 if { (eval echo "$as_me:9710: \"$ac_link\"") >&5
9711 (eval $ac_link) 2>&5
9712 ac_status=$?
9713 echo "$as_me:9713: \$? = $ac_status" >&5
9714 (exit "$ac_status"); } &&
9715 { ac_try='test -s "conftest$ac_exeext"'
9716 { (eval echo "$as_me:9716: \"$ac_try\"") >&5
9717 (eval $ac_try) 2>&5
9718 ac_status=$?
9719 echo "$as_me:9719: \$? = $ac_status" >&5
9720 (exit "$ac_status"); }; }; then
9721 cf_cv_have_sys_nerr=yes
9722 else
9723 echo "$as_me: failed program was:" >&5
9724 cat "conftest.$ac_ext" >&5
9725 cf_cv_have_sys_nerr=no
9726 fi
9727 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
9728
9729 fi
9730 echo "$as_me:9730: result: $cf_cv_have_sys_nerr" >&5
9731 echo "${ECHO_T}$cf_cv_have_sys_nerr" >&6
9732
9733 if test "$cf_cv_have_sys_nerr" = yes ; then
9734
9735 cf_result=`echo "have_sys_nerr" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
9736
9737 cat >>confdefs.h <<EOF
9738 #define $cf_result 1
9739 EOF
9740
9741 fi
9742
9743 echo "$as_me:9743: checking if external sys_errlist is declared" >&5
9744 echo $ECHO_N "checking if external sys_errlist is declared... $ECHO_C" >&6
9745 if test "${cf_cv_dcl_sys_errlist+set}" = set; then
9746 echo $ECHO_N "(cached) $ECHO_C" >&6
9747 else
9748
9749 cat >"conftest.$ac_ext" <<_ACEOF
9750 #line 9750 "configure"
9751 #include "confdefs.h"
9752
9753 #ifdef HAVE_STDLIB_H
9754 #include <stdlib.h>
9755 #endif
9756 #include <stdio.h>
9757 #include <sys/types.h>
9758 #include <errno.h>
9759 int
9760 main (void)
9761 {
9762 int x = (int) sys_errlist; (void)x
9763 ;
9764 return 0;
9765 }
9766 _ACEOF
9767 rm -f "conftest.$ac_objext"
9768 if { (eval echo "$as_me:9768: \"$ac_compile\"") >&5
9769 (eval $ac_compile) 2>&5
9770 ac_status=$?
9771 echo "$as_me:9771: \$? = $ac_status" >&5
9772 (exit "$ac_status"); } &&
9773 { ac_try='test -s "conftest.$ac_objext"'
9774 { (eval echo "$as_me:9774: \"$ac_try\"") >&5
9775 (eval $ac_try) 2>&5
9776 ac_status=$?
9777 echo "$as_me:9777: \$? = $ac_status" >&5
9778 (exit "$ac_status"); }; }; then
9779 cf_cv_dcl_sys_errlist=yes
9780 else
9781 echo "$as_me: failed program was:" >&5
9782 cat "conftest.$ac_ext" >&5
9783 cf_cv_dcl_sys_errlist=no
9784 fi
9785 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
9786
9787 fi
9788 echo "$as_me:9788: result: $cf_cv_dcl_sys_errlist" >&5
9789 echo "${ECHO_T}$cf_cv_dcl_sys_errlist" >&6
9790
9791 if test "$cf_cv_dcl_sys_errlist" = no ; then
9792
9793 cf_result=`echo "decl_sys_errlist" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
9794
9795 cat >>confdefs.h <<EOF
9796 #define $cf_result 1
9797 EOF
9798
9799 fi
9800
9801 # It's possible (for near-UNIX clones) that the data doesn't exist
9802
9803 echo "$as_me:9803: checking if external sys_errlist exists" >&5
9804 echo $ECHO_N "checking if external sys_errlist exists... $ECHO_C" >&6
9805 if test "${cf_cv_have_sys_errlist+set}" = set; then
9806 echo $ECHO_N "(cached) $ECHO_C" >&6
9807 else
9808
9809 cat >"conftest.$ac_ext" <<_ACEOF
9810 #line 9810 "configure"
9811 #include "confdefs.h"
9812
9813 #undef sys_errlist
9814 extern int sys_errlist;
9815
9816 int
9817 main (void)
9818 {
9819 sys_errlist = 2
9820 ;
9821 return 0;
9822 }
9823 _ACEOF
9824 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
9825 if { (eval echo "$as_me:9825: \"$ac_link\"") >&5
9826 (eval $ac_link) 2>&5
9827 ac_status=$?
9828 echo "$as_me:9828: \$? = $ac_status" >&5
9829 (exit "$ac_status"); } &&
9830 { ac_try='test -s "conftest$ac_exeext"'
9831 { (eval echo "$as_me:9831: \"$ac_try\"") >&5
9832 (eval $ac_try) 2>&5
9833 ac_status=$?
9834 echo "$as_me:9834: \$? = $ac_status" >&5
9835 (exit "$ac_status"); }; }; then
9836 cf_cv_have_sys_errlist=yes
9837 else
9838 echo "$as_me: failed program was:" >&5
9839 cat "conftest.$ac_ext" >&5
9840 cf_cv_have_sys_errlist=no
9841 fi
9842 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
9843
9844 fi
9845 echo "$as_me:9845: result: $cf_cv_have_sys_errlist" >&5
9846 echo "${ECHO_T}$cf_cv_have_sys_errlist" >&6
9847
9848 if test "$cf_cv_have_sys_errlist" = yes ; then
9849
9850 cf_result=`echo "have_sys_errlist" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
9851
9852 cat >>confdefs.h <<EOF
9853 #define $cf_result 1
9854 EOF
9855
9856 fi
9857
9858 cf_save_LIBS_CF_SYSV="$LIBS"
9859 cf_save_CFLAGS_CF_SYSV="$CFLAGS"
9860 cf_save_CPPFLAGS_CF_SYSV="$CPPFLAGS"
9861 LIBS="$LIBS ${X_PRE_LIBS} ${X_LIBS} ${X_EXTRA_LIBS}"
9862 for cf_X_CFLAGS in $X_CFLAGS
9863 do
9864 case "x$cf_X_CFLAGS" in
9865 x-[IUD]*)
9866 CPPFLAGS="$CPPFLAGS $cf_X_CFLAGS"
9867 ;;
9868 *)
9869 CFLAGS="$CFLAGS $cf_X_CFLAGS"
9870 ;;
9871 esac
9872 done
9873
9874 for ac_header in \
9875 termios.h \
9876 stdlib.h \
9877 X11/Intrinsic.h \
9878
9879 do
9880 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9881 echo "$as_me:9881: checking for $ac_header" >&5
9882 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9883 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9884 echo $ECHO_N "(cached) $ECHO_C" >&6
9885 else
9886 cat >"conftest.$ac_ext" <<_ACEOF
9887 #line 9887 "configure"
9888 #include "confdefs.h"
9889 #include <$ac_header>
9890 _ACEOF
9891 if { (eval echo "$as_me:9891: \"$ac_cpp "conftest.$ac_ext"\"") >&5
9892 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
9893 ac_status=$?
9894 $EGREP -v '^ *\+' conftest.er1 >conftest.err
9895 rm -f conftest.er1
9896 cat conftest.err >&5
9897 echo "$as_me:9897: \$? = $ac_status" >&5
9898 (exit "$ac_status"); } >/dev/null; then
9899 if test -s conftest.err; then
9900 ac_cpp_err=$ac_c_preproc_warn_flag
9901 else
9902 ac_cpp_err=
9903 fi
9904 else
9905 ac_cpp_err=yes
9906 fi
9907 if test -z "$ac_cpp_err"; then
9908 eval "$as_ac_Header=yes"
9909 else
9910 echo "$as_me: failed program was:" >&5
9911 cat "conftest.$ac_ext" >&5
9912 eval "$as_ac_Header=no"
9913 fi
9914 rm -f conftest.err "conftest.$ac_ext"
9915 fi
9916 echo "$as_me:9916: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
9917 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
9918 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
9919 cat >>confdefs.h <<EOF
9920 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9921 EOF
9922
9923 fi
9924 done
9925
9926 echo "$as_me:9926: checking if we should define SYSV" >&5
9927 echo $ECHO_N "checking if we should define SYSV... $ECHO_C" >&6
9928 if test "${cf_cv_sysv+set}" = set; then
9929 echo $ECHO_N "(cached) $ECHO_C" >&6
9930 else
9931
9932 cat >"conftest.$ac_ext" <<_ACEOF
9933 #line 9933 "configure"
9934 #include "confdefs.h"
9935
9936 #undef SYSV
9937 #define SYSV 1 /* get Xos.h to declare sys_errlist[] */
9938 #ifdef HAVE_STDLIB_H
9939 #include <stdlib.h> /* look for wchar_t */
9940 #endif
9941 #ifdef HAVE_X11_INTRINSIC_H
9942 #include <X11/Intrinsic.h> /* Intrinsic.h has other traps... */
9943 #endif
9944 #ifdef HAVE_TERMIOS_H /* needed for HPUX 10.20 */
9945 #include <termios.h>
9946 #define STRUCT_TERMIOS struct termios
9947 #else
9948 #define STRUCT_TERMIOS struct termio
9949 #endif
9950 #include <curses.h>
9951 #include <term.h> /* eliminate most BSD hacks */
9952 #include <errno.h> /* declare sys_errlist on older systems */
9953 #include <sys/termio.h> /* eliminate most of the remaining ones */
9954
9955 int
9956 main (void)
9957 {
9958
9959 static STRUCT_TERMIOS d_tio;
9960 d_tio.c_cc[VINTR] = 0;
9961 d_tio.c_cc[VQUIT] = 0;
9962 d_tio.c_cc[VERASE] = 0;
9963 d_tio.c_cc[VKILL] = 0;
9964 d_tio.c_cc[VEOF] = 0;
9965 d_tio.c_cc[VEOL] = 0;
9966 d_tio.c_cc[VMIN] = 0;
9967 d_tio.c_cc[VTIME] = 0;
9968 #if defined(HAVE_SYS_ERRLIST) && !defined(DECL_SYS_ERRLIST)
9969 sys_errlist[0] = ""; /* Cygwin mis-declares this */
9970 #endif
9971
9972 ;
9973 return 0;
9974 }
9975 _ACEOF
9976 rm -f "conftest.$ac_objext"
9977 if { (eval echo "$as_me:9977: \"$ac_compile\"") >&5
9978 (eval $ac_compile) 2>&5
9979 ac_status=$?
9980 echo "$as_me:9980: \$? = $ac_status" >&5
9981 (exit "$ac_status"); } &&
9982 { ac_try='test -s "conftest.$ac_objext"'
9983 { (eval echo "$as_me:9983: \"$ac_try\"") >&5
9984 (eval $ac_try) 2>&5
9985 ac_status=$?
9986 echo "$as_me:9986: \$? = $ac_status" >&5
9987 (exit "$ac_status"); }; }; then
9988 cf_cv_sysv=yes
9989 else
9990 echo "$as_me: failed program was:" >&5
9991 cat "conftest.$ac_ext" >&5
9992 cf_cv_sysv=no
9993 fi
9994 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
9995
9996 fi
9997 echo "$as_me:9997: result: $cf_cv_sysv" >&5
9998 echo "${ECHO_T}$cf_cv_sysv" >&6
9999 test "$cf_cv_sysv" = yes &&
10000 cat >>confdefs.h <<\EOF
10001 #define SYSV 1
10002 EOF
10003
10004 LIBS="$cf_save_LIBS_CF_SYSV"
10005 CFLAGS="$cf_save_CFLAGS_CF_SYSV"
10006 CPPFLAGS="$cf_save_CPPFLAGS_CF_SYSV"
10007
10008 echo "$as_me:10008: checking for elf_begin in -lelf" >&5
10009 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
10010 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
10011 echo $ECHO_N "(cached) $ECHO_C" >&6
10012 else
10013 ac_check_lib_save_LIBS=$LIBS
10014 LIBS="-lelf $LIBS"
10015 cat >"conftest.$ac_ext" <<_ACEOF
10016 #line 10016 "configure"
10017 #include "confdefs.h"
10018
10019 /* Override any gcc2 internal prototype to avoid an error. */
10020 #ifdef __cplusplus
10021 extern "C"
10022 #endif
10023 /* We use char because int might match the return type of a gcc2
10024 builtin and then its argument prototype would still apply. */
10025 char elf_begin ();
10026 int
10027 main (void)
10028 {
10029 elf_begin ();
10030 ;
10031 return 0;
10032 }
10033 _ACEOF
10034 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
10035 if { (eval echo "$as_me:10035: \"$ac_link\"") >&5
10036 (eval $ac_link) 2>&5
10037 ac_status=$?
10038 echo "$as_me:10038: \$? = $ac_status" >&5
10039 (exit "$ac_status"); } &&
10040 { ac_try='test -s "conftest$ac_exeext"'
10041 { (eval echo "$as_me:10041: \"$ac_try\"") >&5
10042 (eval $ac_try) 2>&5
10043 ac_status=$?
10044 echo "$as_me:10044: \$? = $ac_status" >&5
10045 (exit "$ac_status"); }; }; then
10046 ac_cv_lib_elf_elf_begin=yes
10047 else
10048 echo "$as_me: failed program was:" >&5
10049 cat "conftest.$ac_ext" >&5
10050 ac_cv_lib_elf_elf_begin=no
10051 fi
10052 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
10053 LIBS=$ac_check_lib_save_LIBS
10054 fi
10055 echo "$as_me:10055: result: $ac_cv_lib_elf_elf_begin" >&5
10056 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
10057 if test "$ac_cv_lib_elf_elf_begin" = yes; then
10058
10059 echo "$as_me:10059: checking if this is an SVR4 system" >&5
10060 echo $ECHO_N "checking if this is an SVR4 system... $ECHO_C" >&6
10061 if test "${cf_cv_svr4+set}" = set; then
10062 echo $ECHO_N "(cached) $ECHO_C" >&6
10063 else
10064
10065 cat >"conftest.$ac_ext" <<_ACEOF
10066 #line 10066 "configure"
10067 #include "confdefs.h"
10068
10069 #if defined(__CYGWIN__)
10070 make an error
10071 #endif
10072 #include <elf.h>
10073 #include <sys/termio.h>
10074
10075 int
10076 main (void)
10077 {
10078
10079 static struct termio d_tio;
10080 d_tio.c_cc[VINTR] = 0;
10081 d_tio.c_cc[VQUIT] = 0;
10082 d_tio.c_cc[VERASE] = 0;
10083 d_tio.c_cc[VKILL] = 0;
10084 d_tio.c_cc[VEOF] = 0;
10085 d_tio.c_cc[VEOL] = 0;
10086 d_tio.c_cc[VMIN] = 0;
10087 d_tio.c_cc[VTIME] = 0;
10088 d_tio.c_cc[VLNEXT] = 0;
10089
10090 ;
10091 return 0;
10092 }
10093 _ACEOF
10094 rm -f "conftest.$ac_objext"
10095 if { (eval echo "$as_me:10095: \"$ac_compile\"") >&5
10096 (eval $ac_compile) 2>&5
10097 ac_status=$?
10098 echo "$as_me:10098: \$? = $ac_status" >&5
10099 (exit "$ac_status"); } &&
10100 { ac_try='test -s "conftest.$ac_objext"'
10101 { (eval echo "$as_me:10101: \"$ac_try\"") >&5
10102 (eval $ac_try) 2>&5
10103 ac_status=$?
10104 echo "$as_me:10104: \$? = $ac_status" >&5
10105 (exit "$ac_status"); }; }; then
10106 cf_cv_svr4=yes
10107 else
10108 echo "$as_me: failed program was:" >&5
10109 cat "conftest.$ac_ext" >&5
10110 cf_cv_svr4=no
10111 fi
10112 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10113
10114 fi
10115 echo "$as_me:10115: result: $cf_cv_svr4" >&5
10116 echo "${ECHO_T}$cf_cv_svr4" >&6
10117
10118 fi
10119
10120 test "$cf_cv_svr4" = yes &&
10121 cat >>confdefs.h <<\EOF
10122 #define SVR4 1
10123 EOF
10124
10125 echo "$as_me:10125: checking if you want to use pkg-config" >&5
10126 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
10127
10128 # Check whether --with-pkg-config or --without-pkg-config was given.
10129 if test "${with_pkg_config+set}" = set; then
10130 withval="$with_pkg_config"
10131 cf_pkg_config=$withval
10132 else
10133 cf_pkg_config=yes
10134 fi;
10135 echo "$as_me:10135: result: $cf_pkg_config" >&5
10136 echo "${ECHO_T}$cf_pkg_config" >&6
10137
10138 case "$cf_pkg_config" in
10139 (no)
10140 PKG_CONFIG=none
10141 ;;
10142 (yes)
10143
10144 if test -n "$ac_tool_prefix"; then
10145 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
10146 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
10147 echo "$as_me:10147: checking for $ac_word" >&5
10148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10149 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10150 echo $ECHO_N "(cached) $ECHO_C" >&6
10151 else
10152 case $PKG_CONFIG in
10153 [\\/]* | ?:[\\/]*)
10154 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10155 ;;
10156 *)
10157 ac_save_IFS=$IFS; IFS=$ac_path_separator
10158 ac_dummy="$PATH"
10159 for ac_dir in $ac_dummy; do
10160 IFS=$ac_save_IFS
10161 test -z "$ac_dir" && ac_dir=.
10162 if $as_executable_p "$ac_dir/$ac_word"; then
10163 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
10164 echo "$as_me:10164: found $ac_dir/$ac_word" >&5
10165 break
10166 fi
10167 done
10168
10169 ;;
10170 esac
10171 fi
10172 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10173
10174 if test -n "$PKG_CONFIG"; then
10175 echo "$as_me:10175: result: $PKG_CONFIG" >&5
10176 echo "${ECHO_T}$PKG_CONFIG" >&6
10177 else
10178 echo "$as_me:10178: result: no" >&5
10179 echo "${ECHO_T}no" >&6
10180 fi
10181
10182 fi
10183 if test -z "$ac_cv_path_PKG_CONFIG"; then
10184 ac_pt_PKG_CONFIG=$PKG_CONFIG
10185 # Extract the first word of "pkg-config", so it can be a program name with args.
10186 set dummy pkg-config; ac_word=$2
10187 echo "$as_me:10187: checking for $ac_word" >&5
10188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10189 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
10190 echo $ECHO_N "(cached) $ECHO_C" >&6
10191 else
10192 case $ac_pt_PKG_CONFIG in
10193 [\\/]* | ?:[\\/]*)
10194 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10195 ;;
10196 *)
10197 ac_save_IFS=$IFS; IFS=$ac_path_separator
10198 ac_dummy="$PATH"
10199 for ac_dir in $ac_dummy; do
10200 IFS=$ac_save_IFS
10201 test -z "$ac_dir" && ac_dir=.
10202 if $as_executable_p "$ac_dir/$ac_word"; then
10203 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
10204 echo "$as_me:10204: found $ac_dir/$ac_word" >&5
10205 break
10206 fi
10207 done
10208
10209 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
10210 ;;
10211 esac
10212 fi
10213 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
10214
10215 if test -n "$ac_pt_PKG_CONFIG"; then
10216 echo "$as_me:10216: result: $ac_pt_PKG_CONFIG" >&5
10217 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
10218 else
10219 echo "$as_me:10219: result: no" >&5
10220 echo "${ECHO_T}no" >&6
10221 fi
10222
10223 PKG_CONFIG=$ac_pt_PKG_CONFIG
10224 else
10225 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
10226 fi
10227
10228 ;;
10229 (*)
10230 PKG_CONFIG=$withval
10231 ;;
10232 esac
10233
10234 test -z "$PKG_CONFIG" && PKG_CONFIG=none
10235 if test "$PKG_CONFIG" != none ; then
10236
10237 if test "x$prefix" != xNONE; then
10238 cf_path_syntax="$prefix"
10239 else
10240 cf_path_syntax="$ac_default_prefix"
10241 fi
10242
10243 case ".$PKG_CONFIG" in
10244 (.\$\(*\)*|.\'*\'*)
10245 ;;
10246 (..|./*|.\\*)
10247 ;;
10248 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
10249 ;;
10250 (.\$\{*prefix\}*|.\$\{*dir\}*)
10251 eval PKG_CONFIG="$PKG_CONFIG"
10252 case ".$PKG_CONFIG" in
10253 (.NONE/*)
10254 PKG_CONFIG=`echo "$PKG_CONFIG" | sed -e s%NONE%$cf_path_syntax%`
10255 ;;
10256 esac
10257 ;;
10258 (.no|.NONE/*)
10259 PKG_CONFIG=`echo "$PKG_CONFIG" | sed -e s%NONE%$cf_path_syntax%`
10260 ;;
10261 (*)
10262 { { echo "$as_me:10262: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
10263 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
10264 { (exit 1); exit 1; }; }
10265 ;;
10266 esac
10267
10268 elif test "x$cf_pkg_config" != xno ; then
10269 { echo "$as_me:10269: WARNING: pkg-config is not installed" >&5
10270 echo "$as_me: WARNING: pkg-config is not installed" >&2;}
10271 fi
10272
10273 # OSX is schizoid about who owns /usr/X11 (old) versus /opt/X11 (new) (and
10274 # in some cases has installed dummy files in the former, other cases replaced
10275 # it with a link to the new location). This complicates the configure script.
10276 # Check for that pitfall, and recover using pkg-config
10277 #
10278 # If none of these are set, the configuration is almost certainly broken.
10279 if test -z "${X_CFLAGS}${X_PRE_LIBS}${X_LIBS}${X_EXTRA_LIBS}"
10280 then
10281
10282 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "x11"; then
10283 test -n "$verbose" && echo " found package x11" 1>&6
10284
10285 echo "${as_me:-configure}:10285: testing found package x11 ..." 1>&5
10286
10287 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "x11" 2>/dev/null`"
10288 cf_pkgconfig_libs="`$PKG_CONFIG --libs "x11" 2>/dev/null`"
10289 test -n "$verbose" && echo " package x11 CFLAGS: $cf_pkgconfig_incs" 1>&6
10290
10291 echo "${as_me:-configure}:10291: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5
10292
10293 test -n "$verbose" && echo " package x11 LIBS: $cf_pkgconfig_libs" 1>&6
10294
10295 echo "${as_me:-configure}:10295: testing package x11 LIBS: $cf_pkgconfig_libs ..." 1>&5
10296
10297 cf_fix_cppflags=no
10298 cf_new_cflags=
10299 cf_new_cppflags=
10300 cf_new_extra_cppflags=
10301
10302 for cf_add_cflags in $cf_pkgconfig_incs
10303 do
10304 case "$cf_fix_cppflags" in
10305 (no)
10306 case "$cf_add_cflags" in
10307 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10308 case "$cf_add_cflags" in
10309 (-D*)
10310 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10311
10312 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10313 && test -z "${cf_tst_cflags}" \
10314 && cf_fix_cppflags=yes
10315
10316 if test "$cf_fix_cppflags" = yes ; then
10317
10318 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10319 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10320
10321 continue
10322 elif test "${cf_tst_cflags}" = "\"'" ; then
10323
10324 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10325 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10326
10327 continue
10328 fi
10329 ;;
10330 esac
10331 case "$CPPFLAGS" in
10332 (*$cf_add_cflags)
10333 ;;
10334 (*)
10335 case "$cf_add_cflags" in
10336 (-D*)
10337 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10338
10339 CPPFLAGS=`echo "$CPPFLAGS" | \
10340 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10341 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10342
10343 ;;
10344 esac
10345
10346 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
10347 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
10348
10349 ;;
10350 esac
10351 ;;
10352 (*)
10353
10354 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
10355 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
10356
10357 ;;
10358 esac
10359 ;;
10360 (yes)
10361
10362 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10363 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10364
10365 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
10366
10367 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10368 && test -z "${cf_tst_cflags}" \
10369 && cf_fix_cppflags=no
10370 ;;
10371 esac
10372 done
10373
10374 if test -n "$cf_new_cflags" ; then
10375
10376 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
10377 CFLAGS="${CFLAGS}$cf_new_cflags"
10378
10379 fi
10380
10381 if test -n "$cf_new_cppflags" ; then
10382
10383 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10384 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
10385
10386 fi
10387
10388 if test -n "$cf_new_extra_cppflags" ; then
10389
10390 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10391 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
10392
10393 fi
10394
10395 cf_add_libs="$LIBS"
10396 # reverse order
10397 cf_add_0lib=
10398 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
10399 # filter duplicates
10400 for cf_add_1lib in $cf_add_0lib; do
10401 for cf_add_2lib in $cf_add_libs; do
10402 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
10403 cf_add_1lib=
10404 break
10405 fi
10406 done
10407 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
10408 done
10409 LIBS="$cf_add_libs"
10410
10411 :
10412 else
10413 cf_pkgconfig_incs=
10414 cf_pkgconfig_libs=
10415 { echo "$as_me:10415: WARNING: unable to find X11 library" >&5
10416 echo "$as_me: WARNING: unable to find X11 library" >&2;}
10417 fi
10418
10419 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "ice"; then
10420 test -n "$verbose" && echo " found package ice" 1>&6
10421
10422 echo "${as_me:-configure}:10422: testing found package ice ..." 1>&5
10423
10424 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "ice" 2>/dev/null`"
10425 cf_pkgconfig_libs="`$PKG_CONFIG --libs "ice" 2>/dev/null`"
10426 test -n "$verbose" && echo " package ice CFLAGS: $cf_pkgconfig_incs" 1>&6
10427
10428 echo "${as_me:-configure}:10428: testing package ice CFLAGS: $cf_pkgconfig_incs ..." 1>&5
10429
10430 test -n "$verbose" && echo " package ice LIBS: $cf_pkgconfig_libs" 1>&6
10431
10432 echo "${as_me:-configure}:10432: testing package ice LIBS: $cf_pkgconfig_libs ..." 1>&5
10433
10434 cf_fix_cppflags=no
10435 cf_new_cflags=
10436 cf_new_cppflags=
10437 cf_new_extra_cppflags=
10438
10439 for cf_add_cflags in $cf_pkgconfig_incs
10440 do
10441 case "$cf_fix_cppflags" in
10442 (no)
10443 case "$cf_add_cflags" in
10444 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10445 case "$cf_add_cflags" in
10446 (-D*)
10447 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10448
10449 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10450 && test -z "${cf_tst_cflags}" \
10451 && cf_fix_cppflags=yes
10452
10453 if test "$cf_fix_cppflags" = yes ; then
10454
10455 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10456 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10457
10458 continue
10459 elif test "${cf_tst_cflags}" = "\"'" ; then
10460
10461 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10462 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10463
10464 continue
10465 fi
10466 ;;
10467 esac
10468 case "$CPPFLAGS" in
10469 (*$cf_add_cflags)
10470 ;;
10471 (*)
10472 case "$cf_add_cflags" in
10473 (-D*)
10474 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10475
10476 CPPFLAGS=`echo "$CPPFLAGS" | \
10477 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10478 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10479
10480 ;;
10481 esac
10482
10483 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
10484 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
10485
10486 ;;
10487 esac
10488 ;;
10489 (*)
10490
10491 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
10492 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
10493
10494 ;;
10495 esac
10496 ;;
10497 (yes)
10498
10499 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10500 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10501
10502 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
10503
10504 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10505 && test -z "${cf_tst_cflags}" \
10506 && cf_fix_cppflags=no
10507 ;;
10508 esac
10509 done
10510
10511 if test -n "$cf_new_cflags" ; then
10512
10513 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
10514 CFLAGS="${CFLAGS}$cf_new_cflags"
10515
10516 fi
10517
10518 if test -n "$cf_new_cppflags" ; then
10519
10520 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10521 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
10522
10523 fi
10524
10525 if test -n "$cf_new_extra_cppflags" ; then
10526
10527 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10528 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
10529
10530 fi
10531
10532 cf_add_libs="$LIBS"
10533 # reverse order
10534 cf_add_0lib=
10535 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
10536 # filter duplicates
10537 for cf_add_1lib in $cf_add_0lib; do
10538 for cf_add_2lib in $cf_add_libs; do
10539 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
10540 cf_add_1lib=
10541 break
10542 fi
10543 done
10544 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
10545 done
10546 LIBS="$cf_add_libs"
10547
10548 :
10549 else
10550 cf_pkgconfig_incs=
10551 cf_pkgconfig_libs=
10552 { echo "$as_me:10552: WARNING: unable to find ICE library" >&5
10553 echo "$as_me: WARNING: unable to find ICE library" >&2;}
10554 fi
10555
10556 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "sm"; then
10557 test -n "$verbose" && echo " found package sm" 1>&6
10558
10559 echo "${as_me:-configure}:10559: testing found package sm ..." 1>&5
10560
10561 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "sm" 2>/dev/null`"
10562 cf_pkgconfig_libs="`$PKG_CONFIG --libs "sm" 2>/dev/null`"
10563 test -n "$verbose" && echo " package sm CFLAGS: $cf_pkgconfig_incs" 1>&6
10564
10565 echo "${as_me:-configure}:10565: testing package sm CFLAGS: $cf_pkgconfig_incs ..." 1>&5
10566
10567 test -n "$verbose" && echo " package sm LIBS: $cf_pkgconfig_libs" 1>&6
10568
10569 echo "${as_me:-configure}:10569: testing package sm LIBS: $cf_pkgconfig_libs ..." 1>&5
10570
10571 cf_fix_cppflags=no
10572 cf_new_cflags=
10573 cf_new_cppflags=
10574 cf_new_extra_cppflags=
10575
10576 for cf_add_cflags in $cf_pkgconfig_incs
10577 do
10578 case "$cf_fix_cppflags" in
10579 (no)
10580 case "$cf_add_cflags" in
10581 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10582 case "$cf_add_cflags" in
10583 (-D*)
10584 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10585
10586 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10587 && test -z "${cf_tst_cflags}" \
10588 && cf_fix_cppflags=yes
10589
10590 if test "$cf_fix_cppflags" = yes ; then
10591
10592 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10593 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10594
10595 continue
10596 elif test "${cf_tst_cflags}" = "\"'" ; then
10597
10598 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10599 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10600
10601 continue
10602 fi
10603 ;;
10604 esac
10605 case "$CPPFLAGS" in
10606 (*$cf_add_cflags)
10607 ;;
10608 (*)
10609 case "$cf_add_cflags" in
10610 (-D*)
10611 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10612
10613 CPPFLAGS=`echo "$CPPFLAGS" | \
10614 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10615 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10616
10617 ;;
10618 esac
10619
10620 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
10621 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
10622
10623 ;;
10624 esac
10625 ;;
10626 (*)
10627
10628 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
10629 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
10630
10631 ;;
10632 esac
10633 ;;
10634 (yes)
10635
10636 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10637 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10638
10639 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
10640
10641 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10642 && test -z "${cf_tst_cflags}" \
10643 && cf_fix_cppflags=no
10644 ;;
10645 esac
10646 done
10647
10648 if test -n "$cf_new_cflags" ; then
10649
10650 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
10651 CFLAGS="${CFLAGS}$cf_new_cflags"
10652
10653 fi
10654
10655 if test -n "$cf_new_cppflags" ; then
10656
10657 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10658 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
10659
10660 fi
10661
10662 if test -n "$cf_new_extra_cppflags" ; then
10663
10664 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10665 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
10666
10667 fi
10668
10669 cf_add_libs="$LIBS"
10670 # reverse order
10671 cf_add_0lib=
10672 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
10673 # filter duplicates
10674 for cf_add_1lib in $cf_add_0lib; do
10675 for cf_add_2lib in $cf_add_libs; do
10676 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
10677 cf_add_1lib=
10678 break
10679 fi
10680 done
10681 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
10682 done
10683 LIBS="$cf_add_libs"
10684
10685 :
10686 else
10687 cf_pkgconfig_incs=
10688 cf_pkgconfig_libs=
10689 { echo "$as_me:10689: WARNING: unable to find SM library" >&5
10690 echo "$as_me: WARNING: unable to find SM library" >&2;}
10691 fi
10692
10693 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "xt"; then
10694 test -n "$verbose" && echo " found package xt" 1>&6
10695
10696 echo "${as_me:-configure}:10696: testing found package xt ..." 1>&5
10697
10698 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "xt" 2>/dev/null`"
10699 cf_pkgconfig_libs="`$PKG_CONFIG --libs "xt" 2>/dev/null`"
10700 test -n "$verbose" && echo " package xt CFLAGS: $cf_pkgconfig_incs" 1>&6
10701
10702 echo "${as_me:-configure}:10702: testing package xt CFLAGS: $cf_pkgconfig_incs ..." 1>&5
10703
10704 test -n "$verbose" && echo " package xt LIBS: $cf_pkgconfig_libs" 1>&6
10705
10706 echo "${as_me:-configure}:10706: testing package xt LIBS: $cf_pkgconfig_libs ..." 1>&5
10707
10708 cf_fix_cppflags=no
10709 cf_new_cflags=
10710 cf_new_cppflags=
10711 cf_new_extra_cppflags=
10712
10713 for cf_add_cflags in $cf_pkgconfig_incs
10714 do
10715 case "$cf_fix_cppflags" in
10716 (no)
10717 case "$cf_add_cflags" in
10718 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10719 case "$cf_add_cflags" in
10720 (-D*)
10721 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10722
10723 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10724 && test -z "${cf_tst_cflags}" \
10725 && cf_fix_cppflags=yes
10726
10727 if test "$cf_fix_cppflags" = yes ; then
10728
10729 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10730 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10731
10732 continue
10733 elif test "${cf_tst_cflags}" = "\"'" ; then
10734
10735 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10736 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10737
10738 continue
10739 fi
10740 ;;
10741 esac
10742 case "$CPPFLAGS" in
10743 (*$cf_add_cflags)
10744 ;;
10745 (*)
10746 case "$cf_add_cflags" in
10747 (-D*)
10748 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10749
10750 CPPFLAGS=`echo "$CPPFLAGS" | \
10751 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10752 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10753
10754 ;;
10755 esac
10756
10757 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
10758 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
10759
10760 ;;
10761 esac
10762 ;;
10763 (*)
10764
10765 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
10766 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
10767
10768 ;;
10769 esac
10770 ;;
10771 (yes)
10772
10773 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10774 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10775
10776 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
10777
10778 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10779 && test -z "${cf_tst_cflags}" \
10780 && cf_fix_cppflags=no
10781 ;;
10782 esac
10783 done
10784
10785 if test -n "$cf_new_cflags" ; then
10786
10787 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
10788 CFLAGS="${CFLAGS}$cf_new_cflags"
10789
10790 fi
10791
10792 if test -n "$cf_new_cppflags" ; then
10793
10794 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10795 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
10796
10797 fi
10798
10799 if test -n "$cf_new_extra_cppflags" ; then
10800
10801 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10802 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
10803
10804 fi
10805
10806 cf_add_libs="$LIBS"
10807 # reverse order
10808 cf_add_0lib=
10809 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
10810 # filter duplicates
10811 for cf_add_1lib in $cf_add_0lib; do
10812 for cf_add_2lib in $cf_add_libs; do
10813 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
10814 cf_add_1lib=
10815 break
10816 fi
10817 done
10818 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
10819 done
10820 LIBS="$cf_add_libs"
10821
10822 :
10823 else
10824 cf_pkgconfig_incs=
10825 cf_pkgconfig_libs=
10826 { echo "$as_me:10826: WARNING: unable to find Xt library" >&5
10827 echo "$as_me: WARNING: unable to find Xt library" >&2;}
10828 fi
10829
10830 else
10831 LIBS="$X_PRE_LIBS $LIBS $X_EXTRA_LIBS"
10832 fi
10833
10834 cf_have_X_LIBS=no
10835
10836 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "xt"; then
10837 test -n "$verbose" && echo " found package xt" 1>&6
10838
10839 echo "${as_me:-configure}:10839: testing found package xt ..." 1>&5
10840
10841 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "xt" 2>/dev/null`"
10842 cf_pkgconfig_libs="`$PKG_CONFIG --libs "xt" 2>/dev/null`"
10843 test -n "$verbose" && echo " package xt CFLAGS: $cf_pkgconfig_incs" 1>&6
10844
10845 echo "${as_me:-configure}:10845: testing package xt CFLAGS: $cf_pkgconfig_incs ..." 1>&5
10846
10847 test -n "$verbose" && echo " package xt LIBS: $cf_pkgconfig_libs" 1>&6
10848
10849 echo "${as_me:-configure}:10849: testing package xt LIBS: $cf_pkgconfig_libs ..." 1>&5
10850
10851 cf_fix_cppflags=no
10852 cf_new_cflags=
10853 cf_new_cppflags=
10854 cf_new_extra_cppflags=
10855
10856 for cf_add_cflags in $cf_pkgconfig_incs
10857 do
10858 case "$cf_fix_cppflags" in
10859 (no)
10860 case "$cf_add_cflags" in
10861 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10862 case "$cf_add_cflags" in
10863 (-D*)
10864 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10865
10866 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10867 && test -z "${cf_tst_cflags}" \
10868 && cf_fix_cppflags=yes
10869
10870 if test "$cf_fix_cppflags" = yes ; then
10871
10872 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10873 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10874
10875 continue
10876 elif test "${cf_tst_cflags}" = "\"'" ; then
10877
10878 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10879 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10880
10881 continue
10882 fi
10883 ;;
10884 esac
10885 case "$CPPFLAGS" in
10886 (*$cf_add_cflags)
10887 ;;
10888 (*)
10889 case "$cf_add_cflags" in
10890 (-D*)
10891 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10892
10893 CPPFLAGS=`echo "$CPPFLAGS" | \
10894 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10895 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10896
10897 ;;
10898 esac
10899
10900 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
10901 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
10902
10903 ;;
10904 esac
10905 ;;
10906 (*)
10907
10908 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
10909 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
10910
10911 ;;
10912 esac
10913 ;;
10914 (yes)
10915
10916 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10917 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10918
10919 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
10920
10921 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10922 && test -z "${cf_tst_cflags}" \
10923 && cf_fix_cppflags=no
10924 ;;
10925 esac
10926 done
10927
10928 if test -n "$cf_new_cflags" ; then
10929
10930 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
10931 CFLAGS="${CFLAGS}$cf_new_cflags"
10932
10933 fi
10934
10935 if test -n "$cf_new_cppflags" ; then
10936
10937 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10938 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
10939
10940 fi
10941
10942 if test -n "$cf_new_extra_cppflags" ; then
10943
10944 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10945 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
10946
10947 fi
10948
10949 cf_add_libs="$LIBS"
10950 # reverse order
10951 cf_add_0lib=
10952 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
10953 # filter duplicates
10954 for cf_add_1lib in $cf_add_0lib; do
10955 for cf_add_2lib in $cf_add_libs; do
10956 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
10957 cf_add_1lib=
10958 break
10959 fi
10960 done
10961 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
10962 done
10963 LIBS="$cf_add_libs"
10964
10965 case "x$LIBS" in
10966 (*-lX11*)
10967 ;;
10968 (*)
10969 # we have an "xt" package, but it may omit Xt's dependency on X11
10970 echo "$as_me:10970: checking for usable X dependency" >&5
10971 echo $ECHO_N "checking for usable X dependency... $ECHO_C" >&6
10972 if test "${cf_cv_xt_x11_compat+set}" = set; then
10973 echo $ECHO_N "(cached) $ECHO_C" >&6
10974 else
10975
10976 cat >"conftest.$ac_ext" <<_ACEOF
10977 #line 10977 "configure"
10978 #include "confdefs.h"
10979
10980 #include <X11/Xlib.h>
10981
10982 int
10983 main (void)
10984 {
10985
10986 int rc1 = XDrawLine((Display*) 0, (Drawable) 0, (GC) 0, 0, 0, 0, 0);
10987 int rc2 = XClearWindow((Display*) 0, (Window) 0);
10988 int rc3 = XMoveWindow((Display*) 0, (Window) 0, 0, 0);
10989 int rc4 = XMoveResizeWindow((Display*)0, (Window)0, 0, 0, 0, 0);
10990
10991 ;
10992 return 0;
10993 }
10994 _ACEOF
10995 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
10996 if { (eval echo "$as_me:10996: \"$ac_link\"") >&5
10997 (eval $ac_link) 2>&5
10998 ac_status=$?
10999 echo "$as_me:10999: \$? = $ac_status" >&5
11000 (exit "$ac_status"); } &&
11001 { ac_try='test -s "conftest$ac_exeext"'
11002 { (eval echo "$as_me:11002: \"$ac_try\"") >&5
11003 (eval $ac_try) 2>&5
11004 ac_status=$?
11005 echo "$as_me:11005: \$? = $ac_status" >&5
11006 (exit "$ac_status"); }; }; then
11007 cf_cv_xt_x11_compat=yes
11008 else
11009 echo "$as_me: failed program was:" >&5
11010 cat "conftest.$ac_ext" >&5
11011 cf_cv_xt_x11_compat=no
11012 fi
11013 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
11014 fi
11015 echo "$as_me:11015: result: $cf_cv_xt_x11_compat" >&5
11016 echo "${ECHO_T}$cf_cv_xt_x11_compat" >&6
11017 if test "$cf_cv_xt_x11_compat" = no
11018 then
11019 test -n "$verbose" && echo " work around broken X11 dependency" 1>&6
11020
11021 echo "${as_me:-configure}:11021: testing work around broken X11 dependency ..." 1>&5
11022
11023 # 2010/11/19 - good enough until a working Xt on Xcb is delivered.
11024
11025 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "x11"; then
11026 test -n "$verbose" && echo " found package x11" 1>&6
11027
11028 echo "${as_me:-configure}:11028: testing found package x11 ..." 1>&5
11029
11030 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "x11" 2>/dev/null`"
11031 cf_pkgconfig_libs="`$PKG_CONFIG --libs "x11" 2>/dev/null`"
11032 test -n "$verbose" && echo " package x11 CFLAGS: $cf_pkgconfig_incs" 1>&6
11033
11034 echo "${as_me:-configure}:11034: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5
11035
11036 test -n "$verbose" && echo " package x11 LIBS: $cf_pkgconfig_libs" 1>&6
11037
11038 echo "${as_me:-configure}:11038: testing package x11 LIBS: $cf_pkgconfig_libs ..." 1>&5
11039
11040 cf_fix_cppflags=no
11041 cf_new_cflags=
11042 cf_new_cppflags=
11043 cf_new_extra_cppflags=
11044
11045 for cf_add_cflags in $cf_pkgconfig_incs
11046 do
11047 case "$cf_fix_cppflags" in
11048 (no)
11049 case "$cf_add_cflags" in
11050 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11051 case "$cf_add_cflags" in
11052 (-D*)
11053 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11054
11055 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11056 && test -z "${cf_tst_cflags}" \
11057 && cf_fix_cppflags=yes
11058
11059 if test "$cf_fix_cppflags" = yes ; then
11060
11061 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11062 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11063
11064 continue
11065 elif test "${cf_tst_cflags}" = "\"'" ; then
11066
11067 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11068 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11069
11070 continue
11071 fi
11072 ;;
11073 esac
11074 case "$CPPFLAGS" in
11075 (*$cf_add_cflags)
11076 ;;
11077 (*)
11078 case "$cf_add_cflags" in
11079 (-D*)
11080 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11081
11082 CPPFLAGS=`echo "$CPPFLAGS" | \
11083 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11084 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11085
11086 ;;
11087 esac
11088
11089 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
11090 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
11091
11092 ;;
11093 esac
11094 ;;
11095 (*)
11096
11097 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
11098 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
11099
11100 ;;
11101 esac
11102 ;;
11103 (yes)
11104
11105 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11106 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11107
11108 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
11109
11110 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11111 && test -z "${cf_tst_cflags}" \
11112 && cf_fix_cppflags=no
11113 ;;
11114 esac
11115 done
11116
11117 if test -n "$cf_new_cflags" ; then
11118
11119 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
11120 CFLAGS="${CFLAGS}$cf_new_cflags"
11121
11122 fi
11123
11124 if test -n "$cf_new_cppflags" ; then
11125
11126 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11127 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
11128
11129 fi
11130
11131 if test -n "$cf_new_extra_cppflags" ; then
11132
11133 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
11134 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
11135
11136 fi
11137
11138 cf_add_libs="$LIBS"
11139 # reverse order
11140 cf_add_0lib=
11141 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
11142 # filter duplicates
11143 for cf_add_1lib in $cf_add_0lib; do
11144 for cf_add_2lib in $cf_add_libs; do
11145 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
11146 cf_add_1lib=
11147 break
11148 fi
11149 done
11150 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
11151 done
11152 LIBS="$cf_add_libs"
11153
11154 :
11155 else
11156 cf_pkgconfig_incs=
11157 cf_pkgconfig_libs=
11158
11159 test -n "$verbose" && echo " ...before $LIBS" 1>&6
11160
11161 echo "${as_me:-configure}:11161: testing ...before $LIBS ..." 1>&5
11162
11163 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXt %-lXt -lX11 %" -e 's% % %g'`
11164 test -n "$verbose" && echo " ...after $LIBS" 1>&6
11165
11166 echo "${as_me:-configure}:11166: testing ...after $LIBS ..." 1>&5
11167
11168 fi
11169
11170 fi
11171 ;;
11172 esac
11173
11174 echo "$as_me:11174: checking for usable X Toolkit package" >&5
11175 echo $ECHO_N "checking for usable X Toolkit package... $ECHO_C" >&6
11176 if test "${cf_cv_xt_ice_compat+set}" = set; then
11177 echo $ECHO_N "(cached) $ECHO_C" >&6
11178 else
11179
11180 cat >"conftest.$ac_ext" <<_ACEOF
11181 #line 11181 "configure"
11182 #include "confdefs.h"
11183
11184 #include <X11/Shell.h>
11185
11186 int
11187 main (void)
11188 {
11189 int num = IceConnectionNumber(0); (void) num
11190
11191 ;
11192 return 0;
11193 }
11194 _ACEOF
11195 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
11196 if { (eval echo "$as_me:11196: \"$ac_link\"") >&5
11197 (eval $ac_link) 2>&5
11198 ac_status=$?
11199 echo "$as_me:11199: \$? = $ac_status" >&5
11200 (exit "$ac_status"); } &&
11201 { ac_try='test -s "conftest$ac_exeext"'
11202 { (eval echo "$as_me:11202: \"$ac_try\"") >&5
11203 (eval $ac_try) 2>&5
11204 ac_status=$?
11205 echo "$as_me:11205: \$? = $ac_status" >&5
11206 (exit "$ac_status"); }; }; then
11207 cf_cv_xt_ice_compat=yes
11208 else
11209 echo "$as_me: failed program was:" >&5
11210 cat "conftest.$ac_ext" >&5
11211 cf_cv_xt_ice_compat=no
11212 fi
11213 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
11214 fi
11215 echo "$as_me:11215: result: $cf_cv_xt_ice_compat" >&5
11216 echo "${ECHO_T}$cf_cv_xt_ice_compat" >&6
11217
11218 if test "$cf_cv_xt_ice_compat" = no
11219 then
11220 # workaround for broken ".pc" files used for X Toolkit.
11221 case "x$X_PRE_LIBS" in
11222 (*-lICE*)
11223 case "x$LIBS" in
11224 (*-lICE*)
11225 ;;
11226 (*)
11227 test -n "$verbose" && echo " work around broken ICE dependency" 1>&6
11228
11229 echo "${as_me:-configure}:11229: testing work around broken ICE dependency ..." 1>&5
11230
11231 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "ice"; then
11232 test -n "$verbose" && echo " found package ice" 1>&6
11233
11234 echo "${as_me:-configure}:11234: testing found package ice ..." 1>&5
11235
11236 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "ice" 2>/dev/null`"
11237 cf_pkgconfig_libs="`$PKG_CONFIG --libs "ice" 2>/dev/null`"
11238 test -n "$verbose" && echo " package ice CFLAGS: $cf_pkgconfig_incs" 1>&6
11239
11240 echo "${as_me:-configure}:11240: testing package ice CFLAGS: $cf_pkgconfig_incs ..." 1>&5
11241
11242 test -n "$verbose" && echo " package ice LIBS: $cf_pkgconfig_libs" 1>&6
11243
11244 echo "${as_me:-configure}:11244: testing package ice LIBS: $cf_pkgconfig_libs ..." 1>&5
11245
11246 cf_fix_cppflags=no
11247 cf_new_cflags=
11248 cf_new_cppflags=
11249 cf_new_extra_cppflags=
11250
11251 for cf_add_cflags in $cf_pkgconfig_incs
11252 do
11253 case "$cf_fix_cppflags" in
11254 (no)
11255 case "$cf_add_cflags" in
11256 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11257 case "$cf_add_cflags" in
11258 (-D*)
11259 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11260
11261 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11262 && test -z "${cf_tst_cflags}" \
11263 && cf_fix_cppflags=yes
11264
11265 if test "$cf_fix_cppflags" = yes ; then
11266
11267 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11268 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11269
11270 continue
11271 elif test "${cf_tst_cflags}" = "\"'" ; then
11272
11273 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11274 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11275
11276 continue
11277 fi
11278 ;;
11279 esac
11280 case "$CPPFLAGS" in
11281 (*$cf_add_cflags)
11282 ;;
11283 (*)
11284 case "$cf_add_cflags" in
11285 (-D*)
11286 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11287
11288 CPPFLAGS=`echo "$CPPFLAGS" | \
11289 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11290 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11291
11292 ;;
11293 esac
11294
11295 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
11296 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
11297
11298 ;;
11299 esac
11300 ;;
11301 (*)
11302
11303 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
11304 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
11305
11306 ;;
11307 esac
11308 ;;
11309 (yes)
11310
11311 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11312 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11313
11314 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
11315
11316 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11317 && test -z "${cf_tst_cflags}" \
11318 && cf_fix_cppflags=no
11319 ;;
11320 esac
11321 done
11322
11323 if test -n "$cf_new_cflags" ; then
11324
11325 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
11326 CFLAGS="${CFLAGS}$cf_new_cflags"
11327
11328 fi
11329
11330 if test -n "$cf_new_cppflags" ; then
11331
11332 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11333 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
11334
11335 fi
11336
11337 if test -n "$cf_new_extra_cppflags" ; then
11338
11339 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
11340 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
11341
11342 fi
11343
11344 cf_add_libs="$LIBS"
11345 # reverse order
11346 cf_add_0lib=
11347 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
11348 # filter duplicates
11349 for cf_add_1lib in $cf_add_0lib; do
11350 for cf_add_2lib in $cf_add_libs; do
11351 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
11352 cf_add_1lib=
11353 break
11354 fi
11355 done
11356 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
11357 done
11358 LIBS="$cf_add_libs"
11359
11360 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "sm"; then
11361 test -n "$verbose" && echo " found package sm" 1>&6
11362
11363 echo "${as_me:-configure}:11363: testing found package sm ..." 1>&5
11364
11365 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "sm" 2>/dev/null`"
11366 cf_pkgconfig_libs="`$PKG_CONFIG --libs "sm" 2>/dev/null`"
11367 test -n "$verbose" && echo " package sm CFLAGS: $cf_pkgconfig_incs" 1>&6
11368
11369 echo "${as_me:-configure}:11369: testing package sm CFLAGS: $cf_pkgconfig_incs ..." 1>&5
11370
11371 test -n "$verbose" && echo " package sm LIBS: $cf_pkgconfig_libs" 1>&6
11372
11373 echo "${as_me:-configure}:11373: testing package sm LIBS: $cf_pkgconfig_libs ..." 1>&5
11374
11375 cf_fix_cppflags=no
11376 cf_new_cflags=
11377 cf_new_cppflags=
11378 cf_new_extra_cppflags=
11379
11380 for cf_add_cflags in $cf_pkgconfig_incs
11381 do
11382 case "$cf_fix_cppflags" in
11383 (no)
11384 case "$cf_add_cflags" in
11385 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11386 case "$cf_add_cflags" in
11387 (-D*)
11388 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11389
11390 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11391 && test -z "${cf_tst_cflags}" \
11392 && cf_fix_cppflags=yes
11393
11394 if test "$cf_fix_cppflags" = yes ; then
11395
11396 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11397 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11398
11399 continue
11400 elif test "${cf_tst_cflags}" = "\"'" ; then
11401
11402 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11403 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11404
11405 continue
11406 fi
11407 ;;
11408 esac
11409 case "$CPPFLAGS" in
11410 (*$cf_add_cflags)
11411 ;;
11412 (*)
11413 case "$cf_add_cflags" in
11414 (-D*)
11415 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11416
11417 CPPFLAGS=`echo "$CPPFLAGS" | \
11418 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11419 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11420
11421 ;;
11422 esac
11423
11424 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
11425 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
11426
11427 ;;
11428 esac
11429 ;;
11430 (*)
11431
11432 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
11433 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
11434
11435 ;;
11436 esac
11437 ;;
11438 (yes)
11439
11440 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11441 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11442
11443 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
11444
11445 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11446 && test -z "${cf_tst_cflags}" \
11447 && cf_fix_cppflags=no
11448 ;;
11449 esac
11450 done
11451
11452 if test -n "$cf_new_cflags" ; then
11453
11454 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
11455 CFLAGS="${CFLAGS}$cf_new_cflags"
11456
11457 fi
11458
11459 if test -n "$cf_new_cppflags" ; then
11460
11461 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11462 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
11463
11464 fi
11465
11466 if test -n "$cf_new_extra_cppflags" ; then
11467
11468 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
11469 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
11470
11471 fi
11472
11473 cf_add_libs="$LIBS"
11474 # reverse order
11475 cf_add_0lib=
11476 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
11477 # filter duplicates
11478 for cf_add_1lib in $cf_add_0lib; do
11479 for cf_add_2lib in $cf_add_libs; do
11480 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
11481 cf_add_1lib=
11482 break
11483 fi
11484 done
11485 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
11486 done
11487 LIBS="$cf_add_libs"
11488
11489 :
11490 else
11491 cf_pkgconfig_incs=
11492 cf_pkgconfig_libs=
11493 :
11494 fi
11495
11496 else
11497 cf_pkgconfig_incs=
11498 cf_pkgconfig_libs=
11499
11500 test -n "$verbose" && echo " ...before $LIBS" 1>&6
11501
11502 echo "${as_me:-configure}:11502: testing ...before $LIBS ..." 1>&5
11503
11504 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXt %-lXt $X_PRE_LIBS %" -e 's% % %g'`
11505 test -n "$verbose" && echo " ...after $LIBS" 1>&6
11506
11507 echo "${as_me:-configure}:11507: testing ...after $LIBS ..." 1>&5
11508
11509 fi
11510
11511 ;;
11512 esac
11513 ;;
11514 esac
11515 fi
11516
11517 cf_have_X_LIBS=yes
11518
11519 else
11520 cf_pkgconfig_incs=
11521 cf_pkgconfig_libs=
11522
11523 LDFLAGS="$X_LIBS $LDFLAGS"
11524
11525 test -n "$verbose" && echo " checking additions to CFLAGS" 1>&6
11526
11527 echo "${as_me:-configure}:11527: testing checking additions to CFLAGS ..." 1>&5
11528
11529 cf_check_cflags="$CFLAGS"
11530 cf_check_cppflags="$CPPFLAGS"
11531
11532 cf_fix_cppflags=no
11533 cf_new_cflags=
11534 cf_new_cppflags=
11535 cf_new_extra_cppflags=
11536
11537 for cf_add_cflags in $X_CFLAGS
11538 do
11539 case "$cf_fix_cppflags" in
11540 (no)
11541 case "$cf_add_cflags" in
11542 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11543 case "$cf_add_cflags" in
11544 (-D*)
11545 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11546
11547 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11548 && test -z "${cf_tst_cflags}" \
11549 && cf_fix_cppflags=yes
11550
11551 if test "$cf_fix_cppflags" = yes ; then
11552
11553 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11554 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11555
11556 continue
11557 elif test "${cf_tst_cflags}" = "\"'" ; then
11558
11559 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11560 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11561
11562 continue
11563 fi
11564 ;;
11565 esac
11566 case "$CPPFLAGS" in
11567 (*$cf_add_cflags)
11568 ;;
11569 (*)
11570 case "$cf_add_cflags" in
11571 (-D*)
11572 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11573
11574 CPPFLAGS=`echo "$CPPFLAGS" | \
11575 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11576 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11577
11578 ;;
11579 esac
11580
11581 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
11582 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
11583
11584 ;;
11585 esac
11586 ;;
11587 (*)
11588
11589 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
11590 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
11591
11592 ;;
11593 esac
11594 ;;
11595 (yes)
11596
11597 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11598 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11599
11600 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
11601
11602 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11603 && test -z "${cf_tst_cflags}" \
11604 && cf_fix_cppflags=no
11605 ;;
11606 esac
11607 done
11608
11609 if test -n "$cf_new_cflags" ; then
11610 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
11611
11612 echo "${as_me:-configure}:11612: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
11613
11614 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
11615 CFLAGS="${CFLAGS}$cf_new_cflags"
11616
11617 fi
11618
11619 if test -n "$cf_new_cppflags" ; then
11620 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
11621
11622 echo "${as_me:-configure}:11622: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
11623
11624 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11625 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
11626
11627 fi
11628
11629 if test -n "$cf_new_extra_cppflags" ; then
11630 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
11631
11632 echo "${as_me:-configure}:11632: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
11633
11634 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
11635 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
11636
11637 fi
11638
11639 if test "x$cf_check_cflags" != "x$CFLAGS" ; then
11640 cat >"conftest.$ac_ext" <<_ACEOF
11641 #line 11641 "configure"
11642 #include "confdefs.h"
11643 #include <stdio.h>
11644 int
11645 main (void)
11646 {
11647 printf("Hello world");
11648 ;
11649 return 0;
11650 }
11651 _ACEOF
11652 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
11653 if { (eval echo "$as_me:11653: \"$ac_link\"") >&5
11654 (eval $ac_link) 2>&5
11655 ac_status=$?
11656 echo "$as_me:11656: \$? = $ac_status" >&5
11657 (exit "$ac_status"); } &&
11658 { ac_try='test -s "conftest$ac_exeext"'
11659 { (eval echo "$as_me:11659: \"$ac_try\"") >&5
11660 (eval $ac_try) 2>&5
11661 ac_status=$?
11662 echo "$as_me:11662: \$? = $ac_status" >&5
11663 (exit "$ac_status"); }; }; then
11664 :
11665 else
11666 echo "$as_me: failed program was:" >&5
11667 cat "conftest.$ac_ext" >&5
11668 test -n "$verbose" && echo " test-compile failed. Undoing change to \$CFLAGS" 1>&6
11669
11670 echo "${as_me:-configure}:11670: testing test-compile failed. Undoing change to \$CFLAGS ..." 1>&5
11671
11672 if test "x$cf_check_cppflags" != "x$CPPFLAGS" ; then
11673 test -n "$verbose" && echo " but keeping change to \$CPPFLAGS" 1>&6
11674
11675 echo "${as_me:-configure}:11675: testing but keeping change to \$CPPFLAGS ..." 1>&5
11676
11677 fi
11678 CFLAGS="$cf_check_cflags"
11679 fi
11680 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
11681 fi
11682
11683 echo "$as_me:11683: checking for XOpenDisplay" >&5
11684 echo $ECHO_N "checking for XOpenDisplay... $ECHO_C" >&6
11685 if test "${ac_cv_func_XOpenDisplay+set}" = set; then
11686 echo $ECHO_N "(cached) $ECHO_C" >&6
11687 else
11688 cat >"conftest.$ac_ext" <<_ACEOF
11689 #line 11689 "configure"
11690 #include "confdefs.h"
11691 #define XOpenDisplay autoconf_temporary
11692 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
11693 #undef XOpenDisplay
11694
11695 #ifdef __cplusplus
11696 extern "C"
11697 #endif
11698
11699 /* We use char because int might match the return type of a gcc2
11700 builtin and then its argument prototype would still apply. */
11701 char XOpenDisplay (void);
11702
11703 int
11704 main (void)
11705 {
11706
11707 /* The GNU C library defines stubs for functions which it implements
11708 to always fail with ENOSYS. Some functions are actually named
11709 something starting with __ and the normal name is an alias. */
11710 #if defined (__stub_XOpenDisplay) || defined (__stub___XOpenDisplay)
11711 #error found stub for XOpenDisplay
11712 #endif
11713
11714 return XOpenDisplay ();
11715 ;
11716 return 0;
11717 }
11718 _ACEOF
11719 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
11720 if { (eval echo "$as_me:11720: \"$ac_link\"") >&5
11721 (eval $ac_link) 2>&5
11722 ac_status=$?
11723 echo "$as_me:11723: \$? = $ac_status" >&5
11724 (exit "$ac_status"); } &&
11725 { ac_try='test -s "conftest$ac_exeext"'
11726 { (eval echo "$as_me:11726: \"$ac_try\"") >&5
11727 (eval $ac_try) 2>&5
11728 ac_status=$?
11729 echo "$as_me:11729: \$? = $ac_status" >&5
11730 (exit "$ac_status"); }; }; then
11731 ac_cv_func_XOpenDisplay=yes
11732 else
11733 echo "$as_me: failed program was:" >&5
11734 cat "conftest.$ac_ext" >&5
11735 ac_cv_func_XOpenDisplay=no
11736 fi
11737 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
11738 fi
11739 echo "$as_me:11739: result: $ac_cv_func_XOpenDisplay" >&5
11740 echo "${ECHO_T}$ac_cv_func_XOpenDisplay" >&6
11741 if test "$ac_cv_func_XOpenDisplay" = yes; then
11742 :
11743 else
11744
11745 echo "$as_me:11745: checking for XOpenDisplay in -lX11" >&5
11746 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
11747 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
11748 echo $ECHO_N "(cached) $ECHO_C" >&6
11749 else
11750 ac_check_lib_save_LIBS=$LIBS
11751 LIBS="-lX11 $LIBS"
11752 cat >"conftest.$ac_ext" <<_ACEOF
11753 #line 11753 "configure"
11754 #include "confdefs.h"
11755
11756 /* Override any gcc2 internal prototype to avoid an error. */
11757 #ifdef __cplusplus
11758 extern "C"
11759 #endif
11760 /* We use char because int might match the return type of a gcc2
11761 builtin and then its argument prototype would still apply. */
11762 char XOpenDisplay ();
11763 int
11764 main (void)
11765 {
11766 XOpenDisplay ();
11767 ;
11768 return 0;
11769 }
11770 _ACEOF
11771 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
11772 if { (eval echo "$as_me:11772: \"$ac_link\"") >&5
11773 (eval $ac_link) 2>&5
11774 ac_status=$?
11775 echo "$as_me:11775: \$? = $ac_status" >&5
11776 (exit "$ac_status"); } &&
11777 { ac_try='test -s "conftest$ac_exeext"'
11778 { (eval echo "$as_me:11778: \"$ac_try\"") >&5
11779 (eval $ac_try) 2>&5
11780 ac_status=$?
11781 echo "$as_me:11781: \$? = $ac_status" >&5
11782 (exit "$ac_status"); }; }; then
11783 ac_cv_lib_X11_XOpenDisplay=yes
11784 else
11785 echo "$as_me: failed program was:" >&5
11786 cat "conftest.$ac_ext" >&5
11787 ac_cv_lib_X11_XOpenDisplay=no
11788 fi
11789 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
11790 LIBS=$ac_check_lib_save_LIBS
11791 fi
11792 echo "$as_me:11792: result: $ac_cv_lib_X11_XOpenDisplay" >&5
11793 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
11794 if test "$ac_cv_lib_X11_XOpenDisplay" = yes; then
11795
11796 cf_add_libs="$LIBS"
11797 # reverse order
11798 cf_add_0lib=
11799 for cf_add_1lib in -lX11; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
11800 # filter duplicates
11801 for cf_add_1lib in $cf_add_0lib; do
11802 for cf_add_2lib in $cf_add_libs; do
11803 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
11804 cf_add_1lib=
11805 break
11806 fi
11807 done
11808 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
11809 done
11810 LIBS="$cf_add_libs"
11811
11812 fi
11813
11814 fi
11815
11816 echo "$as_me:11816: checking for XtAppInitialize" >&5
11817 echo $ECHO_N "checking for XtAppInitialize... $ECHO_C" >&6
11818 if test "${ac_cv_func_XtAppInitialize+set}" = set; then
11819 echo $ECHO_N "(cached) $ECHO_C" >&6
11820 else
11821 cat >"conftest.$ac_ext" <<_ACEOF
11822 #line 11822 "configure"
11823 #include "confdefs.h"
11824 #define XtAppInitialize autoconf_temporary
11825 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
11826 #undef XtAppInitialize
11827
11828 #ifdef __cplusplus
11829 extern "C"
11830 #endif
11831
11832 /* We use char because int might match the return type of a gcc2
11833 builtin and then its argument prototype would still apply. */
11834 char XtAppInitialize (void);
11835
11836 int
11837 main (void)
11838 {
11839
11840 /* The GNU C library defines stubs for functions which it implements
11841 to always fail with ENOSYS. Some functions are actually named
11842 something starting with __ and the normal name is an alias. */
11843 #if defined (__stub_XtAppInitialize) || defined (__stub___XtAppInitialize)
11844 #error found stub for XtAppInitialize
11845 #endif
11846
11847 return XtAppInitialize ();
11848 ;
11849 return 0;
11850 }
11851 _ACEOF
11852 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
11853 if { (eval echo "$as_me:11853: \"$ac_link\"") >&5
11854 (eval $ac_link) 2>&5
11855 ac_status=$?
11856 echo "$as_me:11856: \$? = $ac_status" >&5
11857 (exit "$ac_status"); } &&
11858 { ac_try='test -s "conftest$ac_exeext"'
11859 { (eval echo "$as_me:11859: \"$ac_try\"") >&5
11860 (eval $ac_try) 2>&5
11861 ac_status=$?
11862 echo "$as_me:11862: \$? = $ac_status" >&5
11863 (exit "$ac_status"); }; }; then
11864 ac_cv_func_XtAppInitialize=yes
11865 else
11866 echo "$as_me: failed program was:" >&5
11867 cat "conftest.$ac_ext" >&5
11868 ac_cv_func_XtAppInitialize=no
11869 fi
11870 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
11871 fi
11872 echo "$as_me:11872: result: $ac_cv_func_XtAppInitialize" >&5
11873 echo "${ECHO_T}$ac_cv_func_XtAppInitialize" >&6
11874 if test "$ac_cv_func_XtAppInitialize" = yes; then
11875 :
11876 else
11877
11878 echo "$as_me:11878: checking for XtAppInitialize in -lXt" >&5
11879 echo $ECHO_N "checking for XtAppInitialize in -lXt... $ECHO_C" >&6
11880 if test "${ac_cv_lib_Xt_XtAppInitialize+set}" = set; then
11881 echo $ECHO_N "(cached) $ECHO_C" >&6
11882 else
11883 ac_check_lib_save_LIBS=$LIBS
11884 LIBS="-lXt $LIBS"
11885 cat >"conftest.$ac_ext" <<_ACEOF
11886 #line 11886 "configure"
11887 #include "confdefs.h"
11888
11889 /* Override any gcc2 internal prototype to avoid an error. */
11890 #ifdef __cplusplus
11891 extern "C"
11892 #endif
11893 /* We use char because int might match the return type of a gcc2
11894 builtin and then its argument prototype would still apply. */
11895 char XtAppInitialize ();
11896 int
11897 main (void)
11898 {
11899 XtAppInitialize ();
11900 ;
11901 return 0;
11902 }
11903 _ACEOF
11904 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
11905 if { (eval echo "$as_me:11905: \"$ac_link\"") >&5
11906 (eval $ac_link) 2>&5
11907 ac_status=$?
11908 echo "$as_me:11908: \$? = $ac_status" >&5
11909 (exit "$ac_status"); } &&
11910 { ac_try='test -s "conftest$ac_exeext"'
11911 { (eval echo "$as_me:11911: \"$ac_try\"") >&5
11912 (eval $ac_try) 2>&5
11913 ac_status=$?
11914 echo "$as_me:11914: \$? = $ac_status" >&5
11915 (exit "$ac_status"); }; }; then
11916 ac_cv_lib_Xt_XtAppInitialize=yes
11917 else
11918 echo "$as_me: failed program was:" >&5
11919 cat "conftest.$ac_ext" >&5
11920 ac_cv_lib_Xt_XtAppInitialize=no
11921 fi
11922 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
11923 LIBS=$ac_check_lib_save_LIBS
11924 fi
11925 echo "$as_me:11925: result: $ac_cv_lib_Xt_XtAppInitialize" >&5
11926 echo "${ECHO_T}$ac_cv_lib_Xt_XtAppInitialize" >&6
11927 if test "$ac_cv_lib_Xt_XtAppInitialize" = yes; then
11928
11929 cat >>confdefs.h <<\EOF
11930 #define HAVE_LIBXT 1
11931 EOF
11932
11933 cf_have_X_LIBS=Xt
11934 LIBS="-lXt $LIBS"
11935 fi
11936
11937 fi
11938
11939 fi
11940
11941 if test "$cf_have_X_LIBS" = no ; then
11942 { echo "$as_me:11942: WARNING: Unable to successfully link X Toolkit library (-lXt) with
11943 test program. You will have to check and add the proper libraries by hand
11944 to makefile." >&5
11945 echo "$as_me: WARNING: Unable to successfully link X Toolkit library (-lXt) with
11946 test program. You will have to check and add the proper libraries by hand
11947 to makefile." >&2;}
11948 fi
11949
11950 for ac_header in \
11951 X11/DECkeysym.h \
11952 X11/Sunkeysym.h \
11953 X11/XF86keysym.h \
11954 X11/XKBlib.h \
11955 X11/TranslateI.h \
11956 X11/Xpoll.h \
11957 X11/extensions/XKB.h \
11958
11959 do
11960 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11961 echo "$as_me:11961: checking for $ac_header" >&5
11962 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11963 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11964 echo $ECHO_N "(cached) $ECHO_C" >&6
11965 else
11966 cat >"conftest.$ac_ext" <<_ACEOF
11967 #line 11967 "configure"
11968 #include "confdefs.h"
11969 #include <$ac_header>
11970 _ACEOF
11971 if { (eval echo "$as_me:11971: \"$ac_cpp "conftest.$ac_ext"\"") >&5
11972 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
11973 ac_status=$?
11974 $EGREP -v '^ *\+' conftest.er1 >conftest.err
11975 rm -f conftest.er1
11976 cat conftest.err >&5
11977 echo "$as_me:11977: \$? = $ac_status" >&5
11978 (exit "$ac_status"); } >/dev/null; then
11979 if test -s conftest.err; then
11980 ac_cpp_err=$ac_c_preproc_warn_flag
11981 else
11982 ac_cpp_err=
11983 fi
11984 else
11985 ac_cpp_err=yes
11986 fi
11987 if test -z "$ac_cpp_err"; then
11988 eval "$as_ac_Header=yes"
11989 else
11990 echo "$as_me: failed program was:" >&5
11991 cat "conftest.$ac_ext" >&5
11992 eval "$as_ac_Header=no"
11993 fi
11994 rm -f conftest.err "conftest.$ac_ext"
11995 fi
11996 echo "$as_me:11996: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
11997 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
11998 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
11999 cat >>confdefs.h <<EOF
12000 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12001 EOF
12002
12003 fi
12004 done
12005
12006 ICON_SUFFIX=.xbm
12007
12008 cf_save_cppflags="${CPPFLAGS}"
12009 cf_save_ldflags="${LDFLAGS}"
12010
12011 echo "$as_me:12011: checking if you want to use the Xpm library for colored icon" >&5
12012 echo $ECHO_N "checking if you want to use the Xpm library for colored icon... $ECHO_C" >&6
12013
12014 # Check whether --with-xpm or --without-xpm was given.
12015 if test "${with_xpm+set}" = set; then
12016 withval="$with_xpm"
12017 cf_Xpm_library="$withval"
12018 else
12019 cf_Xpm_library=yes
12020 fi;
12021 echo "$as_me:12021: result: $cf_Xpm_library" >&5
12022 echo "${ECHO_T}$cf_Xpm_library" >&6
12023
12024 if test "$cf_Xpm_library" != no ; then
12025 if test "$cf_Xpm_library" != yes ; then
12026 CPPFLAGS="$CPPFLAGS -I$withval/include"
12027 LDFLAGS="$LDFLAGS -L$withval/lib"
12028 fi
12029 echo "$as_me:12029: checking for X11/xpm.h" >&5
12030 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
12031 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12032 echo $ECHO_N "(cached) $ECHO_C" >&6
12033 else
12034 cat >"conftest.$ac_ext" <<_ACEOF
12035 #line 12035 "configure"
12036 #include "confdefs.h"
12037 #include <X11/xpm.h>
12038 _ACEOF
12039 if { (eval echo "$as_me:12039: \"$ac_cpp "conftest.$ac_ext"\"") >&5
12040 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
12041 ac_status=$?
12042 $EGREP -v '^ *\+' conftest.er1 >conftest.err
12043 rm -f conftest.er1
12044 cat conftest.err >&5
12045 echo "$as_me:12045: \$? = $ac_status" >&5
12046 (exit "$ac_status"); } >/dev/null; then
12047 if test -s conftest.err; then
12048 ac_cpp_err=$ac_c_preproc_warn_flag
12049 else
12050 ac_cpp_err=
12051 fi
12052 else
12053 ac_cpp_err=yes
12054 fi
12055 if test -z "$ac_cpp_err"; then
12056 ac_cv_header_X11_xpm_h=yes
12057 else
12058 echo "$as_me: failed program was:" >&5
12059 cat "conftest.$ac_ext" >&5
12060 ac_cv_header_X11_xpm_h=no
12061 fi
12062 rm -f conftest.err "conftest.$ac_ext"
12063 fi
12064 echo "$as_me:12064: result: $ac_cv_header_X11_xpm_h" >&5
12065 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
12066 if test "$ac_cv_header_X11_xpm_h" = yes; then
12067
12068 echo "$as_me:12068: checking for XpmCreatePixmapFromData in -lXpm" >&5
12069 echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6
12070 if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
12071 echo $ECHO_N "(cached) $ECHO_C" >&6
12072 else
12073 ac_check_lib_save_LIBS=$LIBS
12074 LIBS="-lXpm -lX11 $X_LIBS $LIBS"
12075 cat >"conftest.$ac_ext" <<_ACEOF
12076 #line 12076 "configure"
12077 #include "confdefs.h"
12078
12079 /* Override any gcc2 internal prototype to avoid an error. */
12080 #ifdef __cplusplus
12081 extern "C"
12082 #endif
12083 /* We use char because int might match the return type of a gcc2
12084 builtin and then its argument prototype would still apply. */
12085 char XpmCreatePixmapFromData ();
12086 int
12087 main (void)
12088 {
12089 XpmCreatePixmapFromData ();
12090 ;
12091 return 0;
12092 }
12093 _ACEOF
12094 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12095 if { (eval echo "$as_me:12095: \"$ac_link\"") >&5
12096 (eval $ac_link) 2>&5
12097 ac_status=$?
12098 echo "$as_me:12098: \$? = $ac_status" >&5
12099 (exit "$ac_status"); } &&
12100 { ac_try='test -s "conftest$ac_exeext"'
12101 { (eval echo "$as_me:12101: \"$ac_try\"") >&5
12102 (eval $ac_try) 2>&5
12103 ac_status=$?
12104 echo "$as_me:12104: \$? = $ac_status" >&5
12105 (exit "$ac_status"); }; }; then
12106 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
12107 else
12108 echo "$as_me: failed program was:" >&5
12109 cat "conftest.$ac_ext" >&5
12110 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
12111 fi
12112 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12113 LIBS=$ac_check_lib_save_LIBS
12114 fi
12115 echo "$as_me:12115: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
12116 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6
12117 if test "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = yes; then
12118
12119 cat >>confdefs.h <<\EOF
12120 #define HAVE_LIBXPM 1
12121 EOF
12122
12123 ICON_SUFFIX=.xpm
12124 LIBS="-lXpm $LIBS"
12125 else
12126 CPPFLAGS="${cf_save_cppflags}" LDFLAGS="${cf_save_ldflags}"
12127 fi
12128
12129 else
12130 CPPFLAGS="${cf_save_cppflags}" LDFLAGS="${cf_save_ldflags}"
12131 fi
12132
12133 fi
12134
12135 echo "$as_me:12135: checking if you want to use the Xinerama extension" >&5
12136 echo $ECHO_N "checking if you want to use the Xinerama extension... $ECHO_C" >&6
12137
12138 # Check whether --with-xinerama or --without-xinerama was given.
12139 if test "${with_xinerama+set}" = set; then
12140 withval="$with_xinerama"
12141 cf_with_xinerama="$withval"
12142 else
12143 cf_with_xinerama=yes
12144 fi;
12145 echo "$as_me:12145: result: $cf_with_xinerama" >&5
12146 echo "${ECHO_T}$cf_with_xinerama" >&6
12147 if test "$cf_with_xinerama" = yes; then
12148
12149 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "xinerama"; then
12150 test -n "$verbose" && echo " found package xinerama" 1>&6
12151
12152 echo "${as_me:-configure}:12152: testing found package xinerama ..." 1>&5
12153
12154 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "xinerama" 2>/dev/null`"
12155 cf_pkgconfig_libs="`$PKG_CONFIG --libs "xinerama" 2>/dev/null`"
12156 test -n "$verbose" && echo " package xinerama CFLAGS: $cf_pkgconfig_incs" 1>&6
12157
12158 echo "${as_me:-configure}:12158: testing package xinerama CFLAGS: $cf_pkgconfig_incs ..." 1>&5
12159
12160 test -n "$verbose" && echo " package xinerama LIBS: $cf_pkgconfig_libs" 1>&6
12161
12162 echo "${as_me:-configure}:12162: testing package xinerama LIBS: $cf_pkgconfig_libs ..." 1>&5
12163
12164 cf_fix_cppflags=no
12165 cf_new_cflags=
12166 cf_new_cppflags=
12167 cf_new_extra_cppflags=
12168
12169 for cf_add_cflags in $cf_pkgconfig_incs
12170 do
12171 case "$cf_fix_cppflags" in
12172 (no)
12173 case "$cf_add_cflags" in
12174 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
12175 case "$cf_add_cflags" in
12176 (-D*)
12177 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
12178
12179 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12180 && test -z "${cf_tst_cflags}" \
12181 && cf_fix_cppflags=yes
12182
12183 if test "$cf_fix_cppflags" = yes ; then
12184
12185 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12186 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12187
12188 continue
12189 elif test "${cf_tst_cflags}" = "\"'" ; then
12190
12191 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12192 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12193
12194 continue
12195 fi
12196 ;;
12197 esac
12198 case "$CPPFLAGS" in
12199 (*$cf_add_cflags)
12200 ;;
12201 (*)
12202 case "$cf_add_cflags" in
12203 (-D*)
12204 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
12205
12206 CPPFLAGS=`echo "$CPPFLAGS" | \
12207 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
12208 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
12209
12210 ;;
12211 esac
12212
12213 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
12214 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
12215
12216 ;;
12217 esac
12218 ;;
12219 (*)
12220
12221 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
12222 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
12223
12224 ;;
12225 esac
12226 ;;
12227 (yes)
12228
12229 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12230 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12231
12232 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
12233
12234 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12235 && test -z "${cf_tst_cflags}" \
12236 && cf_fix_cppflags=no
12237 ;;
12238 esac
12239 done
12240
12241 if test -n "$cf_new_cflags" ; then
12242
12243 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
12244 CFLAGS="${CFLAGS}$cf_new_cflags"
12245
12246 fi
12247
12248 if test -n "$cf_new_cppflags" ; then
12249
12250 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
12251 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
12252
12253 fi
12254
12255 if test -n "$cf_new_extra_cppflags" ; then
12256
12257 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
12258 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
12259
12260 fi
12261
12262 cf_add_libs="$LIBS"
12263 # reverse order
12264 cf_add_0lib=
12265 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
12266 # filter duplicates
12267 for cf_add_1lib in $cf_add_0lib; do
12268 for cf_add_2lib in $cf_add_libs; do
12269 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
12270 cf_add_1lib=
12271 break
12272 fi
12273 done
12274 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
12275 done
12276 LIBS="$cf_add_libs"
12277
12278 cat >>confdefs.h <<\EOF
12279 #define HAVE_X11_EXTENSIONS_XINERAMA_H 1
12280 EOF
12281
12282 else
12283 cf_pkgconfig_incs=
12284 cf_pkgconfig_libs=
12285
12286 echo "$as_me:12286: checking for XineramaQueryScreens in -lXinerama" >&5
12287 echo $ECHO_N "checking for XineramaQueryScreens in -lXinerama... $ECHO_C" >&6
12288 if test "${ac_cv_lib_Xinerama_XineramaQueryScreens+set}" = set; then
12289 echo $ECHO_N "(cached) $ECHO_C" >&6
12290 else
12291 ac_check_lib_save_LIBS=$LIBS
12292 LIBS="-lXinerama $LIBS"
12293 cat >"conftest.$ac_ext" <<_ACEOF
12294 #line 12294 "configure"
12295 #include "confdefs.h"
12296
12297 /* Override any gcc2 internal prototype to avoid an error. */
12298 #ifdef __cplusplus
12299 extern "C"
12300 #endif
12301 /* We use char because int might match the return type of a gcc2
12302 builtin and then its argument prototype would still apply. */
12303 char XineramaQueryScreens ();
12304 int
12305 main (void)
12306 {
12307 XineramaQueryScreens ();
12308 ;
12309 return 0;
12310 }
12311 _ACEOF
12312 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12313 if { (eval echo "$as_me:12313: \"$ac_link\"") >&5
12314 (eval $ac_link) 2>&5
12315 ac_status=$?
12316 echo "$as_me:12316: \$? = $ac_status" >&5
12317 (exit "$ac_status"); } &&
12318 { ac_try='test -s "conftest$ac_exeext"'
12319 { (eval echo "$as_me:12319: \"$ac_try\"") >&5
12320 (eval $ac_try) 2>&5
12321 ac_status=$?
12322 echo "$as_me:12322: \$? = $ac_status" >&5
12323 (exit "$ac_status"); }; }; then
12324 ac_cv_lib_Xinerama_XineramaQueryScreens=yes
12325 else
12326 echo "$as_me: failed program was:" >&5
12327 cat "conftest.$ac_ext" >&5
12328 ac_cv_lib_Xinerama_XineramaQueryScreens=no
12329 fi
12330 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12331 LIBS=$ac_check_lib_save_LIBS
12332 fi
12333 echo "$as_me:12333: result: $ac_cv_lib_Xinerama_XineramaQueryScreens" >&5
12334 echo "${ECHO_T}$ac_cv_lib_Xinerama_XineramaQueryScreens" >&6
12335 if test "$ac_cv_lib_Xinerama_XineramaQueryScreens" = yes; then
12336
12337 cf_add_libs="$LIBS"
12338 # reverse order
12339 cf_add_0lib=
12340 for cf_add_1lib in -lXinerama; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
12341 # filter duplicates
12342 for cf_add_1lib in $cf_add_0lib; do
12343 for cf_add_2lib in $cf_add_libs; do
12344 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
12345 cf_add_1lib=
12346 break
12347 fi
12348 done
12349 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
12350 done
12351 LIBS="$cf_add_libs"
12352
12353 for ac_header in \
12354 X11/extensions/Xinerama.h \
12355
12356 do
12357 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12358 echo "$as_me:12358: checking for $ac_header" >&5
12359 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12360 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12361 echo $ECHO_N "(cached) $ECHO_C" >&6
12362 else
12363 cat >"conftest.$ac_ext" <<_ACEOF
12364 #line 12364 "configure"
12365 #include "confdefs.h"
12366 #include <$ac_header>
12367 _ACEOF
12368 if { (eval echo "$as_me:12368: \"$ac_cpp "conftest.$ac_ext"\"") >&5
12369 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
12370 ac_status=$?
12371 $EGREP -v '^ *\+' conftest.er1 >conftest.err
12372 rm -f conftest.er1
12373 cat conftest.err >&5
12374 echo "$as_me:12374: \$? = $ac_status" >&5
12375 (exit "$ac_status"); } >/dev/null; then
12376 if test -s conftest.err; then
12377 ac_cpp_err=$ac_c_preproc_warn_flag
12378 else
12379 ac_cpp_err=
12380 fi
12381 else
12382 ac_cpp_err=yes
12383 fi
12384 if test -z "$ac_cpp_err"; then
12385 eval "$as_ac_Header=yes"
12386 else
12387 echo "$as_me: failed program was:" >&5
12388 cat "conftest.$ac_ext" >&5
12389 eval "$as_ac_Header=no"
12390 fi
12391 rm -f conftest.err "conftest.$ac_ext"
12392 fi
12393 echo "$as_me:12393: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
12394 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
12395 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
12396 cat >>confdefs.h <<EOF
12397 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12398 EOF
12399
12400 fi
12401 done
12402
12403 fi
12404
12405 fi
12406
12407 fi
12408
12409 cf_x_athena=${cf_x_athena:-Xaw}
12410
12411 echo "$as_me:12411: checking if you want to link with Xaw 3d library" >&5
12412 echo $ECHO_N "checking if you want to link with Xaw 3d library... $ECHO_C" >&6
12413 withval=
12414
12415 # Check whether --with-Xaw3d or --without-Xaw3d was given.
12416 if test "${with_Xaw3d+set}" = set; then
12417 withval="$with_Xaw3d"
12418
12419 fi;
12420 if test "$withval" = yes ; then
12421 cf_x_athena=Xaw3d
12422 echo "$as_me:12422: result: yes" >&5
12423 echo "${ECHO_T}yes" >&6
12424 else
12425 echo "$as_me:12425: result: no" >&5
12426 echo "${ECHO_T}no" >&6
12427 fi
12428
12429 echo "$as_me:12429: checking if you want to link with Xaw 3d xft library" >&5
12430 echo $ECHO_N "checking if you want to link with Xaw 3d xft library... $ECHO_C" >&6
12431 withval=
12432
12433 # Check whether --with-Xaw3dxft or --without-Xaw3dxft was given.
12434 if test "${with_Xaw3dxft+set}" = set; then
12435 withval="$with_Xaw3dxft"
12436
12437 fi;
12438 if test "$withval" = yes ; then
12439 cf_x_athena=Xaw3dxft
12440 echo "$as_me:12440: result: yes" >&5
12441 echo "${ECHO_T}yes" >&6
12442 else
12443 echo "$as_me:12443: result: no" >&5
12444 echo "${ECHO_T}no" >&6
12445 fi
12446
12447 echo "$as_me:12447: checking if you want to link with neXT Athena library" >&5
12448 echo $ECHO_N "checking if you want to link with neXT Athena library... $ECHO_C" >&6
12449 withval=
12450
12451 # Check whether --with-neXtaw or --without-neXtaw was given.
12452 if test "${with_neXtaw+set}" = set; then
12453 withval="$with_neXtaw"
12454
12455 fi;
12456 if test "$withval" = yes ; then
12457 cf_x_athena=neXtaw
12458 echo "$as_me:12458: result: yes" >&5
12459 echo "${ECHO_T}yes" >&6
12460 else
12461 echo "$as_me:12461: result: no" >&5
12462 echo "${ECHO_T}no" >&6
12463 fi
12464
12465 echo "$as_me:12465: checking if you want to link with Athena-Plus library" >&5
12466 echo $ECHO_N "checking if you want to link with Athena-Plus library... $ECHO_C" >&6
12467 withval=
12468
12469 # Check whether --with-XawPlus or --without-XawPlus was given.
12470 if test "${with_XawPlus+set}" = set; then
12471 withval="$with_XawPlus"
12472
12473 fi;
12474 if test "$withval" = yes ; then
12475 cf_x_athena=XawPlus
12476 echo "$as_me:12476: result: yes" >&5
12477 echo "${ECHO_T}yes" >&6
12478 else
12479 echo "$as_me:12479: result: no" >&5
12480 echo "${ECHO_T}no" >&6
12481 fi
12482
12483 cf_x_athena_lib=""
12484
12485 if test "$PKG_CONFIG" != none ; then
12486 cf_athena_list=
12487 test "$cf_x_athena" = Xaw && cf_athena_list="xaw8 xaw7 xaw6"
12488 for cf_athena_pkg in \
12489 $cf_athena_list \
12490 ${cf_x_athena} \
12491 ${cf_x_athena}-devel \
12492 lib${cf_x_athena} \
12493 lib${cf_x_athena}-devel
12494 do
12495
12496 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "$cf_athena_pkg"; then
12497 test -n "$verbose" && echo " found package $cf_athena_pkg" 1>&6
12498
12499 echo "${as_me:-configure}:12499: testing found package $cf_athena_pkg ..." 1>&5
12500
12501 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "$cf_athena_pkg" 2>/dev/null`"
12502 cf_pkgconfig_libs="`$PKG_CONFIG --libs "$cf_athena_pkg" 2>/dev/null`"
12503 test -n "$verbose" && echo " package $cf_athena_pkg CFLAGS: $cf_pkgconfig_incs" 1>&6
12504
12505 echo "${as_me:-configure}:12505: testing package $cf_athena_pkg CFLAGS: $cf_pkgconfig_incs ..." 1>&5
12506
12507 test -n "$verbose" && echo " package $cf_athena_pkg LIBS: $cf_pkgconfig_libs" 1>&6
12508
12509 echo "${as_me:-configure}:12509: testing package $cf_athena_pkg LIBS: $cf_pkgconfig_libs ..." 1>&5
12510
12511 cf_fix_cppflags=no
12512 cf_new_cflags=
12513 cf_new_cppflags=
12514 cf_new_extra_cppflags=
12515
12516 for cf_add_cflags in $cf_pkgconfig_incs
12517 do
12518 case "$cf_fix_cppflags" in
12519 (no)
12520 case "$cf_add_cflags" in
12521 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
12522 case "$cf_add_cflags" in
12523 (-D*)
12524 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
12525
12526 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12527 && test -z "${cf_tst_cflags}" \
12528 && cf_fix_cppflags=yes
12529
12530 if test "$cf_fix_cppflags" = yes ; then
12531
12532 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12533 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12534
12535 continue
12536 elif test "${cf_tst_cflags}" = "\"'" ; then
12537
12538 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12539 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12540
12541 continue
12542 fi
12543 ;;
12544 esac
12545 case "$CPPFLAGS" in
12546 (*$cf_add_cflags)
12547 ;;
12548 (*)
12549 case "$cf_add_cflags" in
12550 (-D*)
12551 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
12552
12553 CPPFLAGS=`echo "$CPPFLAGS" | \
12554 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
12555 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
12556
12557 ;;
12558 esac
12559
12560 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
12561 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
12562
12563 ;;
12564 esac
12565 ;;
12566 (*)
12567
12568 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
12569 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
12570
12571 ;;
12572 esac
12573 ;;
12574 (yes)
12575
12576 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12577 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12578
12579 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
12580
12581 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12582 && test -z "${cf_tst_cflags}" \
12583 && cf_fix_cppflags=no
12584 ;;
12585 esac
12586 done
12587
12588 if test -n "$cf_new_cflags" ; then
12589
12590 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
12591 CFLAGS="${CFLAGS}$cf_new_cflags"
12592
12593 fi
12594
12595 if test -n "$cf_new_cppflags" ; then
12596
12597 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
12598 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
12599
12600 fi
12601
12602 if test -n "$cf_new_extra_cppflags" ; then
12603
12604 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
12605 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
12606
12607 fi
12608
12609 cf_add_libs="$LIBS"
12610 # reverse order
12611 cf_add_0lib=
12612 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
12613 # filter duplicates
12614 for cf_add_1lib in $cf_add_0lib; do
12615 for cf_add_2lib in $cf_add_libs; do
12616 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
12617 cf_add_1lib=
12618 break
12619 fi
12620 done
12621 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
12622 done
12623 LIBS="$cf_add_libs"
12624
12625 cf_x_athena_lib="$cf_pkgconfig_libs"
12626
12627 cf_x_athena_LIBS=`echo "HAVE_LIB_$cf_x_athena" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
12628
12629 cat >>confdefs.h <<EOF
12630 #define $cf_x_athena_LIBS 1
12631 EOF
12632
12633 for cf_trim_lib in Xmu Xt X11
12634 do
12635 case "$LIBS" in
12636 (*-l$cf_trim_lib\ *-l$cf_trim_lib*)
12637 LIBS=`echo "$LIBS " | sed -e 's/ / /g' -e 's%-l'"$cf_trim_lib"' %%' -e 's/ $//'`
12638 test -n "$verbose" && echo " ..trimmed $LIBS" 1>&6
12639
12640 echo "${as_me:-configure}:12640: testing ..trimmed $LIBS ..." 1>&5
12641
12642 ;;
12643 esac
12644 done
12645
12646 echo "$as_me:12646: checking for usable $cf_x_athena/Xmu package" >&5
12647 echo $ECHO_N "checking for usable $cf_x_athena/Xmu package... $ECHO_C" >&6
12648 if test "${cf_cv_xaw_compat+set}" = set; then
12649 echo $ECHO_N "(cached) $ECHO_C" >&6
12650 else
12651
12652 cat >"conftest.$ac_ext" <<_ACEOF
12653 #line 12653 "configure"
12654 #include "confdefs.h"
12655
12656 #include <X11/Xmu/CharSet.h>
12657
12658 int
12659 main (void)
12660 {
12661
12662 int check = XmuCompareISOLatin1("big", "small");
12663 (void)check;
12664
12665 ;
12666 return 0;
12667 }
12668 _ACEOF
12669 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12670 if { (eval echo "$as_me:12670: \"$ac_link\"") >&5
12671 (eval $ac_link) 2>&5
12672 ac_status=$?
12673 echo "$as_me:12673: \$? = $ac_status" >&5
12674 (exit "$ac_status"); } &&
12675 { ac_try='test -s "conftest$ac_exeext"'
12676 { (eval echo "$as_me:12676: \"$ac_try\"") >&5
12677 (eval $ac_try) 2>&5
12678 ac_status=$?
12679 echo "$as_me:12679: \$? = $ac_status" >&5
12680 (exit "$ac_status"); }; }; then
12681 cf_cv_xaw_compat=yes
12682 else
12683 echo "$as_me: failed program was:" >&5
12684 cat "conftest.$ac_ext" >&5
12685 cf_cv_xaw_compat=no
12686 fi
12687 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12688 fi
12689 echo "$as_me:12689: result: $cf_cv_xaw_compat" >&5
12690 echo "${ECHO_T}$cf_cv_xaw_compat" >&6
12691
12692 if test "$cf_cv_xaw_compat" = no
12693 then
12694 # workaround for broken ".pc" files...
12695 case "$cf_x_athena_lib" in
12696 (*-lXmu*)
12697 ;;
12698 (*)
12699 test -n "$verbose" && echo " work around broken package" 1>&6
12700
12701 echo "${as_me:-configure}:12701: testing work around broken package ..." 1>&5
12702
12703 cf_save_xmu="$LIBS"
12704 cf_first_lib=`echo "$cf_save_xmu" | sed -e 's/^ *//' -e 's/ .*//'`
12705
12706 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "xmu"; then
12707 test -n "$verbose" && echo " found package xmu" 1>&6
12708
12709 echo "${as_me:-configure}:12709: testing found package xmu ..." 1>&5
12710
12711 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "xmu" 2>/dev/null`"
12712 cf_pkgconfig_libs="`$PKG_CONFIG --libs "xmu" 2>/dev/null`"
12713 test -n "$verbose" && echo " package xmu CFLAGS: $cf_pkgconfig_incs" 1>&6
12714
12715 echo "${as_me:-configure}:12715: testing package xmu CFLAGS: $cf_pkgconfig_incs ..." 1>&5
12716
12717 test -n "$verbose" && echo " package xmu LIBS: $cf_pkgconfig_libs" 1>&6
12718
12719 echo "${as_me:-configure}:12719: testing package xmu LIBS: $cf_pkgconfig_libs ..." 1>&5
12720
12721 cf_fix_cppflags=no
12722 cf_new_cflags=
12723 cf_new_cppflags=
12724 cf_new_extra_cppflags=
12725
12726 for cf_add_cflags in $cf_pkgconfig_incs
12727 do
12728 case "$cf_fix_cppflags" in
12729 (no)
12730 case "$cf_add_cflags" in
12731 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
12732 case "$cf_add_cflags" in
12733 (-D*)
12734 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
12735
12736 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12737 && test -z "${cf_tst_cflags}" \
12738 && cf_fix_cppflags=yes
12739
12740 if test "$cf_fix_cppflags" = yes ; then
12741
12742 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12743 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12744
12745 continue
12746 elif test "${cf_tst_cflags}" = "\"'" ; then
12747
12748 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12749 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12750
12751 continue
12752 fi
12753 ;;
12754 esac
12755 case "$CPPFLAGS" in
12756 (*$cf_add_cflags)
12757 ;;
12758 (*)
12759 case "$cf_add_cflags" in
12760 (-D*)
12761 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
12762
12763 CPPFLAGS=`echo "$CPPFLAGS" | \
12764 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
12765 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
12766
12767 ;;
12768 esac
12769
12770 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
12771 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
12772
12773 ;;
12774 esac
12775 ;;
12776 (*)
12777
12778 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
12779 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
12780
12781 ;;
12782 esac
12783 ;;
12784 (yes)
12785
12786 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12787 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12788
12789 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
12790
12791 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12792 && test -z "${cf_tst_cflags}" \
12793 && cf_fix_cppflags=no
12794 ;;
12795 esac
12796 done
12797
12798 if test -n "$cf_new_cflags" ; then
12799
12800 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
12801 CFLAGS="${CFLAGS}$cf_new_cflags"
12802
12803 fi
12804
12805 if test -n "$cf_new_cppflags" ; then
12806
12807 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
12808 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
12809
12810 fi
12811
12812 if test -n "$cf_new_extra_cppflags" ; then
12813
12814 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
12815 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
12816
12817 fi
12818
12819 cf_add_libs="$LIBS"
12820 # reverse order
12821 cf_add_0lib=
12822 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
12823 # filter duplicates
12824 for cf_add_1lib in $cf_add_0lib; do
12825 for cf_add_2lib in $cf_add_libs; do
12826 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
12827 cf_add_1lib=
12828 break
12829 fi
12830 done
12831 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
12832 done
12833 LIBS="$cf_add_libs"
12834
12835 LIBS="$cf_save_xmu"
12836
12837 test -n "$verbose" && echo " ...before $LIBS" 1>&6
12838
12839 echo "${as_me:-configure}:12839: testing ...before $LIBS ..." 1>&5
12840
12841 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%$cf_first_lib %$cf_first_lib $cf_pkgconfig_libs %" -e 's% % %g'`
12842 test -n "$verbose" && echo " ...after $LIBS" 1>&6
12843
12844 echo "${as_me:-configure}:12844: testing ...after $LIBS ..." 1>&5
12845
12846 else
12847 cf_pkgconfig_incs=
12848 cf_pkgconfig_libs=
12849
12850 test -n "$verbose" && echo " ...before $LIBS" 1>&6
12851
12852 echo "${as_me:-configure}:12852: testing ...before $LIBS ..." 1>&5
12853
12854 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%$cf_first_lib %$cf_first_lib -lXmu %" -e 's% % %g'`
12855 test -n "$verbose" && echo " ...after $LIBS" 1>&6
12856
12857 echo "${as_me:-configure}:12857: testing ...after $LIBS ..." 1>&5
12858
12859 fi
12860
12861 for cf_trim_lib in Xmu Xt X11
12862 do
12863 case "$LIBS" in
12864 (*-l$cf_trim_lib\ *-l$cf_trim_lib*)
12865 LIBS=`echo "$LIBS " | sed -e 's/ / /g' -e 's%-l'"$cf_trim_lib"' %%' -e 's/ $//'`
12866 test -n "$verbose" && echo " ..trimmed $LIBS" 1>&6
12867
12868 echo "${as_me:-configure}:12868: testing ..trimmed $LIBS ..." 1>&5
12869
12870 ;;
12871 esac
12872 done
12873
12874 ;;
12875 esac
12876 fi
12877
12878 break
12879 else
12880 cf_pkgconfig_incs=
12881 cf_pkgconfig_libs=
12882 :
12883 fi
12884
12885 done
12886 fi
12887
12888 if test -z "$cf_x_athena_lib" ; then
12889
12890 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "Xext"; then
12891 test -n "$verbose" && echo " found package Xext" 1>&6
12892
12893 echo "${as_me:-configure}:12893: testing found package Xext ..." 1>&5
12894
12895 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "Xext" 2>/dev/null`"
12896 cf_pkgconfig_libs="`$PKG_CONFIG --libs "Xext" 2>/dev/null`"
12897 test -n "$verbose" && echo " package Xext CFLAGS: $cf_pkgconfig_incs" 1>&6
12898
12899 echo "${as_me:-configure}:12899: testing package Xext CFLAGS: $cf_pkgconfig_incs ..." 1>&5
12900
12901 test -n "$verbose" && echo " package Xext LIBS: $cf_pkgconfig_libs" 1>&6
12902
12903 echo "${as_me:-configure}:12903: testing package Xext LIBS: $cf_pkgconfig_libs ..." 1>&5
12904
12905 cf_fix_cppflags=no
12906 cf_new_cflags=
12907 cf_new_cppflags=
12908 cf_new_extra_cppflags=
12909
12910 for cf_add_cflags in $cf_pkgconfig_incs
12911 do
12912 case "$cf_fix_cppflags" in
12913 (no)
12914 case "$cf_add_cflags" in
12915 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
12916 case "$cf_add_cflags" in
12917 (-D*)
12918 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
12919
12920 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12921 && test -z "${cf_tst_cflags}" \
12922 && cf_fix_cppflags=yes
12923
12924 if test "$cf_fix_cppflags" = yes ; then
12925
12926 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12927 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12928
12929 continue
12930 elif test "${cf_tst_cflags}" = "\"'" ; then
12931
12932 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12933 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12934
12935 continue
12936 fi
12937 ;;
12938 esac
12939 case "$CPPFLAGS" in
12940 (*$cf_add_cflags)
12941 ;;
12942 (*)
12943 case "$cf_add_cflags" in
12944 (-D*)
12945 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
12946
12947 CPPFLAGS=`echo "$CPPFLAGS" | \
12948 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
12949 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
12950
12951 ;;
12952 esac
12953
12954 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
12955 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
12956
12957 ;;
12958 esac
12959 ;;
12960 (*)
12961
12962 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
12963 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
12964
12965 ;;
12966 esac
12967 ;;
12968 (yes)
12969
12970 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12971 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12972
12973 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
12974
12975 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12976 && test -z "${cf_tst_cflags}" \
12977 && cf_fix_cppflags=no
12978 ;;
12979 esac
12980 done
12981
12982 if test -n "$cf_new_cflags" ; then
12983
12984 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
12985 CFLAGS="${CFLAGS}$cf_new_cflags"
12986
12987 fi
12988
12989 if test -n "$cf_new_cppflags" ; then
12990
12991 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
12992 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
12993
12994 fi
12995
12996 if test -n "$cf_new_extra_cppflags" ; then
12997
12998 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
12999 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
13000
13001 fi
13002
13003 cf_add_libs="$LIBS"
13004 # reverse order
13005 cf_add_0lib=
13006 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
13007 # filter duplicates
13008 for cf_add_1lib in $cf_add_0lib; do
13009 for cf_add_2lib in $cf_add_libs; do
13010 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
13011 cf_add_1lib=
13012 break
13013 fi
13014 done
13015 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
13016 done
13017 LIBS="$cf_add_libs"
13018
13019 :
13020 else
13021 cf_pkgconfig_incs=
13022 cf_pkgconfig_libs=
13023
13024 echo "$as_me:13024: checking for XextCreateExtension in -lXext" >&5
13025 echo $ECHO_N "checking for XextCreateExtension in -lXext... $ECHO_C" >&6
13026 if test "${ac_cv_lib_Xext_XextCreateExtension+set}" = set; then
13027 echo $ECHO_N "(cached) $ECHO_C" >&6
13028 else
13029 ac_check_lib_save_LIBS=$LIBS
13030 LIBS="-lXext $LIBS"
13031 cat >"conftest.$ac_ext" <<_ACEOF
13032 #line 13032 "configure"
13033 #include "confdefs.h"
13034
13035 /* Override any gcc2 internal prototype to avoid an error. */
13036 #ifdef __cplusplus
13037 extern "C"
13038 #endif
13039 /* We use char because int might match the return type of a gcc2
13040 builtin and then its argument prototype would still apply. */
13041 char XextCreateExtension ();
13042 int
13043 main (void)
13044 {
13045 XextCreateExtension ();
13046 ;
13047 return 0;
13048 }
13049 _ACEOF
13050 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
13051 if { (eval echo "$as_me:13051: \"$ac_link\"") >&5
13052 (eval $ac_link) 2>&5
13053 ac_status=$?
13054 echo "$as_me:13054: \$? = $ac_status" >&5
13055 (exit "$ac_status"); } &&
13056 { ac_try='test -s "conftest$ac_exeext"'
13057 { (eval echo "$as_me:13057: \"$ac_try\"") >&5
13058 (eval $ac_try) 2>&5
13059 ac_status=$?
13060 echo "$as_me:13060: \$? = $ac_status" >&5
13061 (exit "$ac_status"); }; }; then
13062 ac_cv_lib_Xext_XextCreateExtension=yes
13063 else
13064 echo "$as_me: failed program was:" >&5
13065 cat "conftest.$ac_ext" >&5
13066 ac_cv_lib_Xext_XextCreateExtension=no
13067 fi
13068 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
13069 LIBS=$ac_check_lib_save_LIBS
13070 fi
13071 echo "$as_me:13071: result: $ac_cv_lib_Xext_XextCreateExtension" >&5
13072 echo "${ECHO_T}$ac_cv_lib_Xext_XextCreateExtension" >&6
13073 if test "$ac_cv_lib_Xext_XextCreateExtension" = yes; then
13074
13075 cf_add_libs="$LIBS"
13076 # reverse order
13077 cf_add_0lib=
13078 for cf_add_1lib in -lXext; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
13079 # filter duplicates
13080 for cf_add_1lib in $cf_add_0lib; do
13081 for cf_add_2lib in $cf_add_libs; do
13082 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
13083 cf_add_1lib=
13084 break
13085 fi
13086 done
13087 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
13088 done
13089 LIBS="$cf_add_libs"
13090
13091 fi
13092
13093 fi
13094
13095 # OSX is schizoid about who owns /usr/X11 (old) versus /opt/X11 (new) (and
13096 # in some cases has installed dummy files in the former, other cases replaced
13097 # it with a link to the new location). This complicates the configure script.
13098 # Check for that pitfall, and recover using pkg-config
13099 #
13100 # If none of these are set, the configuration is almost certainly broken.
13101 if test -z "${X_CFLAGS}${X_PRE_LIBS}${X_LIBS}${X_EXTRA_LIBS}"
13102 then
13103
13104 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "x11"; then
13105 test -n "$verbose" && echo " found package x11" 1>&6
13106
13107 echo "${as_me:-configure}:13107: testing found package x11 ..." 1>&5
13108
13109 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "x11" 2>/dev/null`"
13110 cf_pkgconfig_libs="`$PKG_CONFIG --libs "x11" 2>/dev/null`"
13111 test -n "$verbose" && echo " package x11 CFLAGS: $cf_pkgconfig_incs" 1>&6
13112
13113 echo "${as_me:-configure}:13113: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5
13114
13115 test -n "$verbose" && echo " package x11 LIBS: $cf_pkgconfig_libs" 1>&6
13116
13117 echo "${as_me:-configure}:13117: testing package x11 LIBS: $cf_pkgconfig_libs ..." 1>&5
13118
13119 cf_fix_cppflags=no
13120 cf_new_cflags=
13121 cf_new_cppflags=
13122 cf_new_extra_cppflags=
13123
13124 for cf_add_cflags in $cf_pkgconfig_incs
13125 do
13126 case "$cf_fix_cppflags" in
13127 (no)
13128 case "$cf_add_cflags" in
13129 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
13130 case "$cf_add_cflags" in
13131 (-D*)
13132 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
13133
13134 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13135 && test -z "${cf_tst_cflags}" \
13136 && cf_fix_cppflags=yes
13137
13138 if test "$cf_fix_cppflags" = yes ; then
13139
13140 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13141 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13142
13143 continue
13144 elif test "${cf_tst_cflags}" = "\"'" ; then
13145
13146 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13147 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13148
13149 continue
13150 fi
13151 ;;
13152 esac
13153 case "$CPPFLAGS" in
13154 (*$cf_add_cflags)
13155 ;;
13156 (*)
13157 case "$cf_add_cflags" in
13158 (-D*)
13159 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
13160
13161 CPPFLAGS=`echo "$CPPFLAGS" | \
13162 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
13163 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
13164
13165 ;;
13166 esac
13167
13168 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
13169 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
13170
13171 ;;
13172 esac
13173 ;;
13174 (*)
13175
13176 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
13177 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
13178
13179 ;;
13180 esac
13181 ;;
13182 (yes)
13183
13184 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13185 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13186
13187 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
13188
13189 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13190 && test -z "${cf_tst_cflags}" \
13191 && cf_fix_cppflags=no
13192 ;;
13193 esac
13194 done
13195
13196 if test -n "$cf_new_cflags" ; then
13197
13198 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
13199 CFLAGS="${CFLAGS}$cf_new_cflags"
13200
13201 fi
13202
13203 if test -n "$cf_new_cppflags" ; then
13204
13205 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13206 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
13207
13208 fi
13209
13210 if test -n "$cf_new_extra_cppflags" ; then
13211
13212 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
13213 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
13214
13215 fi
13216
13217 cf_add_libs="$LIBS"
13218 # reverse order
13219 cf_add_0lib=
13220 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
13221 # filter duplicates
13222 for cf_add_1lib in $cf_add_0lib; do
13223 for cf_add_2lib in $cf_add_libs; do
13224 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
13225 cf_add_1lib=
13226 break
13227 fi
13228 done
13229 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
13230 done
13231 LIBS="$cf_add_libs"
13232
13233 :
13234 else
13235 cf_pkgconfig_incs=
13236 cf_pkgconfig_libs=
13237 { echo "$as_me:13237: WARNING: unable to find X11 library" >&5
13238 echo "$as_me: WARNING: unable to find X11 library" >&2;}
13239 fi
13240
13241 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "ice"; then
13242 test -n "$verbose" && echo " found package ice" 1>&6
13243
13244 echo "${as_me:-configure}:13244: testing found package ice ..." 1>&5
13245
13246 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "ice" 2>/dev/null`"
13247 cf_pkgconfig_libs="`$PKG_CONFIG --libs "ice" 2>/dev/null`"
13248 test -n "$verbose" && echo " package ice CFLAGS: $cf_pkgconfig_incs" 1>&6
13249
13250 echo "${as_me:-configure}:13250: testing package ice CFLAGS: $cf_pkgconfig_incs ..." 1>&5
13251
13252 test -n "$verbose" && echo " package ice LIBS: $cf_pkgconfig_libs" 1>&6
13253
13254 echo "${as_me:-configure}:13254: testing package ice LIBS: $cf_pkgconfig_libs ..." 1>&5
13255
13256 cf_fix_cppflags=no
13257 cf_new_cflags=
13258 cf_new_cppflags=
13259 cf_new_extra_cppflags=
13260
13261 for cf_add_cflags in $cf_pkgconfig_incs
13262 do
13263 case "$cf_fix_cppflags" in
13264 (no)
13265 case "$cf_add_cflags" in
13266 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
13267 case "$cf_add_cflags" in
13268 (-D*)
13269 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
13270
13271 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13272 && test -z "${cf_tst_cflags}" \
13273 && cf_fix_cppflags=yes
13274
13275 if test "$cf_fix_cppflags" = yes ; then
13276
13277 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13278 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13279
13280 continue
13281 elif test "${cf_tst_cflags}" = "\"'" ; then
13282
13283 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13284 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13285
13286 continue
13287 fi
13288 ;;
13289 esac
13290 case "$CPPFLAGS" in
13291 (*$cf_add_cflags)
13292 ;;
13293 (*)
13294 case "$cf_add_cflags" in
13295 (-D*)
13296 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
13297
13298 CPPFLAGS=`echo "$CPPFLAGS" | \
13299 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
13300 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
13301
13302 ;;
13303 esac
13304
13305 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
13306 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
13307
13308 ;;
13309 esac
13310 ;;
13311 (*)
13312
13313 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
13314 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
13315
13316 ;;
13317 esac
13318 ;;
13319 (yes)
13320
13321 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13322 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13323
13324 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
13325
13326 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13327 && test -z "${cf_tst_cflags}" \
13328 && cf_fix_cppflags=no
13329 ;;
13330 esac
13331 done
13332
13333 if test -n "$cf_new_cflags" ; then
13334
13335 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
13336 CFLAGS="${CFLAGS}$cf_new_cflags"
13337
13338 fi
13339
13340 if test -n "$cf_new_cppflags" ; then
13341
13342 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13343 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
13344
13345 fi
13346
13347 if test -n "$cf_new_extra_cppflags" ; then
13348
13349 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
13350 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
13351
13352 fi
13353
13354 cf_add_libs="$LIBS"
13355 # reverse order
13356 cf_add_0lib=
13357 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
13358 # filter duplicates
13359 for cf_add_1lib in $cf_add_0lib; do
13360 for cf_add_2lib in $cf_add_libs; do
13361 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
13362 cf_add_1lib=
13363 break
13364 fi
13365 done
13366 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
13367 done
13368 LIBS="$cf_add_libs"
13369
13370 :
13371 else
13372 cf_pkgconfig_incs=
13373 cf_pkgconfig_libs=
13374 { echo "$as_me:13374: WARNING: unable to find ICE library" >&5
13375 echo "$as_me: WARNING: unable to find ICE library" >&2;}
13376 fi
13377
13378 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "sm"; then
13379 test -n "$verbose" && echo " found package sm" 1>&6
13380
13381 echo "${as_me:-configure}:13381: testing found package sm ..." 1>&5
13382
13383 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "sm" 2>/dev/null`"
13384 cf_pkgconfig_libs="`$PKG_CONFIG --libs "sm" 2>/dev/null`"
13385 test -n "$verbose" && echo " package sm CFLAGS: $cf_pkgconfig_incs" 1>&6
13386
13387 echo "${as_me:-configure}:13387: testing package sm CFLAGS: $cf_pkgconfig_incs ..." 1>&5
13388
13389 test -n "$verbose" && echo " package sm LIBS: $cf_pkgconfig_libs" 1>&6
13390
13391 echo "${as_me:-configure}:13391: testing package sm LIBS: $cf_pkgconfig_libs ..." 1>&5
13392
13393 cf_fix_cppflags=no
13394 cf_new_cflags=
13395 cf_new_cppflags=
13396 cf_new_extra_cppflags=
13397
13398 for cf_add_cflags in $cf_pkgconfig_incs
13399 do
13400 case "$cf_fix_cppflags" in
13401 (no)
13402 case "$cf_add_cflags" in
13403 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
13404 case "$cf_add_cflags" in
13405 (-D*)
13406 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
13407
13408 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13409 && test -z "${cf_tst_cflags}" \
13410 && cf_fix_cppflags=yes
13411
13412 if test "$cf_fix_cppflags" = yes ; then
13413
13414 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13415 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13416
13417 continue
13418 elif test "${cf_tst_cflags}" = "\"'" ; then
13419
13420 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13421 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13422
13423 continue
13424 fi
13425 ;;
13426 esac
13427 case "$CPPFLAGS" in
13428 (*$cf_add_cflags)
13429 ;;
13430 (*)
13431 case "$cf_add_cflags" in
13432 (-D*)
13433 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
13434
13435 CPPFLAGS=`echo "$CPPFLAGS" | \
13436 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
13437 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
13438
13439 ;;
13440 esac
13441
13442 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
13443 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
13444
13445 ;;
13446 esac
13447 ;;
13448 (*)
13449
13450 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
13451 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
13452
13453 ;;
13454 esac
13455 ;;
13456 (yes)
13457
13458 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13459 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13460
13461 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
13462
13463 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13464 && test -z "${cf_tst_cflags}" \
13465 && cf_fix_cppflags=no
13466 ;;
13467 esac
13468 done
13469
13470 if test -n "$cf_new_cflags" ; then
13471
13472 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
13473 CFLAGS="${CFLAGS}$cf_new_cflags"
13474
13475 fi
13476
13477 if test -n "$cf_new_cppflags" ; then
13478
13479 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13480 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
13481
13482 fi
13483
13484 if test -n "$cf_new_extra_cppflags" ; then
13485
13486 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
13487 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
13488
13489 fi
13490
13491 cf_add_libs="$LIBS"
13492 # reverse order
13493 cf_add_0lib=
13494 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
13495 # filter duplicates
13496 for cf_add_1lib in $cf_add_0lib; do
13497 for cf_add_2lib in $cf_add_libs; do
13498 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
13499 cf_add_1lib=
13500 break
13501 fi
13502 done
13503 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
13504 done
13505 LIBS="$cf_add_libs"
13506
13507 :
13508 else
13509 cf_pkgconfig_incs=
13510 cf_pkgconfig_libs=
13511 { echo "$as_me:13511: WARNING: unable to find SM library" >&5
13512 echo "$as_me: WARNING: unable to find SM library" >&2;}
13513 fi
13514
13515 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "xt"; then
13516 test -n "$verbose" && echo " found package xt" 1>&6
13517
13518 echo "${as_me:-configure}:13518: testing found package xt ..." 1>&5
13519
13520 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "xt" 2>/dev/null`"
13521 cf_pkgconfig_libs="`$PKG_CONFIG --libs "xt" 2>/dev/null`"
13522 test -n "$verbose" && echo " package xt CFLAGS: $cf_pkgconfig_incs" 1>&6
13523
13524 echo "${as_me:-configure}:13524: testing package xt CFLAGS: $cf_pkgconfig_incs ..." 1>&5
13525
13526 test -n "$verbose" && echo " package xt LIBS: $cf_pkgconfig_libs" 1>&6
13527
13528 echo "${as_me:-configure}:13528: testing package xt LIBS: $cf_pkgconfig_libs ..." 1>&5
13529
13530 cf_fix_cppflags=no
13531 cf_new_cflags=
13532 cf_new_cppflags=
13533 cf_new_extra_cppflags=
13534
13535 for cf_add_cflags in $cf_pkgconfig_incs
13536 do
13537 case "$cf_fix_cppflags" in
13538 (no)
13539 case "$cf_add_cflags" in
13540 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
13541 case "$cf_add_cflags" in
13542 (-D*)
13543 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
13544
13545 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13546 && test -z "${cf_tst_cflags}" \
13547 && cf_fix_cppflags=yes
13548
13549 if test "$cf_fix_cppflags" = yes ; then
13550
13551 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13552 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13553
13554 continue
13555 elif test "${cf_tst_cflags}" = "\"'" ; then
13556
13557 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13558 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13559
13560 continue
13561 fi
13562 ;;
13563 esac
13564 case "$CPPFLAGS" in
13565 (*$cf_add_cflags)
13566 ;;
13567 (*)
13568 case "$cf_add_cflags" in
13569 (-D*)
13570 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
13571
13572 CPPFLAGS=`echo "$CPPFLAGS" | \
13573 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
13574 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
13575
13576 ;;
13577 esac
13578
13579 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
13580 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
13581
13582 ;;
13583 esac
13584 ;;
13585 (*)
13586
13587 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
13588 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
13589
13590 ;;
13591 esac
13592 ;;
13593 (yes)
13594
13595 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13596 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13597
13598 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
13599
13600 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13601 && test -z "${cf_tst_cflags}" \
13602 && cf_fix_cppflags=no
13603 ;;
13604 esac
13605 done
13606
13607 if test -n "$cf_new_cflags" ; then
13608
13609 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
13610 CFLAGS="${CFLAGS}$cf_new_cflags"
13611
13612 fi
13613
13614 if test -n "$cf_new_cppflags" ; then
13615
13616 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13617 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
13618
13619 fi
13620
13621 if test -n "$cf_new_extra_cppflags" ; then
13622
13623 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
13624 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
13625
13626 fi
13627
13628 cf_add_libs="$LIBS"
13629 # reverse order
13630 cf_add_0lib=
13631 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
13632 # filter duplicates
13633 for cf_add_1lib in $cf_add_0lib; do
13634 for cf_add_2lib in $cf_add_libs; do
13635 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
13636 cf_add_1lib=
13637 break
13638 fi
13639 done
13640 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
13641 done
13642 LIBS="$cf_add_libs"
13643
13644 :
13645 else
13646 cf_pkgconfig_incs=
13647 cf_pkgconfig_libs=
13648 { echo "$as_me:13648: WARNING: unable to find Xt library" >&5
13649 echo "$as_me: WARNING: unable to find Xt library" >&2;}
13650 fi
13651
13652 else
13653 LIBS="$X_PRE_LIBS $LIBS $X_EXTRA_LIBS"
13654 fi
13655
13656 cf_have_X_LIBS=no
13657
13658 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "xt"; then
13659 test -n "$verbose" && echo " found package xt" 1>&6
13660
13661 echo "${as_me:-configure}:13661: testing found package xt ..." 1>&5
13662
13663 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "xt" 2>/dev/null`"
13664 cf_pkgconfig_libs="`$PKG_CONFIG --libs "xt" 2>/dev/null`"
13665 test -n "$verbose" && echo " package xt CFLAGS: $cf_pkgconfig_incs" 1>&6
13666
13667 echo "${as_me:-configure}:13667: testing package xt CFLAGS: $cf_pkgconfig_incs ..." 1>&5
13668
13669 test -n "$verbose" && echo " package xt LIBS: $cf_pkgconfig_libs" 1>&6
13670
13671 echo "${as_me:-configure}:13671: testing package xt LIBS: $cf_pkgconfig_libs ..." 1>&5
13672
13673 cf_fix_cppflags=no
13674 cf_new_cflags=
13675 cf_new_cppflags=
13676 cf_new_extra_cppflags=
13677
13678 for cf_add_cflags in $cf_pkgconfig_incs
13679 do
13680 case "$cf_fix_cppflags" in
13681 (no)
13682 case "$cf_add_cflags" in
13683 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
13684 case "$cf_add_cflags" in
13685 (-D*)
13686 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
13687
13688 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13689 && test -z "${cf_tst_cflags}" \
13690 && cf_fix_cppflags=yes
13691
13692 if test "$cf_fix_cppflags" = yes ; then
13693
13694 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13695 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13696
13697 continue
13698 elif test "${cf_tst_cflags}" = "\"'" ; then
13699
13700 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13701 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13702
13703 continue
13704 fi
13705 ;;
13706 esac
13707 case "$CPPFLAGS" in
13708 (*$cf_add_cflags)
13709 ;;
13710 (*)
13711 case "$cf_add_cflags" in
13712 (-D*)
13713 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
13714
13715 CPPFLAGS=`echo "$CPPFLAGS" | \
13716 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
13717 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
13718
13719 ;;
13720 esac
13721
13722 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
13723 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
13724
13725 ;;
13726 esac
13727 ;;
13728 (*)
13729
13730 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
13731 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
13732
13733 ;;
13734 esac
13735 ;;
13736 (yes)
13737
13738 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13739 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13740
13741 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
13742
13743 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13744 && test -z "${cf_tst_cflags}" \
13745 && cf_fix_cppflags=no
13746 ;;
13747 esac
13748 done
13749
13750 if test -n "$cf_new_cflags" ; then
13751
13752 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
13753 CFLAGS="${CFLAGS}$cf_new_cflags"
13754
13755 fi
13756
13757 if test -n "$cf_new_cppflags" ; then
13758
13759 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13760 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
13761
13762 fi
13763
13764 if test -n "$cf_new_extra_cppflags" ; then
13765
13766 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
13767 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
13768
13769 fi
13770
13771 cf_add_libs="$LIBS"
13772 # reverse order
13773 cf_add_0lib=
13774 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
13775 # filter duplicates
13776 for cf_add_1lib in $cf_add_0lib; do
13777 for cf_add_2lib in $cf_add_libs; do
13778 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
13779 cf_add_1lib=
13780 break
13781 fi
13782 done
13783 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
13784 done
13785 LIBS="$cf_add_libs"
13786
13787 case "x$LIBS" in
13788 (*-lX11*)
13789 ;;
13790 (*)
13791 # we have an "xt" package, but it may omit Xt's dependency on X11
13792 echo "$as_me:13792: checking for usable X dependency" >&5
13793 echo $ECHO_N "checking for usable X dependency... $ECHO_C" >&6
13794 if test "${cf_cv_xt_x11_compat+set}" = set; then
13795 echo $ECHO_N "(cached) $ECHO_C" >&6
13796 else
13797
13798 cat >"conftest.$ac_ext" <<_ACEOF
13799 #line 13799 "configure"
13800 #include "confdefs.h"
13801
13802 #include <X11/Xlib.h>
13803
13804 int
13805 main (void)
13806 {
13807
13808 int rc1 = XDrawLine((Display*) 0, (Drawable) 0, (GC) 0, 0, 0, 0, 0);
13809 int rc2 = XClearWindow((Display*) 0, (Window) 0);
13810 int rc3 = XMoveWindow((Display*) 0, (Window) 0, 0, 0);
13811 int rc4 = XMoveResizeWindow((Display*)0, (Window)0, 0, 0, 0, 0);
13812
13813 ;
13814 return 0;
13815 }
13816 _ACEOF
13817 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
13818 if { (eval echo "$as_me:13818: \"$ac_link\"") >&5
13819 (eval $ac_link) 2>&5
13820 ac_status=$?
13821 echo "$as_me:13821: \$? = $ac_status" >&5
13822 (exit "$ac_status"); } &&
13823 { ac_try='test -s "conftest$ac_exeext"'
13824 { (eval echo "$as_me:13824: \"$ac_try\"") >&5
13825 (eval $ac_try) 2>&5
13826 ac_status=$?
13827 echo "$as_me:13827: \$? = $ac_status" >&5
13828 (exit "$ac_status"); }; }; then
13829 cf_cv_xt_x11_compat=yes
13830 else
13831 echo "$as_me: failed program was:" >&5
13832 cat "conftest.$ac_ext" >&5
13833 cf_cv_xt_x11_compat=no
13834 fi
13835 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
13836 fi
13837 echo "$as_me:13837: result: $cf_cv_xt_x11_compat" >&5
13838 echo "${ECHO_T}$cf_cv_xt_x11_compat" >&6
13839 if test "$cf_cv_xt_x11_compat" = no
13840 then
13841 test -n "$verbose" && echo " work around broken X11 dependency" 1>&6
13842
13843 echo "${as_me:-configure}:13843: testing work around broken X11 dependency ..." 1>&5
13844
13845 # 2010/11/19 - good enough until a working Xt on Xcb is delivered.
13846
13847 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "x11"; then
13848 test -n "$verbose" && echo " found package x11" 1>&6
13849
13850 echo "${as_me:-configure}:13850: testing found package x11 ..." 1>&5
13851
13852 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "x11" 2>/dev/null`"
13853 cf_pkgconfig_libs="`$PKG_CONFIG --libs "x11" 2>/dev/null`"
13854 test -n "$verbose" && echo " package x11 CFLAGS: $cf_pkgconfig_incs" 1>&6
13855
13856 echo "${as_me:-configure}:13856: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5
13857
13858 test -n "$verbose" && echo " package x11 LIBS: $cf_pkgconfig_libs" 1>&6
13859
13860 echo "${as_me:-configure}:13860: testing package x11 LIBS: $cf_pkgconfig_libs ..." 1>&5
13861
13862 cf_fix_cppflags=no
13863 cf_new_cflags=
13864 cf_new_cppflags=
13865 cf_new_extra_cppflags=
13866
13867 for cf_add_cflags in $cf_pkgconfig_incs
13868 do
13869 case "$cf_fix_cppflags" in
13870 (no)
13871 case "$cf_add_cflags" in
13872 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
13873 case "$cf_add_cflags" in
13874 (-D*)
13875 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
13876
13877 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13878 && test -z "${cf_tst_cflags}" \
13879 && cf_fix_cppflags=yes
13880
13881 if test "$cf_fix_cppflags" = yes ; then
13882
13883 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13884 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13885
13886 continue
13887 elif test "${cf_tst_cflags}" = "\"'" ; then
13888
13889 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13890 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13891
13892 continue
13893 fi
13894 ;;
13895 esac
13896 case "$CPPFLAGS" in
13897 (*$cf_add_cflags)
13898 ;;
13899 (*)
13900 case "$cf_add_cflags" in
13901 (-D*)
13902 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
13903
13904 CPPFLAGS=`echo "$CPPFLAGS" | \
13905 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
13906 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
13907
13908 ;;
13909 esac
13910
13911 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
13912 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
13913
13914 ;;
13915 esac
13916 ;;
13917 (*)
13918
13919 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
13920 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
13921
13922 ;;
13923 esac
13924 ;;
13925 (yes)
13926
13927 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13928 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13929
13930 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
13931
13932 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13933 && test -z "${cf_tst_cflags}" \
13934 && cf_fix_cppflags=no
13935 ;;
13936 esac
13937 done
13938
13939 if test -n "$cf_new_cflags" ; then
13940
13941 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
13942 CFLAGS="${CFLAGS}$cf_new_cflags"
13943
13944 fi
13945
13946 if test -n "$cf_new_cppflags" ; then
13947
13948 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13949 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
13950
13951 fi
13952
13953 if test -n "$cf_new_extra_cppflags" ; then
13954
13955 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
13956 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
13957
13958 fi
13959
13960 cf_add_libs="$LIBS"
13961 # reverse order
13962 cf_add_0lib=
13963 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
13964 # filter duplicates
13965 for cf_add_1lib in $cf_add_0lib; do
13966 for cf_add_2lib in $cf_add_libs; do
13967 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
13968 cf_add_1lib=
13969 break
13970 fi
13971 done
13972 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
13973 done
13974 LIBS="$cf_add_libs"
13975
13976 :
13977 else
13978 cf_pkgconfig_incs=
13979 cf_pkgconfig_libs=
13980
13981 test -n "$verbose" && echo " ...before $LIBS" 1>&6
13982
13983 echo "${as_me:-configure}:13983: testing ...before $LIBS ..." 1>&5
13984
13985 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXt %-lXt -lX11 %" -e 's% % %g'`
13986 test -n "$verbose" && echo " ...after $LIBS" 1>&6
13987
13988 echo "${as_me:-configure}:13988: testing ...after $LIBS ..." 1>&5
13989
13990 fi
13991
13992 fi
13993 ;;
13994 esac
13995
13996 echo "$as_me:13996: checking for usable X Toolkit package" >&5
13997 echo $ECHO_N "checking for usable X Toolkit package... $ECHO_C" >&6
13998 if test "${cf_cv_xt_ice_compat+set}" = set; then
13999 echo $ECHO_N "(cached) $ECHO_C" >&6
14000 else
14001
14002 cat >"conftest.$ac_ext" <<_ACEOF
14003 #line 14003 "configure"
14004 #include "confdefs.h"
14005
14006 #include <X11/Shell.h>
14007
14008 int
14009 main (void)
14010 {
14011 int num = IceConnectionNumber(0); (void) num
14012
14013 ;
14014 return 0;
14015 }
14016 _ACEOF
14017 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
14018 if { (eval echo "$as_me:14018: \"$ac_link\"") >&5
14019 (eval $ac_link) 2>&5
14020 ac_status=$?
14021 echo "$as_me:14021: \$? = $ac_status" >&5
14022 (exit "$ac_status"); } &&
14023 { ac_try='test -s "conftest$ac_exeext"'
14024 { (eval echo "$as_me:14024: \"$ac_try\"") >&5
14025 (eval $ac_try) 2>&5
14026 ac_status=$?
14027 echo "$as_me:14027: \$? = $ac_status" >&5
14028 (exit "$ac_status"); }; }; then
14029 cf_cv_xt_ice_compat=yes
14030 else
14031 echo "$as_me: failed program was:" >&5
14032 cat "conftest.$ac_ext" >&5
14033 cf_cv_xt_ice_compat=no
14034 fi
14035 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
14036 fi
14037 echo "$as_me:14037: result: $cf_cv_xt_ice_compat" >&5
14038 echo "${ECHO_T}$cf_cv_xt_ice_compat" >&6
14039
14040 if test "$cf_cv_xt_ice_compat" = no
14041 then
14042 # workaround for broken ".pc" files used for X Toolkit.
14043 case "x$X_PRE_LIBS" in
14044 (*-lICE*)
14045 case "x$LIBS" in
14046 (*-lICE*)
14047 ;;
14048 (*)
14049 test -n "$verbose" && echo " work around broken ICE dependency" 1>&6
14050
14051 echo "${as_me:-configure}:14051: testing work around broken ICE dependency ..." 1>&5
14052
14053 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "ice"; then
14054 test -n "$verbose" && echo " found package ice" 1>&6
14055
14056 echo "${as_me:-configure}:14056: testing found package ice ..." 1>&5
14057
14058 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "ice" 2>/dev/null`"
14059 cf_pkgconfig_libs="`$PKG_CONFIG --libs "ice" 2>/dev/null`"
14060 test -n "$verbose" && echo " package ice CFLAGS: $cf_pkgconfig_incs" 1>&6
14061
14062 echo "${as_me:-configure}:14062: testing package ice CFLAGS: $cf_pkgconfig_incs ..." 1>&5
14063
14064 test -n "$verbose" && echo " package ice LIBS: $cf_pkgconfig_libs" 1>&6
14065
14066 echo "${as_me:-configure}:14066: testing package ice LIBS: $cf_pkgconfig_libs ..." 1>&5
14067
14068 cf_fix_cppflags=no
14069 cf_new_cflags=
14070 cf_new_cppflags=
14071 cf_new_extra_cppflags=
14072
14073 for cf_add_cflags in $cf_pkgconfig_incs
14074 do
14075 case "$cf_fix_cppflags" in
14076 (no)
14077 case "$cf_add_cflags" in
14078 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
14079 case "$cf_add_cflags" in
14080 (-D*)
14081 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
14082
14083 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14084 && test -z "${cf_tst_cflags}" \
14085 && cf_fix_cppflags=yes
14086
14087 if test "$cf_fix_cppflags" = yes ; then
14088
14089 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14090 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14091
14092 continue
14093 elif test "${cf_tst_cflags}" = "\"'" ; then
14094
14095 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14096 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14097
14098 continue
14099 fi
14100 ;;
14101 esac
14102 case "$CPPFLAGS" in
14103 (*$cf_add_cflags)
14104 ;;
14105 (*)
14106 case "$cf_add_cflags" in
14107 (-D*)
14108 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
14109
14110 CPPFLAGS=`echo "$CPPFLAGS" | \
14111 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
14112 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
14113
14114 ;;
14115 esac
14116
14117 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
14118 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
14119
14120 ;;
14121 esac
14122 ;;
14123 (*)
14124
14125 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
14126 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
14127
14128 ;;
14129 esac
14130 ;;
14131 (yes)
14132
14133 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14134 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14135
14136 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
14137
14138 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14139 && test -z "${cf_tst_cflags}" \
14140 && cf_fix_cppflags=no
14141 ;;
14142 esac
14143 done
14144
14145 if test -n "$cf_new_cflags" ; then
14146
14147 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
14148 CFLAGS="${CFLAGS}$cf_new_cflags"
14149
14150 fi
14151
14152 if test -n "$cf_new_cppflags" ; then
14153
14154 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
14155 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
14156
14157 fi
14158
14159 if test -n "$cf_new_extra_cppflags" ; then
14160
14161 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
14162 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
14163
14164 fi
14165
14166 cf_add_libs="$LIBS"
14167 # reverse order
14168 cf_add_0lib=
14169 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
14170 # filter duplicates
14171 for cf_add_1lib in $cf_add_0lib; do
14172 for cf_add_2lib in $cf_add_libs; do
14173 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
14174 cf_add_1lib=
14175 break
14176 fi
14177 done
14178 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
14179 done
14180 LIBS="$cf_add_libs"
14181
14182 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "sm"; then
14183 test -n "$verbose" && echo " found package sm" 1>&6
14184
14185 echo "${as_me:-configure}:14185: testing found package sm ..." 1>&5
14186
14187 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "sm" 2>/dev/null`"
14188 cf_pkgconfig_libs="`$PKG_CONFIG --libs "sm" 2>/dev/null`"
14189 test -n "$verbose" && echo " package sm CFLAGS: $cf_pkgconfig_incs" 1>&6
14190
14191 echo "${as_me:-configure}:14191: testing package sm CFLAGS: $cf_pkgconfig_incs ..." 1>&5
14192
14193 test -n "$verbose" && echo " package sm LIBS: $cf_pkgconfig_libs" 1>&6
14194
14195 echo "${as_me:-configure}:14195: testing package sm LIBS: $cf_pkgconfig_libs ..." 1>&5
14196
14197 cf_fix_cppflags=no
14198 cf_new_cflags=
14199 cf_new_cppflags=
14200 cf_new_extra_cppflags=
14201
14202 for cf_add_cflags in $cf_pkgconfig_incs
14203 do
14204 case "$cf_fix_cppflags" in
14205 (no)
14206 case "$cf_add_cflags" in
14207 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
14208 case "$cf_add_cflags" in
14209 (-D*)
14210 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
14211
14212 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14213 && test -z "${cf_tst_cflags}" \
14214 && cf_fix_cppflags=yes
14215
14216 if test "$cf_fix_cppflags" = yes ; then
14217
14218 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14219 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14220
14221 continue
14222 elif test "${cf_tst_cflags}" = "\"'" ; then
14223
14224 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14225 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14226
14227 continue
14228 fi
14229 ;;
14230 esac
14231 case "$CPPFLAGS" in
14232 (*$cf_add_cflags)
14233 ;;
14234 (*)
14235 case "$cf_add_cflags" in
14236 (-D*)
14237 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
14238
14239 CPPFLAGS=`echo "$CPPFLAGS" | \
14240 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
14241 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
14242
14243 ;;
14244 esac
14245
14246 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
14247 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
14248
14249 ;;
14250 esac
14251 ;;
14252 (*)
14253
14254 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
14255 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
14256
14257 ;;
14258 esac
14259 ;;
14260 (yes)
14261
14262 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14263 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14264
14265 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
14266
14267 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14268 && test -z "${cf_tst_cflags}" \
14269 && cf_fix_cppflags=no
14270 ;;
14271 esac
14272 done
14273
14274 if test -n "$cf_new_cflags" ; then
14275
14276 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
14277 CFLAGS="${CFLAGS}$cf_new_cflags"
14278
14279 fi
14280
14281 if test -n "$cf_new_cppflags" ; then
14282
14283 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
14284 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
14285
14286 fi
14287
14288 if test -n "$cf_new_extra_cppflags" ; then
14289
14290 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
14291 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
14292
14293 fi
14294
14295 cf_add_libs="$LIBS"
14296 # reverse order
14297 cf_add_0lib=
14298 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
14299 # filter duplicates
14300 for cf_add_1lib in $cf_add_0lib; do
14301 for cf_add_2lib in $cf_add_libs; do
14302 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
14303 cf_add_1lib=
14304 break
14305 fi
14306 done
14307 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
14308 done
14309 LIBS="$cf_add_libs"
14310
14311 :
14312 else
14313 cf_pkgconfig_incs=
14314 cf_pkgconfig_libs=
14315 :
14316 fi
14317
14318 else
14319 cf_pkgconfig_incs=
14320 cf_pkgconfig_libs=
14321
14322 test -n "$verbose" && echo " ...before $LIBS" 1>&6
14323
14324 echo "${as_me:-configure}:14324: testing ...before $LIBS ..." 1>&5
14325
14326 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXt %-lXt $X_PRE_LIBS %" -e 's% % %g'`
14327 test -n "$verbose" && echo " ...after $LIBS" 1>&6
14328
14329 echo "${as_me:-configure}:14329: testing ...after $LIBS ..." 1>&5
14330
14331 fi
14332
14333 ;;
14334 esac
14335 ;;
14336 esac
14337 fi
14338
14339 cf_have_X_LIBS=yes
14340
14341 else
14342 cf_pkgconfig_incs=
14343 cf_pkgconfig_libs=
14344
14345 LDFLAGS="$X_LIBS $LDFLAGS"
14346
14347 test -n "$verbose" && echo " checking additions to CFLAGS" 1>&6
14348
14349 echo "${as_me:-configure}:14349: testing checking additions to CFLAGS ..." 1>&5
14350
14351 cf_check_cflags="$CFLAGS"
14352 cf_check_cppflags="$CPPFLAGS"
14353
14354 cf_fix_cppflags=no
14355 cf_new_cflags=
14356 cf_new_cppflags=
14357 cf_new_extra_cppflags=
14358
14359 for cf_add_cflags in $X_CFLAGS
14360 do
14361 case "$cf_fix_cppflags" in
14362 (no)
14363 case "$cf_add_cflags" in
14364 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
14365 case "$cf_add_cflags" in
14366 (-D*)
14367 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
14368
14369 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14370 && test -z "${cf_tst_cflags}" \
14371 && cf_fix_cppflags=yes
14372
14373 if test "$cf_fix_cppflags" = yes ; then
14374
14375 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14376 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14377
14378 continue
14379 elif test "${cf_tst_cflags}" = "\"'" ; then
14380
14381 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14382 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14383
14384 continue
14385 fi
14386 ;;
14387 esac
14388 case "$CPPFLAGS" in
14389 (*$cf_add_cflags)
14390 ;;
14391 (*)
14392 case "$cf_add_cflags" in
14393 (-D*)
14394 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
14395
14396 CPPFLAGS=`echo "$CPPFLAGS" | \
14397 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
14398 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
14399
14400 ;;
14401 esac
14402
14403 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
14404 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
14405
14406 ;;
14407 esac
14408 ;;
14409 (*)
14410
14411 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
14412 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
14413
14414 ;;
14415 esac
14416 ;;
14417 (yes)
14418
14419 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14420 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14421
14422 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
14423
14424 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14425 && test -z "${cf_tst_cflags}" \
14426 && cf_fix_cppflags=no
14427 ;;
14428 esac
14429 done
14430
14431 if test -n "$cf_new_cflags" ; then
14432 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
14433
14434 echo "${as_me:-configure}:14434: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
14435
14436 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
14437 CFLAGS="${CFLAGS}$cf_new_cflags"
14438
14439 fi
14440
14441 if test -n "$cf_new_cppflags" ; then
14442 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
14443
14444 echo "${as_me:-configure}:14444: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
14445
14446 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
14447 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
14448
14449 fi
14450
14451 if test -n "$cf_new_extra_cppflags" ; then
14452 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
14453
14454 echo "${as_me:-configure}:14454: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
14455
14456 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
14457 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
14458
14459 fi
14460
14461 if test "x$cf_check_cflags" != "x$CFLAGS" ; then
14462 cat >"conftest.$ac_ext" <<_ACEOF
14463 #line 14463 "configure"
14464 #include "confdefs.h"
14465 #include <stdio.h>
14466 int
14467 main (void)
14468 {
14469 printf("Hello world");
14470 ;
14471 return 0;
14472 }
14473 _ACEOF
14474 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
14475 if { (eval echo "$as_me:14475: \"$ac_link\"") >&5
14476 (eval $ac_link) 2>&5
14477 ac_status=$?
14478 echo "$as_me:14478: \$? = $ac_status" >&5
14479 (exit "$ac_status"); } &&
14480 { ac_try='test -s "conftest$ac_exeext"'
14481 { (eval echo "$as_me:14481: \"$ac_try\"") >&5
14482 (eval $ac_try) 2>&5
14483 ac_status=$?
14484 echo "$as_me:14484: \$? = $ac_status" >&5
14485 (exit "$ac_status"); }; }; then
14486 :
14487 else
14488 echo "$as_me: failed program was:" >&5
14489 cat "conftest.$ac_ext" >&5
14490 test -n "$verbose" && echo " test-compile failed. Undoing change to \$CFLAGS" 1>&6
14491
14492 echo "${as_me:-configure}:14492: testing test-compile failed. Undoing change to \$CFLAGS ..." 1>&5
14493
14494 if test "x$cf_check_cppflags" != "x$CPPFLAGS" ; then
14495 test -n "$verbose" && echo " but keeping change to \$CPPFLAGS" 1>&6
14496
14497 echo "${as_me:-configure}:14497: testing but keeping change to \$CPPFLAGS ..." 1>&5
14498
14499 fi
14500 CFLAGS="$cf_check_cflags"
14501 fi
14502 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
14503 fi
14504
14505 echo "$as_me:14505: checking for XOpenDisplay" >&5
14506 echo $ECHO_N "checking for XOpenDisplay... $ECHO_C" >&6
14507 if test "${ac_cv_func_XOpenDisplay+set}" = set; then
14508 echo $ECHO_N "(cached) $ECHO_C" >&6
14509 else
14510 cat >"conftest.$ac_ext" <<_ACEOF
14511 #line 14511 "configure"
14512 #include "confdefs.h"
14513 #define XOpenDisplay autoconf_temporary
14514 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
14515 #undef XOpenDisplay
14516
14517 #ifdef __cplusplus
14518 extern "C"
14519 #endif
14520
14521 /* We use char because int might match the return type of a gcc2
14522 builtin and then its argument prototype would still apply. */
14523 char XOpenDisplay (void);
14524
14525 int
14526 main (void)
14527 {
14528
14529 /* The GNU C library defines stubs for functions which it implements
14530 to always fail with ENOSYS. Some functions are actually named
14531 something starting with __ and the normal name is an alias. */
14532 #if defined (__stub_XOpenDisplay) || defined (__stub___XOpenDisplay)
14533 #error found stub for XOpenDisplay
14534 #endif
14535
14536 return XOpenDisplay ();
14537 ;
14538 return 0;
14539 }
14540 _ACEOF
14541 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
14542 if { (eval echo "$as_me:14542: \"$ac_link\"") >&5
14543 (eval $ac_link) 2>&5
14544 ac_status=$?
14545 echo "$as_me:14545: \$? = $ac_status" >&5
14546 (exit "$ac_status"); } &&
14547 { ac_try='test -s "conftest$ac_exeext"'
14548 { (eval echo "$as_me:14548: \"$ac_try\"") >&5
14549 (eval $ac_try) 2>&5
14550 ac_status=$?
14551 echo "$as_me:14551: \$? = $ac_status" >&5
14552 (exit "$ac_status"); }; }; then
14553 ac_cv_func_XOpenDisplay=yes
14554 else
14555 echo "$as_me: failed program was:" >&5
14556 cat "conftest.$ac_ext" >&5
14557 ac_cv_func_XOpenDisplay=no
14558 fi
14559 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
14560 fi
14561 echo "$as_me:14561: result: $ac_cv_func_XOpenDisplay" >&5
14562 echo "${ECHO_T}$ac_cv_func_XOpenDisplay" >&6
14563 if test "$ac_cv_func_XOpenDisplay" = yes; then
14564 :
14565 else
14566
14567 echo "$as_me:14567: checking for XOpenDisplay in -lX11" >&5
14568 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
14569 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
14570 echo $ECHO_N "(cached) $ECHO_C" >&6
14571 else
14572 ac_check_lib_save_LIBS=$LIBS
14573 LIBS="-lX11 $LIBS"
14574 cat >"conftest.$ac_ext" <<_ACEOF
14575 #line 14575 "configure"
14576 #include "confdefs.h"
14577
14578 /* Override any gcc2 internal prototype to avoid an error. */
14579 #ifdef __cplusplus
14580 extern "C"
14581 #endif
14582 /* We use char because int might match the return type of a gcc2
14583 builtin and then its argument prototype would still apply. */
14584 char XOpenDisplay ();
14585 int
14586 main (void)
14587 {
14588 XOpenDisplay ();
14589 ;
14590 return 0;
14591 }
14592 _ACEOF
14593 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
14594 if { (eval echo "$as_me:14594: \"$ac_link\"") >&5
14595 (eval $ac_link) 2>&5
14596 ac_status=$?
14597 echo "$as_me:14597: \$? = $ac_status" >&5
14598 (exit "$ac_status"); } &&
14599 { ac_try='test -s "conftest$ac_exeext"'
14600 { (eval echo "$as_me:14600: \"$ac_try\"") >&5
14601 (eval $ac_try) 2>&5
14602 ac_status=$?
14603 echo "$as_me:14603: \$? = $ac_status" >&5
14604 (exit "$ac_status"); }; }; then
14605 ac_cv_lib_X11_XOpenDisplay=yes
14606 else
14607 echo "$as_me: failed program was:" >&5
14608 cat "conftest.$ac_ext" >&5
14609 ac_cv_lib_X11_XOpenDisplay=no
14610 fi
14611 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
14612 LIBS=$ac_check_lib_save_LIBS
14613 fi
14614 echo "$as_me:14614: result: $ac_cv_lib_X11_XOpenDisplay" >&5
14615 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
14616 if test "$ac_cv_lib_X11_XOpenDisplay" = yes; then
14617
14618 cf_add_libs="$LIBS"
14619 # reverse order
14620 cf_add_0lib=
14621 for cf_add_1lib in -lX11; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
14622 # filter duplicates
14623 for cf_add_1lib in $cf_add_0lib; do
14624 for cf_add_2lib in $cf_add_libs; do
14625 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
14626 cf_add_1lib=
14627 break
14628 fi
14629 done
14630 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
14631 done
14632 LIBS="$cf_add_libs"
14633
14634 fi
14635
14636 fi
14637
14638 echo "$as_me:14638: checking for XtAppInitialize" >&5
14639 echo $ECHO_N "checking for XtAppInitialize... $ECHO_C" >&6
14640 if test "${ac_cv_func_XtAppInitialize+set}" = set; then
14641 echo $ECHO_N "(cached) $ECHO_C" >&6
14642 else
14643 cat >"conftest.$ac_ext" <<_ACEOF
14644 #line 14644 "configure"
14645 #include "confdefs.h"
14646 #define XtAppInitialize autoconf_temporary
14647 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
14648 #undef XtAppInitialize
14649
14650 #ifdef __cplusplus
14651 extern "C"
14652 #endif
14653
14654 /* We use char because int might match the return type of a gcc2
14655 builtin and then its argument prototype would still apply. */
14656 char XtAppInitialize (void);
14657
14658 int
14659 main (void)
14660 {
14661
14662 /* The GNU C library defines stubs for functions which it implements
14663 to always fail with ENOSYS. Some functions are actually named
14664 something starting with __ and the normal name is an alias. */
14665 #if defined (__stub_XtAppInitialize) || defined (__stub___XtAppInitialize)
14666 #error found stub for XtAppInitialize
14667 #endif
14668
14669 return XtAppInitialize ();
14670 ;
14671 return 0;
14672 }
14673 _ACEOF
14674 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
14675 if { (eval echo "$as_me:14675: \"$ac_link\"") >&5
14676 (eval $ac_link) 2>&5
14677 ac_status=$?
14678 echo "$as_me:14678: \$? = $ac_status" >&5
14679 (exit "$ac_status"); } &&
14680 { ac_try='test -s "conftest$ac_exeext"'
14681 { (eval echo "$as_me:14681: \"$ac_try\"") >&5
14682 (eval $ac_try) 2>&5
14683 ac_status=$?
14684 echo "$as_me:14684: \$? = $ac_status" >&5
14685 (exit "$ac_status"); }; }; then
14686 ac_cv_func_XtAppInitialize=yes
14687 else
14688 echo "$as_me: failed program was:" >&5
14689 cat "conftest.$ac_ext" >&5
14690 ac_cv_func_XtAppInitialize=no
14691 fi
14692 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
14693 fi
14694 echo "$as_me:14694: result: $ac_cv_func_XtAppInitialize" >&5
14695 echo "${ECHO_T}$ac_cv_func_XtAppInitialize" >&6
14696 if test "$ac_cv_func_XtAppInitialize" = yes; then
14697 :
14698 else
14699
14700 echo "$as_me:14700: checking for XtAppInitialize in -lXt" >&5
14701 echo $ECHO_N "checking for XtAppInitialize in -lXt... $ECHO_C" >&6
14702 if test "${ac_cv_lib_Xt_XtAppInitialize+set}" = set; then
14703 echo $ECHO_N "(cached) $ECHO_C" >&6
14704 else
14705 ac_check_lib_save_LIBS=$LIBS
14706 LIBS="-lXt $LIBS"
14707 cat >"conftest.$ac_ext" <<_ACEOF
14708 #line 14708 "configure"
14709 #include "confdefs.h"
14710
14711 /* Override any gcc2 internal prototype to avoid an error. */
14712 #ifdef __cplusplus
14713 extern "C"
14714 #endif
14715 /* We use char because int might match the return type of a gcc2
14716 builtin and then its argument prototype would still apply. */
14717 char XtAppInitialize ();
14718 int
14719 main (void)
14720 {
14721 XtAppInitialize ();
14722 ;
14723 return 0;
14724 }
14725 _ACEOF
14726 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
14727 if { (eval echo "$as_me:14727: \"$ac_link\"") >&5
14728 (eval $ac_link) 2>&5
14729 ac_status=$?
14730 echo "$as_me:14730: \$? = $ac_status" >&5
14731 (exit "$ac_status"); } &&
14732 { ac_try='test -s "conftest$ac_exeext"'
14733 { (eval echo "$as_me:14733: \"$ac_try\"") >&5
14734 (eval $ac_try) 2>&5
14735 ac_status=$?
14736 echo "$as_me:14736: \$? = $ac_status" >&5
14737 (exit "$ac_status"); }; }; then
14738 ac_cv_lib_Xt_XtAppInitialize=yes
14739 else
14740 echo "$as_me: failed program was:" >&5
14741 cat "conftest.$ac_ext" >&5
14742 ac_cv_lib_Xt_XtAppInitialize=no
14743 fi
14744 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
14745 LIBS=$ac_check_lib_save_LIBS
14746 fi
14747 echo "$as_me:14747: result: $ac_cv_lib_Xt_XtAppInitialize" >&5
14748 echo "${ECHO_T}$ac_cv_lib_Xt_XtAppInitialize" >&6
14749 if test "$ac_cv_lib_Xt_XtAppInitialize" = yes; then
14750
14751 cat >>confdefs.h <<\EOF
14752 #define HAVE_LIBXT 1
14753 EOF
14754
14755 cf_have_X_LIBS=Xt
14756 LIBS="-lXt $LIBS"
14757 fi
14758
14759 fi
14760
14761 fi
14762
14763 if test "$cf_have_X_LIBS" = no ; then
14764 { echo "$as_me:14764: WARNING: Unable to successfully link X Toolkit library (-lXt) with
14765 test program. You will have to check and add the proper libraries by hand
14766 to makefile." >&5
14767 echo "$as_me: WARNING: Unable to successfully link X Toolkit library (-lXt) with
14768 test program. You will have to check and add the proper libraries by hand
14769 to makefile." >&2;}
14770 fi
14771
14772 cf_x_athena_root=$cf_x_athena
14773 cf_x_athena_inc=""
14774
14775 for cf_path in default \
14776 /usr/contrib/X11R6 \
14777 /usr/contrib/X11R5 \
14778 /usr/lib/X11R5 \
14779 /usr/local
14780 do
14781 if test -z "$cf_x_athena_inc" ; then
14782
14783 cf_save_LIBS_CF_X_ATHENA_CPPFLAGS="$LIBS"
14784 cf_save_CFLAGS_CF_X_ATHENA_CPPFLAGS="$CFLAGS"
14785 cf_save_CPPFLAGS_CF_X_ATHENA_CPPFLAGS="$CPPFLAGS"
14786 LIBS="$LIBS ${X_PRE_LIBS} ${X_LIBS} ${X_EXTRA_LIBS}"
14787 for cf_X_CFLAGS in $X_CFLAGS
14788 do
14789 case "x$cf_X_CFLAGS" in
14790 x-[IUD]*)
14791 CPPFLAGS="$CPPFLAGS $cf_X_CFLAGS"
14792 ;;
14793 *)
14794 CFLAGS="$CFLAGS $cf_X_CFLAGS"
14795 ;;
14796 esac
14797 done
14798
14799 cf_test=X11/$cf_x_athena_root/SimpleMenu.h
14800 if test "$cf_path" != default ; then
14801
14802 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
14803 CPPFLAGS="${CPPFLAGS}-I$cf_path/include"
14804
14805 echo "$as_me:14805: checking for $cf_test in $cf_path" >&5
14806 echo $ECHO_N "checking for $cf_test in $cf_path... $ECHO_C" >&6
14807 else
14808 echo "$as_me:14808: checking for $cf_test" >&5
14809 echo $ECHO_N "checking for $cf_test... $ECHO_C" >&6
14810 fi
14811 cat >"conftest.$ac_ext" <<_ACEOF
14812 #line 14812 "configure"
14813 #include "confdefs.h"
14814
14815 #include <X11/Intrinsic.h>
14816 #include <$cf_test>
14817 int
14818 main (void)
14819 {
14820
14821 ;
14822 return 0;
14823 }
14824 _ACEOF
14825 rm -f "conftest.$ac_objext"
14826 if { (eval echo "$as_me:14826: \"$ac_compile\"") >&5
14827 (eval $ac_compile) 2>&5
14828 ac_status=$?
14829 echo "$as_me:14829: \$? = $ac_status" >&5
14830 (exit "$ac_status"); } &&
14831 { ac_try='test -s "conftest.$ac_objext"'
14832 { (eval echo "$as_me:14832: \"$ac_try\"") >&5
14833 (eval $ac_try) 2>&5
14834 ac_status=$?
14835 echo "$as_me:14835: \$? = $ac_status" >&5
14836 (exit "$ac_status"); }; }; then
14837 cf_result=yes
14838 else
14839 echo "$as_me: failed program was:" >&5
14840 cat "conftest.$ac_ext" >&5
14841 cf_result=no
14842 fi
14843 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14844 echo "$as_me:14844: result: $cf_result" >&5
14845 echo "${ECHO_T}$cf_result" >&6
14846
14847 LIBS="$cf_save_LIBS_CF_X_ATHENA_CPPFLAGS"
14848 CFLAGS="$cf_save_CFLAGS_CF_X_ATHENA_CPPFLAGS"
14849 CPPFLAGS="$cf_save_CPPFLAGS_CF_X_ATHENA_CPPFLAGS"
14850
14851 if test "$cf_result" = yes ; then
14852 test "$cf_path" = default && cf_x_athena_inc=default
14853 test "$cf_path" != default && cf_x_athena_inc="$cf_path/include"
14854 break
14855 fi
14856 fi
14857 done
14858
14859 if test -z "$cf_x_athena_inc" ; then
14860 { echo "$as_me:14860: WARNING: Unable to find Athena header files" >&5
14861 echo "$as_me: WARNING: Unable to find Athena header files" >&2;}
14862 elif test "$cf_x_athena_inc" != default ; then
14863
14864 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
14865 CPPFLAGS="${CPPFLAGS}-I$cf_x_athena_inc"
14866
14867 fi
14868
14869 cf_x_athena_root=$cf_x_athena
14870 cf_x_athena_lib=""
14871
14872 for cf_path in default \
14873 /usr/contrib/X11R6 \
14874 /usr/contrib/X11R5 \
14875 /usr/lib/X11R5 \
14876 /usr/local
14877 do
14878 for cf_lib in \
14879 ${cf_x_athena_root} \
14880 ${cf_x_athena_root}7 \
14881 ${cf_x_athena_root}6
14882 do
14883 for cf_libs in \
14884 "-l$cf_lib -lXmu" \
14885 "-l$cf_lib -lXpm -lXmu" \
14886 "-l${cf_lib}_s -lXmu_s"
14887 do
14888 test -n "$cf_x_athena_lib" && break
14889
14890 cf_save_LIBS_CF_X_ATHENA_LIBS="$LIBS"
14891 cf_save_CFLAGS_CF_X_ATHENA_LIBS="$CFLAGS"
14892 cf_save_CPPFLAGS_CF_X_ATHENA_LIBS="$CPPFLAGS"
14893 LIBS="$LIBS ${X_PRE_LIBS} ${X_LIBS} ${X_EXTRA_LIBS}"
14894 for cf_X_CFLAGS in $X_CFLAGS
14895 do
14896 case "x$cf_X_CFLAGS" in
14897 x-[IUD]*)
14898 CPPFLAGS="$CPPFLAGS $cf_X_CFLAGS"
14899 ;;
14900 *)
14901 CFLAGS="$CFLAGS $cf_X_CFLAGS"
14902 ;;
14903 esac
14904 done
14905
14906 cf_test=XawSimpleMenuAddGlobalActions
14907 test "$cf_path" != default && cf_libs="-L$cf_path/lib $cf_libs"
14908
14909 cf_add_libs="$LIBS"
14910 # reverse order
14911 cf_add_0lib=
14912 for cf_add_1lib in $cf_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
14913 # filter duplicates
14914 for cf_add_1lib in $cf_add_0lib; do
14915 for cf_add_2lib in $cf_add_libs; do
14916 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
14917 cf_add_1lib=
14918 break
14919 fi
14920 done
14921 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
14922 done
14923 LIBS="$cf_add_libs"
14924
14925 echo "$as_me:14925: checking for $cf_test in $cf_libs" >&5
14926 echo $ECHO_N "checking for $cf_test in $cf_libs... $ECHO_C" >&6
14927 cat >"conftest.$ac_ext" <<_ACEOF
14928 #line 14928 "configure"
14929 #include "confdefs.h"
14930
14931 #include <X11/Intrinsic.h>
14932 #include <X11/$cf_x_athena_root/SimpleMenu.h>
14933
14934 int
14935 main (void)
14936 {
14937
14938 $cf_test((XtAppContext) 0)
14939 ;
14940 return 0;
14941 }
14942 _ACEOF
14943 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
14944 if { (eval echo "$as_me:14944: \"$ac_link\"") >&5
14945 (eval $ac_link) 2>&5
14946 ac_status=$?
14947 echo "$as_me:14947: \$? = $ac_status" >&5
14948 (exit "$ac_status"); } &&
14949 { ac_try='test -s "conftest$ac_exeext"'
14950 { (eval echo "$as_me:14950: \"$ac_try\"") >&5
14951 (eval $ac_try) 2>&5
14952 ac_status=$?
14953 echo "$as_me:14953: \$? = $ac_status" >&5
14954 (exit "$ac_status"); }; }; then
14955 cf_result=yes
14956 else
14957 echo "$as_me: failed program was:" >&5
14958 cat "conftest.$ac_ext" >&5
14959 cf_result=no
14960 fi
14961 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
14962 echo "$as_me:14962: result: $cf_result" >&5
14963 echo "${ECHO_T}$cf_result" >&6
14964
14965 LIBS="$cf_save_LIBS_CF_X_ATHENA_LIBS"
14966 CFLAGS="$cf_save_CFLAGS_CF_X_ATHENA_LIBS"
14967 CPPFLAGS="$cf_save_CPPFLAGS_CF_X_ATHENA_LIBS"
14968
14969 if test "$cf_result" = yes ; then
14970 cf_x_athena_lib="$cf_libs"
14971 break
14972 fi
14973 done # cf_libs
14974 test -n "$cf_x_athena_lib" && break
14975 done # cf_lib
14976 done
14977
14978 if test -z "$cf_x_athena_lib" ; then
14979 { { echo "$as_me:14979: error: Unable to successfully link Athena library (-l$cf_x_athena_root) with test program" >&5
14980 echo "$as_me: error: Unable to successfully link Athena library (-l$cf_x_athena_root) with test program" >&2;}
14981 { (exit 1); exit 1; }; }
14982 fi
14983
14984 cf_add_libs="$LIBS"
14985 # reverse order
14986 cf_add_0lib=
14987 for cf_add_1lib in $cf_x_athena_lib; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
14988 # filter duplicates
14989 for cf_add_1lib in $cf_add_0lib; do
14990 for cf_add_2lib in $cf_add_libs; do
14991 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
14992 cf_add_1lib=
14993 break
14994 fi
14995 done
14996 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
14997 done
14998 LIBS="$cf_add_libs"
14999
15000 cf_x_athena_LIBS=`echo "HAVE_LIB_$cf_x_athena" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15001
15002 cat >>confdefs.h <<EOF
15003 #define $cf_x_athena_LIBS 1
15004 EOF
15005
15006 fi
15007
15008 for ac_header in X11/Xpoll.h
15009 do
15010 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15011 echo "$as_me:15011: checking for $ac_header" >&5
15012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15013 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15014 echo $ECHO_N "(cached) $ECHO_C" >&6
15015 else
15016 cat >"conftest.$ac_ext" <<_ACEOF
15017 #line 15017 "configure"
15018 #include "confdefs.h"
15019 #include <$ac_header>
15020 _ACEOF
15021 if { (eval echo "$as_me:15021: \"$ac_cpp "conftest.$ac_ext"\"") >&5
15022 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
15023 ac_status=$?
15024 $EGREP -v '^ *\+' conftest.er1 >conftest.err
15025 rm -f conftest.er1
15026 cat conftest.err >&5
15027 echo "$as_me:15027: \$? = $ac_status" >&5
15028 (exit "$ac_status"); } >/dev/null; then
15029 if test -s conftest.err; then
15030 ac_cpp_err=$ac_c_preproc_warn_flag
15031 else
15032 ac_cpp_err=
15033 fi
15034 else
15035 ac_cpp_err=yes
15036 fi
15037 if test -z "$ac_cpp_err"; then
15038 eval "$as_ac_Header=yes"
15039 else
15040 echo "$as_me: failed program was:" >&5
15041 cat "conftest.$ac_ext" >&5
15042 eval "$as_ac_Header=no"
15043 fi
15044 rm -f conftest.err "conftest.$ac_ext"
15045 fi
15046 echo "$as_me:15046: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
15047 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
15048 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
15049 cat >>confdefs.h <<EOF
15050 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15051 EOF
15052
15053 fi
15054 done
15055
15056 echo "$as_me:15056: checking for declaration of fd_set" >&5
15057 echo $ECHO_N "checking for declaration of fd_set... $ECHO_C" >&6
15058 if test "${cf_cv_type_fd_set+set}" = set; then
15059 echo $ECHO_N "(cached) $ECHO_C" >&6
15060 else
15061
15062 echo "${as_me:-configure}:15062: testing sys/types alone ..." 1>&5
15063
15064 cat >"conftest.$ac_ext" <<_ACEOF
15065 #line 15065 "configure"
15066 #include "confdefs.h"
15067
15068 #include <sys/types.h>
15069 int
15070 main (void)
15071 {
15072 fd_set x; (void)x
15073 ;
15074 return 0;
15075 }
15076 _ACEOF
15077 rm -f "conftest.$ac_objext"
15078 if { (eval echo "$as_me:15078: \"$ac_compile\"") >&5
15079 (eval $ac_compile) 2>&5
15080 ac_status=$?
15081 echo "$as_me:15081: \$? = $ac_status" >&5
15082 (exit "$ac_status"); } &&
15083 { ac_try='test -s "conftest.$ac_objext"'
15084 { (eval echo "$as_me:15084: \"$ac_try\"") >&5
15085 (eval $ac_try) 2>&5
15086 ac_status=$?
15087 echo "$as_me:15087: \$? = $ac_status" >&5
15088 (exit "$ac_status"); }; }; then
15089 cf_cv_type_fd_set=sys/types.h
15090 else
15091 echo "$as_me: failed program was:" >&5
15092 cat "conftest.$ac_ext" >&5
15093
15094 echo "${as_me:-configure}:15094: testing X11/Xpoll.h ..." 1>&5
15095
15096 cat >"conftest.$ac_ext" <<_ACEOF
15097 #line 15097 "configure"
15098 #include "confdefs.h"
15099
15100 #ifdef HAVE_X11_XPOLL_H
15101 #include <X11/Xpoll.h>
15102 #endif
15103 int
15104 main (void)
15105 {
15106 fd_set x; (void)x
15107 ;
15108 return 0;
15109 }
15110 _ACEOF
15111 rm -f "conftest.$ac_objext"
15112 if { (eval echo "$as_me:15112: \"$ac_compile\"") >&5
15113 (eval $ac_compile) 2>&5
15114 ac_status=$?
15115 echo "$as_me:15115: \$? = $ac_status" >&5
15116 (exit "$ac_status"); } &&
15117 { ac_try='test -s "conftest.$ac_objext"'
15118 { (eval echo "$as_me:15118: \"$ac_try\"") >&5
15119 (eval $ac_try) 2>&5
15120 ac_status=$?
15121 echo "$as_me:15121: \$? = $ac_status" >&5
15122 (exit "$ac_status"); }; }; then
15123 cf_cv_type_fd_set=X11/Xpoll.h
15124 else
15125 echo "$as_me: failed program was:" >&5
15126 cat "conftest.$ac_ext" >&5
15127
15128 echo "${as_me:-configure}:15128: testing sys/select.h ..." 1>&5
15129
15130 cat >"conftest.$ac_ext" <<_ACEOF
15131 #line 15131 "configure"
15132 #include "confdefs.h"
15133
15134 #include <sys/types.h>
15135 #include <sys/select.h>
15136 int
15137 main (void)
15138 {
15139 fd_set x; (void)x
15140 ;
15141 return 0;
15142 }
15143 _ACEOF
15144 rm -f "conftest.$ac_objext"
15145 if { (eval echo "$as_me:15145: \"$ac_compile\"") >&5
15146 (eval $ac_compile) 2>&5
15147 ac_status=$?
15148 echo "$as_me:15148: \$? = $ac_status" >&5
15149 (exit "$ac_status"); } &&
15150 { ac_try='test -s "conftest.$ac_objext"'
15151 { (eval echo "$as_me:15151: \"$ac_try\"") >&5
15152 (eval $ac_try) 2>&5
15153 ac_status=$?
15154 echo "$as_me:15154: \$? = $ac_status" >&5
15155 (exit "$ac_status"); }; }; then
15156 cf_cv_type_fd_set=sys/select.h
15157 else
15158 echo "$as_me: failed program was:" >&5
15159 cat "conftest.$ac_ext" >&5
15160 cf_cv_type_fd_set=unknown
15161 fi
15162 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
15163 fi
15164 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
15165 fi
15166 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
15167 fi
15168 echo "$as_me:15168: result: $cf_cv_type_fd_set" >&5
15169 echo "${ECHO_T}$cf_cv_type_fd_set" >&6
15170 if test $cf_cv_type_fd_set = sys/select.h ; then
15171
15172 cat >>confdefs.h <<\EOF
15173 #define USE_SYS_SELECT_H 1
15174 EOF
15175
15176 fi
15177
15178 echo "$as_me:15178: checking for declaration of fd_mask" >&5
15179 echo $ECHO_N "checking for declaration of fd_mask... $ECHO_C" >&6
15180 if test "${cf_cv_type_fd_mask+set}" = set; then
15181 echo $ECHO_N "(cached) $ECHO_C" >&6
15182 else
15183
15184 if test x$cf_cv_type_fd_set = xX11/Xpoll.h ; then
15185 cat >"conftest.$ac_ext" <<_ACEOF
15186 #line 15186 "configure"
15187 #include "confdefs.h"
15188
15189 #include <X11/Xpoll.h>
15190 int
15191 main (void)
15192 {
15193 fd_mask x
15194 ;
15195 return 0;
15196 }
15197 _ACEOF
15198 rm -f "conftest.$ac_objext"
15199 if { (eval echo "$as_me:15199: \"$ac_compile\"") >&5
15200 (eval $ac_compile) 2>&5
15201 ac_status=$?
15202 echo "$as_me:15202: \$? = $ac_status" >&5
15203 (exit "$ac_status"); } &&
15204 { ac_try='test -s "conftest.$ac_objext"'
15205 { (eval echo "$as_me:15205: \"$ac_try\"") >&5
15206 (eval $ac_try) 2>&5
15207 ac_status=$?
15208 echo "$as_me:15208: \$? = $ac_status" >&5
15209 (exit "$ac_status"); }; }; then
15210 :
15211 else
15212 echo "$as_me: failed program was:" >&5
15213 cat "conftest.$ac_ext" >&5
15214
15215 echo "${as_me:-configure}:15215: testing if we must define CSRG_BASED ..." 1>&5
15216
15217 # Xosdefs.h on Mac OS X may not define this (but it should).
15218 cat >"conftest.$ac_ext" <<_ACEOF
15219 #line 15219 "configure"
15220 #include "confdefs.h"
15221
15222 #define CSRG_BASED
15223 #include <X11/Xpoll.h>
15224 int
15225 main (void)
15226 {
15227 fd_mask x
15228 ;
15229 return 0;
15230 }
15231 _ACEOF
15232 rm -f "conftest.$ac_objext"
15233 if { (eval echo "$as_me:15233: \"$ac_compile\"") >&5
15234 (eval $ac_compile) 2>&5
15235 ac_status=$?
15236 echo "$as_me:15236: \$? = $ac_status" >&5
15237 (exit "$ac_status"); } &&
15238 { ac_try='test -s "conftest.$ac_objext"'
15239 { (eval echo "$as_me:15239: \"$ac_try\"") >&5
15240 (eval $ac_try) 2>&5
15241 ac_status=$?
15242 echo "$as_me:15242: \$? = $ac_status" >&5
15243 (exit "$ac_status"); }; }; then
15244 cf_cv_type_fd_mask=CSRG_BASED
15245 else
15246 echo "$as_me: failed program was:" >&5
15247 cat "conftest.$ac_ext" >&5
15248 fi
15249 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
15250 fi
15251 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
15252 else
15253 cf_cv_type_fd_mask=$cf_cv_type_fd_set
15254 fi
15255
15256 fi
15257 echo "$as_me:15257: result: $cf_cv_type_fd_mask" >&5
15258 echo "${ECHO_T}$cf_cv_type_fd_mask" >&6
15259 if test x$cf_cv_type_fd_mask = xCSRG_BASED ; then
15260
15261 cat >>confdefs.h <<\EOF
15262 #define CSRG_BASED 1
15263 EOF
15264
15265 fi
15266
15267 echo "$as_me:15267: checking for IRIX 6.5 baud-rate redefinitions" >&5
15268 echo $ECHO_N "checking for IRIX 6.5 baud-rate redefinitions... $ECHO_C" >&6
15269 if test "${cf_cv_termio_c_ispeed+set}" = set; then
15270 echo $ECHO_N "(cached) $ECHO_C" >&6
15271 else
15272
15273 cat >"conftest.$ac_ext" <<_ACEOF
15274 #line 15274 "configure"
15275 #include "confdefs.h"
15276
15277 #include <sys/types.h>
15278 #include <sys/termio.h>
15279 int
15280 main (void)
15281 {
15282
15283 struct termio foo;
15284 foo.c_ispeed = B38400;
15285 foo.c_ospeed = B9600;
15286 (void)foo;
15287
15288 ;
15289 return 0;
15290 }
15291 _ACEOF
15292 rm -f "conftest.$ac_objext"
15293 if { (eval echo "$as_me:15293: \"$ac_compile\"") >&5
15294 (eval $ac_compile) 2>&5
15295 ac_status=$?
15296 echo "$as_me:15296: \$? = $ac_status" >&5
15297 (exit "$ac_status"); } &&
15298 { ac_try='test -s "conftest.$ac_objext"'
15299 { (eval echo "$as_me:15299: \"$ac_try\"") >&5
15300 (eval $ac_try) 2>&5
15301 ac_status=$?
15302 echo "$as_me:15302: \$? = $ac_status" >&5
15303 (exit "$ac_status"); }; }; then
15304 cf_cv_termio_c_ispeed=yes
15305
15306 else
15307 echo "$as_me: failed program was:" >&5
15308 cat "conftest.$ac_ext" >&5
15309 cf_cv_termio_c_ispeed=no
15310 fi
15311 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
15312
15313 fi
15314 echo "$as_me:15314: result: $cf_cv_termio_c_ispeed" >&5
15315 echo "${ECHO_T}$cf_cv_termio_c_ispeed" >&6
15316 test "$cf_cv_termio_c_ispeed" = yes &&
15317 cat >>confdefs.h <<\EOF
15318 #define HAVE_TERMIO_C_ISPEED 1
15319 EOF
15320
15321 echo "$as_me:15321: checking for termios type tcflag_t" >&5
15322 echo $ECHO_N "checking for termios type tcflag_t... $ECHO_C" >&6
15323 if test "${cf_cv_havetype_tcflag_t+set}" = set; then
15324 echo $ECHO_N "(cached) $ECHO_C" >&6
15325 else
15326
15327 cat >"conftest.$ac_ext" <<_ACEOF
15328 #line 15328 "configure"
15329 #include "confdefs.h"
15330 #include <termios.h>
15331 int
15332 main (void)
15333 {
15334
15335 tcflag_t x = 0; (void)x
15336 ;
15337 return 0;
15338 }
15339 _ACEOF
15340 rm -f "conftest.$ac_objext"
15341 if { (eval echo "$as_me:15341: \"$ac_compile\"") >&5
15342 (eval $ac_compile) 2>&5
15343 ac_status=$?
15344 echo "$as_me:15344: \$? = $ac_status" >&5
15345 (exit "$ac_status"); } &&
15346 { ac_try='test -s "conftest.$ac_objext"'
15347 { (eval echo "$as_me:15347: \"$ac_try\"") >&5
15348 (eval $ac_try) 2>&5
15349 ac_status=$?
15350 echo "$as_me:15350: \$? = $ac_status" >&5
15351 (exit "$ac_status"); }; }; then
15352 cf_cv_havetype_tcflag_t=yes
15353 else
15354 echo "$as_me: failed program was:" >&5
15355 cat "conftest.$ac_ext" >&5
15356 cf_cv_havetype_tcflag_t=no
15357 fi
15358 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
15359
15360 fi
15361 echo "$as_me:15361: result: $cf_cv_havetype_tcflag_t" >&5
15362 echo "${ECHO_T}$cf_cv_havetype_tcflag_t" >&6
15363 test "$cf_cv_havetype_tcflag_t" = no &&
15364 cat >>confdefs.h <<\EOF
15365 #define tcflag_t unsigned long
15366 EOF
15367
15368 echo "$as_me:15368: checking for termios type speed_t" >&5
15369 echo $ECHO_N "checking for termios type speed_t... $ECHO_C" >&6
15370 if test "${cf_cv_havetype_speed_t+set}" = set; then
15371 echo $ECHO_N "(cached) $ECHO_C" >&6
15372 else
15373
15374 cat >"conftest.$ac_ext" <<_ACEOF
15375 #line 15375 "configure"
15376 #include "confdefs.h"
15377 #include <termios.h>
15378 int
15379 main (void)
15380 {
15381
15382 speed_t x = 0; (void)x
15383 ;
15384 return 0;
15385 }
15386 _ACEOF
15387 rm -f "conftest.$ac_objext"
15388 if { (eval echo "$as_me:15388: \"$ac_compile\"") >&5
15389 (eval $ac_compile) 2>&5
15390 ac_status=$?
15391 echo "$as_me:15391: \$? = $ac_status" >&5
15392 (exit "$ac_status"); } &&
15393 { ac_try='test -s "conftest.$ac_objext"'
15394 { (eval echo "$as_me:15394: \"$ac_try\"") >&5
15395 (eval $ac_try) 2>&5
15396 ac_status=$?
15397 echo "$as_me:15397: \$? = $ac_status" >&5
15398 (exit "$ac_status"); }; }; then
15399 cf_cv_havetype_speed_t=yes
15400 else
15401 echo "$as_me: failed program was:" >&5
15402 cat "conftest.$ac_ext" >&5
15403 cf_cv_havetype_speed_t=no
15404 fi
15405 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
15406
15407 fi
15408 echo "$as_me:15408: result: $cf_cv_havetype_speed_t" >&5
15409 echo "${ECHO_T}$cf_cv_havetype_speed_t" >&6
15410 test "$cf_cv_havetype_speed_t" = no &&
15411 cat >>confdefs.h <<\EOF
15412 #define speed_t unsigned short
15413 EOF
15414
15415 echo "$as_me:15415: checking for termios type cc_t" >&5
15416 echo $ECHO_N "checking for termios type cc_t... $ECHO_C" >&6
15417 if test "${cf_cv_havetype_cc_t+set}" = set; then
15418 echo $ECHO_N "(cached) $ECHO_C" >&6
15419 else
15420
15421 cat >"conftest.$ac_ext" <<_ACEOF
15422 #line 15422 "configure"
15423 #include "confdefs.h"
15424 #include <termios.h>
15425 int
15426 main (void)
15427 {
15428
15429 cc_t x = 0; (void)x
15430 ;
15431 return 0;
15432 }
15433 _ACEOF
15434 rm -f "conftest.$ac_objext"
15435 if { (eval echo "$as_me:15435: \"$ac_compile\"") >&5
15436 (eval $ac_compile) 2>&5
15437 ac_status=$?
15438 echo "$as_me:15438: \$? = $ac_status" >&5
15439 (exit "$ac_status"); } &&
15440 { ac_try='test -s "conftest.$ac_objext"'
15441 { (eval echo "$as_me:15441: \"$ac_try\"") >&5
15442 (eval $ac_try) 2>&5
15443 ac_status=$?
15444 echo "$as_me:15444: \$? = $ac_status" >&5
15445 (exit "$ac_status"); }; }; then
15446 cf_cv_havetype_cc_t=yes
15447 else
15448 echo "$as_me: failed program was:" >&5
15449 cat "conftest.$ac_ext" >&5
15450 cf_cv_havetype_cc_t=no
15451 fi
15452 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
15453
15454 fi
15455 echo "$as_me:15455: result: $cf_cv_havetype_cc_t" >&5
15456 echo "${ECHO_T}$cf_cv_havetype_cc_t" >&6
15457 test "$cf_cv_havetype_cc_t" = no &&
15458 cat >>confdefs.h <<\EOF
15459 #define cc_t unsigned char
15460 EOF
15461
15462 # If we notice Xcursor, there is a workaround needed.
15463 echo "$as_me:15463: checking for XcursorGetTheme in -lXcursor" >&5
15464 echo $ECHO_N "checking for XcursorGetTheme in -lXcursor... $ECHO_C" >&6
15465 if test "${ac_cv_lib_Xcursor_XcursorGetTheme+set}" = set; then
15466 echo $ECHO_N "(cached) $ECHO_C" >&6
15467 else
15468 ac_check_lib_save_LIBS=$LIBS
15469 LIBS="-lXcursor $LIBS"
15470 cat >"conftest.$ac_ext" <<_ACEOF
15471 #line 15471 "configure"
15472 #include "confdefs.h"
15473
15474 /* Override any gcc2 internal prototype to avoid an error. */
15475 #ifdef __cplusplus
15476 extern "C"
15477 #endif
15478 /* We use char because int might match the return type of a gcc2
15479 builtin and then its argument prototype would still apply. */
15480 char XcursorGetTheme ();
15481 int
15482 main (void)
15483 {
15484 XcursorGetTheme ();
15485 ;
15486 return 0;
15487 }
15488 _ACEOF
15489 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
15490 if { (eval echo "$as_me:15490: \"$ac_link\"") >&5
15491 (eval $ac_link) 2>&5
15492 ac_status=$?
15493 echo "$as_me:15493: \$? = $ac_status" >&5
15494 (exit "$ac_status"); } &&
15495 { ac_try='test -s "conftest$ac_exeext"'
15496 { (eval echo "$as_me:15496: \"$ac_try\"") >&5
15497 (eval $ac_try) 2>&5
15498 ac_status=$?
15499 echo "$as_me:15499: \$? = $ac_status" >&5
15500 (exit "$ac_status"); }; }; then
15501 ac_cv_lib_Xcursor_XcursorGetTheme=yes
15502 else
15503 echo "$as_me: failed program was:" >&5
15504 cat "conftest.$ac_ext" >&5
15505 ac_cv_lib_Xcursor_XcursorGetTheme=no
15506 fi
15507 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
15508 LIBS=$ac_check_lib_save_LIBS
15509 fi
15510 echo "$as_me:15510: result: $ac_cv_lib_Xcursor_XcursorGetTheme" >&5
15511 echo "${ECHO_T}$ac_cv_lib_Xcursor_XcursorGetTheme" >&6
15512 if test "$ac_cv_lib_Xcursor_XcursorGetTheme" = yes; then
15513
15514 cat >>confdefs.h <<\EOF
15515 #define HAVE_LIB_XCURSOR 1
15516 EOF
15517
15518 fi
15519
15520 LIBS="$LIBS $X_EXTRA_LIBS"
15521
15522 for ac_header in \
15523 stropts.h \
15524
15525 do
15526 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15527 echo "$as_me:15527: checking for $ac_header" >&5
15528 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15529 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15530 echo $ECHO_N "(cached) $ECHO_C" >&6
15531 else
15532 cat >"conftest.$ac_ext" <<_ACEOF
15533 #line 15533 "configure"
15534 #include "confdefs.h"
15535 #include <$ac_header>
15536 _ACEOF
15537 if { (eval echo "$as_me:15537: \"$ac_cpp "conftest.$ac_ext"\"") >&5
15538 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
15539 ac_status=$?
15540 $EGREP -v '^ *\+' conftest.er1 >conftest.err
15541 rm -f conftest.er1
15542 cat conftest.err >&5
15543 echo "$as_me:15543: \$? = $ac_status" >&5
15544 (exit "$ac_status"); } >/dev/null; then
15545 if test -s conftest.err; then
15546 ac_cpp_err=$ac_c_preproc_warn_flag
15547 else
15548 ac_cpp_err=
15549 fi
15550 else
15551 ac_cpp_err=yes
15552 fi
15553 if test -z "$ac_cpp_err"; then
15554 eval "$as_ac_Header=yes"
15555 else
15556 echo "$as_me: failed program was:" >&5
15557 cat "conftest.$ac_ext" >&5
15558 eval "$as_ac_Header=no"
15559 fi
15560 rm -f conftest.err "conftest.$ac_ext"
15561 fi
15562 echo "$as_me:15562: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
15563 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
15564 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
15565 cat >>confdefs.h <<EOF
15566 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15567 EOF
15568
15569 fi
15570 done
15571
15572 cf_func_grantpt="grantpt ptsname"
15573 cf_prefer_openpt=no
15574 case $host_os in
15575 (darwin[0-9].*)
15576 ;;
15577 (openbsd[0-9].*)
15578 # The POSIX entrypoints exist, but have never worked.
15579 ;;
15580 (linux*)
15581 cf_func_grantpt="$cf_func_grantpt posix_openpt"
15582 cf_prefer_openpt=yes
15583 ;;
15584 (*)
15585 cf_func_grantpt="$cf_func_grantpt posix_openpt"
15586 ;;
15587 esac
15588
15589 for ac_func in $cf_func_grantpt
15590 do
15591 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15592 echo "$as_me:15592: checking for $ac_func" >&5
15593 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15594 if eval "test \"\${$as_ac_var+set}\" = set"; then
15595 echo $ECHO_N "(cached) $ECHO_C" >&6
15596 else
15597 cat >"conftest.$ac_ext" <<_ACEOF
15598 #line 15598 "configure"
15599 #include "confdefs.h"
15600 #define $ac_func autoconf_temporary
15601 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
15602 #undef $ac_func
15603
15604 #ifdef __cplusplus
15605 extern "C"
15606 #endif
15607
15608 /* We use char because int might match the return type of a gcc2
15609 builtin and then its argument prototype would still apply. */
15610 char $ac_func (void);
15611
15612 int
15613 main (void)
15614 {
15615
15616 /* The GNU C library defines stubs for functions which it implements
15617 to always fail with ENOSYS. Some functions are actually named
15618 something starting with __ and the normal name is an alias. */
15619 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15620 #error found stub for $ac_func
15621 #endif
15622
15623 return $ac_func ();
15624 ;
15625 return 0;
15626 }
15627 _ACEOF
15628 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
15629 if { (eval echo "$as_me:15629: \"$ac_link\"") >&5
15630 (eval $ac_link) 2>&5
15631 ac_status=$?
15632 echo "$as_me:15632: \$? = $ac_status" >&5
15633 (exit "$ac_status"); } &&
15634 { ac_try='test -s "conftest$ac_exeext"'
15635 { (eval echo "$as_me:15635: \"$ac_try\"") >&5
15636 (eval $ac_try) 2>&5
15637 ac_status=$?
15638 echo "$as_me:15638: \$? = $ac_status" >&5
15639 (exit "$ac_status"); }; }; then
15640 eval "$as_ac_var=yes"
15641 else
15642 echo "$as_me: failed program was:" >&5
15643 cat "conftest.$ac_ext" >&5
15644 eval "$as_ac_var=no"
15645 fi
15646 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
15647 fi
15648 echo "$as_me:15648: result: `eval echo '${'"$as_ac_var"'}'`" >&5
15649 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
15650 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
15651 cat >>confdefs.h <<EOF
15652 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15653 EOF
15654
15655 fi
15656 done
15657
15658 cf_grantpt_opts=
15659 if test "x$ac_cv_func_grantpt" = "xyes" ; then
15660 echo "$as_me:15660: checking if grantpt really works" >&5
15661 echo $ECHO_N "checking if grantpt really works... $ECHO_C" >&6
15662 cat >"conftest.$ac_ext" <<_ACEOF
15663 #line 15663 "configure"
15664 #include "confdefs.h"
15665
15666 #include <stdlib.h>
15667 #include <stdio.h>
15668 #include <termios.h>
15669 #include <unistd.h>
15670 #include <signal.h>
15671 #include <fcntl.h>
15672 #include <errno.h>
15673
15674 #ifndef HAVE_POSIX_OPENPT
15675 #undef posix_openpt
15676 #define posix_openpt(mode) open("/dev/ptmx", mode)
15677 #endif
15678
15679 #ifdef HAVE_STROPTS_H
15680 #include <stropts.h>
15681 #endif
15682
15683 static void failed(int code)
15684 {
15685 perror("conftest");
15686 exit(code);
15687 }
15688
15689 static void my_timeout(int sig)
15690 {
15691 (void)sig;
15692 exit(99);
15693 }
15694
15695 int
15696 main (void)
15697 {
15698
15699 int code = 0;
15700 int rc;
15701 int pty;
15702 int tty;
15703 char *slave;
15704 struct termios tio;
15705
15706 (void)tio;
15707 signal(SIGALRM, my_timeout);
15708
15709 if (alarm(2) == 9)
15710 failed(9);
15711 else if ((pty = posix_openpt(O_RDWR)) < 0)
15712 failed(1);
15713 else if ((rc = grantpt(pty)) < 0)
15714 failed(2);
15715 else if ((rc = unlockpt(pty)) < 0)
15716 failed(3);
15717 else if ((slave = ptsname(pty)) == 0)
15718 failed(4);
15719 #if (CONFTEST == 3) || defined(CONFTEST_isatty)
15720 else if (!isatty(pty))
15721 failed(4);
15722 #endif
15723 #if CONFTEST >= 4
15724 else if ((rc = tcgetattr(pty, &tio)) < 0)
15725 failed(20);
15726 else if ((rc = tcsetattr(pty, TCSAFLUSH, &tio)) < 0)
15727 failed(21);
15728 #endif
15729 /* BSD posix_openpt does not treat pty as a terminal until slave is opened.
15730 * Linux does treat it that way.
15731 */
15732 else if ((tty = open(slave, O_RDWR)) < 0)
15733 failed(5);
15734 #ifdef CONFTEST
15735 #ifdef I_PUSH
15736 #if (CONFTEST == 0) || defined(CONFTEST_ptem)
15737 else if ((rc = ioctl(tty, I_PUSH, "ptem")) < 0)
15738 failed(10);
15739 #endif
15740 #if (CONFTEST == 1) || defined(CONFTEST_ldterm)
15741 else if ((rc = ioctl(tty, I_PUSH, "ldterm")) < 0)
15742 failed(11);
15743 #endif
15744 #if (CONFTEST == 2) || defined(CONFTEST_ttcompat)
15745 else if ((rc = ioctl(tty, I_PUSH, "ttcompat")) < 0)
15746 failed(12);
15747 #endif
15748 #endif /* I_PUSH */
15749 #if CONFTEST >= 5
15750 else if ((rc = tcgetattr(tty, &tio)) < 0)
15751 failed(30);
15752 else if ((rc = tcsetattr(tty, TCSAFLUSH, &tio)) < 0)
15753 failed(31);
15754 #endif
15755 #endif /* CONFTEST */
15756
15757 ${cf_cv_main_return:-return}(code);
15758
15759 ;
15760 return 0;
15761 }
15762 _ACEOF
15763 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
15764 if { (eval echo "$as_me:15764: \"$ac_link\"") >&5
15765 (eval $ac_link) 2>&5
15766 ac_status=$?
15767 echo "$as_me:15767: \$? = $ac_status" >&5
15768 (exit "$ac_status"); } &&
15769 { ac_try='test -s "conftest$ac_exeext"'
15770 { (eval echo "$as_me:15770: \"$ac_try\"") >&5
15771 (eval $ac_try) 2>&5
15772 ac_status=$?
15773 echo "$as_me:15773: \$? = $ac_status" >&5
15774 (exit "$ac_status"); }; }; then
15775
15776 if test "$cross_compiling" = yes; then
15777 ac_cv_func_grantpt=maybe
15778 else
15779 cat >"conftest.$ac_ext" <<_ACEOF
15780 #line 15780 "configure"
15781 #include "confdefs.h"
15782
15783 #include <stdlib.h>
15784 #include <stdio.h>
15785 #include <termios.h>
15786 #include <unistd.h>
15787 #include <signal.h>
15788 #include <fcntl.h>
15789 #include <errno.h>
15790
15791 #ifndef HAVE_POSIX_OPENPT
15792 #undef posix_openpt
15793 #define posix_openpt(mode) open("/dev/ptmx", mode)
15794 #endif
15795
15796 #ifdef HAVE_STROPTS_H
15797 #include <stropts.h>
15798 #endif
15799
15800 static void failed(int code)
15801 {
15802 perror("conftest");
15803 exit(code);
15804 }
15805
15806 static void my_timeout(int sig)
15807 {
15808 (void)sig;
15809 exit(99);
15810 }
15811
15812 int main(void)
15813 {
15814
15815 int code = 0;
15816 int rc;
15817 int pty;
15818 int tty;
15819 char *slave;
15820 struct termios tio;
15821
15822 (void)tio;
15823 signal(SIGALRM, my_timeout);
15824
15825 if (alarm(2) == 9)
15826 failed(9);
15827 else if ((pty = posix_openpt(O_RDWR)) < 0)
15828 failed(1);
15829 else if ((rc = grantpt(pty)) < 0)
15830 failed(2);
15831 else if ((rc = unlockpt(pty)) < 0)
15832 failed(3);
15833 else if ((slave = ptsname(pty)) == 0)
15834 failed(4);
15835 #if (CONFTEST == 3) || defined(CONFTEST_isatty)
15836 else if (!isatty(pty))
15837 failed(4);
15838 #endif
15839 #if CONFTEST >= 4
15840 else if ((rc = tcgetattr(pty, &tio)) < 0)
15841 failed(20);
15842 else if ((rc = tcsetattr(pty, TCSAFLUSH, &tio)) < 0)
15843 failed(21);
15844 #endif
15845 /* BSD posix_openpt does not treat pty as a terminal until slave is opened.
15846 * Linux does treat it that way.
15847 */
15848 else if ((tty = open(slave, O_RDWR)) < 0)
15849 failed(5);
15850 #ifdef CONFTEST
15851 #ifdef I_PUSH
15852 #if (CONFTEST == 0) || defined(CONFTEST_ptem)
15853 else if ((rc = ioctl(tty, I_PUSH, "ptem")) < 0)
15854 failed(10);
15855 #endif
15856 #if (CONFTEST == 1) || defined(CONFTEST_ldterm)
15857 else if ((rc = ioctl(tty, I_PUSH, "ldterm")) < 0)
15858 failed(11);
15859 #endif
15860 #if (CONFTEST == 2) || defined(CONFTEST_ttcompat)
15861 else if ((rc = ioctl(tty, I_PUSH, "ttcompat")) < 0)
15862 failed(12);
15863 #endif
15864 #endif /* I_PUSH */
15865 #if CONFTEST >= 5
15866 else if ((rc = tcgetattr(tty, &tio)) < 0)
15867 failed(30);
15868 else if ((rc = tcsetattr(tty, TCSAFLUSH, &tio)) < 0)
15869 failed(31);
15870 #endif
15871 #endif /* CONFTEST */
15872
15873 ${cf_cv_main_return:-return}(code);
15874
15875 }
15876
15877 _ACEOF
15878 rm -f "conftest$ac_exeext"
15879 if { (eval echo "$as_me:15879: \"$ac_link\"") >&5
15880 (eval $ac_link) 2>&5
15881 ac_status=$?
15882 echo "$as_me:15882: \$? = $ac_status" >&5
15883 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
15884 { (eval echo "$as_me:15884: \"$ac_try\"") >&5
15885 (eval $ac_try) 2>&5
15886 ac_status=$?
15887 echo "$as_me:15887: \$? = $ac_status" >&5
15888 (exit "$ac_status"); }; }; then
15889 :
15890 else
15891 echo "$as_me: program exited with status $ac_status" >&5
15892 echo "$as_me: failed program was:" >&5
15893 cat "conftest.$ac_ext" >&5
15894 ac_cv_func_grantpt=no
15895
15896 fi
15897 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
15898 fi
15899
15900 else
15901 echo "$as_me: failed program was:" >&5
15902 cat "conftest.$ac_ext" >&5
15903 ac_cv_func_grantpt=no
15904 fi
15905 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
15906 echo "$as_me:15906: result: $ac_cv_func_grantpt" >&5
15907 echo "${ECHO_T}$ac_cv_func_grantpt" >&6
15908
15909 if test "x$ac_cv_func_grantpt" != "xno" ; then
15910
15911 if test "x$ac_cv_func_grantpt" = "xyes" ; then
15912 echo "$as_me:15912: checking for pty features" >&5
15913 echo $ECHO_N "checking for pty features... $ECHO_C" >&6
15914 if test "x$ac_cv_header_stropts_h" = xyes
15915 then
15916 cf_pty_this=0
15917 else
15918 cf_pty_this=3
15919 fi
15920
15921 cf_pty_defines=
15922 while test $cf_pty_this != 6
15923 do
15924
15925 cf_pty_feature=
15926 cf_pty_next="`expr $cf_pty_this + 1`"
15927
15928 echo "${as_me:-configure}:15928: testing pty feature test $cf_pty_next:5 ..." 1>&5
15929
15930 if test "$cross_compiling" = yes; then
15931 { { echo "$as_me:15931: error: cannot run test program while cross compiling" >&5
15932 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15933 { (exit 1); exit 1; }; }
15934 else
15935 cat >"conftest.$ac_ext" <<_ACEOF
15936 #line 15936 "configure"
15937 #include "confdefs.h"
15938 #define CONFTEST $cf_pty_this
15939 $cf_pty_defines
15940
15941 #include <stdlib.h>
15942 #include <stdio.h>
15943 #include <termios.h>
15944 #include <unistd.h>
15945 #include <signal.h>
15946 #include <fcntl.h>
15947 #include <errno.h>
15948
15949 #ifndef HAVE_POSIX_OPENPT
15950 #undef posix_openpt
15951 #define posix_openpt(mode) open("/dev/ptmx", mode)
15952 #endif
15953
15954 #ifdef HAVE_STROPTS_H
15955 #include <stropts.h>
15956 #endif
15957
15958 static void failed(int code)
15959 {
15960 perror("conftest");
15961 exit(code);
15962 }
15963
15964 static void my_timeout(int sig)
15965 {
15966 (void)sig;
15967 exit(99);
15968 }
15969
15970 int main(void)
15971 {
15972
15973 int code = 0;
15974 int rc;
15975 int pty;
15976 int tty;
15977 char *slave;
15978 struct termios tio;
15979
15980 (void)tio;
15981 signal(SIGALRM, my_timeout);
15982
15983 if (alarm(2) == 9)
15984 failed(9);
15985 else if ((pty = posix_openpt(O_RDWR)) < 0)
15986 failed(1);
15987 else if ((rc = grantpt(pty)) < 0)
15988 failed(2);
15989 else if ((rc = unlockpt(pty)) < 0)
15990 failed(3);
15991 else if ((slave = ptsname(pty)) == 0)
15992 failed(4);
15993 #if (CONFTEST == 3) || defined(CONFTEST_isatty)
15994 else if (!isatty(pty))
15995 failed(4);
15996 #endif
15997 #if CONFTEST >= 4
15998 else if ((rc = tcgetattr(pty, &tio)) < 0)
15999 failed(20);
16000 else if ((rc = tcsetattr(pty, TCSAFLUSH, &tio)) < 0)
16001 failed(21);
16002 #endif
16003 /* BSD posix_openpt does not treat pty as a terminal until slave is opened.
16004 * Linux does treat it that way.
16005 */
16006 else if ((tty = open(slave, O_RDWR)) < 0)
16007 failed(5);
16008 #ifdef CONFTEST
16009 #ifdef I_PUSH
16010 #if (CONFTEST == 0) || defined(CONFTEST_ptem)
16011 else if ((rc = ioctl(tty, I_PUSH, "ptem")) < 0)
16012 failed(10);
16013 #endif
16014 #if (CONFTEST == 1) || defined(CONFTEST_ldterm)
16015 else if ((rc = ioctl(tty, I_PUSH, "ldterm")) < 0)
16016 failed(11);
16017 #endif
16018 #if (CONFTEST == 2) || defined(CONFTEST_ttcompat)
16019 else if ((rc = ioctl(tty, I_PUSH, "ttcompat")) < 0)
16020 failed(12);
16021 #endif
16022 #endif /* I_PUSH */
16023 #if CONFTEST >= 5
16024 else if ((rc = tcgetattr(tty, &tio)) < 0)
16025 failed(30);
16026 else if ((rc = tcsetattr(tty, TCSAFLUSH, &tio)) < 0)
16027 failed(31);
16028 #endif
16029 #endif /* CONFTEST */
16030
16031 ${cf_cv_main_return:-return}(code);
16032
16033 }
16034
16035 _ACEOF
16036 rm -f "conftest$ac_exeext"
16037 if { (eval echo "$as_me:16037: \"$ac_link\"") >&5
16038 (eval $ac_link) 2>&5
16039 ac_status=$?
16040 echo "$as_me:16040: \$? = $ac_status" >&5
16041 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
16042 { (eval echo "$as_me:16042: \"$ac_try\"") >&5
16043 (eval $ac_try) 2>&5
16044 ac_status=$?
16045 echo "$as_me:16045: \$? = $ac_status" >&5
16046 (exit "$ac_status"); }; }; then
16047
16048 case $cf_pty_next in
16049 (1) # - streams
16050 cf_pty_feature=ptem
16051 ;;
16052 (2) # - streams
16053 cf_pty_feature=ldterm
16054 ;;
16055 (3) # - streams
16056 cf_pty_feature=ttcompat
16057 ;;
16058 (4)
16059 cf_pty_feature=pty_isatty
16060 ;;
16061 (5)
16062 cf_pty_feature=pty_tcsetattr
16063 ;;
16064 (6)
16065 cf_pty_feature=tty_tcsetattr
16066 ;;
16067 esac
16068
16069 else
16070 echo "$as_me: program exited with status $ac_status" >&5
16071 echo "$as_me: failed program was:" >&5
16072 cat "conftest.$ac_ext" >&5
16073
16074 case $cf_pty_next in
16075 (1|2|3)
16076
16077 echo "${as_me:-configure}:16077: testing skipping remaining streams features $cf_pty_this..2 ..." 1>&5
16078
16079 cf_pty_next=3
16080 ;;
16081 esac
16082
16083 fi
16084 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
16085 fi
16086 if test -n "$cf_pty_feature"
16087 then
16088 cf_pty_defines="$cf_pty_defines
16089 #define CONFTEST_$cf_pty_feature 1
16090 "
16091 cf_grantpt_opts="$cf_grantpt_opts $cf_pty_feature"
16092 fi
16093
16094 cf_pty_this=$cf_pty_next
16095 done
16096 echo "$as_me:16096: result: $cf_grantpt_opts" >&5
16097 echo "${ECHO_T}$cf_grantpt_opts" >&6
16098 cf_grantpt_opts=`echo "$cf_grantpt_opts" | sed -e 's/ isatty//'`
16099 fi
16100 fi
16101 fi
16102
16103 if test "x$cf_prefer_posix_openpt" = "xyes" && test "x$ac_cv_func_posix_openpt" = "xyes" ; then
16104 test -n "$verbose" && echo " prefer posix_openpt over openpty" 1>&6
16105
16106 echo "${as_me:-configure}:16106: testing prefer posix_openpt over openpty ..." 1>&5
16107
16108 elif test "x$disable_openpty" != "xyes" || test -z "$cf_grantpt_opts" ; then
16109 echo "$as_me:16109: checking for openpty in -lutil" >&5
16110 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
16111 if test "${ac_cv_lib_util_openpty+set}" = set; then
16112 echo $ECHO_N "(cached) $ECHO_C" >&6
16113 else
16114 ac_check_lib_save_LIBS=$LIBS
16115 LIBS="-lutil $LIBS"
16116 cat >"conftest.$ac_ext" <<_ACEOF
16117 #line 16117 "configure"
16118 #include "confdefs.h"
16119
16120 /* Override any gcc2 internal prototype to avoid an error. */
16121 #ifdef __cplusplus
16122 extern "C"
16123 #endif
16124 /* We use char because int might match the return type of a gcc2
16125 builtin and then its argument prototype would still apply. */
16126 char openpty ();
16127 int
16128 main (void)
16129 {
16130 openpty ();
16131 ;
16132 return 0;
16133 }
16134 _ACEOF
16135 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
16136 if { (eval echo "$as_me:16136: \"$ac_link\"") >&5
16137 (eval $ac_link) 2>&5
16138 ac_status=$?
16139 echo "$as_me:16139: \$? = $ac_status" >&5
16140 (exit "$ac_status"); } &&
16141 { ac_try='test -s "conftest$ac_exeext"'
16142 { (eval echo "$as_me:16142: \"$ac_try\"") >&5
16143 (eval $ac_try) 2>&5
16144 ac_status=$?
16145 echo "$as_me:16145: \$? = $ac_status" >&5
16146 (exit "$ac_status"); }; }; then
16147 ac_cv_lib_util_openpty=yes
16148 else
16149 echo "$as_me: failed program was:" >&5
16150 cat "conftest.$ac_ext" >&5
16151 ac_cv_lib_util_openpty=no
16152 fi
16153 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
16154 LIBS=$ac_check_lib_save_LIBS
16155 fi
16156 echo "$as_me:16156: result: $ac_cv_lib_util_openpty" >&5
16157 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
16158 if test "$ac_cv_lib_util_openpty" = yes; then
16159 cf_have_openpty=yes
16160 else
16161 cf_have_openpty=no
16162 fi
16163
16164 if test "$cf_have_openpty" = yes ; then
16165 ac_cv_func_grantpt=no
16166 LIBS="-lutil $LIBS"
16167
16168 cat >>confdefs.h <<\EOF
16169 #define HAVE_OPENPTY 1
16170 EOF
16171
16172 for ac_header in \
16173 util.h \
16174 libutil.h \
16175 pty.h \
16176
16177 do
16178 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16179 echo "$as_me:16179: checking for $ac_header" >&5
16180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16181 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16182 echo $ECHO_N "(cached) $ECHO_C" >&6
16183 else
16184 cat >"conftest.$ac_ext" <<_ACEOF
16185 #line 16185 "configure"
16186 #include "confdefs.h"
16187 #include <$ac_header>
16188 _ACEOF
16189 if { (eval echo "$as_me:16189: \"$ac_cpp "conftest.$ac_ext"\"") >&5
16190 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
16191 ac_status=$?
16192 $EGREP -v '^ *\+' conftest.er1 >conftest.err
16193 rm -f conftest.er1
16194 cat conftest.err >&5
16195 echo "$as_me:16195: \$? = $ac_status" >&5
16196 (exit "$ac_status"); } >/dev/null; then
16197 if test -s conftest.err; then
16198 ac_cpp_err=$ac_c_preproc_warn_flag
16199 else
16200 ac_cpp_err=
16201 fi
16202 else
16203 ac_cpp_err=yes
16204 fi
16205 if test -z "$ac_cpp_err"; then
16206 eval "$as_ac_Header=yes"
16207 else
16208 echo "$as_me: failed program was:" >&5
16209 cat "conftest.$ac_ext" >&5
16210 eval "$as_ac_Header=no"
16211 fi
16212 rm -f conftest.err "conftest.$ac_ext"
16213 fi
16214 echo "$as_me:16214: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
16215 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
16216 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
16217 cat >>confdefs.h <<EOF
16218 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16219 EOF
16220
16221 fi
16222 done
16223
16224 fi
16225 fi
16226
16227 if test "x$ac_cv_func_grantpt" != xno
16228 then
16229 test -n "$verbose" && echo " will rely upon grantpt" 1>&6
16230
16231 echo "${as_me:-configure}:16231: testing will rely upon grantpt ..." 1>&5
16232
16233 cat >>confdefs.h <<\EOF
16234 #define HAVE_WORKING_GRANTPT 1
16235 EOF
16236
16237 for cf_feature in $cf_grantpt_opts
16238 do
16239 cf_feature=`echo "$cf_feature" | sed -e 's/ //g'`
16240
16241 cf_FEATURE=`echo "$cf_feature" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
16242
16243 cat >>confdefs.h <<EOF
16244 #define HAVE_GRANTPT_$cf_FEATURE 1
16245 EOF
16246
16247 done
16248 elif test "x$cf_have_openpty" = xno
16249 then
16250 test -n "$verbose" && echo " will rely upon BSD-pseudoterminals" 1>&6
16251
16252 echo "${as_me:-configure}:16252: testing will rely upon BSD-pseudoterminals ..." 1>&5
16253
16254 else
16255 test -n "$verbose" && echo " will rely upon openpty" 1>&6
16256
16257 echo "${as_me:-configure}:16257: testing will rely upon openpty ..." 1>&5
16258
16259 fi
16260
16261 echo "$as_me:16261: checking if we can use XkbQueryExtension" >&5
16262 echo $ECHO_N "checking if we can use XkbQueryExtension... $ECHO_C" >&6
16263 if test "${cf_cv_xkb_query_extension+set}" = set; then
16264 echo $ECHO_N "(cached) $ECHO_C" >&6
16265 else
16266
16267 cat >"conftest.$ac_ext" <<_ACEOF
16268 #line 16268 "configure"
16269 #include "confdefs.h"
16270
16271 #include <X11/Xlib.h>
16272 #include <X11/extensions/XKB.h>
16273 #include <X11/XKBlib.h>
16274
16275 int
16276 main (void)
16277 {
16278
16279 int xkbmajor = XkbMajorVersion;
16280 int xkbminor = XkbMinorVersion;
16281 int xkbopcode, xkbevent, xkberror;
16282
16283 if (XkbLibraryVersion(&xkbmajor, &xkbminor)
16284 && XkbQueryExtension((Display *)0,
16285 &xkbopcode,
16286 &xkbevent,
16287 &xkberror,
16288 &xkbmajor,
16289 &xkbminor))
16290 return 0;
16291
16292 ;
16293 return 0;
16294 }
16295 _ACEOF
16296 rm -f "conftest.$ac_objext"
16297 if { (eval echo "$as_me:16297: \"$ac_compile\"") >&5
16298 (eval $ac_compile) 2>&5
16299 ac_status=$?
16300 echo "$as_me:16300: \$? = $ac_status" >&5
16301 (exit "$ac_status"); } &&
16302 { ac_try='test -s "conftest.$ac_objext"'
16303 { (eval echo "$as_me:16303: \"$ac_try\"") >&5
16304 (eval $ac_try) 2>&5
16305 ac_status=$?
16306 echo "$as_me:16306: \$? = $ac_status" >&5
16307 (exit "$ac_status"); }; }; then
16308
16309 cf_cv_xkb_query_extension=yes
16310
16311 else
16312 echo "$as_me: failed program was:" >&5
16313 cat "conftest.$ac_ext" >&5
16314
16315 cf_cv_xkb_query_extension=no
16316
16317 fi
16318 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
16319
16320 fi
16321 echo "$as_me:16321: result: $cf_cv_xkb_query_extension" >&5
16322 echo "${ECHO_T}$cf_cv_xkb_query_extension" >&6
16323
16324 if test $cf_cv_xkb_query_extension = yes
16325 then
16326
16327 for ac_func in XkbQueryExtension
16328 do
16329 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16330 echo "$as_me:16330: checking for $ac_func" >&5
16331 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16332 if eval "test \"\${$as_ac_var+set}\" = set"; then
16333 echo $ECHO_N "(cached) $ECHO_C" >&6
16334 else
16335 cat >"conftest.$ac_ext" <<_ACEOF
16336 #line 16336 "configure"
16337 #include "confdefs.h"
16338 #define $ac_func autoconf_temporary
16339 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
16340 #undef $ac_func
16341
16342 #ifdef __cplusplus
16343 extern "C"
16344 #endif
16345
16346 /* We use char because int might match the return type of a gcc2
16347 builtin and then its argument prototype would still apply. */
16348 char $ac_func (void);
16349
16350 int
16351 main (void)
16352 {
16353
16354 /* The GNU C library defines stubs for functions which it implements
16355 to always fail with ENOSYS. Some functions are actually named
16356 something starting with __ and the normal name is an alias. */
16357 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16358 #error found stub for $ac_func
16359 #endif
16360
16361 return $ac_func ();
16362 ;
16363 return 0;
16364 }
16365 _ACEOF
16366 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
16367 if { (eval echo "$as_me:16367: \"$ac_link\"") >&5
16368 (eval $ac_link) 2>&5
16369 ac_status=$?
16370 echo "$as_me:16370: \$? = $ac_status" >&5
16371 (exit "$ac_status"); } &&
16372 { ac_try='test -s "conftest$ac_exeext"'
16373 { (eval echo "$as_me:16373: \"$ac_try\"") >&5
16374 (eval $ac_try) 2>&5
16375 ac_status=$?
16376 echo "$as_me:16376: \$? = $ac_status" >&5
16377 (exit "$ac_status"); }; }; then
16378 eval "$as_ac_var=yes"
16379 else
16380 echo "$as_me: failed program was:" >&5
16381 cat "conftest.$ac_ext" >&5
16382 eval "$as_ac_var=no"
16383 fi
16384 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
16385 fi
16386 echo "$as_me:16386: result: `eval echo '${'"$as_ac_var"'}'`" >&5
16387 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
16388 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
16389 cat >>confdefs.h <<EOF
16390 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16391 EOF
16392
16393 fi
16394 done
16395
16396 fi
16397
16398 echo "$as_me:16398: checking if we can use XkbKeycodeToKeysym" >&5
16399 echo $ECHO_N "checking if we can use XkbKeycodeToKeysym... $ECHO_C" >&6
16400 if test "${cf_cv_xkb_keycode_to_keysym+set}" = set; then
16401 echo $ECHO_N "(cached) $ECHO_C" >&6
16402 else
16403
16404 cat >"conftest.$ac_ext" <<_ACEOF
16405 #line 16405 "configure"
16406 #include "confdefs.h"
16407
16408 #include <X11/Xlib.h>
16409 #include <X11/XKBlib.h>
16410
16411 int
16412 main (void)
16413 {
16414
16415 KeySym keysym = XkbKeycodeToKeysym((Display *)0, 0, 0, 0);
16416 (void)keysym;
16417
16418 ;
16419 return 0;
16420 }
16421 _ACEOF
16422 rm -f "conftest.$ac_objext"
16423 if { (eval echo "$as_me:16423: \"$ac_compile\"") >&5
16424 (eval $ac_compile) 2>&5
16425 ac_status=$?
16426 echo "$as_me:16426: \$? = $ac_status" >&5
16427 (exit "$ac_status"); } &&
16428 { ac_try='test -s "conftest.$ac_objext"'
16429 { (eval echo "$as_me:16429: \"$ac_try\"") >&5
16430 (eval $ac_try) 2>&5
16431 ac_status=$?
16432 echo "$as_me:16432: \$? = $ac_status" >&5
16433 (exit "$ac_status"); }; }; then
16434
16435 cf_cv_xkb_keycode_to_keysym=yes
16436
16437 else
16438 echo "$as_me: failed program was:" >&5
16439 cat "conftest.$ac_ext" >&5
16440
16441 cf_cv_xkb_keycode_to_keysym=no
16442
16443 fi
16444 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
16445
16446 fi
16447 echo "$as_me:16447: result: $cf_cv_xkb_keycode_to_keysym" >&5
16448 echo "${ECHO_T}$cf_cv_xkb_keycode_to_keysym" >&6
16449
16450 if test $cf_cv_xkb_keycode_to_keysym = yes
16451 then
16452
16453 for ac_func in XkbKeycodeToKeysym
16454 do
16455 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16456 echo "$as_me:16456: checking for $ac_func" >&5
16457 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16458 if eval "test \"\${$as_ac_var+set}\" = set"; then
16459 echo $ECHO_N "(cached) $ECHO_C" >&6
16460 else
16461 cat >"conftest.$ac_ext" <<_ACEOF
16462 #line 16462 "configure"
16463 #include "confdefs.h"
16464 #define $ac_func autoconf_temporary
16465 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
16466 #undef $ac_func
16467
16468 #ifdef __cplusplus
16469 extern "C"
16470 #endif
16471
16472 /* We use char because int might match the return type of a gcc2
16473 builtin and then its argument prototype would still apply. */
16474 char $ac_func (void);
16475
16476 int
16477 main (void)
16478 {
16479
16480 /* The GNU C library defines stubs for functions which it implements
16481 to always fail with ENOSYS. Some functions are actually named
16482 something starting with __ and the normal name is an alias. */
16483 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16484 #error found stub for $ac_func
16485 #endif
16486
16487 return $ac_func ();
16488 ;
16489 return 0;
16490 }
16491 _ACEOF
16492 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
16493 if { (eval echo "$as_me:16493: \"$ac_link\"") >&5
16494 (eval $ac_link) 2>&5
16495 ac_status=$?
16496 echo "$as_me:16496: \$? = $ac_status" >&5
16497 (exit "$ac_status"); } &&
16498 { ac_try='test -s "conftest$ac_exeext"'
16499 { (eval echo "$as_me:16499: \"$ac_try\"") >&5
16500 (eval $ac_try) 2>&5
16501 ac_status=$?
16502 echo "$as_me:16502: \$? = $ac_status" >&5
16503 (exit "$ac_status"); }; }; then
16504 eval "$as_ac_var=yes"
16505 else
16506 echo "$as_me: failed program was:" >&5
16507 cat "conftest.$ac_ext" >&5
16508 eval "$as_ac_var=no"
16509 fi
16510 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
16511 fi
16512 echo "$as_me:16512: result: `eval echo '${'"$as_ac_var"'}'`" >&5
16513 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
16514 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
16515 cat >>confdefs.h <<EOF
16516 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16517 EOF
16518
16519 fi
16520 done
16521
16522 fi
16523
16524 cf_save_LIBS_CF_XKB_BELL_EXT="$LIBS"
16525 cf_save_CFLAGS_CF_XKB_BELL_EXT="$CFLAGS"
16526 cf_save_CPPFLAGS_CF_XKB_BELL_EXT="$CPPFLAGS"
16527 LIBS="$LIBS ${X_PRE_LIBS} ${X_LIBS} ${X_EXTRA_LIBS}"
16528 for cf_X_CFLAGS in $X_CFLAGS
16529 do
16530 case "x$cf_X_CFLAGS" in
16531 x-[IUD]*)
16532 CPPFLAGS="$CPPFLAGS $cf_X_CFLAGS"
16533 ;;
16534 *)
16535 CFLAGS="$CFLAGS $cf_X_CFLAGS"
16536 ;;
16537 esac
16538 done
16539
16540 echo "$as_me:16540: checking for XKB Bell extension" >&5
16541 echo $ECHO_N "checking for XKB Bell extension... $ECHO_C" >&6
16542 if test "${cf_cv_xkb_bell_ext+set}" = set; then
16543 echo $ECHO_N "(cached) $ECHO_C" >&6
16544 else
16545
16546 cat >"conftest.$ac_ext" <<_ACEOF
16547 #line 16547 "configure"
16548 #include "confdefs.h"
16549
16550 #include <X11/Intrinsic.h>
16551 #include <X11/XKBlib.h> /* has the prototype */
16552 #include <X11/extensions/XKBbells.h> /* has the XkbBI_xxx definitions */
16553
16554 int
16555 main (void)
16556 {
16557
16558 int x = (XkbBI_Info |XkbBI_MinorError |XkbBI_MajorError |XkbBI_TerminalBell |XkbBI_MarginBell);
16559 Atom y = 0;
16560 (void)x;
16561 XkbBell((Display *)0, (Widget)0, 0, y);
16562
16563 ;
16564 return 0;
16565 }
16566 _ACEOF
16567 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
16568 if { (eval echo "$as_me:16568: \"$ac_link\"") >&5
16569 (eval $ac_link) 2>&5
16570 ac_status=$?
16571 echo "$as_me:16571: \$? = $ac_status" >&5
16572 (exit "$ac_status"); } &&
16573 { ac_try='test -s "conftest$ac_exeext"'
16574 { (eval echo "$as_me:16574: \"$ac_try\"") >&5
16575 (eval $ac_try) 2>&5
16576 ac_status=$?
16577 echo "$as_me:16577: \$? = $ac_status" >&5
16578 (exit "$ac_status"); }; }; then
16579 cf_cv_xkb_bell_ext=yes
16580 else
16581 echo "$as_me: failed program was:" >&5
16582 cat "conftest.$ac_ext" >&5
16583 cf_cv_xkb_bell_ext=no
16584 fi
16585 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
16586
16587 fi
16588 echo "$as_me:16588: result: $cf_cv_xkb_bell_ext" >&5
16589 echo "${ECHO_T}$cf_cv_xkb_bell_ext" >&6
16590 test "$cf_cv_xkb_bell_ext" = yes &&
16591 cat >>confdefs.h <<\EOF
16592 #define HAVE_XKB_BELL_EXT 1
16593 EOF
16594
16595 LIBS="$cf_save_LIBS_CF_XKB_BELL_EXT"
16596 CFLAGS="$cf_save_CFLAGS_CF_XKB_BELL_EXT"
16597 CPPFLAGS="$cf_save_CPPFLAGS_CF_XKB_BELL_EXT"
16598
16599 for ac_func in Xutf8LookupString
16600 do
16601 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16602 echo "$as_me:16602: checking for $ac_func" >&5
16603 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16604 if eval "test \"\${$as_ac_var+set}\" = set"; then
16605 echo $ECHO_N "(cached) $ECHO_C" >&6
16606 else
16607 cat >"conftest.$ac_ext" <<_ACEOF
16608 #line 16608 "configure"
16609 #include "confdefs.h"
16610 #define $ac_func autoconf_temporary
16611 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
16612 #undef $ac_func
16613
16614 #ifdef __cplusplus
16615 extern "C"
16616 #endif
16617
16618 /* We use char because int might match the return type of a gcc2
16619 builtin and then its argument prototype would still apply. */
16620 char $ac_func (void);
16621
16622 int
16623 main (void)
16624 {
16625
16626 /* The GNU C library defines stubs for functions which it implements
16627 to always fail with ENOSYS. Some functions are actually named
16628 something starting with __ and the normal name is an alias. */
16629 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16630 #error found stub for $ac_func
16631 #endif
16632
16633 return $ac_func ();
16634 ;
16635 return 0;
16636 }
16637 _ACEOF
16638 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
16639 if { (eval echo "$as_me:16639: \"$ac_link\"") >&5
16640 (eval $ac_link) 2>&5
16641 ac_status=$?
16642 echo "$as_me:16642: \$? = $ac_status" >&5
16643 (exit "$ac_status"); } &&
16644 { ac_try='test -s "conftest$ac_exeext"'
16645 { (eval echo "$as_me:16645: \"$ac_try\"") >&5
16646 (eval $ac_try) 2>&5
16647 ac_status=$?
16648 echo "$as_me:16648: \$? = $ac_status" >&5
16649 (exit "$ac_status"); }; }; then
16650 eval "$as_ac_var=yes"
16651 else
16652 echo "$as_me: failed program was:" >&5
16653 cat "conftest.$ac_ext" >&5
16654 eval "$as_ac_var=no"
16655 fi
16656 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
16657 fi
16658 echo "$as_me:16658: result: `eval echo '${'"$as_ac_var"'}'`" >&5
16659 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
16660 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
16661 cat >>confdefs.h <<EOF
16662 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16663 EOF
16664
16665 else
16666
16667 EXTRAHDRS="$EXTRAHDRS xutf8.h"
16668 EXTRASRCS="$EXTRASRCS xutf8.c"
16669 EXTRAOBJS="$EXTRAOBJS xutf8.o"
16670
16671 fi
16672 done
16673
16674 echo "$as_me:16674: checking if you want narrow prototypes for X libraries" >&5
16675 echo $ECHO_N "checking if you want narrow prototypes for X libraries... $ECHO_C" >&6
16676
16677 case `$ac_config_guess` in
16678 (*freebsd*|*gnu*|*irix5*|*irix6*|*netbsd*|*openbsd*|*qnx*|*sco*|*sgi*)
16679 cf_default_narrowproto=yes
16680 ;;
16681 (*)
16682 cf_default_narrowproto=no
16683 ;;
16684 esac
16685
16686 # Check whether --enable-narrowproto or --disable-narrowproto was given.
16687 if test "${enable_narrowproto+set}" = set; then
16688 enableval="$enable_narrowproto"
16689 test "$enableval" != no && enableval=yes
16690 if test "$enableval" != "$cf_default_narrowproto" ; then
16691 enable_narrowproto=$enableval
16692 else
16693 enable_narrowproto=$cf_default_narrowproto
16694 fi
16695 else
16696 enableval=$cf_default_narrowproto
16697 enable_narrowproto=$cf_default_narrowproto
16698
16699 fi;
16700 echo "$as_me:16700: result: $enable_narrowproto" >&5
16701 echo "${ECHO_T}$enable_narrowproto" >&6
16702
16703 echo "$as_me:16703: checking if we should use imake to help" >&5
16704 echo $ECHO_N "checking if we should use imake to help... $ECHO_C" >&6
16705
16706 # Check whether --enable-imake or --disable-imake was given.
16707 if test "${enable_imake+set}" = set; then
16708 enableval="$enable_imake"
16709 test "$enableval" != no && enableval=yes
16710 if test "$enableval" != "yes" ; then
16711 enable_imake=no
16712 else
16713 enable_imake=yes
16714 fi
16715 else
16716 enableval=yes
16717 enable_imake=yes
16718
16719 fi;
16720 echo "$as_me:16720: result: $enable_imake" >&5
16721 echo "${ECHO_T}$enable_imake" >&6
16722
16723 if test "$enable_imake" = yes ; then
16724
16725 for ac_prog in xmkmf imake
16726 do
16727 # Extract the first word of "$ac_prog", so it can be a program name with args.
16728 set dummy $ac_prog; ac_word=$2
16729 echo "$as_me:16729: checking for $ac_word" >&5
16730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16731 if test "${ac_cv_path_IMAKE+set}" = set; then
16732 echo $ECHO_N "(cached) $ECHO_C" >&6
16733 else
16734 case $IMAKE in
16735 [\\/]* | ?:[\\/]*)
16736 ac_cv_path_IMAKE="$IMAKE" # Let the user override the test with a path.
16737 ;;
16738 *)
16739 ac_save_IFS=$IFS; IFS=$ac_path_separator
16740 ac_dummy="$PATH"
16741 for ac_dir in $ac_dummy; do
16742 IFS=$ac_save_IFS
16743 test -z "$ac_dir" && ac_dir=.
16744 if $as_executable_p "$ac_dir/$ac_word"; then
16745 ac_cv_path_IMAKE="$ac_dir/$ac_word"
16746 echo "$as_me:16746: found $ac_dir/$ac_word" >&5
16747 break
16748 fi
16749 done
16750
16751 ;;
16752 esac
16753 fi
16754 IMAKE=$ac_cv_path_IMAKE
16755
16756 if test -n "$IMAKE"; then
16757 echo "$as_me:16757: result: $IMAKE" >&5
16758 echo "${ECHO_T}$IMAKE" >&6
16759 else
16760 echo "$as_me:16760: result: no" >&5
16761 echo "${ECHO_T}no" >&6
16762 fi
16763
16764 test -n "$IMAKE" && break
16765 done
16766
16767 if test -n "$IMAKE" ; then
16768
16769 case $IMAKE in
16770 (*/imake)
16771 cf_imake_opts="-DUseInstalled=YES"
16772 ;;
16773 (*/util/xmkmf)
16774 # A single parameter tells xmkmf where the config-files are:
16775 cf_imake_opts="`echo "$IMAKE"|sed -e s,/config/util/xmkmf,,`"
16776 ;;
16777 (*)
16778 cf_imake_opts=
16779 ;;
16780 esac
16781
16782 # If it's installed properly, imake (or its wrapper, xmkmf) will point to the
16783 # config directory.
16784 if mkdir conftestdir; then
16785 CDPATH=; export CDPATH
16786 cf_makefile=`cd "$srcdir" || exit;pwd`/Imakefile
16787 cd conftestdir
16788
16789 cat >fix_cflags.sed <<'CF_EOF'
16790 s/\\//g
16791 s/[ ][ ]*/ /g
16792 s/"//g
16793 :pack
16794 s/\(=[^ ][^ ]*\) \([^-]\)/\1 \2/g
16795 t pack
16796 s/\(-D[a-zA-Z0-9_][a-zA-Z0-9_]*\)=\([^\'0-9 ][^ ]*\)/\1='\\"\2\\"'/g
16797 s/^IMAKE[ ]/IMAKE_CFLAGS="/
16798 s/ / /g
16799 s/$/"/
16800 CF_EOF
16801
16802 cat >fix_lflags.sed <<'CF_EOF'
16803 s/^IMAKE[ ]*/IMAKE_LOADFLAGS="/
16804 s/$/"/
16805 CF_EOF
16806
16807 echo >./Imakefile
16808 test -f "$cf_makefile" && cat "$cf_makefile" >>./Imakefile
16809
16810 cat >> ./Imakefile <<'CF_EOF'
16811 findstddefs:
16812 @echo IMAKE ${ALLDEFINES} $(MAIN_DEFINES) $(VENDORMANDEFS) | sed -f fix_cflags.sed
16813 @echo IMAKE ${EXTRA_LOAD_FLAGS} | sed -f fix_lflags.sed
16814 CF_EOF
16815
16816 if ( $IMAKE "$cf_imake_opts" 1>/dev/null 2>&5 && test -f Makefile)
16817 then
16818 test -n "$verbose" && echo " Using $IMAKE $cf_imake_opts" 1>&6
16819
16820 echo "${as_me:-configure}:16820: testing Using $IMAKE $cf_imake_opts ..." 1>&5
16821
16822 else
16823 # sometimes imake doesn't have the config path compiled in. Find it.
16824 cf_config=
16825 for cf_libpath in $X_LIBS $LIBS ; do
16826 case "$cf_libpath" in
16827 (-L*)
16828 cf_libpath=`echo ".$cf_libpath" | sed -e 's/^...//'`
16829 cf_libpath="$cf_libpath/X11/config"
16830 if test -d "$cf_libpath" ; then
16831 cf_config="$cf_libpath"
16832 break
16833 fi
16834 ;;
16835 esac
16836 done
16837 if test -z "$cf_config" ; then
16838 { echo "$as_me:16838: WARNING: Could not find imake config-directory" >&5
16839 echo "$as_me: WARNING: Could not find imake config-directory" >&2;}
16840 else
16841 cf_imake_opts="$cf_imake_opts -I$cf_config"
16842 if ( "$IMAKE" -v "$cf_imake_opts" 2>&5)
16843 then
16844 test -n "$verbose" && echo " Using $IMAKE $cf_config" 1>&6
16845
16846 echo "${as_me:-configure}:16846: testing Using $IMAKE $cf_config ..." 1>&5
16847
16848 else
16849 { echo "$as_me:16849: WARNING: Cannot run $IMAKE" >&5
16850 echo "$as_me: WARNING: Cannot run $IMAKE" >&2;}
16851 fi
16852 fi
16853 fi
16854
16855 # GNU make sometimes prints "make[1]: Entering...", which
16856 # would confuse us.
16857 eval "`make findstddefs 2>/dev/null | grep -v make`"
16858
16859 cd ..
16860 rm -rf conftestdir
16861
16862 # We use ${ALLDEFINES} rather than ${STD_DEFINES} because the former
16863 # declares XTFUNCPROTO there. However, some vendors (e.g., SGI) have
16864 # modified it to support site.cf, adding a kludge for the /usr/include
16865 # directory. Try to filter that out, otherwise gcc won't find its
16866 # headers.
16867 if test -n "$GCC" ; then
16868 if test -n "$IMAKE_CFLAGS" ; then
16869 cf_nostdinc=""
16870 cf_std_incl=""
16871 cf_cpp_opts=""
16872 for cf_opt in $IMAKE_CFLAGS
16873 do
16874 case "$cf_opt" in
16875 (-nostdinc)
16876 cf_nostdinc="$cf_opt"
16877 ;;
16878 (-I/usr/include)
16879 cf_std_incl="$cf_opt"
16880 ;;
16881 (*)
16882 cf_cpp_opts="$cf_cpp_opts $cf_opt"
16883 ;;
16884 esac
16885 done
16886 if test -z "$cf_nostdinc" ; then
16887 IMAKE_CFLAGS="$cf_cpp_opts $cf_std_incl"
16888 elif test -z "$cf_std_incl" ; then
16889 IMAKE_CFLAGS="$cf_cpp_opts $cf_nostdinc"
16890 else
16891 test -n "$verbose" && echo " suppressed \"$cf_nostdinc\" and \"$cf_std_incl\"" 1>&6
16892
16893 echo "${as_me:-configure}:16893: testing suppressed \"$cf_nostdinc\" and \"$cf_std_incl\" ..." 1>&5
16894
16895 IMAKE_CFLAGS="$cf_cpp_opts"
16896 fi
16897 fi
16898 fi
16899 fi
16900
16901 # Some imake configurations define PROJECTROOT with an empty value. Remove
16902 # the empty definition.
16903 case $IMAKE_CFLAGS in
16904 (*-DPROJECTROOT=/*)
16905 ;;
16906 (*)
16907 IMAKE_CFLAGS=`echo "$IMAKE_CFLAGS" |sed -e "s,-DPROJECTROOT=[ ], ,"`
16908 ;;
16909 esac
16910
16911 fi
16912
16913 test -n "$verbose" && echo " IMAKE_CFLAGS $IMAKE_CFLAGS" 1>&6
16914
16915 echo "${as_me:-configure}:16915: testing IMAKE_CFLAGS $IMAKE_CFLAGS ..." 1>&5
16916
16917 test -n "$verbose" && echo " IMAKE_LOADFLAGS $IMAKE_LOADFLAGS" 1>&6
16918
16919 echo "${as_me:-configure}:16919: testing IMAKE_LOADFLAGS $IMAKE_LOADFLAGS ..." 1>&5
16920
16921 fi
16922
16923 if test -n "$IMAKE" && test -n "$IMAKE_CFLAGS" ; then
16924
16925 cf_fix_cppflags=no
16926 cf_new_cflags=
16927 cf_new_cppflags=
16928 cf_new_extra_cppflags=
16929
16930 for cf_add_cflags in $IMAKE_CFLAGS
16931 do
16932 case "$cf_fix_cppflags" in
16933 (no)
16934 case "$cf_add_cflags" in
16935 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
16936 case "$cf_add_cflags" in
16937 (-D*)
16938 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
16939
16940 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16941 && test -z "${cf_tst_cflags}" \
16942 && cf_fix_cppflags=yes
16943
16944 if test "$cf_fix_cppflags" = yes ; then
16945
16946 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16947 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16948
16949 continue
16950 elif test "${cf_tst_cflags}" = "\"'" ; then
16951
16952 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16953 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16954
16955 continue
16956 fi
16957 ;;
16958 esac
16959 case "$CPPFLAGS" in
16960 (*$cf_add_cflags)
16961 ;;
16962 (*)
16963 case "$cf_add_cflags" in
16964 (-D*)
16965 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
16966
16967 CPPFLAGS=`echo "$CPPFLAGS" | \
16968 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
16969 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
16970
16971 ;;
16972 esac
16973
16974 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
16975 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
16976
16977 ;;
16978 esac
16979 ;;
16980 (*)
16981
16982 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
16983 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
16984
16985 ;;
16986 esac
16987 ;;
16988 (yes)
16989
16990 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16991 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16992
16993 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
16994
16995 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16996 && test -z "${cf_tst_cflags}" \
16997 && cf_fix_cppflags=no
16998 ;;
16999 esac
17000 done
17001
17002 if test -n "$cf_new_cflags" ; then
17003
17004 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
17005 CFLAGS="${CFLAGS}$cf_new_cflags"
17006
17007 fi
17008
17009 if test -n "$cf_new_cppflags" ; then
17010
17011 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
17012 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
17013
17014 fi
17015
17016 if test -n "$cf_new_extra_cppflags" ; then
17017
17018 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
17019 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
17020
17021 fi
17022
17023 else
17024 IMAKE_CFLAGS=
17025 IMAKE_LOADFLAGS=
17026 test -n "$verbose" && echo " make fallback definitions" 1>&6
17027
17028 echo "${as_me:-configure}:17028: testing make fallback definitions ..." 1>&5
17029
17030 # We prefer config.guess' values when we can get them, to avoid
17031 # inconsistent results with uname (AIX for instance). However,
17032 # config.guess is not always consistent either.
17033 case $host_os in
17034 (*[0-9].[0-9]*)
17035 UNAME_RELEASE="$host_os"
17036 ;;
17037 (*)
17038 UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
17039 ;;
17040 esac
17041
17042 case .$UNAME_RELEASE in
17043 (*[0-9].[0-9]*)
17044 OSMAJORVERSION=`echo "$UNAME_RELEASE" |sed -e 's/^[^0-9]*//' -e 's/\..*//'`
17045 OSMINORVERSION=`echo "$UNAME_RELEASE" |sed -e 's/^[^0-9]*//' -e 's/^[^.]*\.//' -e 's/\..*//' -e 's/[^0-9].*//' `
17046 test -z "$OSMAJORVERSION" && OSMAJORVERSION=1
17047 test -z "$OSMINORVERSION" && OSMINORVERSION=0
17048 IMAKE_CFLAGS="-DOSMAJORVERSION=$OSMAJORVERSION -DOSMINORVERSION=$OSMINORVERSION $IMAKE_CFLAGS"
17049 ;;
17050 esac
17051
17052 # FUNCPROTO is standard with X11R6, but XFree86 drops it, leaving some
17053 # fallback/fragments for NeedPrototypes, etc.
17054 IMAKE_CFLAGS="-DFUNCPROTO=15 $IMAKE_CFLAGS"
17055
17056 # If this is not set properly, Xaw's scrollbars will not work
17057 if test "$enable_narrowproto" = yes ; then
17058 IMAKE_CFLAGS="-DNARROWPROTO=1 $IMAKE_CFLAGS"
17059 fi
17060
17061 # Other special definitions:
17062 case $host_os in
17063 (aix*)
17064 # imake on AIX 5.1 defines AIXV3. really.
17065 IMAKE_CFLAGS="-DAIXV3 -DAIXV4 $IMAKE_CFLAGS"
17066 ;;
17067 (irix[56].*)
17068 # these are needed to make SIGWINCH work in xterm
17069 IMAKE_CFLAGS="-DSYSV -DSVR4 $IMAKE_CFLAGS"
17070 ;;
17071 esac
17072
17073 cf_fix_cppflags=no
17074 cf_new_cflags=
17075 cf_new_cppflags=
17076 cf_new_extra_cppflags=
17077
17078 for cf_add_cflags in $IMAKE_CFLAGS
17079 do
17080 case "$cf_fix_cppflags" in
17081 (no)
17082 case "$cf_add_cflags" in
17083 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
17084 case "$cf_add_cflags" in
17085 (-D*)
17086 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
17087
17088 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
17089 && test -z "${cf_tst_cflags}" \
17090 && cf_fix_cppflags=yes
17091
17092 if test "$cf_fix_cppflags" = yes ; then
17093
17094 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17095 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17096
17097 continue
17098 elif test "${cf_tst_cflags}" = "\"'" ; then
17099
17100 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17101 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17102
17103 continue
17104 fi
17105 ;;
17106 esac
17107 case "$CPPFLAGS" in
17108 (*$cf_add_cflags)
17109 ;;
17110 (*)
17111 case "$cf_add_cflags" in
17112 (-D*)
17113 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
17114
17115 CPPFLAGS=`echo "$CPPFLAGS" | \
17116 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
17117 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
17118
17119 ;;
17120 esac
17121
17122 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
17123 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
17124
17125 ;;
17126 esac
17127 ;;
17128 (*)
17129
17130 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
17131 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
17132
17133 ;;
17134 esac
17135 ;;
17136 (yes)
17137
17138 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17139 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17140
17141 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
17142
17143 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
17144 && test -z "${cf_tst_cflags}" \
17145 && cf_fix_cppflags=no
17146 ;;
17147 esac
17148 done
17149
17150 if test -n "$cf_new_cflags" ; then
17151
17152 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
17153 CFLAGS="${CFLAGS}$cf_new_cflags"
17154
17155 fi
17156
17157 if test -n "$cf_new_cppflags" ; then
17158
17159 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
17160 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
17161
17162 fi
17163
17164 if test -n "$cf_new_extra_cppflags" ; then
17165
17166 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
17167 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
17168
17169 fi
17170
17171 fi
17172
17173 # Extract the first word of "groff", so it can be a program name with args.
17174 set dummy groff; ac_word=$2
17175 echo "$as_me:17175: checking for $ac_word" >&5
17176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17177 if test "${ac_cv_path_GROFF_PATH+set}" = set; then
17178 echo $ECHO_N "(cached) $ECHO_C" >&6
17179 else
17180 case $GROFF_PATH in
17181 [\\/]* | ?:[\\/]*)
17182 ac_cv_path_GROFF_PATH="$GROFF_PATH" # Let the user override the test with a path.
17183 ;;
17184 *)
17185 ac_save_IFS=$IFS; IFS=$ac_path_separator
17186 ac_dummy="$PATH"
17187 for ac_dir in $ac_dummy; do
17188 IFS=$ac_save_IFS
17189 test -z "$ac_dir" && ac_dir=.
17190 if $as_executable_p "$ac_dir/$ac_word"; then
17191 ac_cv_path_GROFF_PATH="$ac_dir/$ac_word"
17192 echo "$as_me:17192: found $ac_dir/$ac_word" >&5
17193 break
17194 fi
17195 done
17196
17197 test -z "$ac_cv_path_GROFF_PATH" && ac_cv_path_GROFF_PATH="no"
17198 ;;
17199 esac
17200 fi
17201 GROFF_PATH=$ac_cv_path_GROFF_PATH
17202
17203 if test -n "$GROFF_PATH"; then
17204 echo "$as_me:17204: result: $GROFF_PATH" >&5
17205 echo "${ECHO_T}$GROFF_PATH" >&6
17206 else
17207 echo "$as_me:17207: result: no" >&5
17208 echo "${ECHO_T}no" >&6
17209 fi
17210
17211 for ac_prog in nroff mandoc
17212 do
17213 # Extract the first word of "$ac_prog", so it can be a program name with args.
17214 set dummy $ac_prog; ac_word=$2
17215 echo "$as_me:17215: checking for $ac_word" >&5
17216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17217 if test "${ac_cv_path_NROFF_PATH+set}" = set; then
17218 echo $ECHO_N "(cached) $ECHO_C" >&6
17219 else
17220 case $NROFF_PATH in
17221 [\\/]* | ?:[\\/]*)
17222 ac_cv_path_NROFF_PATH="$NROFF_PATH" # Let the user override the test with a path.
17223 ;;
17224 *)
17225 ac_save_IFS=$IFS; IFS=$ac_path_separator
17226 ac_dummy="$PATH"
17227 for ac_dir in $ac_dummy; do
17228 IFS=$ac_save_IFS
17229 test -z "$ac_dir" && ac_dir=.
17230 if $as_executable_p "$ac_dir/$ac_word"; then
17231 ac_cv_path_NROFF_PATH="$ac_dir/$ac_word"
17232 echo "$as_me:17232: found $ac_dir/$ac_word" >&5
17233 break
17234 fi
17235 done
17236
17237 ;;
17238 esac
17239 fi
17240 NROFF_PATH=$ac_cv_path_NROFF_PATH
17241
17242 if test -n "$NROFF_PATH"; then
17243 echo "$as_me:17243: result: $NROFF_PATH" >&5
17244 echo "${ECHO_T}$NROFF_PATH" >&6
17245 else
17246 echo "$as_me:17246: result: no" >&5
17247 echo "${ECHO_T}no" >&6
17248 fi
17249
17250 test -n "$NROFF_PATH" && break
17251 done
17252 test -n "$NROFF_PATH" || NROFF_PATH="no"
17253
17254 # Extract the first word of "tbl", so it can be a program name with args.
17255 set dummy tbl; ac_word=$2
17256 echo "$as_me:17256: checking for $ac_word" >&5
17257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17258 if test "${ac_cv_path_TBL_PATH+set}" = set; then
17259 echo $ECHO_N "(cached) $ECHO_C" >&6
17260 else
17261 case $TBL_PATH in
17262 [\\/]* | ?:[\\/]*)
17263 ac_cv_path_TBL_PATH="$TBL_PATH" # Let the user override the test with a path.
17264 ;;
17265 *)
17266 ac_save_IFS=$IFS; IFS=$ac_path_separator
17267 ac_dummy="$PATH"
17268 for ac_dir in $ac_dummy; do
17269 IFS=$ac_save_IFS
17270 test -z "$ac_dir" && ac_dir=.
17271 if $as_executable_p "$ac_dir/$ac_word"; then
17272 ac_cv_path_TBL_PATH="$ac_dir/$ac_word"
17273 echo "$as_me:17273: found $ac_dir/$ac_word" >&5
17274 break
17275 fi
17276 done
17277
17278 test -z "$ac_cv_path_TBL_PATH" && ac_cv_path_TBL_PATH="cat"
17279 ;;
17280 esac
17281 fi
17282 TBL_PATH=$ac_cv_path_TBL_PATH
17283
17284 if test -n "$TBL_PATH"; then
17285 echo "$as_me:17285: result: $TBL_PATH" >&5
17286 echo "${ECHO_T}$TBL_PATH" >&6
17287 else
17288 echo "$as_me:17288: result: no" >&5
17289 echo "${ECHO_T}no" >&6
17290 fi
17291
17292 if test "x$GROFF_PATH" = xno
17293 then
17294 NROFF_NOTE=
17295 GROFF_NOTE="#"
17296 else
17297 NROFF_NOTE="#"
17298 GROFF_NOTE=
17299 fi
17300
17301 echo "$as_me:17301: checking for fgrep" >&5
17302 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
17303 if test "${ac_cv_path_FGREP+set}" = set; then
17304 echo $ECHO_N "(cached) $ECHO_C" >&6
17305 else
17306 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
17307 then ac_cv_path_FGREP="$GREP -F"
17308 else
17309 for ac_prog in gfgrep fgrep
17310 do
17311 # Extract the first word of "$ac_prog", so it can be a program name with args.
17312 set dummy $ac_prog; ac_word=$2
17313 echo "$as_me:17313: checking for $ac_word" >&5
17314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17315 if test "${ac_cv_path_FGREP+set}" = set; then
17316 echo $ECHO_N "(cached) $ECHO_C" >&6
17317 else
17318 case $FGREP in
17319 [\\/]* | ?:[\\/]*)
17320 ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path.
17321 ;;
17322 *)
17323 ac_save_IFS=$IFS; IFS=$ac_path_separator
17324 ac_dummy="$PATH"
17325 for ac_dir in $ac_dummy; do
17326 IFS=$ac_save_IFS
17327 test -z "$ac_dir" && ac_dir=.
17328 if $as_executable_p "$ac_dir/$ac_word"; then
17329 ac_cv_path_FGREP="$ac_dir/$ac_word"
17330 echo "$as_me:17330: found $ac_dir/$ac_word" >&5
17331 break
17332 fi
17333 done
17334
17335 ;;
17336 esac
17337 fi
17338 FGREP=$ac_cv_path_FGREP
17339
17340 if test -n "$FGREP"; then
17341 echo "$as_me:17341: result: $FGREP" >&5
17342 echo "${ECHO_T}$FGREP" >&6
17343 else
17344 echo "$as_me:17344: result: no" >&5
17345 echo "${ECHO_T}no" >&6
17346 fi
17347
17348 test -n "$FGREP" && break
17349 done
17350 test -n "$FGREP" || FGREP=": "
17351
17352 test "x$ac_cv_path_FGREP" = "x:" && { { echo "$as_me:17352: error: cannot find workable fgrep" >&5
17353 echo "$as_me: error: cannot find workable fgrep" >&2;}
17354 { (exit 1); exit 1; }; }
17355 fi
17356 fi
17357 echo "$as_me:17357: result: $ac_cv_path_FGREP" >&5
17358 echo "${ECHO_T}$ac_cv_path_FGREP" >&6
17359 FGREP="$ac_cv_path_FGREP"
17360
17361 case "x${with_man2html}" in
17362 (xno)
17363 cf_man2html=no
17364 ;;
17365 (x|xyes)
17366 # Extract the first word of "man2html", so it can be a program name with args.
17367 set dummy man2html; ac_word=$2
17368 echo "$as_me:17368: checking for $ac_word" >&5
17369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17370 if test "${ac_cv_path_cf_man2html+set}" = set; then
17371 echo $ECHO_N "(cached) $ECHO_C" >&6
17372 else
17373 case $cf_man2html in
17374 [\\/]* | ?:[\\/]*)
17375 ac_cv_path_cf_man2html="$cf_man2html" # Let the user override the test with a path.
17376 ;;
17377 *)
17378 ac_save_IFS=$IFS; IFS=$ac_path_separator
17379 ac_dummy="$PATH"
17380 for ac_dir in $ac_dummy; do
17381 IFS=$ac_save_IFS
17382 test -z "$ac_dir" && ac_dir=.
17383 if $as_executable_p "$ac_dir/$ac_word"; then
17384 ac_cv_path_cf_man2html="$ac_dir/$ac_word"
17385 echo "$as_me:17385: found $ac_dir/$ac_word" >&5
17386 break
17387 fi
17388 done
17389
17390 test -z "$ac_cv_path_cf_man2html" && ac_cv_path_cf_man2html="no"
17391 ;;
17392 esac
17393 fi
17394 cf_man2html=$ac_cv_path_cf_man2html
17395
17396 if test -n "$cf_man2html"; then
17397 echo "$as_me:17397: result: $cf_man2html" >&5
17398 echo "${ECHO_T}$cf_man2html" >&6
17399 else
17400 echo "$as_me:17400: result: no" >&5
17401 echo "${ECHO_T}no" >&6
17402 fi
17403
17404 case "x$cf_man2html" in
17405 (x/*)
17406 echo "$as_me:17406: checking for the modified Earl Hood script" >&5
17407 echo $ECHO_N "checking for the modified Earl Hood script... $ECHO_C" >&6
17408 if ( $cf_man2html -help 2>&1 | grep 'Make an index of headers at the end' >/dev/null )
17409 then
17410 cf_man2html_ok=yes
17411 else
17412 cf_man2html=no
17413 cf_man2html_ok=no
17414 fi
17415 echo "$as_me:17415: result: $cf_man2html_ok" >&5
17416 echo "${ECHO_T}$cf_man2html_ok" >&6
17417 ;;
17418 (*)
17419 cf_man2html=no
17420 ;;
17421 esac
17422 esac
17423
17424 echo "$as_me:17424: checking for program to convert manpage to html" >&5
17425 echo $ECHO_N "checking for program to convert manpage to html... $ECHO_C" >&6
17426
17427 # Check whether --with-man2html or --without-man2html was given.
17428 if test "${with_man2html+set}" = set; then
17429 withval="$with_man2html"
17430 cf_man2html=$withval
17431 else
17432 cf_man2html=$cf_man2html
17433 fi;
17434
17435 cf_with_groff=no
17436
17437 case $cf_man2html in
17438 (yes)
17439 echo "$as_me:17439: result: man2html" >&5
17440 echo "${ECHO_T}man2html" >&6
17441 # Extract the first word of "man2html", so it can be a program name with args.
17442 set dummy man2html; ac_word=$2
17443 echo "$as_me:17443: checking for $ac_word" >&5
17444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17445 if test "${ac_cv_path_cf_man2html+set}" = set; then
17446 echo $ECHO_N "(cached) $ECHO_C" >&6
17447 else
17448 case $cf_man2html in
17449 [\\/]* | ?:[\\/]*)
17450 ac_cv_path_cf_man2html="$cf_man2html" # Let the user override the test with a path.
17451 ;;
17452 *)
17453 ac_save_IFS=$IFS; IFS=$ac_path_separator
17454 ac_dummy="$PATH"
17455 for ac_dir in $ac_dummy; do
17456 IFS=$ac_save_IFS
17457 test -z "$ac_dir" && ac_dir=.
17458 if $as_executable_p "$ac_dir/$ac_word"; then
17459 ac_cv_path_cf_man2html="$ac_dir/$ac_word"
17460 echo "$as_me:17460: found $ac_dir/$ac_word" >&5
17461 break
17462 fi
17463 done
17464
17465 test -z "$ac_cv_path_cf_man2html" && ac_cv_path_cf_man2html="no"
17466 ;;
17467 esac
17468 fi
17469 cf_man2html=$ac_cv_path_cf_man2html
17470
17471 if test -n "$cf_man2html"; then
17472 echo "$as_me:17472: result: $cf_man2html" >&5
17473 echo "${ECHO_T}$cf_man2html" >&6
17474 else
17475 echo "$as_me:17475: result: no" >&5
17476 echo "${ECHO_T}no" >&6
17477 fi
17478
17479 ;;
17480 (no|groff|*/groff*)
17481 cf_with_groff=yes
17482 cf_man2html=$GROFF_PATH
17483 echo "$as_me:17483: result: $cf_man2html" >&5
17484 echo "${ECHO_T}$cf_man2html" >&6
17485 ;;
17486 (*)
17487 echo "$as_me:17487: result: $cf_man2html" >&5
17488 echo "${ECHO_T}$cf_man2html" >&6
17489 ;;
17490 esac
17491
17492 MAN2HTML_TEMP="man2html.tmp"
17493 cat >$MAN2HTML_TEMP <<CF_EOF
17494 #!$SHELL
17495 # Temporary script generated by CF_WITH_MAN2HTML
17496 # Convert inputs to html, sending result to standard output.
17497 #
17498 # Parameters:
17499 # \${1} = rootname of file to convert
17500 # \${2} = suffix of file to convert, e.g., "1"
17501 # \${3} = macros to use, e.g., "man"
17502 #
17503 ROOT=\$1
17504 TYPE=\$2
17505 MACS=\$3
17506
17507 unset LANG
17508 unset LC_ALL
17509 unset LC_CTYPE
17510 unset LANGUAGE
17511 GROFF_NO_SGR=stupid
17512 export GROFF_NO_SGR
17513
17514 CF_EOF
17515
17516 NROFF_OPTS=
17517 if test "x$cf_with_groff" = xyes
17518 then
17519 MAN2HTML_NOTE="$GROFF_NOTE"
17520 MAN2HTML_PATH="$GROFF_PATH"
17521 cat >>$MAN2HTML_TEMP <<CF_EOF
17522 $SHELL -c "$TBL_PATH \${ROOT}.\${TYPE} | $GROFF_PATH -P -o0 -I\${ROOT}_ -Thtml -\${MACS}"
17523 CF_EOF
17524 else
17525 # disable hyphenation if this is groff
17526 if test "x$GROFF_PATH" != xno
17527 then
17528 echo "$as_me:17528: checking if nroff is really groff" >&5
17529 echo $ECHO_N "checking if nroff is really groff... $ECHO_C" >&6
17530 cf_check_groff="`$NROFF_PATH --version 2>/dev/null | grep groff`"
17531 test -n "$cf_check_groff" && cf_check_groff=yes
17532 test -n "$cf_check_groff" || cf_check_groff=no
17533 echo "$as_me:17533: result: $cf_check_groff" >&5
17534 echo "${ECHO_T}$cf_check_groff" >&6
17535 test "x$cf_check_groff" = xyes && NROFF_OPTS="-rHY=0"
17536 fi
17537 MAN2HTML_NOTE=""
17538
17539 if test "x$prefix" != xNONE; then
17540 cf_path_syntax="$prefix"
17541 else
17542 cf_path_syntax="$ac_default_prefix"
17543 fi
17544
17545 case ".$cf_man2html" in
17546 (.\$\(*\)*|.\'*\'*)
17547 ;;
17548 (..|./*|.\\*)
17549 ;;
17550 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
17551 ;;
17552 (.\$\{*prefix\}*|.\$\{*dir\}*)
17553 eval cf_man2html="$cf_man2html"
17554 case ".$cf_man2html" in
17555 (.NONE/*)
17556 cf_man2html=`echo "$cf_man2html" | sed -e s%NONE%$cf_path_syntax%`
17557 ;;
17558 esac
17559 ;;
17560 (.no|.NONE/*)
17561 cf_man2html=`echo "$cf_man2html" | sed -e s%NONE%$cf_path_syntax%`
17562 ;;
17563 (*)
17564 { { echo "$as_me:17564: error: expected a pathname, not \"$cf_man2html\"" >&5
17565 echo "$as_me: error: expected a pathname, not \"$cf_man2html\"" >&2;}
17566 { (exit 1); exit 1; }; }
17567 ;;
17568 esac
17569
17570 MAN2HTML_PATH="$cf_man2html"
17571 echo "$as_me:17571: checking for $cf_man2html top/bottom margins" >&5
17572 echo $ECHO_N "checking for $cf_man2html top/bottom margins... $ECHO_C" >&6
17573
17574 # for this example, expect 3 lines of content, the remainder is head/foot
17575 cat >conftest.in <<CF_EOF
17576 .TH HEAD1 HEAD2 HEAD3 HEAD4 HEAD5
17577 .SH SECTION
17578 MARKER
17579 CF_EOF
17580
17581 LC_ALL=C LC_CTYPE=C LANG=C LANGUAGE=C $NROFF_PATH -man conftest.in >conftest.out
17582
17583 cf_man2html_1st="`${FGREP-fgrep} -n MARKER conftest.out |sed -e 's/^[^0-9]*://' -e 's/:.*//'`"
17584 cf_man2html_top=`expr "$cf_man2html_1st" - 2`
17585 cf_man2html_bot="`wc -l conftest.out |sed -e 's/[^0-9]//g'`"
17586 cf_man2html_bot=`expr "$cf_man2html_bot" - 2 - "$cf_man2html_top"`
17587 cf_man2html_top_bot="-topm=$cf_man2html_top -botm=$cf_man2html_bot"
17588
17589 echo "$as_me:17589: result: $cf_man2html_top_bot" >&5
17590 echo "${ECHO_T}$cf_man2html_top_bot" >&6
17591
17592 echo "$as_me:17592: checking for pagesize to use" >&5
17593 echo $ECHO_N "checking for pagesize to use... $ECHO_C" >&6
17594 for cf_block in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
17595 do
17596 cat >>conftest.in <<CF_EOF
17597 .nf
17598 0
17599 1
17600 2
17601 3
17602 4
17603 5
17604 6
17605 7
17606 8
17607 9
17608 CF_EOF
17609 done
17610
17611 LC_ALL=C LC_CTYPE=C LANG=C LANGUAGE=C $NROFF_PATH -man conftest.in >conftest.out
17612 cf_man2html_page="`${FGREP-fgrep} -n HEAD1 conftest.out |sed -n '$p' |sed -e 's/^[^0-9]*://' -e 's/:.*//'`"
17613 test -z "$cf_man2html_page" && cf_man2html_page=99999
17614 test "$cf_man2html_page" -gt 100 && cf_man2html_page=99999
17615
17616 rm -rf conftest*
17617 echo "$as_me:17617: result: $cf_man2html_page" >&5
17618 echo "${ECHO_T}$cf_man2html_page" >&6
17619
17620 cat >>$MAN2HTML_TEMP <<CF_EOF
17621 : \${MAN2HTML_PATH=$MAN2HTML_PATH}
17622 MAN2HTML_OPTS="\$MAN2HTML_OPTS -index -title=\"\$ROOT(\$TYPE)\" -compress -pgsize $cf_man2html_page"
17623 case \${TYPE} in
17624 (ms)
17625 $TBL_PATH \${ROOT}.\${TYPE} | $NROFF_PATH $NROFF_OPTS -\${MACS} | \$MAN2HTML_PATH -topm=0 -botm=0 \$MAN2HTML_OPTS
17626 ;;
17627 (*)
17628 $TBL_PATH \${ROOT}.\${TYPE} | $NROFF_PATH $NROFF_OPTS -\${MACS} | \$MAN2HTML_PATH $cf_man2html_top_bot \$MAN2HTML_OPTS
17629 ;;
17630 esac
17631 CF_EOF
17632 fi
17633
17634 chmod 700 $MAN2HTML_TEMP
17635
17636 # If we have already established that there is a full termcap implementation,
17637 # suppress the definitions for terminfo that we make have imported from the
17638 # imake-file.
17639 if test "x$cf_cv_lib_tgetent" != xno || test "x$cf_cv_lib_part_tgetent" != xno ; then
17640 case "$IMAKE_CFLAGS" in
17641 (*-DUSE_TERMINFO\ -DHAVE_TIGETSTR*)
17642
17643 test -n "$verbose" && echo " removing terminfo flags from IMAKE_CFLAGS" 1>&6
17644
17645 echo "${as_me:-configure}:17645: testing removing terminfo flags from IMAKE_CFLAGS ..." 1>&5
17646
17647 IMAKE_CFLAGS=`echo "$IMAKE_CFLAGS" | sed -e 's/-DUSE_TERMINFO[ ]*-DHAVE_TIGETSTR[ ]*//'`
17648 test -n "$verbose" && echo " ...result $IMAKE_CFLAGS" 1>&6
17649
17650 echo "${as_me:-configure}:17650: testing ...result $IMAKE_CFLAGS ..." 1>&5
17651
17652 test -n "$verbose" && echo " removing terminfo flags from CPPFLAGS" 1>&6
17653
17654 echo "${as_me:-configure}:17654: testing removing terminfo flags from CPPFLAGS ..." 1>&5
17655
17656 CPPFLAGS=`echo "$CPPFLAGS" | sed -e 's/-DUSE_TERMINFO[ ]*-DHAVE_TIGETSTR[ ]*//'`
17657 test -n "$verbose" && echo " ...result $CPPFLAGS" 1>&6
17658
17659 echo "${as_me:-configure}:17659: testing ...result $CPPFLAGS ..." 1>&5
17660
17661 ;;
17662 esac
17663 fi
17664
17665 echo "$as_me:17665: checking for default terminal-id" >&5
17666 echo $ECHO_N "checking for default terminal-id... $ECHO_C" >&6
17667
17668 # Check whether --with-terminal-id or --without-terminal-id was given.
17669 if test "${with_terminal_id+set}" = set; then
17670 withval="$with_terminal_id"
17671 default_termid=$withval
17672 else
17673 default_termid=vt420
17674 fi;
17675 echo "$as_me:17675: result: $default_termid" >&5
17676 echo "${ECHO_T}$default_termid" >&6
17677 case $default_termid in
17678 (vt*) default_termid=`echo $default_termid | sed -e 's/^..//'`
17679 ;;
17680 esac
17681
17682 cat >>confdefs.h <<EOF
17683 #define DFT_DECID "$default_termid"
17684 EOF
17685
17686 echo "$as_me:17686: checking for default terminal-type" >&5
17687 echo $ECHO_N "checking for default terminal-type... $ECHO_C" >&6
17688
17689 # Check whether --with-terminal-type or --without-terminal-type was given.
17690 if test "${with_terminal_type+set}" = set; then
17691 withval="$with_terminal_type"
17692 default_TERM=$withval
17693 else
17694 default_TERM=xterm
17695 fi;
17696 echo "$as_me:17696: result: $default_TERM" >&5
17697 echo "${ECHO_T}$default_TERM" >&6
17698
17699 cat >>confdefs.h <<EOF
17700 #define DFT_TERMTYPE "$default_TERM"
17701 EOF
17702
17703 ###############################################################################
17704 echo "$as_me:17704: checking if backarrow-key should be BS" >&5
17705 echo $ECHO_N "checking if backarrow-key should be BS... $ECHO_C" >&6
17706
17707 # Check whether --enable-backarrow-key or --disable-backarrow-key was given.
17708 if test "${enable_backarrow_key+set}" = set; then
17709 enableval="$enable_backarrow_key"
17710 test "$enableval" != no && enableval=yes
17711 if test "$enableval" != "yes" ; then
17712 backarrow_is_bs=$enableval
17713 else
17714 backarrow_is_bs=yes
17715 fi
17716 else
17717 enableval=yes
17718 backarrow_is_bs=yes
17719
17720 fi;
17721
17722 echo "$as_me:17722: result: $backarrow_is_bs" >&5
17723 echo "${ECHO_T}$backarrow_is_bs" >&6
17724 case $backarrow_is_bs in
17725 (yes)
17726 backarrow_is_bs=true
17727 ;;
17728 (no)
17729 backarrow_is_bs=false
17730 ;;
17731 esac
17732 cf_xbool1=`echo "$backarrow_is_bs"|sed -e 's/^\(.\).*/\1/'`
17733
17734 cf_xbool1=`echo "$cf_xbool1" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
17735
17736 cf_xbool2=`echo "$backarrow_is_bs"|sed -e 's/^.//'`
17737 backarrow_is_bs=${cf_xbool1}${cf_xbool2}
17738
17739 cat >>confdefs.h <<EOF
17740 #define DEF_BACKARO_BS $backarrow_is_bs
17741 EOF
17742
17743 echo "$as_me:17743: checking if backarrow-key should be treated as erase" >&5
17744 echo $ECHO_N "checking if backarrow-key should be treated as erase... $ECHO_C" >&6
17745
17746 # Check whether --enable-backarrow-is-erase or --disable-backarrow-is-erase was given.
17747 if test "${enable_backarrow_is_erase+set}" = set; then
17748 enableval="$enable_backarrow_is_erase"
17749 test "$enableval" != yes && enableval=no
17750 if test "$enableval" != "no" ; then
17751 backarrow_is_erase=$enableval
17752 else
17753 backarrow_is_erase=no
17754 fi
17755 else
17756 enableval=no
17757 backarrow_is_erase=no
17758
17759 fi;
17760
17761 echo "$as_me:17761: result: $backarrow_is_erase" >&5
17762 echo "${ECHO_T}$backarrow_is_erase" >&6
17763 case $backarrow_is_erase in
17764 (yes)
17765 backarrow_is_erase=true
17766 ;;
17767 (no)
17768 backarrow_is_erase=false
17769 ;;
17770 esac
17771 cf_xbool1=`echo "$backarrow_is_erase"|sed -e 's/^\(.\).*/\1/'`
17772
17773 cf_xbool1=`echo "$cf_xbool1" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
17774
17775 cf_xbool2=`echo "$backarrow_is_erase"|sed -e 's/^.//'`
17776 backarrow_is_erase=${cf_xbool1}${cf_xbool2}
17777
17778 cat >>confdefs.h <<EOF
17779 #define DEF_BACKARO_ERASE $backarrow_is_erase
17780 EOF
17781
17782 echo "$as_me:17782: checking for default backspace/DEL setting" >&5
17783 echo $ECHO_N "checking for default backspace/DEL setting... $ECHO_C" >&6
17784
17785 # Check whether --enable-delete-is-del or --disable-delete-is-del was given.
17786 if test "${enable_delete_is_del+set}" = set; then
17787 enableval="$enable_delete_is_del"
17788 delete_is_del=$enableval
17789 else
17790 delete_is_del=maybe
17791 fi;
17792
17793 echo "$as_me:17793: result: $delete_is_del" >&5
17794 echo "${ECHO_T}$delete_is_del" >&6
17795 case $delete_is_del in
17796 (yes)
17797 delete_is_del=true
17798 ;;
17799 (no)
17800 delete_is_del=false
17801 ;;
17802 esac
17803 cf_xbool1=`echo "$delete_is_del"|sed -e 's/^\(.\).*/\1/'`
17804
17805 cf_xbool1=`echo "$cf_xbool1" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
17806
17807 cf_xbool2=`echo "$delete_is_del"|sed -e 's/^.//'`
17808 delete_is_del=${cf_xbool1}${cf_xbool2}
17809
17810 cat >>confdefs.h <<EOF
17811 #define DEFDELETE_DEL $delete_is_del
17812 EOF
17813
17814 echo "$as_me:17814: checking for default pty initial erase setting" >&5
17815 echo $ECHO_N "checking for default pty initial erase setting... $ECHO_C" >&6
17816
17817 # Check whether --enable-pty-erase or --disable-pty-erase was given.
17818 if test "${enable_pty_erase+set}" = set; then
17819 enableval="$enable_pty_erase"
17820 initial_erase=$enableval
17821 else
17822 initial_erase=False
17823 fi;
17824
17825 echo "$as_me:17825: result: $initial_erase" >&5
17826 echo "${ECHO_T}$initial_erase" >&6
17827 case $initial_erase in
17828 (yes)
17829 initial_erase=true
17830 ;;
17831 (no)
17832 initial_erase=false
17833 ;;
17834 esac
17835 cf_xbool1=`echo "$initial_erase"|sed -e 's/^\(.\).*/\1/'`
17836
17837 cf_xbool1=`echo "$cf_xbool1" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
17838
17839 cf_xbool2=`echo "$initial_erase"|sed -e 's/^.//'`
17840 initial_erase=${cf_xbool1}${cf_xbool2}
17841
17842 cat >>confdefs.h <<EOF
17843 #define DEF_INITIAL_ERASE $initial_erase
17844 EOF
17845
17846 echo "$as_me:17846: checking if alt should send ESC" >&5
17847 echo $ECHO_N "checking if alt should send ESC... $ECHO_C" >&6
17848
17849 # Check whether --enable-alt-sends-esc or --disable-alt-sends-esc was given.
17850 if test "${enable_alt_sends_esc+set}" = set; then
17851 enableval="$enable_alt_sends_esc"
17852 test "$enableval" != yes && enableval=no
17853 if test "$enableval" != "no" ; then
17854 alt_sends_esc=$enableval
17855 else
17856 alt_sends_esc=no
17857 fi
17858 else
17859 enableval=no
17860 alt_sends_esc=no
17861
17862 fi;
17863
17864 echo "$as_me:17864: result: $alt_sends_esc" >&5
17865 echo "${ECHO_T}$alt_sends_esc" >&6
17866 case $alt_sends_esc in
17867 (yes)
17868 alt_sends_esc=true
17869 ;;
17870 (no)
17871 alt_sends_esc=false
17872 ;;
17873 esac
17874 cf_xbool1=`echo "$alt_sends_esc"|sed -e 's/^\(.\).*/\1/'`
17875
17876 cf_xbool1=`echo "$cf_xbool1" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
17877
17878 cf_xbool2=`echo "$alt_sends_esc"|sed -e 's/^.//'`
17879 alt_sends_esc=${cf_xbool1}${cf_xbool2}
17880
17881 cat >>confdefs.h <<EOF
17882 #define DEF_ALT_SENDS_ESC $alt_sends_esc
17883 EOF
17884
17885 echo "$as_me:17885: checking if meta should send ESC" >&5
17886 echo $ECHO_N "checking if meta should send ESC... $ECHO_C" >&6
17887
17888 # Check whether --enable-meta-sends-esc or --disable-meta-sends-esc was given.
17889 if test "${enable_meta_sends_esc+set}" = set; then
17890 enableval="$enable_meta_sends_esc"
17891 test "$enableval" != yes && enableval=no
17892 if test "$enableval" != "no" ; then
17893 meta_sends_esc=$enableval
17894 else
17895 meta_sends_esc=no
17896 fi
17897 else
17898 enableval=no
17899 meta_sends_esc=no
17900
17901 fi;
17902
17903 echo "$as_me:17903: result: $meta_sends_esc" >&5
17904 echo "${ECHO_T}$meta_sends_esc" >&6
17905 case $meta_sends_esc in
17906 (yes)
17907 meta_sends_esc=true
17908 ;;
17909 (no)
17910 meta_sends_esc=false
17911 ;;
17912 esac
17913 cf_xbool1=`echo "$meta_sends_esc"|sed -e 's/^\(.\).*/\1/'`
17914
17915 cf_xbool1=`echo "$cf_xbool1" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
17916
17917 cf_xbool2=`echo "$meta_sends_esc"|sed -e 's/^.//'`
17918 meta_sends_esc=${cf_xbool1}${cf_xbool2}
17919
17920 cat >>confdefs.h <<EOF
17921 #define DEF_META_SENDS_ESC $meta_sends_esc
17922 EOF
17923
17924 ###############################################################################
17925 # Extract the first word of "tic", so it can be a program name with args.
17926 set dummy tic; ac_word=$2
17927 echo "$as_me:17927: checking for $ac_word" >&5
17928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17929 if test "${ac_cv_prog_cf_tic_prog+set}" = set; then
17930 echo $ECHO_N "(cached) $ECHO_C" >&6
17931 else
17932 if test -n "$cf_tic_prog"; then
17933 ac_cv_prog_cf_tic_prog="$cf_tic_prog" # Let the user override the test.
17934 else
17935 ac_save_IFS=$IFS; IFS=$ac_path_separator
17936 ac_dummy="$PATH"
17937 for ac_dir in $ac_dummy; do
17938 IFS=$ac_save_IFS
17939 test -z "$ac_dir" && ac_dir=.
17940 $as_executable_p "$ac_dir/$ac_word" || continue
17941 ac_cv_prog_cf_tic_prog="yes"
17942 echo "$as_me:17942: found $ac_dir/$ac_word" >&5
17943 break
17944 done
17945
17946 test -z "$ac_cv_prog_cf_tic_prog" && ac_cv_prog_cf_tic_prog="no"
17947 fi
17948 fi
17949 cf_tic_prog=$ac_cv_prog_cf_tic_prog
17950 if test -n "$cf_tic_prog"; then
17951 echo "$as_me:17951: result: $cf_tic_prog" >&5
17952 echo "${ECHO_T}$cf_tic_prog" >&6
17953 else
17954 echo "$as_me:17954: result: no" >&5
17955 echo "${ECHO_T}no" >&6
17956 fi
17957
17958 if test "$cf_tic_prog" = yes ; then
17959 if test -n "$TERMINFO"
17960 then
17961 case "$TERMINFO" in
17962 (/*)
17963 test -d "$TERMINFO" || unset TERMINFO
17964 ;;
17965 (*)
17966 unset TERMINFO
17967 ;;
17968 esac
17969 fi
17970 echo "$as_me:17970: checking for private terminfo-directory" >&5
17971 echo $ECHO_N "checking for private terminfo-directory... $ECHO_C" >&6
17972
17973 # Check whether --with-own-terminfo or --without-own-terminfo was given.
17974 if test "${with_own_terminfo+set}" = set; then
17975 withval="$with_own_terminfo"
17976 TERMINFO_DIR=$withval
17977 else
17978 TERMINFO_DIR=${TERMINFO-none}
17979 fi;
17980 echo "$as_me:17980: result: $TERMINFO_DIR" >&5
17981 echo "${ECHO_T}$TERMINFO_DIR" >&6
17982 if test "$TERMINFO_DIR" = yes ; then
17983 { echo "$as_me:17983: WARNING: no value given" >&5
17984 echo "$as_me: WARNING: no value given" >&2;}
17985 elif test "$TERMINFO_DIR" != none ; then
17986 if test -d "$TERMINFO_DIR" ; then
17987
17988 cat >>confdefs.h <<EOF
17989 #define OWN_TERMINFO_DIR "$TERMINFO_DIR"
17990 EOF
17991
17992 echo "$as_me:17992: checking if \$TERMINFO should also be set" >&5
17993 echo $ECHO_N "checking if \$TERMINFO should also be set... $ECHO_C" >&6
17994
17995 # Check whether --enable-env-terminfo or --disable-env-terminfo was given.
17996 if test "${enable_env_terminfo+set}" = set; then
17997 enableval="$enable_env_terminfo"
17998 cf_env_terminfo=yes
17999 else
18000 cf_env_terminfo=no
18001 fi;
18002 echo "$as_me:18002: result: $cf_env_terminfo" >&5
18003 echo "${ECHO_T}$cf_env_terminfo" >&6
18004 test $cf_env_terminfo = yes &&
18005
18006 cat >>confdefs.h <<\EOF
18007 #define OWN_TERMINFO_ENV 1
18008 EOF
18009
18010 else
18011 { echo "$as_me:18011: WARNING: not a directory" >&5
18012 echo "$as_me: WARNING: not a directory" >&2;}
18013 fi
18014 elif test "$prefix" != NONE ; then
18015 TERMINFO_DIR='${prefix}/lib/terminfo'
18016 elif test -d /usr/lib/terminfo ; then
18017 TERMINFO_DIR=/usr/lib/terminfo
18018 else
18019 TERMINFO_DIR=
18020 fi
18021 SET_TERMINFO=
18022 if test -n "$TERMINFO_DIR" ; then
18023 TERMINFO_DIR='$(DESTDIR)'$TERMINFO_DIR
18024 SET_TERMINFO='TERMINFO=$(TERMINFO_DIR)'
18025 fi
18026 no_ticprog=
18027 else
18028 no_ticprog="#"
18029 TERMINFO_DIR=
18030 SET_TERMINFO=
18031 fi
18032
18033 ###############################################################################
18034
18035 echo "$as_me:18035: checking if you want active-icons" >&5
18036 echo $ECHO_N "checking if you want active-icons... $ECHO_C" >&6
18037
18038 # Check whether --enable-active-icon or --disable-active-icon was given.
18039 if test "${enable_active_icon+set}" = set; then
18040 enableval="$enable_active_icon"
18041 test "$enableval" != no && enableval=yes
18042 if test "$enableval" != "yes" ; then
18043 enable_active_icon=no
18044 else
18045 enable_active_icon=yes
18046 fi
18047 else
18048 enableval=yes
18049 enable_active_icon=yes
18050
18051 fi;
18052 echo "$as_me:18052: result: $enable_active_icon" >&5
18053 echo "${ECHO_T}$enable_active_icon" >&6
18054 if test "$enable_active_icon" = no ; then
18055
18056 cat >>confdefs.h <<\EOF
18057 #define NO_ACTIVE_ICON 1
18058 EOF
18059
18060 fi
18061
18062 echo "$as_me:18062: checking if you want ANSI color" >&5
18063 echo $ECHO_N "checking if you want ANSI color... $ECHO_C" >&6
18064
18065 # Check whether --enable-ansi-color or --disable-ansi-color was given.
18066 if test "${enable_ansi_color+set}" = set; then
18067 enableval="$enable_ansi_color"
18068 test "$enableval" != no && enableval=yes
18069 if test "$enableval" != "yes" ; then
18070 enable_ansi_color=no
18071 else
18072 enable_ansi_color=yes
18073 fi
18074 else
18075 enableval=yes
18076 enable_ansi_color=yes
18077
18078 fi;
18079 echo "$as_me:18079: result: $enable_ansi_color" >&5
18080 echo "${ECHO_T}$enable_ansi_color" >&6
18081 test "$enable_ansi_color" = no &&
18082 cat >>confdefs.h <<\EOF
18083 #define OPT_ISO_COLORS 0
18084 EOF
18085
18086 if test "$enable_ansi_color" = yes ; then
18087
18088 echo "$as_me:18088: checking if you want 16 colors like aixterm" >&5
18089 echo $ECHO_N "checking if you want 16 colors like aixterm... $ECHO_C" >&6
18090
18091 # Check whether --enable-16-color or --disable-16-color was given.
18092 if test "${enable_16_color+set}" = set; then
18093 enableval="$enable_16_color"
18094 test "$enableval" != no && enableval=yes
18095 if test "$enableval" != "yes" ; then
18096 enable_16_color=no
18097 else
18098 enable_16_color=yes
18099 fi
18100 else
18101 enableval=yes
18102 enable_16_color=yes
18103
18104 fi;
18105 echo "$as_me:18105: result: $enable_16_color" >&5
18106 echo "${ECHO_T}$enable_16_color" >&6
18107 test "$enable_16_color" = no &&
18108 cat >>confdefs.h <<\EOF
18109 #define OPT_AIX_COLORS 0
18110 EOF
18111
18112 echo "$as_me:18112: checking if you want 256 colors" >&5
18113 echo $ECHO_N "checking if you want 256 colors... $ECHO_C" >&6
18114
18115 # Check whether --enable-256-color or --disable-256-color was given.
18116 if test "${enable_256_color+set}" = set; then
18117 enableval="$enable_256_color"
18118 test "$enableval" != no && enableval=yes
18119 if test "$enableval" != "yes" ; then
18120 enable_256_color=no
18121 else
18122 enable_256_color=yes
18123 fi
18124 else
18125 enableval=yes
18126 enable_256_color=yes
18127
18128 fi;
18129 echo "$as_me:18129: result: $enable_256_color" >&5
18130 echo "${ECHO_T}$enable_256_color" >&6
18131
18132 if test "$enable_256_color" = yes ; then
18133
18134 CHARPROC_DEPS="$CHARPROC_DEPS 256colres.h"
18135 EXTRAHDRS="$EXTRAHDRS 256colres.h"
18136
18137 cat >>confdefs.h <<\EOF
18138 #define OPT_256_COLORS 1
18139 EOF
18140
18141 echo "$as_me:18141: checking if you want direct-color support" >&5
18142 echo $ECHO_N "checking if you want direct-color support... $ECHO_C" >&6
18143
18144 # Check whether --enable-direct-color or --disable-direct-color was given.
18145 if test "${enable_direct_color+set}" = set; then
18146 enableval="$enable_direct_color"
18147 test "$enableval" != no && enableval=yes
18148 if test "$enableval" != "yes" ; then
18149 enable_direct_color=no
18150 else
18151 enable_direct_color=yes
18152 fi
18153 else
18154 enableval=yes
18155 enable_direct_color=yes
18156
18157 fi;
18158 echo "$as_me:18158: result: $enable_direct_color" >&5
18159 echo "${ECHO_T}$enable_direct_color" >&6
18160 if test "$enable_direct_color" = yes ; then
18161
18162 cat >>confdefs.h <<\EOF
18163 #define OPT_DIRECT_COLOR 1
18164 EOF
18165
18166 fi
18167
18168 else
18169
18170 echo "$as_me:18170: checking if you want 88 colors" >&5
18171 echo $ECHO_N "checking if you want 88 colors... $ECHO_C" >&6
18172
18173 # Check whether --enable-88-color or --disable-88-color was given.
18174 if test "${enable_88_color+set}" = set; then
18175 enableval="$enable_88_color"
18176 test "$enableval" != no && enableval=yes
18177 if test "$enableval" != "yes" ; then
18178 enable_88_color=no
18179 else
18180 enable_88_color=yes
18181 fi
18182 else
18183 enableval=yes
18184 enable_88_color=yes
18185
18186 fi;
18187 echo "$as_me:18187: result: $enable_88_color" >&5
18188 echo "${ECHO_T}$enable_88_color" >&6
18189 if test "$enable_88_color" = yes ; then
18190 CHARPROC_DEPS="$CHARPROC_DEPS 88colres.h"
18191 EXTRAHDRS="$EXTRAHDRS 88colres.h"
18192
18193 cat >>confdefs.h <<\EOF
18194 #define OPT_88_COLORS 1
18195 EOF
18196
18197 fi
18198
18199 fi
18200
18201 fi
18202
18203 echo "$as_me:18203: checking if you want blinking cursor" >&5
18204 echo $ECHO_N "checking if you want blinking cursor... $ECHO_C" >&6
18205
18206 # Check whether --enable-blink-cursor or --disable-blink-cursor was given.
18207 if test "${enable_blink_cursor+set}" = set; then
18208 enableval="$enable_blink_cursor"
18209 test "$enableval" != no && enableval=yes
18210 if test "$enableval" != "yes" ; then
18211 enable_blink_curs=no
18212 else
18213 enable_blink_curs=yes
18214 fi
18215 else
18216 enableval=yes
18217 enable_blink_curs=yes
18218
18219 fi;
18220 echo "$as_me:18220: result: $enable_blink_curs" >&5
18221 echo "${ECHO_T}$enable_blink_curs" >&6
18222 test "$enable_blink_curs" = no &&
18223 cat >>confdefs.h <<\EOF
18224 #define OPT_BLINK_CURS 0
18225 EOF
18226
18227 echo "$as_me:18227: checking if you want to ignore Linux's broken palette-strings" >&5
18228 echo $ECHO_N "checking if you want to ignore Linux's broken palette-strings... $ECHO_C" >&6
18229
18230 case $host_os in
18231 (linux*)
18232 assume_broken_osc=yes ;;
18233 (*)
18234 assume_broken_osc=no ;;
18235 esac
18236
18237 # Check whether --enable-broken-osc or --disable-broken-osc was given.
18238 if test "${enable_broken_osc+set}" = set; then
18239 enableval="$enable_broken_osc"
18240 test "$enableval" != no && enableval=yes
18241 if test "$enableval" != "$assume_broken_osc" ; then
18242 enable_broken_osc=$enableval
18243 else
18244 enable_broken_osc=$enableval
18245 fi
18246 else
18247 enableval=$assume_broken_osc
18248 enable_broken_osc=$enableval
18249
18250 fi;
18251 echo "$as_me:18251: result: $enable_broken_osc" >&5
18252 echo "${ECHO_T}$enable_broken_osc" >&6
18253 if test "$enable_broken_osc" = yes ; then
18254
18255 cat >>confdefs.h <<\EOF
18256 #define OPT_BROKEN_OSC 1
18257 EOF
18258
18259 else
18260
18261 cat >>confdefs.h <<\EOF
18262 #define OPT_BROKEN_OSC 0
18263 EOF
18264
18265 fi
18266
18267 echo "$as_me:18267: checking if you want to allow broken string-terminators" >&5
18268 echo $ECHO_N "checking if you want to allow broken string-terminators... $ECHO_C" >&6
18269
18270 # Check whether --enable-broken-st or --disable-broken-st was given.
18271 if test "${enable_broken_st+set}" = set; then
18272 enableval="$enable_broken_st"
18273 test "$enableval" != yes && enableval=no
18274 if test "$enableval" != "no" ; then
18275 enable_broken_st=no
18276 else
18277 enable_broken_st=yes
18278 fi
18279 else
18280 enableval=no
18281 enable_broken_st=yes
18282
18283 fi;
18284 echo "$as_me:18284: result: $enable_broken_st" >&5
18285 echo "${ECHO_T}$enable_broken_st" >&6
18286 test "$enable_broken_st" = no &&
18287 cat >>confdefs.h <<\EOF
18288 #define OPT_BROKEN_ST 0
18289 EOF
18290
18291 echo "$as_me:18291: checking if you want to compile-in icon data" >&5
18292 echo $ECHO_N "checking if you want to compile-in icon data... $ECHO_C" >&6
18293
18294 # Check whether --enable-builtin-xpms or --disable-builtin-xpms was given.
18295 if test "${enable_builtin_xpms+set}" = set; then
18296 enableval="$enable_builtin_xpms"
18297 test "$enableval" != yes && enableval=no
18298 if test "$enableval" != "no" ; then
18299 enable_builtin_xpms=yes
18300 else
18301 enable_builtin_xpms=no
18302 fi
18303 else
18304 enableval=no
18305 enable_builtin_xpms=no
18306
18307 fi;
18308 echo "$as_me:18308: result: $enable_builtin_xpms" >&5
18309 echo "${ECHO_T}$enable_builtin_xpms" >&6
18310 test "$enable_builtin_xpms" = yes &&
18311 cat >>confdefs.h <<\EOF
18312 #define OPT_BUILTIN_XPMS 1
18313 EOF
18314
18315 echo "$as_me:18315: checking if you want printable 128-159" >&5
18316 echo $ECHO_N "checking if you want printable 128-159... $ECHO_C" >&6
18317
18318 # Check whether --enable-c1-print or --disable-c1-print was given.
18319 if test "${enable_c1_print+set}" = set; then
18320 enableval="$enable_c1_print"
18321 test "$enableval" != no && enableval=yes
18322 if test "$enableval" != "yes" ; then
18323 enable_c1_print=no
18324 else
18325 enable_c1_print=yes
18326 fi
18327 else
18328 enableval=yes
18329 enable_c1_print=yes
18330
18331 fi;
18332 echo "$as_me:18332: result: $enable_c1_print" >&5
18333 echo "${ECHO_T}$enable_c1_print" >&6
18334 test "$enable_c1_print" = no &&
18335 cat >>confdefs.h <<\EOF
18336 #define OPT_C1_PRINT 0
18337 EOF
18338
18339 if test "$enable_ansi_color" = yes ; then
18340
18341 echo "$as_me:18341: checking if you want bold colors mapped like IBM PC" >&5
18342 echo $ECHO_N "checking if you want bold colors mapped like IBM PC... $ECHO_C" >&6
18343
18344 # Check whether --enable-bold-color or --disable-bold-color was given.
18345 if test "${enable_bold_color+set}" = set; then
18346 enableval="$enable_bold_color"
18347 test "$enableval" != no && enableval=yes
18348 if test "$enableval" != "yes" ; then
18349 enable_pc_color=no
18350 else
18351 enable_pc_color=yes
18352 fi
18353 else
18354 enableval=yes
18355 enable_pc_color=yes
18356
18357 fi;
18358 echo "$as_me:18358: result: $enable_pc_color" >&5
18359 echo "${ECHO_T}$enable_pc_color" >&6
18360 test "$enable_pc_color" = no &&
18361 cat >>confdefs.h <<\EOF
18362 #define OPT_PC_COLORS 0
18363 EOF
18364
18365 echo "$as_me:18365: checking if you want separate color-classes" >&5
18366 echo $ECHO_N "checking if you want separate color-classes... $ECHO_C" >&6
18367
18368 # Check whether --enable-color-class or --disable-color-class was given.
18369 if test "${enable_color_class+set}" = set; then
18370 enableval="$enable_color_class"
18371 test "$enableval" != no && enableval=yes
18372 if test "$enableval" != "yes" ; then
18373 enable_color_class=no
18374 else
18375 enable_color_class=yes
18376 fi
18377 else
18378 enableval=yes
18379 enable_color_class=yes
18380
18381 fi;
18382 echo "$as_me:18382: result: $enable_color_class" >&5
18383 echo "${ECHO_T}$enable_color_class" >&6
18384 test "$enable_color_class" = no &&
18385 cat >>confdefs.h <<\EOF
18386 #define OPT_COLOR_CLASS 0
18387 EOF
18388
18389 echo "$as_me:18389: checking if you want color-mode enabled by default" >&5
18390 echo $ECHO_N "checking if you want color-mode enabled by default... $ECHO_C" >&6
18391
18392 # Check whether --enable-color-mode or --disable-color-mode was given.
18393 if test "${enable_color_mode+set}" = set; then
18394 enableval="$enable_color_mode"
18395 test "$enableval" != no && enableval=yes
18396 if test "$enableval" != "yes" ; then
18397 default_colormode=no
18398 else
18399 default_colormode=yes
18400 fi
18401 else
18402 enableval=yes
18403 default_colormode=yes
18404
18405 fi;
18406 echo "$as_me:18406: result: $default_colormode" >&5
18407 echo "${ECHO_T}$default_colormode" >&6
18408 test "$default_colormode" = no &&
18409 cat >>confdefs.h <<\EOF
18410 #define DFT_COLORMODE 0
18411 EOF
18412
18413 fi
18414
18415 echo "$as_me:18415: checking if you want support for color highlighting" >&5
18416 echo $ECHO_N "checking if you want support for color highlighting... $ECHO_C" >&6
18417
18418 # Check whether --enable-highlighting or --disable-highlighting was given.
18419 if test "${enable_highlighting+set}" = set; then
18420 enableval="$enable_highlighting"
18421 test "$enableval" != no && enableval=yes
18422 if test "$enableval" != "yes" ; then
18423 default_highlight=no
18424 else
18425 default_highlight=yes
18426 fi
18427 else
18428 enableval=yes
18429 default_highlight=yes
18430
18431 fi;
18432 echo "$as_me:18432: result: $default_highlight" >&5
18433 echo "${ECHO_T}$default_highlight" >&6
18434 test "$default_highlight" = no &&
18435 cat >>confdefs.h <<\EOF
18436 #define OPT_HIGHLIGHT_COLOR 0
18437 EOF
18438
18439 echo "$as_me:18439: checking if you want support for doublesize characters" >&5
18440 echo $ECHO_N "checking if you want support for doublesize characters... $ECHO_C" >&6
18441
18442 # Check whether --enable-doublechars or --disable-doublechars was given.
18443 if test "${enable_doublechars+set}" = set; then
18444 enableval="$enable_doublechars"
18445 test "$enableval" != no && enableval=yes
18446 if test "$enableval" != "yes" ; then
18447 enable_doublechars=no
18448 else
18449 enable_doublechars=yes
18450 fi
18451 else
18452 enableval=yes
18453 enable_doublechars=yes
18454
18455 fi;
18456 echo "$as_me:18456: result: $enable_doublechars" >&5
18457 echo "${ECHO_T}$enable_doublechars" >&6
18458 test "$enable_doublechars" = no &&
18459 cat >>confdefs.h <<\EOF
18460 #define OPT_DEC_CHRSET 0
18461 EOF
18462
18463 echo "$as_me:18463: checking if you want fallback-support for box characters" >&5
18464 echo $ECHO_N "checking if you want fallback-support for box characters... $ECHO_C" >&6
18465
18466 # Check whether --enable-boxchars or --disable-boxchars was given.
18467 if test "${enable_boxchars+set}" = set; then
18468 enableval="$enable_boxchars"
18469 test "$enableval" != no && enableval=yes
18470 if test "$enableval" != "yes" ; then
18471 enable_boxchars=no
18472 else
18473 enable_boxchars=yes
18474 fi
18475 else
18476 enableval=yes
18477 enable_boxchars=yes
18478
18479 fi;
18480 echo "$as_me:18480: result: $enable_boxchars" >&5
18481 echo "${ECHO_T}$enable_boxchars" >&6
18482 test "$enable_boxchars" = no &&
18483 cat >>confdefs.h <<\EOF
18484 #define OPT_BOX_CHARS 0
18485 EOF
18486
18487 echo "$as_me:18487: checking if you want to allow spawning new xterms" >&5
18488 echo $ECHO_N "checking if you want to allow spawning new xterms... $ECHO_C" >&6
18489
18490 # Check whether --enable-exec-xterm or --disable-exec-xterm was given.
18491 if test "${enable_exec_xterm+set}" = set; then
18492 enableval="$enable_exec_xterm"
18493 test "$enableval" != yes && enableval=no
18494 if test "$enableval" != "no" ; then
18495 enable_exec_xterm=yes
18496 else
18497 enable_exec_xterm=no
18498 fi
18499 else
18500 enableval=no
18501 enable_exec_xterm=no
18502
18503 fi;
18504 echo "$as_me:18504: result: $enable_exec_xterm" >&5
18505 echo "${ECHO_T}$enable_exec_xterm" >&6
18506 if test "$enable_exec_xterm" = yes ; then
18507
18508 echo "$as_me:18508: checking for proc tree with cwd-support" >&5
18509 echo $ECHO_N "checking for proc tree with cwd-support... $ECHO_C" >&6
18510 if test "${cf_cv_procfs_cwd+set}" = set; then
18511 echo $ECHO_N "(cached) $ECHO_C" >&6
18512 else
18513
18514 cf_cv_procfs_cwd=no
18515 for cf_path in /proc /compat/linux/proc /usr/compat/linux/proc
18516 do
18517 if test -d "$cf_path" && \
18518 test -d "$cf_path"/$$ && \
18519 { test -d "$cf_path"/$$/cwd || \
18520 test -L "$cf_path"/$$/cwd; }; then
18521 cf_cv_procfs_cwd="$cf_path"
18522 break
18523 fi
18524 done
18525
18526 fi
18527 echo "$as_me:18527: result: $cf_cv_procfs_cwd" >&5
18528 echo "${ECHO_T}$cf_cv_procfs_cwd" >&6
18529
18530 if test "$cf_cv_procfs_cwd" = no ; then
18531 { echo "$as_me:18531: WARNING: no suitable proc filesystem found" >&5
18532 echo "$as_me: WARNING: no suitable proc filesystem found" >&2;}
18533 else
18534
18535 cat >>confdefs.h <<EOF
18536 #define PROCFS_ROOT "$cf_cv_procfs_cwd"
18537 EOF
18538
18539 cat >>confdefs.h <<\EOF
18540 #define OPT_EXEC_XTERM 1
18541 EOF
18542
18543 fi
18544 fi
18545
18546 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "Xext"; then
18547 test -n "$verbose" && echo " found package Xext" 1>&6
18548
18549 echo "${as_me:-configure}:18549: testing found package Xext ..." 1>&5
18550
18551 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "Xext" 2>/dev/null`"
18552 cf_pkgconfig_libs="`$PKG_CONFIG --libs "Xext" 2>/dev/null`"
18553 test -n "$verbose" && echo " package Xext CFLAGS: $cf_pkgconfig_incs" 1>&6
18554
18555 echo "${as_me:-configure}:18555: testing package Xext CFLAGS: $cf_pkgconfig_incs ..." 1>&5
18556
18557 test -n "$verbose" && echo " package Xext LIBS: $cf_pkgconfig_libs" 1>&6
18558
18559 echo "${as_me:-configure}:18559: testing package Xext LIBS: $cf_pkgconfig_libs ..." 1>&5
18560
18561 cf_fix_cppflags=no
18562 cf_new_cflags=
18563 cf_new_cppflags=
18564 cf_new_extra_cppflags=
18565
18566 for cf_add_cflags in $cf_pkgconfig_incs
18567 do
18568 case "$cf_fix_cppflags" in
18569 (no)
18570 case "$cf_add_cflags" in
18571 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
18572 case "$cf_add_cflags" in
18573 (-D*)
18574 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
18575
18576 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18577 && test -z "${cf_tst_cflags}" \
18578 && cf_fix_cppflags=yes
18579
18580 if test "$cf_fix_cppflags" = yes ; then
18581
18582 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18583 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18584
18585 continue
18586 elif test "${cf_tst_cflags}" = "\"'" ; then
18587
18588 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18589 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18590
18591 continue
18592 fi
18593 ;;
18594 esac
18595 case "$CPPFLAGS" in
18596 (*$cf_add_cflags)
18597 ;;
18598 (*)
18599 case "$cf_add_cflags" in
18600 (-D*)
18601 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
18602
18603 CPPFLAGS=`echo "$CPPFLAGS" | \
18604 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
18605 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
18606
18607 ;;
18608 esac
18609
18610 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
18611 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
18612
18613 ;;
18614 esac
18615 ;;
18616 (*)
18617
18618 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
18619 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
18620
18621 ;;
18622 esac
18623 ;;
18624 (yes)
18625
18626 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18627 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18628
18629 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
18630
18631 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18632 && test -z "${cf_tst_cflags}" \
18633 && cf_fix_cppflags=no
18634 ;;
18635 esac
18636 done
18637
18638 if test -n "$cf_new_cflags" ; then
18639
18640 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
18641 CFLAGS="${CFLAGS}$cf_new_cflags"
18642
18643 fi
18644
18645 if test -n "$cf_new_cppflags" ; then
18646
18647 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
18648 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
18649
18650 fi
18651
18652 if test -n "$cf_new_extra_cppflags" ; then
18653
18654 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
18655 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
18656
18657 fi
18658
18659 cf_add_libs="$LIBS"
18660 # reverse order
18661 cf_add_0lib=
18662 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
18663 # filter duplicates
18664 for cf_add_1lib in $cf_add_0lib; do
18665 for cf_add_2lib in $cf_add_libs; do
18666 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
18667 cf_add_1lib=
18668 break
18669 fi
18670 done
18671 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
18672 done
18673 LIBS="$cf_add_libs"
18674
18675 :
18676 else
18677 cf_pkgconfig_incs=
18678 cf_pkgconfig_libs=
18679
18680 echo "$as_me:18680: checking for XextCreateExtension in -lXext" >&5
18681 echo $ECHO_N "checking for XextCreateExtension in -lXext... $ECHO_C" >&6
18682 if test "${ac_cv_lib_Xext_XextCreateExtension+set}" = set; then
18683 echo $ECHO_N "(cached) $ECHO_C" >&6
18684 else
18685 ac_check_lib_save_LIBS=$LIBS
18686 LIBS="-lXext $LIBS"
18687 cat >"conftest.$ac_ext" <<_ACEOF
18688 #line 18688 "configure"
18689 #include "confdefs.h"
18690
18691 /* Override any gcc2 internal prototype to avoid an error. */
18692 #ifdef __cplusplus
18693 extern "C"
18694 #endif
18695 /* We use char because int might match the return type of a gcc2
18696 builtin and then its argument prototype would still apply. */
18697 char XextCreateExtension ();
18698 int
18699 main (void)
18700 {
18701 XextCreateExtension ();
18702 ;
18703 return 0;
18704 }
18705 _ACEOF
18706 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
18707 if { (eval echo "$as_me:18707: \"$ac_link\"") >&5
18708 (eval $ac_link) 2>&5
18709 ac_status=$?
18710 echo "$as_me:18710: \$? = $ac_status" >&5
18711 (exit "$ac_status"); } &&
18712 { ac_try='test -s "conftest$ac_exeext"'
18713 { (eval echo "$as_me:18713: \"$ac_try\"") >&5
18714 (eval $ac_try) 2>&5
18715 ac_status=$?
18716 echo "$as_me:18716: \$? = $ac_status" >&5
18717 (exit "$ac_status"); }; }; then
18718 ac_cv_lib_Xext_XextCreateExtension=yes
18719 else
18720 echo "$as_me: failed program was:" >&5
18721 cat "conftest.$ac_ext" >&5
18722 ac_cv_lib_Xext_XextCreateExtension=no
18723 fi
18724 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18725 LIBS=$ac_check_lib_save_LIBS
18726 fi
18727 echo "$as_me:18727: result: $ac_cv_lib_Xext_XextCreateExtension" >&5
18728 echo "${ECHO_T}$ac_cv_lib_Xext_XextCreateExtension" >&6
18729 if test "$ac_cv_lib_Xext_XextCreateExtension" = yes; then
18730
18731 cf_add_libs="$LIBS"
18732 # reverse order
18733 cf_add_0lib=
18734 for cf_add_1lib in -lXext; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
18735 # filter duplicates
18736 for cf_add_1lib in $cf_add_0lib; do
18737 for cf_add_2lib in $cf_add_libs; do
18738 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
18739 cf_add_1lib=
18740 break
18741 fi
18742 done
18743 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
18744 done
18745 LIBS="$cf_add_libs"
18746
18747 fi
18748
18749 fi
18750
18751 echo "$as_me:18751: checking for X11/extensions/Xdbe.h" >&5
18752 echo $ECHO_N "checking for X11/extensions/Xdbe.h... $ECHO_C" >&6
18753 if test "${ac_cv_header_X11_extensions_Xdbe_h+set}" = set; then
18754 echo $ECHO_N "(cached) $ECHO_C" >&6
18755 else
18756 cat >"conftest.$ac_ext" <<_ACEOF
18757 #line 18757 "configure"
18758 #include "confdefs.h"
18759 #include <X11/extensions/Xdbe.h>
18760 _ACEOF
18761 if { (eval echo "$as_me:18761: \"$ac_cpp "conftest.$ac_ext"\"") >&5
18762 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
18763 ac_status=$?
18764 $EGREP -v '^ *\+' conftest.er1 >conftest.err
18765 rm -f conftest.er1
18766 cat conftest.err >&5
18767 echo "$as_me:18767: \$? = $ac_status" >&5
18768 (exit "$ac_status"); } >/dev/null; then
18769 if test -s conftest.err; then
18770 ac_cpp_err=$ac_c_preproc_warn_flag
18771 else
18772 ac_cpp_err=
18773 fi
18774 else
18775 ac_cpp_err=yes
18776 fi
18777 if test -z "$ac_cpp_err"; then
18778 ac_cv_header_X11_extensions_Xdbe_h=yes
18779 else
18780 echo "$as_me: failed program was:" >&5
18781 cat "conftest.$ac_ext" >&5
18782 ac_cv_header_X11_extensions_Xdbe_h=no
18783 fi
18784 rm -f conftest.err "conftest.$ac_ext"
18785 fi
18786 echo "$as_me:18786: result: $ac_cv_header_X11_extensions_Xdbe_h" >&5
18787 echo "${ECHO_T}$ac_cv_header_X11_extensions_Xdbe_h" >&6
18788 if test "$ac_cv_header_X11_extensions_Xdbe_h" = yes; then
18789
18790 cat >>confdefs.h <<\EOF
18791 #define HAVE_X11_EXTENSIONS_XDBE_H 1
18792 EOF
18793
18794 echo "$as_me:18794: checking for XdbeSwapBuffers" >&5
18795 echo $ECHO_N "checking for XdbeSwapBuffers... $ECHO_C" >&6
18796 if test "${ac_cv_func_XdbeSwapBuffers+set}" = set; then
18797 echo $ECHO_N "(cached) $ECHO_C" >&6
18798 else
18799 cat >"conftest.$ac_ext" <<_ACEOF
18800 #line 18800 "configure"
18801 #include "confdefs.h"
18802 #define XdbeSwapBuffers autoconf_temporary
18803 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
18804 #undef XdbeSwapBuffers
18805
18806 #ifdef __cplusplus
18807 extern "C"
18808 #endif
18809
18810 /* We use char because int might match the return type of a gcc2
18811 builtin and then its argument prototype would still apply. */
18812 char XdbeSwapBuffers (void);
18813
18814 int
18815 main (void)
18816 {
18817
18818 /* The GNU C library defines stubs for functions which it implements
18819 to always fail with ENOSYS. Some functions are actually named
18820 something starting with __ and the normal name is an alias. */
18821 #if defined (__stub_XdbeSwapBuffers) || defined (__stub___XdbeSwapBuffers)
18822 #error found stub for XdbeSwapBuffers
18823 #endif
18824
18825 return XdbeSwapBuffers ();
18826 ;
18827 return 0;
18828 }
18829 _ACEOF
18830 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
18831 if { (eval echo "$as_me:18831: \"$ac_link\"") >&5
18832 (eval $ac_link) 2>&5
18833 ac_status=$?
18834 echo "$as_me:18834: \$? = $ac_status" >&5
18835 (exit "$ac_status"); } &&
18836 { ac_try='test -s "conftest$ac_exeext"'
18837 { (eval echo "$as_me:18837: \"$ac_try\"") >&5
18838 (eval $ac_try) 2>&5
18839 ac_status=$?
18840 echo "$as_me:18840: \$? = $ac_status" >&5
18841 (exit "$ac_status"); }; }; then
18842 ac_cv_func_XdbeSwapBuffers=yes
18843 else
18844 echo "$as_me: failed program was:" >&5
18845 cat "conftest.$ac_ext" >&5
18846 ac_cv_func_XdbeSwapBuffers=no
18847 fi
18848 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18849 fi
18850 echo "$as_me:18850: result: $ac_cv_func_XdbeSwapBuffers" >&5
18851 echo "${ECHO_T}$ac_cv_func_XdbeSwapBuffers" >&6
18852 if test "$ac_cv_func_XdbeSwapBuffers" = yes; then
18853
18854 cat >>confdefs.h <<\EOF
18855 #define HAVE_XDBESWAPBUFFERS 1
18856 EOF
18857
18858 cf_x_ext_double_buffer=yes
18859 fi
18860
18861 fi
18862
18863 double_buffer=False
18864 if test "$cf_x_ext_double_buffer" = yes ; then
18865 echo "$as_me:18865: checking if you want to enable double-buffering in default resources" >&5
18866 echo $ECHO_N "checking if you want to enable double-buffering in default resources... $ECHO_C" >&6
18867
18868 # Check whether --enable-double-buffer or --disable-double-buffer was given.
18869 if test "${enable_double_buffer+set}" = set; then
18870 enableval="$enable_double_buffer"
18871 test "$enableval" != yes && enableval=no
18872 if test "$enableval" != "no" ; then
18873 enable_double_bfr=yes
18874 else
18875 enable_double_bfr=no
18876 fi
18877 else
18878 enableval=no
18879 enable_double_bfr=no
18880
18881 fi;
18882 echo "$as_me:18882: result: $enable_double_bfr" >&5
18883 echo "${ECHO_T}$enable_double_bfr" >&6
18884 if test "$enable_double_bfr" = yes ; then
18885
18886 cat >>confdefs.h <<\EOF
18887 #define OPT_DOUBLE_BUFFER 1
18888 EOF
18889
18890 double_buffer=True
18891 fi
18892 fi
18893
18894 echo "$as_me:18894: checking if you want to use FreeType library" >&5
18895 echo $ECHO_N "checking if you want to use FreeType library... $ECHO_C" >&6
18896
18897 # Check whether --enable-freetype or --disable-freetype was given.
18898 if test "${enable_freetype+set}" = set; then
18899 enableval="$enable_freetype"
18900 test "$enableval" != no && enableval=yes
18901 if test "$enableval" != "yes" ; then
18902 enable_freetype=no
18903 else
18904 enable_freetype=yes
18905 fi
18906 else
18907 enableval=yes
18908 enable_freetype=yes
18909
18910 fi;
18911 echo "$as_me:18911: result: $enable_freetype" >&5
18912 echo "${ECHO_T}$enable_freetype" >&6
18913 if test "$enable_freetype" = yes ; then
18914
18915 cf_cv_x_freetype_incs=no
18916 cf_cv_x_freetype_libs=no
18917 cf_extra_freetype_libs=
18918 FREETYPE_CONFIG=none
18919 FREETYPE_PARAMS=
18920
18921 echo "$as_me:18921: checking for FreeType configuration script" >&5
18922 echo $ECHO_N "checking for FreeType configuration script... $ECHO_C" >&6
18923
18924 # Check whether --with-freetype-config or --without-freetype-config was given.
18925 if test "${with_freetype_config+set}" = set; then
18926 withval="$with_freetype_config"
18927 cf_cv_x_freetype_cfgs="$withval"
18928 else
18929 cf_cv_x_freetype_cfgs=auto
18930 fi;
18931 test -z $cf_cv_x_freetype_cfgs && cf_cv_x_freetype_cfgs=auto
18932 test $cf_cv_x_freetype_cfgs = no && cf_cv_x_freetype_cfgs=none
18933 echo "$as_me:18933: result: $cf_cv_x_freetype_cfgs" >&5
18934 echo "${ECHO_T}$cf_cv_x_freetype_cfgs" >&6
18935
18936 case $cf_cv_x_freetype_cfgs in
18937 (none)
18938 echo "$as_me:18938: checking if you specified -D/-I options for FreeType" >&5
18939 echo $ECHO_N "checking if you specified -D/-I options for FreeType... $ECHO_C" >&6
18940
18941 # Check whether --with-freetype-cflags or --without-freetype-cflags was given.
18942 if test "${with_freetype_cflags+set}" = set; then
18943 withval="$with_freetype_cflags"
18944 cf_cv_x_freetype_incs="$with_freetype_cflags"
18945 else
18946 cf_cv_x_freetype_incs=no
18947 fi;
18948 echo "$as_me:18948: result: $cf_cv_x_freetype_incs" >&5
18949 echo "${ECHO_T}$cf_cv_x_freetype_incs" >&6
18950
18951 echo "$as_me:18951: checking if you specified -L/-l options for FreeType" >&5
18952 echo $ECHO_N "checking if you specified -L/-l options for FreeType... $ECHO_C" >&6
18953
18954 # Check whether --with-freetype-libs or --without-freetype-libs was given.
18955 if test "${with_freetype_libs+set}" = set; then
18956 withval="$with_freetype_libs"
18957 cf_cv_x_freetype_libs="$with_freetype_libs"
18958 else
18959 cf_cv_x_freetype_libs=no
18960 fi;
18961 echo "$as_me:18961: result: $cf_cv_x_freetype_libs" >&5
18962 echo "${ECHO_T}$cf_cv_x_freetype_libs" >&6
18963 ;;
18964 (auto)
18965 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xft; then
18966 FREETYPE_CONFIG=$PKG_CONFIG
18967 FREETYPE_PARAMS=xft
18968 else
18969 # Extract the first word of "freetype-config", so it can be a program name with args.
18970 set dummy freetype-config; ac_word=$2
18971 echo "$as_me:18971: checking for $ac_word" >&5
18972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18973 if test "${ac_cv_path_FREETYPE_CONFIG+set}" = set; then
18974 echo $ECHO_N "(cached) $ECHO_C" >&6
18975 else
18976 case $FREETYPE_CONFIG in
18977 [\\/]* | ?:[\\/]*)
18978 ac_cv_path_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test with a path.
18979 ;;
18980 *)
18981 ac_save_IFS=$IFS; IFS=$ac_path_separator
18982 ac_dummy="$PATH"
18983 for ac_dir in $ac_dummy; do
18984 IFS=$ac_save_IFS
18985 test -z "$ac_dir" && ac_dir=.
18986 if $as_executable_p "$ac_dir/$ac_word"; then
18987 ac_cv_path_FREETYPE_CONFIG="$ac_dir/$ac_word"
18988 echo "$as_me:18988: found $ac_dir/$ac_word" >&5
18989 break
18990 fi
18991 done
18992
18993 test -z "$ac_cv_path_FREETYPE_CONFIG" && ac_cv_path_FREETYPE_CONFIG="none"
18994 ;;
18995 esac
18996 fi
18997 FREETYPE_CONFIG=$ac_cv_path_FREETYPE_CONFIG
18998
18999 if test -n "$FREETYPE_CONFIG"; then
19000 echo "$as_me:19000: result: $FREETYPE_CONFIG" >&5
19001 echo "${ECHO_T}$FREETYPE_CONFIG" >&6
19002 else
19003 echo "$as_me:19003: result: no" >&5
19004 echo "${ECHO_T}no" >&6
19005 fi
19006
19007 if test "$FREETYPE_CONFIG" != none; then
19008 FREETYPE_CONFIG=$FREETYPE_CONFIG
19009 cf_extra_freetype_libs="-lXft"
19010 else
19011 # Extract the first word of "xft-config", so it can be a program name with args.
19012 set dummy xft-config; ac_word=$2
19013 echo "$as_me:19013: checking for $ac_word" >&5
19014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19015 if test "${ac_cv_path_FREETYPE_OLD_CONFIG+set}" = set; then
19016 echo $ECHO_N "(cached) $ECHO_C" >&6
19017 else
19018 case $FREETYPE_OLD_CONFIG in
19019 [\\/]* | ?:[\\/]*)
19020 ac_cv_path_FREETYPE_OLD_CONFIG="$FREETYPE_OLD_CONFIG" # Let the user override the test with a path.
19021 ;;
19022 *)
19023 ac_save_IFS=$IFS; IFS=$ac_path_separator
19024 ac_dummy="$PATH"
19025 for ac_dir in $ac_dummy; do
19026 IFS=$ac_save_IFS
19027 test -z "$ac_dir" && ac_dir=.
19028 if $as_executable_p "$ac_dir/$ac_word"; then
19029 ac_cv_path_FREETYPE_OLD_CONFIG="$ac_dir/$ac_word"
19030 echo "$as_me:19030: found $ac_dir/$ac_word" >&5
19031 break
19032 fi
19033 done
19034
19035 test -z "$ac_cv_path_FREETYPE_OLD_CONFIG" && ac_cv_path_FREETYPE_OLD_CONFIG="none"
19036 ;;
19037 esac
19038 fi
19039 FREETYPE_OLD_CONFIG=$ac_cv_path_FREETYPE_OLD_CONFIG
19040
19041 if test -n "$FREETYPE_OLD_CONFIG"; then
19042 echo "$as_me:19042: result: $FREETYPE_OLD_CONFIG" >&5
19043 echo "${ECHO_T}$FREETYPE_OLD_CONFIG" >&6
19044 else
19045 echo "$as_me:19045: result: no" >&5
19046 echo "${ECHO_T}no" >&6
19047 fi
19048
19049 if test "$FREETYPE_OLD_CONFIG" != none; then
19050 FREETYPE_CONFIG=$FREETYPE_OLD_CONFIG
19051 fi
19052 fi
19053 fi
19054 ;;
19055 (pkg*)
19056 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xft; then
19057 FREETYPE_CONFIG=$cf_cv_x_freetype_cfgs
19058 FREETYPE_PARAMS=xft
19059 else
19060 { echo "$as_me:19060: WARNING: cannot find pkg-config for Xft" >&5
19061 echo "$as_me: WARNING: cannot find pkg-config for Xft" >&2;}
19062 fi
19063 ;;
19064 (*)
19065 # Extract the first word of "$cf_cv_x_freetype_cfgs", so it can be a program name with args.
19066 set dummy $cf_cv_x_freetype_cfgs; ac_word=$2
19067 echo "$as_me:19067: checking for $ac_word" >&5
19068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19069 if test "${ac_cv_path_FREETYPE_XFT_CONFIG+set}" = set; then
19070 echo $ECHO_N "(cached) $ECHO_C" >&6
19071 else
19072 case $FREETYPE_XFT_CONFIG in
19073 [\\/]* | ?:[\\/]*)
19074 ac_cv_path_FREETYPE_XFT_CONFIG="$FREETYPE_XFT_CONFIG" # Let the user override the test with a path.
19075 ;;
19076 *)
19077 ac_save_IFS=$IFS; IFS=$ac_path_separator
19078 ac_dummy="$PATH"
19079 for ac_dir in $ac_dummy; do
19080 IFS=$ac_save_IFS
19081 test -z "$ac_dir" && ac_dir=.
19082 if $as_executable_p "$ac_dir/$ac_word"; then
19083 ac_cv_path_FREETYPE_XFT_CONFIG="$ac_dir/$ac_word"
19084 echo "$as_me:19084: found $ac_dir/$ac_word" >&5
19085 break
19086 fi
19087 done
19088
19089 test -z "$ac_cv_path_FREETYPE_XFT_CONFIG" && ac_cv_path_FREETYPE_XFT_CONFIG="none"
19090 ;;
19091 esac
19092 fi
19093 FREETYPE_XFT_CONFIG=$ac_cv_path_FREETYPE_XFT_CONFIG
19094
19095 if test -n "$FREETYPE_XFT_CONFIG"; then
19096 echo "$as_me:19096: result: $FREETYPE_XFT_CONFIG" >&5
19097 echo "${ECHO_T}$FREETYPE_XFT_CONFIG" >&6
19098 else
19099 echo "$as_me:19099: result: no" >&5
19100 echo "${ECHO_T}no" >&6
19101 fi
19102
19103 if test "$FREETYPE_XFT_CONFIG" != none; then
19104 FREETYPE_CONFIG=$FREETYPE_XFT_CONFIG
19105 else
19106 { echo "$as_me:19106: WARNING: cannot find config script for Xft" >&5
19107 echo "$as_me: WARNING: cannot find config script for Xft" >&2;}
19108 fi
19109 ;;
19110 esac
19111
19112 if test "$FREETYPE_CONFIG" != none ; then
19113 echo "$as_me:19113: checking for FreeType config" >&5
19114 echo $ECHO_N "checking for FreeType config... $ECHO_C" >&6
19115 echo "$as_me:19115: result: $FREETYPE_CONFIG $FREETYPE_PARAMS" >&5
19116 echo "${ECHO_T}$FREETYPE_CONFIG $FREETYPE_PARAMS" >&6
19117
19118 if test "$cf_cv_x_freetype_incs" = no ; then
19119 echo "$as_me:19119: checking for $FREETYPE_CONFIG cflags" >&5
19120 echo $ECHO_N "checking for $FREETYPE_CONFIG cflags... $ECHO_C" >&6
19121 cf_cv_x_freetype_incs="`$FREETYPE_CONFIG $FREETYPE_PARAMS --cflags 2>/dev/null`"
19122 echo "$as_me:19122: result: $cf_cv_x_freetype_incs" >&5
19123 echo "${ECHO_T}$cf_cv_x_freetype_incs" >&6
19124 fi
19125
19126 if test "$cf_cv_x_freetype_libs" = no ; then
19127 echo "$as_me:19127: checking for $FREETYPE_CONFIG libs" >&5
19128 echo $ECHO_N "checking for $FREETYPE_CONFIG libs... $ECHO_C" >&6
19129 cf_cv_x_freetype_libs="$cf_extra_freetype_libs `$FREETYPE_CONFIG $FREETYPE_PARAMS --libs 2>/dev/null`"
19130 echo "$as_me:19130: result: $cf_cv_x_freetype_libs" >&5
19131 echo "${ECHO_T}$cf_cv_x_freetype_libs" >&6
19132 fi
19133 fi
19134
19135 if test "$cf_cv_x_freetype_incs" = no ; then
19136 cf_cv_x_freetype_incs=
19137 fi
19138
19139 if test "$cf_cv_x_freetype_libs" = no ; then
19140 cf_cv_x_freetype_libs=-lXft
19141 fi
19142
19143 echo "$as_me:19143: checking if we can link with FreeType libraries" >&5
19144 echo $ECHO_N "checking if we can link with FreeType libraries... $ECHO_C" >&6
19145
19146 cf_save_LIBS="$LIBS"
19147 cf_save_INCS="$CPPFLAGS"
19148
19149 cf_add_libs="$LIBS"
19150 # reverse order
19151 cf_add_0lib=
19152 for cf_add_1lib in $cf_cv_x_freetype_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19153 # filter duplicates
19154 for cf_add_1lib in $cf_add_0lib; do
19155 for cf_add_2lib in $cf_add_libs; do
19156 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19157 cf_add_1lib=
19158 break
19159 fi
19160 done
19161 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19162 done
19163 LIBS="$cf_add_libs"
19164
19165 CPPFLAGS="$CPPFLAGS $cf_cv_x_freetype_incs"
19166
19167 cat >"conftest.$ac_ext" <<_ACEOF
19168 #line 19168 "configure"
19169 #include "confdefs.h"
19170
19171 #include <X11/Xlib.h>
19172 #include <X11/extensions/Xrender.h>
19173 #include <X11/Xft/Xft.h>
19174 int
19175 main (void)
19176 {
19177
19178 XftPattern *pat = XftNameParse ("name"); (void)pat
19179 ;
19180 return 0;
19181 }
19182 _ACEOF
19183 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19184 if { (eval echo "$as_me:19184: \"$ac_link\"") >&5
19185 (eval $ac_link) 2>&5
19186 ac_status=$?
19187 echo "$as_me:19187: \$? = $ac_status" >&5
19188 (exit "$ac_status"); } &&
19189 { ac_try='test -s "conftest$ac_exeext"'
19190 { (eval echo "$as_me:19190: \"$ac_try\"") >&5
19191 (eval $ac_try) 2>&5
19192 ac_status=$?
19193 echo "$as_me:19193: \$? = $ac_status" >&5
19194 (exit "$ac_status"); }; }; then
19195 cf_cv_found_freetype=yes
19196 else
19197 echo "$as_me: failed program was:" >&5
19198 cat "conftest.$ac_ext" >&5
19199 cf_cv_found_freetype=no
19200 fi
19201 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19202 echo "$as_me:19202: result: $cf_cv_found_freetype" >&5
19203 echo "${ECHO_T}$cf_cv_found_freetype" >&6
19204
19205 LIBS="$cf_save_LIBS"
19206 CPPFLAGS="$cf_save_INCS"
19207
19208 if test "$cf_cv_found_freetype" = yes ; then
19209
19210 cf_add_libs="$LIBS"
19211 # reverse order
19212 cf_add_0lib=
19213 for cf_add_1lib in $cf_cv_x_freetype_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19214 # filter duplicates
19215 for cf_add_1lib in $cf_add_0lib; do
19216 for cf_add_2lib in $cf_add_libs; do
19217 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19218 cf_add_1lib=
19219 break
19220 fi
19221 done
19222 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19223 done
19224 LIBS="$cf_add_libs"
19225
19226 cf_fix_cppflags=no
19227 cf_new_cflags=
19228 cf_new_cppflags=
19229 cf_new_extra_cppflags=
19230
19231 for cf_add_cflags in $cf_cv_x_freetype_incs
19232 do
19233 case "$cf_fix_cppflags" in
19234 (no)
19235 case "$cf_add_cflags" in
19236 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
19237 case "$cf_add_cflags" in
19238 (-D*)
19239 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
19240
19241 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
19242 && test -z "${cf_tst_cflags}" \
19243 && cf_fix_cppflags=yes
19244
19245 if test "$cf_fix_cppflags" = yes ; then
19246
19247 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
19248 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
19249
19250 continue
19251 elif test "${cf_tst_cflags}" = "\"'" ; then
19252
19253 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
19254 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
19255
19256 continue
19257 fi
19258 ;;
19259 esac
19260 case "$CPPFLAGS" in
19261 (*$cf_add_cflags)
19262 ;;
19263 (*)
19264 case "$cf_add_cflags" in
19265 (-D*)
19266 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
19267
19268 CPPFLAGS=`echo "$CPPFLAGS" | \
19269 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
19270 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
19271
19272 ;;
19273 esac
19274
19275 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
19276 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
19277
19278 ;;
19279 esac
19280 ;;
19281 (*)
19282
19283 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
19284 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
19285
19286 ;;
19287 esac
19288 ;;
19289 (yes)
19290
19291 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
19292 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
19293
19294 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
19295
19296 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
19297 && test -z "${cf_tst_cflags}" \
19298 && cf_fix_cppflags=no
19299 ;;
19300 esac
19301 done
19302
19303 if test -n "$cf_new_cflags" ; then
19304
19305 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
19306 CFLAGS="${CFLAGS}$cf_new_cflags"
19307
19308 fi
19309
19310 if test -n "$cf_new_cppflags" ; then
19311
19312 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
19313 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
19314
19315 fi
19316
19317 if test -n "$cf_new_extra_cppflags" ; then
19318
19319 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
19320 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
19321
19322 fi
19323
19324 cat >>confdefs.h <<\EOF
19325 #define XRENDERFONT 1
19326 EOF
19327
19328 for ac_func in \
19329 XftDrawCharSpec \
19330 XftDrawSetClip \
19331 XftDrawSetClipRectangles \
19332
19333 do
19334 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19335 echo "$as_me:19335: checking for $ac_func" >&5
19336 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19337 if eval "test \"\${$as_ac_var+set}\" = set"; then
19338 echo $ECHO_N "(cached) $ECHO_C" >&6
19339 else
19340 cat >"conftest.$ac_ext" <<_ACEOF
19341 #line 19341 "configure"
19342 #include "confdefs.h"
19343 #define $ac_func autoconf_temporary
19344 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
19345 #undef $ac_func
19346
19347 #ifdef __cplusplus
19348 extern "C"
19349 #endif
19350
19351 /* We use char because int might match the return type of a gcc2
19352 builtin and then its argument prototype would still apply. */
19353 char $ac_func (void);
19354
19355 int
19356 main (void)
19357 {
19358
19359 /* The GNU C library defines stubs for functions which it implements
19360 to always fail with ENOSYS. Some functions are actually named
19361 something starting with __ and the normal name is an alias. */
19362 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19363 #error found stub for $ac_func
19364 #endif
19365
19366 return $ac_func ();
19367 ;
19368 return 0;
19369 }
19370 _ACEOF
19371 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19372 if { (eval echo "$as_me:19372: \"$ac_link\"") >&5
19373 (eval $ac_link) 2>&5
19374 ac_status=$?
19375 echo "$as_me:19375: \$? = $ac_status" >&5
19376 (exit "$ac_status"); } &&
19377 { ac_try='test -s "conftest$ac_exeext"'
19378 { (eval echo "$as_me:19378: \"$ac_try\"") >&5
19379 (eval $ac_try) 2>&5
19380 ac_status=$?
19381 echo "$as_me:19381: \$? = $ac_status" >&5
19382 (exit "$ac_status"); }; }; then
19383 eval "$as_ac_var=yes"
19384 else
19385 echo "$as_me: failed program was:" >&5
19386 cat "conftest.$ac_ext" >&5
19387 eval "$as_ac_var=no"
19388 fi
19389 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19390 fi
19391 echo "$as_me:19391: result: `eval echo '${'"$as_ac_var"'}'`" >&5
19392 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
19393 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
19394 cat >>confdefs.h <<EOF
19395 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19396 EOF
19397
19398 fi
19399 done
19400
19401 else
19402 { echo "$as_me:19402: WARNING: No libraries found for FreeType" >&5
19403 echo "$as_me: WARNING: No libraries found for FreeType" >&2;}
19404 CPPFLAGS=`echo "$CPPFLAGS" | sed -e s/-DXRENDERFONT//`
19405 fi
19406
19407 # FIXME: revisit this if needed
19408
19409 if test "$cf_cv_found_freetype" = yes ; then
19410 echo "$as_me:19410: checking for usable Xft/fontconfig package" >&5
19411 echo $ECHO_N "checking for usable Xft/fontconfig package... $ECHO_C" >&6
19412 if test "${cf_cv_xft_compat+set}" = set; then
19413 echo $ECHO_N "(cached) $ECHO_C" >&6
19414 else
19415
19416 cat >"conftest.$ac_ext" <<_ACEOF
19417 #line 19417 "configure"
19418 #include "confdefs.h"
19419
19420 #include <X11/Xft/Xft.h>
19421
19422 int
19423 main (void)
19424 {
19425
19426 XftPattern *pat = 0;
19427 XftPatternBuild(pat,
19428 XFT_FAMILY, XftTypeString, "mono",
19429 (void *) 0);
19430
19431 ;
19432 return 0;
19433 }
19434 _ACEOF
19435 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19436 if { (eval echo "$as_me:19436: \"$ac_link\"") >&5
19437 (eval $ac_link) 2>&5
19438 ac_status=$?
19439 echo "$as_me:19439: \$? = $ac_status" >&5
19440 (exit "$ac_status"); } &&
19441 { ac_try='test -s "conftest$ac_exeext"'
19442 { (eval echo "$as_me:19442: \"$ac_try\"") >&5
19443 (eval $ac_try) 2>&5
19444 ac_status=$?
19445 echo "$as_me:19445: \$? = $ac_status" >&5
19446 (exit "$ac_status"); }; }; then
19447 cf_cv_xft_compat=yes
19448 else
19449 echo "$as_me: failed program was:" >&5
19450 cat "conftest.$ac_ext" >&5
19451 cf_cv_xft_compat=no
19452 fi
19453 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19454
19455 fi
19456 echo "$as_me:19456: result: $cf_cv_xft_compat" >&5
19457 echo "${ECHO_T}$cf_cv_xft_compat" >&6
19458
19459 if test "$cf_cv_xft_compat" = no
19460 then
19461 # workaround for broken ".pc" files used for Xft.
19462 case "$cf_cv_x_freetype_libs" in
19463 (*-lfontconfig*)
19464 ;;
19465 (*)
19466 test -n "$verbose" && echo " work around broken package" 1>&6
19467
19468 echo "${as_me:-configure}:19468: testing work around broken package ..." 1>&5
19469
19470 cf_save_fontconfig="$LIBS"
19471
19472 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "fontconfig"; then
19473 test -n "$verbose" && echo " found package fontconfig" 1>&6
19474
19475 echo "${as_me:-configure}:19475: testing found package fontconfig ..." 1>&5
19476
19477 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "fontconfig" 2>/dev/null`"
19478 cf_pkgconfig_libs="`$PKG_CONFIG --libs "fontconfig" 2>/dev/null`"
19479 test -n "$verbose" && echo " package fontconfig CFLAGS: $cf_pkgconfig_incs" 1>&6
19480
19481 echo "${as_me:-configure}:19481: testing package fontconfig CFLAGS: $cf_pkgconfig_incs ..." 1>&5
19482
19483 test -n "$verbose" && echo " package fontconfig LIBS: $cf_pkgconfig_libs" 1>&6
19484
19485 echo "${as_me:-configure}:19485: testing package fontconfig LIBS: $cf_pkgconfig_libs ..." 1>&5
19486
19487 cf_fix_cppflags=no
19488 cf_new_cflags=
19489 cf_new_cppflags=
19490 cf_new_extra_cppflags=
19491
19492 for cf_add_cflags in $cf_pkgconfig_incs
19493 do
19494 case "$cf_fix_cppflags" in
19495 (no)
19496 case "$cf_add_cflags" in
19497 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
19498 case "$cf_add_cflags" in
19499 (-D*)
19500 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
19501
19502 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
19503 && test -z "${cf_tst_cflags}" \
19504 && cf_fix_cppflags=yes
19505
19506 if test "$cf_fix_cppflags" = yes ; then
19507
19508 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
19509 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
19510
19511 continue
19512 elif test "${cf_tst_cflags}" = "\"'" ; then
19513
19514 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
19515 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
19516
19517 continue
19518 fi
19519 ;;
19520 esac
19521 case "$CPPFLAGS" in
19522 (*$cf_add_cflags)
19523 ;;
19524 (*)
19525 case "$cf_add_cflags" in
19526 (-D*)
19527 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
19528
19529 CPPFLAGS=`echo "$CPPFLAGS" | \
19530 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
19531 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
19532
19533 ;;
19534 esac
19535
19536 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
19537 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
19538
19539 ;;
19540 esac
19541 ;;
19542 (*)
19543
19544 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
19545 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
19546
19547 ;;
19548 esac
19549 ;;
19550 (yes)
19551
19552 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
19553 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
19554
19555 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
19556
19557 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
19558 && test -z "${cf_tst_cflags}" \
19559 && cf_fix_cppflags=no
19560 ;;
19561 esac
19562 done
19563
19564 if test -n "$cf_new_cflags" ; then
19565
19566 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
19567 CFLAGS="${CFLAGS}$cf_new_cflags"
19568
19569 fi
19570
19571 if test -n "$cf_new_cppflags" ; then
19572
19573 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
19574 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
19575
19576 fi
19577
19578 if test -n "$cf_new_extra_cppflags" ; then
19579
19580 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
19581 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
19582
19583 fi
19584
19585 cf_add_libs="$LIBS"
19586 # reverse order
19587 cf_add_0lib=
19588 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19589 # filter duplicates
19590 for cf_add_1lib in $cf_add_0lib; do
19591 for cf_add_2lib in $cf_add_libs; do
19592 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19593 cf_add_1lib=
19594 break
19595 fi
19596 done
19597 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19598 done
19599 LIBS="$cf_add_libs"
19600
19601 cf_fix_cppflags=no
19602 cf_new_cflags=
19603 cf_new_cppflags=
19604 cf_new_extra_cppflags=
19605
19606 for cf_add_cflags in $cf_pkgconfig_incs
19607 do
19608 case "$cf_fix_cppflags" in
19609 (no)
19610 case "$cf_add_cflags" in
19611 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
19612 case "$cf_add_cflags" in
19613 (-D*)
19614 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
19615
19616 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
19617 && test -z "${cf_tst_cflags}" \
19618 && cf_fix_cppflags=yes
19619
19620 if test "$cf_fix_cppflags" = yes ; then
19621
19622 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
19623 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
19624
19625 continue
19626 elif test "${cf_tst_cflags}" = "\"'" ; then
19627
19628 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
19629 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
19630
19631 continue
19632 fi
19633 ;;
19634 esac
19635 case "$CPPFLAGS" in
19636 (*$cf_add_cflags)
19637 ;;
19638 (*)
19639 case "$cf_add_cflags" in
19640 (-D*)
19641 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
19642
19643 CPPFLAGS=`echo "$CPPFLAGS" | \
19644 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
19645 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
19646
19647 ;;
19648 esac
19649
19650 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
19651 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
19652
19653 ;;
19654 esac
19655 ;;
19656 (*)
19657
19658 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
19659 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
19660
19661 ;;
19662 esac
19663 ;;
19664 (yes)
19665
19666 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
19667 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
19668
19669 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
19670
19671 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
19672 && test -z "${cf_tst_cflags}" \
19673 && cf_fix_cppflags=no
19674 ;;
19675 esac
19676 done
19677
19678 if test -n "$cf_new_cflags" ; then
19679
19680 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
19681 CFLAGS="${CFLAGS}$cf_new_cflags"
19682
19683 fi
19684
19685 if test -n "$cf_new_cppflags" ; then
19686
19687 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
19688 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
19689
19690 fi
19691
19692 if test -n "$cf_new_extra_cppflags" ; then
19693
19694 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
19695 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
19696
19697 fi
19698
19699 LIBS="$cf_save_fontconfig"
19700
19701 test -n "$verbose" && echo " ...before $LIBS" 1>&6
19702
19703 echo "${as_me:-configure}:19703: testing ...before $LIBS ..." 1>&5
19704
19705 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXft %-lXft $cf_pkgconfig_libs %" -e 's% % %g'`
19706 test -n "$verbose" && echo " ...after $LIBS" 1>&6
19707
19708 echo "${as_me:-configure}:19708: testing ...after $LIBS ..." 1>&5
19709
19710 else
19711 cf_pkgconfig_incs=
19712 cf_pkgconfig_libs=
19713
19714 test -n "$verbose" && echo " ...before $LIBS" 1>&6
19715
19716 echo "${as_me:-configure}:19716: testing ...before $LIBS ..." 1>&5
19717
19718 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXft %-lXft -lfontconfig %" -e 's% % %g'`
19719 test -n "$verbose" && echo " ...after $LIBS" 1>&6
19720
19721 echo "${as_me:-configure}:19721: testing ...after $LIBS ..." 1>&5
19722
19723 fi
19724
19725 ;;
19726 esac
19727 fi
19728 fi
19729
19730 else
19731 CPPFLAGS=`echo "$CPPFLAGS" | sed -e s/-DXRENDERFONT//`
19732 fi
19733
19734 echo "$as_me:19734: checking if you want support for HP-style function keys" >&5
19735 echo $ECHO_N "checking if you want support for HP-style function keys... $ECHO_C" >&6
19736
19737 # Check whether --enable-hp-fkeys or --disable-hp-fkeys was given.
19738 if test "${enable_hp_fkeys+set}" = set; then
19739 enableval="$enable_hp_fkeys"
19740 test "$enableval" != yes && enableval=no
19741 if test "$enableval" != "no" ; then
19742 enable_hp_fkeys=yes
19743 else
19744 enable_hp_fkeys=no
19745 fi
19746 else
19747 enableval=no
19748 enable_hp_fkeys=no
19749
19750 fi;
19751 echo "$as_me:19751: result: $enable_hp_fkeys" >&5
19752 echo "${ECHO_T}$enable_hp_fkeys" >&6
19753 if test "$enable_hp_fkeys" = yes ; then
19754
19755 cat >>confdefs.h <<\EOF
19756 #define OPT_HP_FUNC_KEYS 1
19757 EOF
19758
19759 fi
19760
19761 echo "$as_me:19761: checking if you want support for SCO-style function keys" >&5
19762 echo $ECHO_N "checking if you want support for SCO-style function keys... $ECHO_C" >&6
19763
19764 # Check whether --enable-sco-fkeys or --disable-sco-fkeys was given.
19765 if test "${enable_sco_fkeys+set}" = set; then
19766 enableval="$enable_sco_fkeys"
19767 test "$enableval" != yes && enableval=no
19768 if test "$enableval" != "no" ; then
19769 enable_sco_fkeys=yes
19770 else
19771 enable_sco_fkeys=no
19772 fi
19773 else
19774 enableval=no
19775 enable_sco_fkeys=no
19776
19777 fi;
19778 echo "$as_me:19778: result: $enable_sco_fkeys" >&5
19779 echo "${ECHO_T}$enable_sco_fkeys" >&6
19780 if test "$enable_sco_fkeys" = yes ; then
19781
19782 cat >>confdefs.h <<\EOF
19783 #define OPT_SCO_FUNC_KEYS 1
19784 EOF
19785
19786 fi
19787
19788 echo "$as_me:19788: checking if you want support for Sun-style function keys" >&5
19789 echo $ECHO_N "checking if you want support for Sun-style function keys... $ECHO_C" >&6
19790
19791 # Check whether --enable-sun-fkeys or --disable-sun-fkeys was given.
19792 if test "${enable_sun_fkeys+set}" = set; then
19793 enableval="$enable_sun_fkeys"
19794 test "$enableval" != no && enableval=yes
19795 if test "$enableval" != "yes" ; then
19796 enable_sun_fkeys=no
19797 else
19798 enable_sun_fkeys=yes
19799 fi
19800 else
19801 enableval=yes
19802 enable_sun_fkeys=yes
19803
19804 fi;
19805 echo "$as_me:19805: result: $enable_sun_fkeys" >&5
19806 echo "${ECHO_T}$enable_sun_fkeys" >&6
19807 if test "$enable_sun_fkeys" = no ; then
19808
19809 cat >>confdefs.h <<\EOF
19810 #define OPT_SUN_FUNC_KEYS 0
19811 EOF
19812
19813 fi
19814
19815 echo "$as_me:19815: checking if you want saved-lines stored as a FIFO" >&5
19816 echo $ECHO_N "checking if you want saved-lines stored as a FIFO... $ECHO_C" >&6
19817
19818 # Check whether --enable-fifo-lines or --disable-fifo-lines was given.
19819 if test "${enable_fifo_lines+set}" = set; then
19820 enableval="$enable_fifo_lines"
19821 test "$enableval" != no && enableval=yes
19822 if test "$enableval" != "yes" ; then
19823 enable_fifo_lines=no
19824 else
19825 enable_fifo_lines=yes
19826 fi
19827 else
19828 enableval=yes
19829 enable_fifo_lines=yes
19830
19831 fi;
19832 echo "$as_me:19832: result: $enable_fifo_lines" >&5
19833 echo "${ECHO_T}$enable_fifo_lines" >&6
19834 if test "$enable_fifo_lines" = yes ; then
19835
19836 cat >>confdefs.h <<\EOF
19837 #define OPT_FIFO_LINES 1
19838 EOF
19839
19840 fi
19841
19842 echo "$as_me:19842: checking if you want support for internationalization" >&5
19843 echo $ECHO_N "checking if you want support for internationalization... $ECHO_C" >&6
19844
19845 # Check whether --enable-i18n or --disable-i18n was given.
19846 if test "${enable_i18n+set}" = set; then
19847 enableval="$enable_i18n"
19848 test "$enableval" != no && enableval=yes
19849 if test "$enableval" != "yes" ; then
19850 enable_i18n=no
19851 else
19852 enable_i18n=yes
19853 fi
19854 else
19855 enableval=yes
19856 enable_i18n=yes
19857
19858 fi;
19859 echo "$as_me:19859: result: $enable_i18n" >&5
19860 echo "${ECHO_T}$enable_i18n" >&6
19861 if test "$enable_i18n" = no ; then
19862
19863 cat >>confdefs.h <<\EOF
19864 #define OPT_I18N_SUPPORT 0
19865 EOF
19866
19867 fi
19868
19869 echo "$as_me:19869: checking if you want support for initial-erase setup" >&5
19870 echo $ECHO_N "checking if you want support for initial-erase setup... $ECHO_C" >&6
19871
19872 # Check whether --enable-initial-erase or --disable-initial-erase was given.
19873 if test "${enable_initial_erase+set}" = set; then
19874 enableval="$enable_initial_erase"
19875 test "$enableval" != no && enableval=yes
19876 if test "$enableval" != "yes" ; then
19877 enable_ie=no
19878 else
19879 enable_ie=yes
19880 fi
19881 else
19882 enableval=yes
19883 enable_ie=yes
19884
19885 fi;
19886 echo "$as_me:19886: result: $enable_ie" >&5
19887 echo "${ECHO_T}$enable_ie" >&6
19888 if test "$enable_ie" = no ; then
19889
19890 cat >>confdefs.h <<\EOF
19891 #define OPT_INITIAL_ERASE 0
19892 EOF
19893
19894 fi
19895
19896 echo "$as_me:19896: checking if you want support for input-method" >&5
19897 echo $ECHO_N "checking if you want support for input-method... $ECHO_C" >&6
19898
19899 # Check whether --enable-input-method or --disable-input-method was given.
19900 if test "${enable_input_method+set}" = set; then
19901 enableval="$enable_input_method"
19902 test "$enableval" != no && enableval=yes
19903 if test "$enableval" != "yes" ; then
19904 enable_ximp=no
19905 else
19906 enable_ximp=$enable_i18n
19907 fi
19908 else
19909 enableval=yes
19910 enable_ximp=$enable_i18n
19911
19912 fi;
19913 echo "$as_me:19913: result: $enable_ximp" >&5
19914 echo "${ECHO_T}$enable_ximp" >&6
19915
19916 echo "$as_me:19916: checking if X libraries support input-method" >&5
19917 echo $ECHO_N "checking if X libraries support input-method... $ECHO_C" >&6
19918 if test "${cf_cv_input_method+set}" = set; then
19919 echo $ECHO_N "(cached) $ECHO_C" >&6
19920 else
19921
19922 cat >"conftest.$ac_ext" <<_ACEOF
19923 #line 19923 "configure"
19924 #include "confdefs.h"
19925
19926 #include <X11/IntrinsicP.h>
19927 #include <X11/Xatom.h>
19928 #include <X11/Xutil.h>
19929 #include <X11/Xmu/Atoms.h>
19930 #include <X11/Xmu/Converters.h>
19931 #include <X11/Xaw/XawImP.h>
19932
19933 int
19934 main (void)
19935 {
19936
19937 {
19938 XIM xim;
19939 XIMStyles *xim_styles = 0;
19940 XIMStyle input_style;
19941 Widget w = 0;
19942
19943 XSetLocaleModifiers("@im=none");
19944 xim = XOpenIM(XtDisplay(w), NULL, NULL, NULL);
19945 XGetIMValues(xim, XNQueryInputStyle, &xim_styles, NULL);
19946 XCloseIM(xim);
19947 input_style = (XIMPreeditNothing | XIMStatusNothing);
19948 (void)xim_styles;
19949 (void)input_style;
19950 }
19951
19952 ;
19953 return 0;
19954 }
19955 _ACEOF
19956 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19957 if { (eval echo "$as_me:19957: \"$ac_link\"") >&5
19958 (eval $ac_link) 2>&5
19959 ac_status=$?
19960 echo "$as_me:19960: \$? = $ac_status" >&5
19961 (exit "$ac_status"); } &&
19962 { ac_try='test -s "conftest$ac_exeext"'
19963 { (eval echo "$as_me:19963: \"$ac_try\"") >&5
19964 (eval $ac_try) 2>&5
19965 ac_status=$?
19966 echo "$as_me:19966: \$? = $ac_status" >&5
19967 (exit "$ac_status"); }; }; then
19968 cf_cv_input_method=yes
19969 else
19970 echo "$as_me: failed program was:" >&5
19971 cat "conftest.$ac_ext" >&5
19972 cf_cv_input_method=no
19973 fi
19974 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19975 fi
19976 echo "$as_me:19976: result: $cf_cv_input_method" >&5
19977 echo "${ECHO_T}$cf_cv_input_method" >&6
19978
19979 test "$cf_cv_input_method" = no && enable_ximp=no
19980 if test "$enable_ximp" != no ; then
19981 if test "$enable_i18n" = no ; then
19982 { echo "$as_me:19982: WARNING: input-methor relies upon internationalization" >&5
19983 echo "$as_me: WARNING: input-methor relies upon internationalization" >&2;}
19984 enable_ximp=no
19985 fi
19986 fi
19987 if test "$enable_ximp" = no ; then
19988
19989 cat >>confdefs.h <<\EOF
19990 #define OPT_INPUT_METHOD 0
19991 EOF
19992
19993 fi
19994
19995 echo "$as_me:19995: checking if you want support for load-vt-fonts" >&5
19996 echo $ECHO_N "checking if you want support for load-vt-fonts... $ECHO_C" >&6
19997
19998 # Check whether --enable-load-vt-fonts or --disable-load-vt-fonts was given.
19999 if test "${enable_load_vt_fonts+set}" = set; then
20000 enableval="$enable_load_vt_fonts"
20001 test "$enableval" != yes && enableval=no
20002 if test "$enableval" != "no" ; then
20003 enable_load_vt_fonts=yes
20004 else
20005 enable_load_vt_fonts=no
20006 fi
20007 else
20008 enableval=no
20009 enable_load_vt_fonts=no
20010
20011 fi;
20012 echo "$as_me:20012: result: $enable_load_vt_fonts" >&5
20013 echo "${ECHO_T}$enable_load_vt_fonts" >&6
20014 if test "$enable_load_vt_fonts" = yes ; then
20015
20016 cat >>confdefs.h <<\EOF
20017 #define OPT_LOAD_VTFONTS 1
20018 EOF
20019
20020 fi
20021
20022 echo "$as_me:20022: checking if you want support for logging" >&5
20023 echo $ECHO_N "checking if you want support for logging... $ECHO_C" >&6
20024
20025 # Check whether --enable-logging or --disable-logging was given.
20026 if test "${enable_logging+set}" = set; then
20027 enableval="$enable_logging"
20028 test "$enableval" != yes && enableval=no
20029 if test "$enableval" != "no" ; then
20030 enable_logging=yes
20031 else
20032 enable_logging=no
20033 fi
20034 else
20035 enableval=no
20036 enable_logging=no
20037
20038 fi;
20039 echo "$as_me:20039: result: $enable_logging" >&5
20040 echo "${ECHO_T}$enable_logging" >&6
20041 if test "$enable_logging" = yes ; then
20042
20043 cat >>confdefs.h <<\EOF
20044 #define ALLOWLOGGING 1
20045 EOF
20046
20047 echo "$as_me:20047: checking if you want to allow logging via a pipe" >&5
20048 echo $ECHO_N "checking if you want to allow logging via a pipe... $ECHO_C" >&6
20049
20050 # Check whether --enable-logfile-exec or --disable-logfile-exec was given.
20051 if test "${enable_logfile_exec+set}" = set; then
20052 enableval="$enable_logfile_exec"
20053 test "$enableval" != yes && enableval=no
20054 if test "$enableval" != "no" ; then
20055 enable_log_exec=yes
20056 else
20057 enable_log_exec=no
20058 fi
20059 else
20060 enableval=no
20061 enable_log_exec=no
20062
20063 fi;
20064 echo "$as_me:20064: result: $enable_log_exec" >&5
20065 echo "${ECHO_T}$enable_log_exec" >&6
20066 if test "$enable_log_exec" = yes ; then
20067
20068 cat >>confdefs.h <<\EOF
20069 #define ALLOWLOGFILEEXEC 1
20070 EOF
20071
20072 fi
20073 fi
20074
20075 echo "$as_me:20075: checking if you want support for iconify/maximize translations" >&5
20076 echo $ECHO_N "checking if you want support for iconify/maximize translations... $ECHO_C" >&6
20077
20078 # Check whether --enable-maximize or --disable-maximize was given.
20079 if test "${enable_maximize+set}" = set; then
20080 enableval="$enable_maximize"
20081 test "$enableval" != no && enableval=yes
20082 if test "$enableval" != "yes" ; then
20083 enable_maximize=no
20084 else
20085 enable_maximize=yes
20086 fi
20087 else
20088 enableval=yes
20089 enable_maximize=yes
20090
20091 fi;
20092 echo "$as_me:20092: result: $enable_maximize" >&5
20093 echo "${ECHO_T}$enable_maximize" >&6
20094 test "$enable_maximize" = no &&
20095 cat >>confdefs.h <<\EOF
20096 #define OPT_MAXIMIZE 0
20097 EOF
20098
20099 echo "$as_me:20099: checking if you want NumLock to override keyboard tables" >&5
20100 echo $ECHO_N "checking if you want NumLock to override keyboard tables... $ECHO_C" >&6
20101
20102 # Check whether --enable-num-lock or --disable-num-lock was given.
20103 if test "${enable_num_lock+set}" = set; then
20104 enableval="$enable_num_lock"
20105 test "$enableval" != no && enableval=yes
20106 if test "$enableval" != "yes" ; then
20107 enable_numlock=no
20108 else
20109 enable_numlock=yes
20110 fi
20111 else
20112 enableval=yes
20113 enable_numlock=yes
20114
20115 fi;
20116 echo "$as_me:20116: result: $enable_numlock" >&5
20117 echo "${ECHO_T}$enable_numlock" >&6
20118 test "$enable_numlock" = no &&
20119 cat >>confdefs.h <<\EOF
20120 #define OPT_NUM_LOCK 0
20121 EOF
20122
20123 echo "$as_me:20123: checking if you want support for get/set of base64 selection data" >&5
20124 echo $ECHO_N "checking if you want support for get/set of base64 selection data... $ECHO_C" >&6
20125
20126 # Check whether --enable-paste64 or --disable-paste64 was given.
20127 if test "${enable_paste64+set}" = set; then
20128 enableval="$enable_paste64"
20129 test "$enableval" != no && enableval=yes
20130 if test "$enableval" != "yes" ; then
20131 enable_paste64=no
20132 else
20133 enable_paste64=yes
20134 fi
20135 else
20136 enableval=yes
20137 enable_paste64=yes
20138
20139 fi;
20140 echo "$as_me:20140: result: $enable_paste64" >&5
20141 echo "${ECHO_T}$enable_paste64" >&6
20142 if test "$enable_paste64" = yes ; then
20143
20144 cat >>confdefs.h <<\EOF
20145 #define OPT_PASTE64 1
20146 EOF
20147
20148 else
20149
20150 cat >>confdefs.h <<\EOF
20151 #define OPT_PASTE64 0
20152 EOF
20153
20154 fi
20155
20156 echo "$as_me:20156: checking if you want support for pty-handshaking" >&5
20157 echo $ECHO_N "checking if you want support for pty-handshaking... $ECHO_C" >&6
20158
20159 # Check whether --enable-pty-handshake or --disable-pty-handshake was given.
20160 if test "${enable_pty_handshake+set}" = set; then
20161 enableval="$enable_pty_handshake"
20162 test "$enableval" != no && enableval=yes
20163 if test "$enableval" != "yes" ; then
20164 enable_pty_handshake=no
20165 else
20166 enable_pty_handshake=yes
20167 fi
20168 else
20169 enableval=yes
20170 enable_pty_handshake=yes
20171
20172 fi;
20173 echo "$as_me:20173: result: $enable_pty_handshake" >&5
20174 echo "${ECHO_T}$enable_pty_handshake" >&6
20175 if test "$enable_pty_handshake" = yes ; then
20176
20177 cat >>confdefs.h <<\EOF
20178 #define OPT_PTY_HANDSHAKE 1
20179 EOF
20180
20181 else
20182
20183 cat >>confdefs.h <<\EOF
20184 #define OPT_PTY_HANDSHAKE 0
20185 EOF
20186
20187 fi
20188
20189 echo "$as_me:20189: checking if you want support for mouse in readline applications" >&5
20190 echo $ECHO_N "checking if you want support for mouse in readline applications... $ECHO_C" >&6
20191
20192 # Check whether --enable-readline-mouse or --disable-readline-mouse was given.
20193 if test "${enable_readline_mouse+set}" = set; then
20194 enableval="$enable_readline_mouse"
20195 test "$enableval" != yes && enableval=no
20196 if test "$enableval" != "no" ; then
20197 enable_readline_mouse=yes
20198 else
20199 enable_readline_mouse=no
20200 fi
20201 else
20202 enableval=no
20203 enable_readline_mouse=no
20204
20205 fi;
20206 echo "$as_me:20206: result: $enable_readline_mouse" >&5
20207 echo "${ECHO_T}$enable_readline_mouse" >&6
20208 if test "$enable_readline_mouse" = yes ; then
20209
20210 cat >>confdefs.h <<\EOF
20211 #define OPT_READLINE 1
20212 EOF
20213
20214 fi
20215
20216 echo "$as_me:20216: checking if you want support for regular-expression selections" >&5
20217 echo $ECHO_N "checking if you want support for regular-expression selections... $ECHO_C" >&6
20218
20219 # Check whether --enable-regex or --disable-regex was given.
20220 if test "${enable_regex+set}" = set; then
20221 enableval="$enable_regex"
20222 test "$enableval" != no && enableval=yes
20223 if test "$enableval" != "yes" ; then
20224 enable_regex=no
20225 else
20226 enable_regex=yes
20227 fi
20228 else
20229 enableval=yes
20230 enable_regex=yes
20231
20232 fi;
20233 echo "$as_me:20233: result: $enable_regex" >&5
20234 echo "${ECHO_T}$enable_regex" >&6
20235 if test "$enable_regex" = yes ; then
20236
20237 echo "$as_me:20237: checking if you want to use PCRE2 for regular-expressions" >&5
20238 echo $ECHO_N "checking if you want to use PCRE2 for regular-expressions... $ECHO_C" >&6
20239
20240 # Check whether --with-pcre2 or --without-pcre2 was given.
20241 if test "${with_pcre2+set}" = set; then
20242 withval="$with_pcre2"
20243
20244 fi;
20245 test -z "$with_pcre2" && with_pcre2=no
20246 echo "$as_me:20246: result: $with_pcre2" >&5
20247 echo "${ECHO_T}$with_pcre2" >&6
20248
20249 if test "x$with_pcre2" != xno ; then
20250 cf_with_pcre2_ok=no
20251 for cf_with_pcre2 in libpcre2 libpcre2-posix libpcre
20252 do
20253
20254 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "$cf_with_pcre2"; then
20255 test -n "$verbose" && echo " found package $cf_with_pcre2" 1>&6
20256
20257 echo "${as_me:-configure}:20257: testing found package $cf_with_pcre2 ..." 1>&5
20258
20259 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "$cf_with_pcre2" 2>/dev/null`"
20260 cf_pkgconfig_libs="`$PKG_CONFIG --libs "$cf_with_pcre2" 2>/dev/null`"
20261 test -n "$verbose" && echo " package $cf_with_pcre2 CFLAGS: $cf_pkgconfig_incs" 1>&6
20262
20263 echo "${as_me:-configure}:20263: testing package $cf_with_pcre2 CFLAGS: $cf_pkgconfig_incs ..." 1>&5
20264
20265 test -n "$verbose" && echo " package $cf_with_pcre2 LIBS: $cf_pkgconfig_libs" 1>&6
20266
20267 echo "${as_me:-configure}:20267: testing package $cf_with_pcre2 LIBS: $cf_pkgconfig_libs ..." 1>&5
20268
20269 cf_fix_cppflags=no
20270 cf_new_cflags=
20271 cf_new_cppflags=
20272 cf_new_extra_cppflags=
20273
20274 for cf_add_cflags in $cf_pkgconfig_incs
20275 do
20276 case "$cf_fix_cppflags" in
20277 (no)
20278 case "$cf_add_cflags" in
20279 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
20280 case "$cf_add_cflags" in
20281 (-D*)
20282 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
20283
20284 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
20285 && test -z "${cf_tst_cflags}" \
20286 && cf_fix_cppflags=yes
20287
20288 if test "$cf_fix_cppflags" = yes ; then
20289
20290 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
20291 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
20292
20293 continue
20294 elif test "${cf_tst_cflags}" = "\"'" ; then
20295
20296 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
20297 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
20298
20299 continue
20300 fi
20301 ;;
20302 esac
20303 case "$CPPFLAGS" in
20304 (*$cf_add_cflags)
20305 ;;
20306 (*)
20307 case "$cf_add_cflags" in
20308 (-D*)
20309 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
20310
20311 CPPFLAGS=`echo "$CPPFLAGS" | \
20312 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
20313 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
20314
20315 ;;
20316 esac
20317
20318 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
20319 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
20320
20321 ;;
20322 esac
20323 ;;
20324 (*)
20325
20326 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
20327 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
20328
20329 ;;
20330 esac
20331 ;;
20332 (yes)
20333
20334 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
20335 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
20336
20337 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
20338
20339 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
20340 && test -z "${cf_tst_cflags}" \
20341 && cf_fix_cppflags=no
20342 ;;
20343 esac
20344 done
20345
20346 if test -n "$cf_new_cflags" ; then
20347
20348 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
20349 CFLAGS="${CFLAGS}$cf_new_cflags"
20350
20351 fi
20352
20353 if test -n "$cf_new_cppflags" ; then
20354
20355 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
20356 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
20357
20358 fi
20359
20360 if test -n "$cf_new_extra_cppflags" ; then
20361
20362 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
20363 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
20364
20365 fi
20366
20367 cf_add_libs="$LIBS"
20368 # reverse order
20369 cf_add_0lib=
20370 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
20371 # filter duplicates
20372 for cf_add_1lib in $cf_add_0lib; do
20373 for cf_add_2lib in $cf_add_libs; do
20374 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
20375 cf_add_1lib=
20376 break
20377 fi
20378 done
20379 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
20380 done
20381 LIBS="$cf_add_libs"
20382
20383 cf_with_pcre2_ok=yes; break
20384 else
20385 cf_pkgconfig_incs=
20386 cf_pkgconfig_libs=
20387 :
20388 fi
20389
20390 done
20391 cf_with_pcre2_ok=yes || { { echo "$as_me:20391: error: Cannot find PCRE2 library" >&5
20392 echo "$as_me: error: Cannot find PCRE2 library" >&2;}
20393 { (exit 1); exit 1; }; }
20394
20395 cat >>confdefs.h <<\EOF
20396 #define HAVE_LIB_PCRE2 1
20397 EOF
20398
20399 # if pkgconfig gave no results, look for the libraries directly
20400 case "$LIBS" in
20401 (*pcre2-posix*|*pcreposix*)
20402 ;;
20403 (*)
20404 echo "$as_me:20404: checking for regcomp in -lpcre2-posix" >&5
20405 echo $ECHO_N "checking for regcomp in -lpcre2-posix... $ECHO_C" >&6
20406 if test "${ac_cv_lib_pcre2_posix_regcomp+set}" = set; then
20407 echo $ECHO_N "(cached) $ECHO_C" >&6
20408 else
20409 ac_check_lib_save_LIBS=$LIBS
20410 LIBS="-lpcre2-posix $LIBS"
20411 cat >"conftest.$ac_ext" <<_ACEOF
20412 #line 20412 "configure"
20413 #include "confdefs.h"
20414
20415 /* Override any gcc2 internal prototype to avoid an error. */
20416 #ifdef __cplusplus
20417 extern "C"
20418 #endif
20419 /* We use char because int might match the return type of a gcc2
20420 builtin and then its argument prototype would still apply. */
20421 char regcomp ();
20422 int
20423 main (void)
20424 {
20425 regcomp ();
20426 ;
20427 return 0;
20428 }
20429 _ACEOF
20430 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
20431 if { (eval echo "$as_me:20431: \"$ac_link\"") >&5
20432 (eval $ac_link) 2>&5
20433 ac_status=$?
20434 echo "$as_me:20434: \$? = $ac_status" >&5
20435 (exit "$ac_status"); } &&
20436 { ac_try='test -s "conftest$ac_exeext"'
20437 { (eval echo "$as_me:20437: \"$ac_try\"") >&5
20438 (eval $ac_try) 2>&5
20439 ac_status=$?
20440 echo "$as_me:20440: \$? = $ac_status" >&5
20441 (exit "$ac_status"); }; }; then
20442 ac_cv_lib_pcre2_posix_regcomp=yes
20443 else
20444 echo "$as_me: failed program was:" >&5
20445 cat "conftest.$ac_ext" >&5
20446 ac_cv_lib_pcre2_posix_regcomp=no
20447 fi
20448 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
20449 LIBS=$ac_check_lib_save_LIBS
20450 fi
20451 echo "$as_me:20451: result: $ac_cv_lib_pcre2_posix_regcomp" >&5
20452 echo "${ECHO_T}$ac_cv_lib_pcre2_posix_regcomp" >&6
20453 if test "$ac_cv_lib_pcre2_posix_regcomp" = yes; then
20454
20455 cf_add_libs="$LIBS"
20456 # reverse order
20457 cf_add_0lib=
20458 for cf_add_1lib in -lpcre2-posix; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
20459 # filter duplicates
20460 for cf_add_1lib in $cf_add_0lib; do
20461 for cf_add_2lib in $cf_add_libs; do
20462 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
20463 cf_add_1lib=
20464 break
20465 fi
20466 done
20467 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
20468 done
20469 LIBS="$cf_add_libs"
20470
20471 else
20472 echo "$as_me:20472: checking for regcomp in -lpcreposix" >&5
20473 echo $ECHO_N "checking for regcomp in -lpcreposix... $ECHO_C" >&6
20474 if test "${ac_cv_lib_pcreposix_regcomp+set}" = set; then
20475 echo $ECHO_N "(cached) $ECHO_C" >&6
20476 else
20477 ac_check_lib_save_LIBS=$LIBS
20478 LIBS="-lpcreposix $LIBS"
20479 cat >"conftest.$ac_ext" <<_ACEOF
20480 #line 20480 "configure"
20481 #include "confdefs.h"
20482
20483 /* Override any gcc2 internal prototype to avoid an error. */
20484 #ifdef __cplusplus
20485 extern "C"
20486 #endif
20487 /* We use char because int might match the return type of a gcc2
20488 builtin and then its argument prototype would still apply. */
20489 char regcomp ();
20490 int
20491 main (void)
20492 {
20493 regcomp ();
20494 ;
20495 return 0;
20496 }
20497 _ACEOF
20498 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
20499 if { (eval echo "$as_me:20499: \"$ac_link\"") >&5
20500 (eval $ac_link) 2>&5
20501 ac_status=$?
20502 echo "$as_me:20502: \$? = $ac_status" >&5
20503 (exit "$ac_status"); } &&
20504 { ac_try='test -s "conftest$ac_exeext"'
20505 { (eval echo "$as_me:20505: \"$ac_try\"") >&5
20506 (eval $ac_try) 2>&5
20507 ac_status=$?
20508 echo "$as_me:20508: \$? = $ac_status" >&5
20509 (exit "$ac_status"); }; }; then
20510 ac_cv_lib_pcreposix_regcomp=yes
20511 else
20512 echo "$as_me: failed program was:" >&5
20513 cat "conftest.$ac_ext" >&5
20514 ac_cv_lib_pcreposix_regcomp=no
20515 fi
20516 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
20517 LIBS=$ac_check_lib_save_LIBS
20518 fi
20519 echo "$as_me:20519: result: $ac_cv_lib_pcreposix_regcomp" >&5
20520 echo "${ECHO_T}$ac_cv_lib_pcreposix_regcomp" >&6
20521 if test "$ac_cv_lib_pcreposix_regcomp" = yes; then
20522
20523 cf_add_libs="$LIBS"
20524 # reverse order
20525 cf_add_0lib=
20526 for cf_add_1lib in -lpcreposix; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
20527 # filter duplicates
20528 for cf_add_1lib in $cf_add_0lib; do
20529 for cf_add_2lib in $cf_add_libs; do
20530 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
20531 cf_add_1lib=
20532 break
20533 fi
20534 done
20535 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
20536 done
20537 LIBS="$cf_add_libs"
20538
20539 else
20540 { { echo "$as_me:20540: error: Cannot find PCRE2 POSIX library" >&5
20541 echo "$as_me: error: Cannot find PCRE2 POSIX library" >&2;}
20542 { (exit 1); exit 1; }; }
20543 fi
20544
20545 fi
20546
20547 ;;
20548 esac
20549
20550 # either way, check for the library header files
20551
20552 for ac_header in pcre2posix.h pcreposix.h
20553 do
20554 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20555 echo "$as_me:20555: checking for $ac_header" >&5
20556 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20557 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20558 echo $ECHO_N "(cached) $ECHO_C" >&6
20559 else
20560 cat >"conftest.$ac_ext" <<_ACEOF
20561 #line 20561 "configure"
20562 #include "confdefs.h"
20563 #include <$ac_header>
20564 _ACEOF
20565 if { (eval echo "$as_me:20565: \"$ac_cpp "conftest.$ac_ext"\"") >&5
20566 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
20567 ac_status=$?
20568 $EGREP -v '^ *\+' conftest.er1 >conftest.err
20569 rm -f conftest.er1
20570 cat conftest.err >&5
20571 echo "$as_me:20571: \$? = $ac_status" >&5
20572 (exit "$ac_status"); } >/dev/null; then
20573 if test -s conftest.err; then
20574 ac_cpp_err=$ac_c_preproc_warn_flag
20575 else
20576 ac_cpp_err=
20577 fi
20578 else
20579 ac_cpp_err=yes
20580 fi
20581 if test -z "$ac_cpp_err"; then
20582 eval "$as_ac_Header=yes"
20583 else
20584 echo "$as_me: failed program was:" >&5
20585 cat "conftest.$ac_ext" >&5
20586 eval "$as_ac_Header=no"
20587 fi
20588 rm -f conftest.err "conftest.$ac_ext"
20589 fi
20590 echo "$as_me:20590: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
20591 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
20592 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
20593 cat >>confdefs.h <<EOF
20594 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20595 EOF
20596
20597 fi
20598 done
20599
20600 fi
20601
20602 if test "$with_pcre2" = no ; then
20603
20604 echo "$as_me:20604: checking if you want to use PCRE for regular-expressions" >&5
20605 echo $ECHO_N "checking if you want to use PCRE for regular-expressions... $ECHO_C" >&6
20606
20607 # Check whether --with-pcre or --without-pcre was given.
20608 if test "${with_pcre+set}" = set; then
20609 withval="$with_pcre"
20610
20611 fi;
20612 test -z "$with_pcre" && with_pcre=no
20613 echo "$as_me:20613: result: $with_pcre" >&5
20614 echo "${ECHO_T}$with_pcre" >&6
20615
20616 if test "$with_pcre" != no ; then
20617
20618 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "libpcre"; then
20619 test -n "$verbose" && echo " found package libpcre" 1>&6
20620
20621 echo "${as_me:-configure}:20621: testing found package libpcre ..." 1>&5
20622
20623 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "libpcre" 2>/dev/null`"
20624 cf_pkgconfig_libs="`$PKG_CONFIG --libs "libpcre" 2>/dev/null`"
20625 test -n "$verbose" && echo " package libpcre CFLAGS: $cf_pkgconfig_incs" 1>&6
20626
20627 echo "${as_me:-configure}:20627: testing package libpcre CFLAGS: $cf_pkgconfig_incs ..." 1>&5
20628
20629 test -n "$verbose" && echo " package libpcre LIBS: $cf_pkgconfig_libs" 1>&6
20630
20631 echo "${as_me:-configure}:20631: testing package libpcre LIBS: $cf_pkgconfig_libs ..." 1>&5
20632
20633 cf_fix_cppflags=no
20634 cf_new_cflags=
20635 cf_new_cppflags=
20636 cf_new_extra_cppflags=
20637
20638 for cf_add_cflags in $cf_pkgconfig_incs
20639 do
20640 case "$cf_fix_cppflags" in
20641 (no)
20642 case "$cf_add_cflags" in
20643 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
20644 case "$cf_add_cflags" in
20645 (-D*)
20646 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
20647
20648 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
20649 && test -z "${cf_tst_cflags}" \
20650 && cf_fix_cppflags=yes
20651
20652 if test "$cf_fix_cppflags" = yes ; then
20653
20654 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
20655 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
20656
20657 continue
20658 elif test "${cf_tst_cflags}" = "\"'" ; then
20659
20660 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
20661 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
20662
20663 continue
20664 fi
20665 ;;
20666 esac
20667 case "$CPPFLAGS" in
20668 (*$cf_add_cflags)
20669 ;;
20670 (*)
20671 case "$cf_add_cflags" in
20672 (-D*)
20673 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
20674
20675 CPPFLAGS=`echo "$CPPFLAGS" | \
20676 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
20677 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
20678
20679 ;;
20680 esac
20681
20682 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
20683 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
20684
20685 ;;
20686 esac
20687 ;;
20688 (*)
20689
20690 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
20691 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
20692
20693 ;;
20694 esac
20695 ;;
20696 (yes)
20697
20698 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
20699 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
20700
20701 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
20702
20703 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
20704 && test -z "${cf_tst_cflags}" \
20705 && cf_fix_cppflags=no
20706 ;;
20707 esac
20708 done
20709
20710 if test -n "$cf_new_cflags" ; then
20711
20712 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
20713 CFLAGS="${CFLAGS}$cf_new_cflags"
20714
20715 fi
20716
20717 if test -n "$cf_new_cppflags" ; then
20718
20719 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
20720 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
20721
20722 fi
20723
20724 if test -n "$cf_new_extra_cppflags" ; then
20725
20726 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
20727 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
20728
20729 fi
20730
20731 cf_add_libs="$LIBS"
20732 # reverse order
20733 cf_add_0lib=
20734 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
20735 # filter duplicates
20736 for cf_add_1lib in $cf_add_0lib; do
20737 for cf_add_2lib in $cf_add_libs; do
20738 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
20739 cf_add_1lib=
20740 break
20741 fi
20742 done
20743 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
20744 done
20745 LIBS="$cf_add_libs"
20746
20747 :
20748 else
20749 cf_pkgconfig_incs=
20750 cf_pkgconfig_libs=
20751
20752 echo "$as_me:20752: checking for pcre_compile in -lpcre" >&5
20753 echo $ECHO_N "checking for pcre_compile in -lpcre... $ECHO_C" >&6
20754 if test "${ac_cv_lib_pcre_pcre_compile+set}" = set; then
20755 echo $ECHO_N "(cached) $ECHO_C" >&6
20756 else
20757 ac_check_lib_save_LIBS=$LIBS
20758 LIBS="-lpcre $LIBS"
20759 cat >"conftest.$ac_ext" <<_ACEOF
20760 #line 20760 "configure"
20761 #include "confdefs.h"
20762
20763 /* Override any gcc2 internal prototype to avoid an error. */
20764 #ifdef __cplusplus
20765 extern "C"
20766 #endif
20767 /* We use char because int might match the return type of a gcc2
20768 builtin and then its argument prototype would still apply. */
20769 char pcre_compile ();
20770 int
20771 main (void)
20772 {
20773 pcre_compile ();
20774 ;
20775 return 0;
20776 }
20777 _ACEOF
20778 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
20779 if { (eval echo "$as_me:20779: \"$ac_link\"") >&5
20780 (eval $ac_link) 2>&5
20781 ac_status=$?
20782 echo "$as_me:20782: \$? = $ac_status" >&5
20783 (exit "$ac_status"); } &&
20784 { ac_try='test -s "conftest$ac_exeext"'
20785 { (eval echo "$as_me:20785: \"$ac_try\"") >&5
20786 (eval $ac_try) 2>&5
20787 ac_status=$?
20788 echo "$as_me:20788: \$? = $ac_status" >&5
20789 (exit "$ac_status"); }; }; then
20790 ac_cv_lib_pcre_pcre_compile=yes
20791 else
20792 echo "$as_me: failed program was:" >&5
20793 cat "conftest.$ac_ext" >&5
20794 ac_cv_lib_pcre_pcre_compile=no
20795 fi
20796 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
20797 LIBS=$ac_check_lib_save_LIBS
20798 fi
20799 echo "$as_me:20799: result: $ac_cv_lib_pcre_pcre_compile" >&5
20800 echo "${ECHO_T}$ac_cv_lib_pcre_pcre_compile" >&6
20801 if test "$ac_cv_lib_pcre_pcre_compile" = yes; then
20802 cat >>confdefs.h <<EOF
20803 #define HAVE_LIBPCRE 1
20804 EOF
20805
20806 LIBS="-lpcre $LIBS"
20807
20808 else
20809 { { echo "$as_me:20809: error: Cannot find PCRE library" >&5
20810 echo "$as_me: error: Cannot find PCRE library" >&2;}
20811 { (exit 1); exit 1; }; }
20812 fi
20813
20814 fi
20815
20816 cat >>confdefs.h <<\EOF
20817 #define HAVE_LIB_PCRE 1
20818 EOF
20819
20820 case $LIBS in
20821 (*pcreposix*)
20822 ;;
20823 (*)
20824 echo "$as_me:20824: checking for pcreposix_regcomp in -lpcreposix" >&5
20825 echo $ECHO_N "checking for pcreposix_regcomp in -lpcreposix... $ECHO_C" >&6
20826 if test "${ac_cv_lib_pcreposix_pcreposix_regcomp+set}" = set; then
20827 echo $ECHO_N "(cached) $ECHO_C" >&6
20828 else
20829 ac_check_lib_save_LIBS=$LIBS
20830 LIBS="-lpcreposix $LIBS"
20831 cat >"conftest.$ac_ext" <<_ACEOF
20832 #line 20832 "configure"
20833 #include "confdefs.h"
20834
20835 /* Override any gcc2 internal prototype to avoid an error. */
20836 #ifdef __cplusplus
20837 extern "C"
20838 #endif
20839 /* We use char because int might match the return type of a gcc2
20840 builtin and then its argument prototype would still apply. */
20841 char pcreposix_regcomp ();
20842 int
20843 main (void)
20844 {
20845 pcreposix_regcomp ();
20846 ;
20847 return 0;
20848 }
20849 _ACEOF
20850 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
20851 if { (eval echo "$as_me:20851: \"$ac_link\"") >&5
20852 (eval $ac_link) 2>&5
20853 ac_status=$?
20854 echo "$as_me:20854: \$? = $ac_status" >&5
20855 (exit "$ac_status"); } &&
20856 { ac_try='test -s "conftest$ac_exeext"'
20857 { (eval echo "$as_me:20857: \"$ac_try\"") >&5
20858 (eval $ac_try) 2>&5
20859 ac_status=$?
20860 echo "$as_me:20860: \$? = $ac_status" >&5
20861 (exit "$ac_status"); }; }; then
20862 ac_cv_lib_pcreposix_pcreposix_regcomp=yes
20863 else
20864 echo "$as_me: failed program was:" >&5
20865 cat "conftest.$ac_ext" >&5
20866 ac_cv_lib_pcreposix_pcreposix_regcomp=no
20867 fi
20868 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
20869 LIBS=$ac_check_lib_save_LIBS
20870 fi
20871 echo "$as_me:20871: result: $ac_cv_lib_pcreposix_pcreposix_regcomp" >&5
20872 echo "${ECHO_T}$ac_cv_lib_pcreposix_pcreposix_regcomp" >&6
20873 if test "$ac_cv_lib_pcreposix_pcreposix_regcomp" = yes; then
20874
20875 cat >>confdefs.h <<\EOF
20876 #define HAVE_PCREPOSIX_H 1
20877 EOF
20878
20879 cf_add_libs="$LIBS"
20880 # reverse order
20881 cf_add_0lib=
20882 for cf_add_1lib in -lpcreposix; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
20883 # filter duplicates
20884 for cf_add_1lib in $cf_add_0lib; do
20885 for cf_add_2lib in $cf_add_libs; do
20886 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
20887 cf_add_1lib=
20888 break
20889 fi
20890 done
20891 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
20892 done
20893 LIBS="$cf_add_libs"
20894
20895 else
20896 echo "$as_me:20896: checking for regcomp in -lpcreposix" >&5
20897 echo $ECHO_N "checking for regcomp in -lpcreposix... $ECHO_C" >&6
20898 if test "${ac_cv_lib_pcreposix_regcomp+set}" = set; then
20899 echo $ECHO_N "(cached) $ECHO_C" >&6
20900 else
20901 ac_check_lib_save_LIBS=$LIBS
20902 LIBS="-lpcreposix $LIBS"
20903 cat >"conftest.$ac_ext" <<_ACEOF
20904 #line 20904 "configure"
20905 #include "confdefs.h"
20906
20907 /* Override any gcc2 internal prototype to avoid an error. */
20908 #ifdef __cplusplus
20909 extern "C"
20910 #endif
20911 /* We use char because int might match the return type of a gcc2
20912 builtin and then its argument prototype would still apply. */
20913 char regcomp ();
20914 int
20915 main (void)
20916 {
20917 regcomp ();
20918 ;
20919 return 0;
20920 }
20921 _ACEOF
20922 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
20923 if { (eval echo "$as_me:20923: \"$ac_link\"") >&5
20924 (eval $ac_link) 2>&5
20925 ac_status=$?
20926 echo "$as_me:20926: \$? = $ac_status" >&5
20927 (exit "$ac_status"); } &&
20928 { ac_try='test -s "conftest$ac_exeext"'
20929 { (eval echo "$as_me:20929: \"$ac_try\"") >&5
20930 (eval $ac_try) 2>&5
20931 ac_status=$?
20932 echo "$as_me:20932: \$? = $ac_status" >&5
20933 (exit "$ac_status"); }; }; then
20934 ac_cv_lib_pcreposix_regcomp=yes
20935 else
20936 echo "$as_me: failed program was:" >&5
20937 cat "conftest.$ac_ext" >&5
20938 ac_cv_lib_pcreposix_regcomp=no
20939 fi
20940 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
20941 LIBS=$ac_check_lib_save_LIBS
20942 fi
20943 echo "$as_me:20943: result: $ac_cv_lib_pcreposix_regcomp" >&5
20944 echo "${ECHO_T}$ac_cv_lib_pcreposix_regcomp" >&6
20945 if test "$ac_cv_lib_pcreposix_regcomp" = yes; then
20946
20947 cat >>confdefs.h <<\EOF
20948 #define HAVE_PCREPOSIX_H 1
20949 EOF
20950
20951 cf_add_libs="$LIBS"
20952 # reverse order
20953 cf_add_0lib=
20954 for cf_add_1lib in -lpcreposix; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
20955 # filter duplicates
20956 for cf_add_1lib in $cf_add_0lib; do
20957 for cf_add_2lib in $cf_add_libs; do
20958 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
20959 cf_add_1lib=
20960 break
20961 fi
20962 done
20963 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
20964 done
20965 LIBS="$cf_add_libs"
20966
20967 else
20968 { { echo "$as_me:20968: error: Cannot find PCRE POSIX library" >&5
20969 echo "$as_me: error: Cannot find PCRE POSIX library" >&2;}
20970 { (exit 1); exit 1; }; }
20971 fi
20972
20973 fi
20974
20975 ;;
20976 esac
20977 fi
20978
20979 if test "$with_pcre" = no ; then
20980
20981 cf_regex_func=no
20982 cf_regex_libs=
20983 case "$host_os" in
20984 (mingw*)
20985 # -lsystre -ltre -lintl -liconv
20986 echo "$as_me:20986: checking for regcomp in -lsystre" >&5
20987 echo $ECHO_N "checking for regcomp in -lsystre... $ECHO_C" >&6
20988 if test "${ac_cv_lib_systre_regcomp+set}" = set; then
20989 echo $ECHO_N "(cached) $ECHO_C" >&6
20990 else
20991 ac_check_lib_save_LIBS=$LIBS
20992 LIBS="-lsystre $LIBS"
20993 cat >"conftest.$ac_ext" <<_ACEOF
20994 #line 20994 "configure"
20995 #include "confdefs.h"
20996
20997 /* Override any gcc2 internal prototype to avoid an error. */
20998 #ifdef __cplusplus
20999 extern "C"
21000 #endif
21001 /* We use char because int might match the return type of a gcc2
21002 builtin and then its argument prototype would still apply. */
21003 char regcomp ();
21004 int
21005 main (void)
21006 {
21007 regcomp ();
21008 ;
21009 return 0;
21010 }
21011 _ACEOF
21012 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21013 if { (eval echo "$as_me:21013: \"$ac_link\"") >&5
21014 (eval $ac_link) 2>&5
21015 ac_status=$?
21016 echo "$as_me:21016: \$? = $ac_status" >&5
21017 (exit "$ac_status"); } &&
21018 { ac_try='test -s "conftest$ac_exeext"'
21019 { (eval echo "$as_me:21019: \"$ac_try\"") >&5
21020 (eval $ac_try) 2>&5
21021 ac_status=$?
21022 echo "$as_me:21022: \$? = $ac_status" >&5
21023 (exit "$ac_status"); }; }; then
21024 ac_cv_lib_systre_regcomp=yes
21025 else
21026 echo "$as_me: failed program was:" >&5
21027 cat "conftest.$ac_ext" >&5
21028 ac_cv_lib_systre_regcomp=no
21029 fi
21030 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21031 LIBS=$ac_check_lib_save_LIBS
21032 fi
21033 echo "$as_me:21033: result: $ac_cv_lib_systre_regcomp" >&5
21034 echo "${ECHO_T}$ac_cv_lib_systre_regcomp" >&6
21035 if test "$ac_cv_lib_systre_regcomp" = yes; then
21036
21037 echo "$as_me:21037: checking for libiconv_open in -liconv" >&5
21038 echo $ECHO_N "checking for libiconv_open in -liconv... $ECHO_C" >&6
21039 if test "${ac_cv_lib_iconv_libiconv_open+set}" = set; then
21040 echo $ECHO_N "(cached) $ECHO_C" >&6
21041 else
21042 ac_check_lib_save_LIBS=$LIBS
21043 LIBS="-liconv $LIBS"
21044 cat >"conftest.$ac_ext" <<_ACEOF
21045 #line 21045 "configure"
21046 #include "confdefs.h"
21047
21048 /* Override any gcc2 internal prototype to avoid an error. */
21049 #ifdef __cplusplus
21050 extern "C"
21051 #endif
21052 /* We use char because int might match the return type of a gcc2
21053 builtin and then its argument prototype would still apply. */
21054 char libiconv_open ();
21055 int
21056 main (void)
21057 {
21058 libiconv_open ();
21059 ;
21060 return 0;
21061 }
21062 _ACEOF
21063 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21064 if { (eval echo "$as_me:21064: \"$ac_link\"") >&5
21065 (eval $ac_link) 2>&5
21066 ac_status=$?
21067 echo "$as_me:21067: \$? = $ac_status" >&5
21068 (exit "$ac_status"); } &&
21069 { ac_try='test -s "conftest$ac_exeext"'
21070 { (eval echo "$as_me:21070: \"$ac_try\"") >&5
21071 (eval $ac_try) 2>&5
21072 ac_status=$?
21073 echo "$as_me:21073: \$? = $ac_status" >&5
21074 (exit "$ac_status"); }; }; then
21075 ac_cv_lib_iconv_libiconv_open=yes
21076 else
21077 echo "$as_me: failed program was:" >&5
21078 cat "conftest.$ac_ext" >&5
21079 ac_cv_lib_iconv_libiconv_open=no
21080 fi
21081 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21082 LIBS=$ac_check_lib_save_LIBS
21083 fi
21084 echo "$as_me:21084: result: $ac_cv_lib_iconv_libiconv_open" >&5
21085 echo "${ECHO_T}$ac_cv_lib_iconv_libiconv_open" >&6
21086 if test "$ac_cv_lib_iconv_libiconv_open" = yes; then
21087
21088 cf_add_libs="$LIBS"
21089 # reverse order
21090 cf_add_0lib=
21091 for cf_add_1lib in -liconv; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
21092 # filter duplicates
21093 for cf_add_1lib in $cf_add_0lib; do
21094 for cf_add_2lib in $cf_add_libs; do
21095 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
21096 cf_add_1lib=
21097 break
21098 fi
21099 done
21100 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
21101 done
21102 LIBS="$cf_add_libs"
21103
21104 fi
21105
21106 echo "$as_me:21106: checking for libintl_gettext in -lintl" >&5
21107 echo $ECHO_N "checking for libintl_gettext in -lintl... $ECHO_C" >&6
21108 if test "${ac_cv_lib_intl_libintl_gettext+set}" = set; then
21109 echo $ECHO_N "(cached) $ECHO_C" >&6
21110 else
21111 ac_check_lib_save_LIBS=$LIBS
21112 LIBS="-lintl $LIBS"
21113 cat >"conftest.$ac_ext" <<_ACEOF
21114 #line 21114 "configure"
21115 #include "confdefs.h"
21116
21117 /* Override any gcc2 internal prototype to avoid an error. */
21118 #ifdef __cplusplus
21119 extern "C"
21120 #endif
21121 /* We use char because int might match the return type of a gcc2
21122 builtin and then its argument prototype would still apply. */
21123 char libintl_gettext ();
21124 int
21125 main (void)
21126 {
21127 libintl_gettext ();
21128 ;
21129 return 0;
21130 }
21131 _ACEOF
21132 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21133 if { (eval echo "$as_me:21133: \"$ac_link\"") >&5
21134 (eval $ac_link) 2>&5
21135 ac_status=$?
21136 echo "$as_me:21136: \$? = $ac_status" >&5
21137 (exit "$ac_status"); } &&
21138 { ac_try='test -s "conftest$ac_exeext"'
21139 { (eval echo "$as_me:21139: \"$ac_try\"") >&5
21140 (eval $ac_try) 2>&5
21141 ac_status=$?
21142 echo "$as_me:21142: \$? = $ac_status" >&5
21143 (exit "$ac_status"); }; }; then
21144 ac_cv_lib_intl_libintl_gettext=yes
21145 else
21146 echo "$as_me: failed program was:" >&5
21147 cat "conftest.$ac_ext" >&5
21148 ac_cv_lib_intl_libintl_gettext=no
21149 fi
21150 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21151 LIBS=$ac_check_lib_save_LIBS
21152 fi
21153 echo "$as_me:21153: result: $ac_cv_lib_intl_libintl_gettext" >&5
21154 echo "${ECHO_T}$ac_cv_lib_intl_libintl_gettext" >&6
21155 if test "$ac_cv_lib_intl_libintl_gettext" = yes; then
21156
21157 cf_add_libs="$LIBS"
21158 # reverse order
21159 cf_add_0lib=
21160 for cf_add_1lib in -lintl; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
21161 # filter duplicates
21162 for cf_add_1lib in $cf_add_0lib; do
21163 for cf_add_2lib in $cf_add_libs; do
21164 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
21165 cf_add_1lib=
21166 break
21167 fi
21168 done
21169 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
21170 done
21171 LIBS="$cf_add_libs"
21172
21173 fi
21174
21175 echo "$as_me:21175: checking for tre_regcomp in -ltre" >&5
21176 echo $ECHO_N "checking for tre_regcomp in -ltre... $ECHO_C" >&6
21177 if test "${ac_cv_lib_tre_tre_regcomp+set}" = set; then
21178 echo $ECHO_N "(cached) $ECHO_C" >&6
21179 else
21180 ac_check_lib_save_LIBS=$LIBS
21181 LIBS="-ltre $LIBS"
21182 cat >"conftest.$ac_ext" <<_ACEOF
21183 #line 21183 "configure"
21184 #include "confdefs.h"
21185
21186 /* Override any gcc2 internal prototype to avoid an error. */
21187 #ifdef __cplusplus
21188 extern "C"
21189 #endif
21190 /* We use char because int might match the return type of a gcc2
21191 builtin and then its argument prototype would still apply. */
21192 char tre_regcomp ();
21193 int
21194 main (void)
21195 {
21196 tre_regcomp ();
21197 ;
21198 return 0;
21199 }
21200 _ACEOF
21201 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21202 if { (eval echo "$as_me:21202: \"$ac_link\"") >&5
21203 (eval $ac_link) 2>&5
21204 ac_status=$?
21205 echo "$as_me:21205: \$? = $ac_status" >&5
21206 (exit "$ac_status"); } &&
21207 { ac_try='test -s "conftest$ac_exeext"'
21208 { (eval echo "$as_me:21208: \"$ac_try\"") >&5
21209 (eval $ac_try) 2>&5
21210 ac_status=$?
21211 echo "$as_me:21211: \$? = $ac_status" >&5
21212 (exit "$ac_status"); }; }; then
21213 ac_cv_lib_tre_tre_regcomp=yes
21214 else
21215 echo "$as_me: failed program was:" >&5
21216 cat "conftest.$ac_ext" >&5
21217 ac_cv_lib_tre_tre_regcomp=no
21218 fi
21219 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21220 LIBS=$ac_check_lib_save_LIBS
21221 fi
21222 echo "$as_me:21222: result: $ac_cv_lib_tre_tre_regcomp" >&5
21223 echo "${ECHO_T}$ac_cv_lib_tre_tre_regcomp" >&6
21224 if test "$ac_cv_lib_tre_tre_regcomp" = yes; then
21225
21226 cf_add_libs="$LIBS"
21227 # reverse order
21228 cf_add_0lib=
21229 for cf_add_1lib in -ltre; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
21230 # filter duplicates
21231 for cf_add_1lib in $cf_add_0lib; do
21232 for cf_add_2lib in $cf_add_libs; do
21233 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
21234 cf_add_1lib=
21235 break
21236 fi
21237 done
21238 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
21239 done
21240 LIBS="$cf_add_libs"
21241
21242 fi
21243
21244 cf_add_libs="$LIBS"
21245 # reverse order
21246 cf_add_0lib=
21247 for cf_add_1lib in -lsystre; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
21248 # filter duplicates
21249 for cf_add_1lib in $cf_add_0lib; do
21250 for cf_add_2lib in $cf_add_libs; do
21251 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
21252 cf_add_1lib=
21253 break
21254 fi
21255 done
21256 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
21257 done
21258 LIBS="$cf_add_libs"
21259
21260 cf_regex_func=regcomp
21261
21262 else
21263
21264 echo "$as_me:21264: checking for regcomp in -lgnurx" >&5
21265 echo $ECHO_N "checking for regcomp in -lgnurx... $ECHO_C" >&6
21266 if test "${ac_cv_lib_gnurx_regcomp+set}" = set; then
21267 echo $ECHO_N "(cached) $ECHO_C" >&6
21268 else
21269 ac_check_lib_save_LIBS=$LIBS
21270 LIBS="-lgnurx $LIBS"
21271 cat >"conftest.$ac_ext" <<_ACEOF
21272 #line 21272 "configure"
21273 #include "confdefs.h"
21274
21275 /* Override any gcc2 internal prototype to avoid an error. */
21276 #ifdef __cplusplus
21277 extern "C"
21278 #endif
21279 /* We use char because int might match the return type of a gcc2
21280 builtin and then its argument prototype would still apply. */
21281 char regcomp ();
21282 int
21283 main (void)
21284 {
21285 regcomp ();
21286 ;
21287 return 0;
21288 }
21289 _ACEOF
21290 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21291 if { (eval echo "$as_me:21291: \"$ac_link\"") >&5
21292 (eval $ac_link) 2>&5
21293 ac_status=$?
21294 echo "$as_me:21294: \$? = $ac_status" >&5
21295 (exit "$ac_status"); } &&
21296 { ac_try='test -s "conftest$ac_exeext"'
21297 { (eval echo "$as_me:21297: \"$ac_try\"") >&5
21298 (eval $ac_try) 2>&5
21299 ac_status=$?
21300 echo "$as_me:21300: \$? = $ac_status" >&5
21301 (exit "$ac_status"); }; }; then
21302 ac_cv_lib_gnurx_regcomp=yes
21303 else
21304 echo "$as_me: failed program was:" >&5
21305 cat "conftest.$ac_ext" >&5
21306 ac_cv_lib_gnurx_regcomp=no
21307 fi
21308 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21309 LIBS=$ac_check_lib_save_LIBS
21310 fi
21311 echo "$as_me:21311: result: $ac_cv_lib_gnurx_regcomp" >&5
21312 echo "${ECHO_T}$ac_cv_lib_gnurx_regcomp" >&6
21313 if test "$ac_cv_lib_gnurx_regcomp" = yes; then
21314
21315 cf_add_libs="$LIBS"
21316 # reverse order
21317 cf_add_0lib=
21318 for cf_add_1lib in -lgnurx; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
21319 # filter duplicates
21320 for cf_add_1lib in $cf_add_0lib; do
21321 for cf_add_2lib in $cf_add_libs; do
21322 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
21323 cf_add_1lib=
21324 break
21325 fi
21326 done
21327 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
21328 done
21329 LIBS="$cf_add_libs"
21330
21331 cf_regex_func=regcomp
21332 fi
21333
21334 fi
21335
21336 ;;
21337 (*)
21338 cf_regex_libs="regex re"
21339 echo "$as_me:21339: checking for regcomp" >&5
21340 echo $ECHO_N "checking for regcomp... $ECHO_C" >&6
21341 if test "${ac_cv_func_regcomp+set}" = set; then
21342 echo $ECHO_N "(cached) $ECHO_C" >&6
21343 else
21344 cat >"conftest.$ac_ext" <<_ACEOF
21345 #line 21345 "configure"
21346 #include "confdefs.h"
21347 #define regcomp autoconf_temporary
21348 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
21349 #undef regcomp
21350
21351 #ifdef __cplusplus
21352 extern "C"
21353 #endif
21354
21355 /* We use char because int might match the return type of a gcc2
21356 builtin and then its argument prototype would still apply. */
21357 char regcomp (void);
21358
21359 int
21360 main (void)
21361 {
21362
21363 /* The GNU C library defines stubs for functions which it implements
21364 to always fail with ENOSYS. Some functions are actually named
21365 something starting with __ and the normal name is an alias. */
21366 #if defined (__stub_regcomp) || defined (__stub___regcomp)
21367 #error found stub for regcomp
21368 #endif
21369
21370 return regcomp ();
21371 ;
21372 return 0;
21373 }
21374 _ACEOF
21375 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21376 if { (eval echo "$as_me:21376: \"$ac_link\"") >&5
21377 (eval $ac_link) 2>&5
21378 ac_status=$?
21379 echo "$as_me:21379: \$? = $ac_status" >&5
21380 (exit "$ac_status"); } &&
21381 { ac_try='test -s "conftest$ac_exeext"'
21382 { (eval echo "$as_me:21382: \"$ac_try\"") >&5
21383 (eval $ac_try) 2>&5
21384 ac_status=$?
21385 echo "$as_me:21385: \$? = $ac_status" >&5
21386 (exit "$ac_status"); }; }; then
21387 ac_cv_func_regcomp=yes
21388 else
21389 echo "$as_me: failed program was:" >&5
21390 cat "conftest.$ac_ext" >&5
21391 ac_cv_func_regcomp=no
21392 fi
21393 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21394 fi
21395 echo "$as_me:21395: result: $ac_cv_func_regcomp" >&5
21396 echo "${ECHO_T}$ac_cv_func_regcomp" >&6
21397 if test "$ac_cv_func_regcomp" = yes; then
21398 cf_regex_func=regcomp
21399 else
21400
21401 for cf_regex_lib in $cf_regex_libs
21402 do
21403 as_ac_Lib=`echo "ac_cv_lib_$cf_regex_lib''_regcomp" | $as_tr_sh`
21404 echo "$as_me:21404: checking for regcomp in -l$cf_regex_lib" >&5
21405 echo $ECHO_N "checking for regcomp in -l$cf_regex_lib... $ECHO_C" >&6
21406 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
21407 echo $ECHO_N "(cached) $ECHO_C" >&6
21408 else
21409 ac_check_lib_save_LIBS=$LIBS
21410 LIBS="-l$cf_regex_lib $LIBS"
21411 cat >"conftest.$ac_ext" <<_ACEOF
21412 #line 21412 "configure"
21413 #include "confdefs.h"
21414
21415 /* Override any gcc2 internal prototype to avoid an error. */
21416 #ifdef __cplusplus
21417 extern "C"
21418 #endif
21419 /* We use char because int might match the return type of a gcc2
21420 builtin and then its argument prototype would still apply. */
21421 char regcomp ();
21422 int
21423 main (void)
21424 {
21425 regcomp ();
21426 ;
21427 return 0;
21428 }
21429 _ACEOF
21430 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21431 if { (eval echo "$as_me:21431: \"$ac_link\"") >&5
21432 (eval $ac_link) 2>&5
21433 ac_status=$?
21434 echo "$as_me:21434: \$? = $ac_status" >&5
21435 (exit "$ac_status"); } &&
21436 { ac_try='test -s "conftest$ac_exeext"'
21437 { (eval echo "$as_me:21437: \"$ac_try\"") >&5
21438 (eval $ac_try) 2>&5
21439 ac_status=$?
21440 echo "$as_me:21440: \$? = $ac_status" >&5
21441 (exit "$ac_status"); }; }; then
21442 eval "$as_ac_Lib=yes"
21443 else
21444 echo "$as_me: failed program was:" >&5
21445 cat "conftest.$ac_ext" >&5
21446 eval "$as_ac_Lib=no"
21447 fi
21448 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21449 LIBS=$ac_check_lib_save_LIBS
21450 fi
21451 echo "$as_me:21451: result: `eval echo '${'"$as_ac_Lib"'}'`" >&5
21452 echo "${ECHO_T}`eval echo '${'"$as_ac_Lib"'}'`" >&6
21453 if test "`eval echo '${'"$as_ac_Lib"'}'`" = yes; then
21454
21455 cf_add_libs="$LIBS"
21456 # reverse order
21457 cf_add_0lib=
21458 for cf_add_1lib in -l$cf_regex_lib; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
21459 # filter duplicates
21460 for cf_add_1lib in $cf_add_0lib; do
21461 for cf_add_2lib in $cf_add_libs; do
21462 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
21463 cf_add_1lib=
21464 break
21465 fi
21466 done
21467 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
21468 done
21469 LIBS="$cf_add_libs"
21470
21471 cf_regex_func=regcomp
21472 break
21473 fi
21474
21475 done
21476
21477 fi
21478
21479 ;;
21480 esac
21481
21482 if test "$cf_regex_func" = no ; then
21483 echo "$as_me:21483: checking for compile" >&5
21484 echo $ECHO_N "checking for compile... $ECHO_C" >&6
21485 if test "${ac_cv_func_compile+set}" = set; then
21486 echo $ECHO_N "(cached) $ECHO_C" >&6
21487 else
21488 cat >"conftest.$ac_ext" <<_ACEOF
21489 #line 21489 "configure"
21490 #include "confdefs.h"
21491 #define compile autoconf_temporary
21492 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
21493 #undef compile
21494
21495 #ifdef __cplusplus
21496 extern "C"
21497 #endif
21498
21499 /* We use char because int might match the return type of a gcc2
21500 builtin and then its argument prototype would still apply. */
21501 char compile (void);
21502
21503 int
21504 main (void)
21505 {
21506
21507 /* The GNU C library defines stubs for functions which it implements
21508 to always fail with ENOSYS. Some functions are actually named
21509 something starting with __ and the normal name is an alias. */
21510 #if defined (__stub_compile) || defined (__stub___compile)
21511 #error found stub for compile
21512 #endif
21513
21514 return compile ();
21515 ;
21516 return 0;
21517 }
21518 _ACEOF
21519 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21520 if { (eval echo "$as_me:21520: \"$ac_link\"") >&5
21521 (eval $ac_link) 2>&5
21522 ac_status=$?
21523 echo "$as_me:21523: \$? = $ac_status" >&5
21524 (exit "$ac_status"); } &&
21525 { ac_try='test -s "conftest$ac_exeext"'
21526 { (eval echo "$as_me:21526: \"$ac_try\"") >&5
21527 (eval $ac_try) 2>&5
21528 ac_status=$?
21529 echo "$as_me:21529: \$? = $ac_status" >&5
21530 (exit "$ac_status"); }; }; then
21531 ac_cv_func_compile=yes
21532 else
21533 echo "$as_me: failed program was:" >&5
21534 cat "conftest.$ac_ext" >&5
21535 ac_cv_func_compile=no
21536 fi
21537 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21538 fi
21539 echo "$as_me:21539: result: $ac_cv_func_compile" >&5
21540 echo "${ECHO_T}$ac_cv_func_compile" >&6
21541 if test "$ac_cv_func_compile" = yes; then
21542 cf_regex_func=compile
21543 else
21544
21545 echo "$as_me:21545: checking for compile in -lgen" >&5
21546 echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6
21547 if test "${ac_cv_lib_gen_compile+set}" = set; then
21548 echo $ECHO_N "(cached) $ECHO_C" >&6
21549 else
21550 ac_check_lib_save_LIBS=$LIBS
21551 LIBS="-lgen $LIBS"
21552 cat >"conftest.$ac_ext" <<_ACEOF
21553 #line 21553 "configure"
21554 #include "confdefs.h"
21555
21556 /* Override any gcc2 internal prototype to avoid an error. */
21557 #ifdef __cplusplus
21558 extern "C"
21559 #endif
21560 /* We use char because int might match the return type of a gcc2
21561 builtin and then its argument prototype would still apply. */
21562 char compile ();
21563 int
21564 main (void)
21565 {
21566 compile ();
21567 ;
21568 return 0;
21569 }
21570 _ACEOF
21571 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21572 if { (eval echo "$as_me:21572: \"$ac_link\"") >&5
21573 (eval $ac_link) 2>&5
21574 ac_status=$?
21575 echo "$as_me:21575: \$? = $ac_status" >&5
21576 (exit "$ac_status"); } &&
21577 { ac_try='test -s "conftest$ac_exeext"'
21578 { (eval echo "$as_me:21578: \"$ac_try\"") >&5
21579 (eval $ac_try) 2>&5
21580 ac_status=$?
21581 echo "$as_me:21581: \$? = $ac_status" >&5
21582 (exit "$ac_status"); }; }; then
21583 ac_cv_lib_gen_compile=yes
21584 else
21585 echo "$as_me: failed program was:" >&5
21586 cat "conftest.$ac_ext" >&5
21587 ac_cv_lib_gen_compile=no
21588 fi
21589 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21590 LIBS=$ac_check_lib_save_LIBS
21591 fi
21592 echo "$as_me:21592: result: $ac_cv_lib_gen_compile" >&5
21593 echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6
21594 if test "$ac_cv_lib_gen_compile" = yes; then
21595
21596 cf_add_libs="$LIBS"
21597 # reverse order
21598 cf_add_0lib=
21599 for cf_add_1lib in -lgen; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
21600 # filter duplicates
21601 for cf_add_1lib in $cf_add_0lib; do
21602 for cf_add_2lib in $cf_add_libs; do
21603 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
21604 cf_add_1lib=
21605 break
21606 fi
21607 done
21608 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
21609 done
21610 LIBS="$cf_add_libs"
21611
21612 cf_regex_func=compile
21613 fi
21614
21615 fi
21616
21617 fi
21618
21619 if test "$cf_regex_func" = no ; then
21620 { echo "$as_me:21620: WARNING: cannot find regular expression library" >&5
21621 echo "$as_me: WARNING: cannot find regular expression library" >&2;}
21622 fi
21623
21624 echo "$as_me:21624: checking for regular-expression headers" >&5
21625 echo $ECHO_N "checking for regular-expression headers... $ECHO_C" >&6
21626 if test "${cf_cv_regex_hdrs+set}" = set; then
21627 echo $ECHO_N "(cached) $ECHO_C" >&6
21628 else
21629
21630 cf_cv_regex_hdrs=no
21631 case "$cf_regex_func" in
21632 (compile)
21633 for cf_regex_hdr in regexp.h regexpr.h
21634 do
21635 cat >"conftest.$ac_ext" <<_ACEOF
21636 #line 21636 "configure"
21637 #include "confdefs.h"
21638 #include <$cf_regex_hdr>
21639 int
21640 main (void)
21641 {
21642
21643 char *p = compile("", "", "", 0);
21644 int x = step("", "");
21645 (void)p;
21646 (void)x;
21647
21648 ;
21649 return 0;
21650 }
21651 _ACEOF
21652 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21653 if { (eval echo "$as_me:21653: \"$ac_link\"") >&5
21654 (eval $ac_link) 2>&5
21655 ac_status=$?
21656 echo "$as_me:21656: \$? = $ac_status" >&5
21657 (exit "$ac_status"); } &&
21658 { ac_try='test -s "conftest$ac_exeext"'
21659 { (eval echo "$as_me:21659: \"$ac_try\"") >&5
21660 (eval $ac_try) 2>&5
21661 ac_status=$?
21662 echo "$as_me:21662: \$? = $ac_status" >&5
21663 (exit "$ac_status"); }; }; then
21664
21665 cf_cv_regex_hdrs=$cf_regex_hdr
21666 break
21667
21668 else
21669 echo "$as_me: failed program was:" >&5
21670 cat "conftest.$ac_ext" >&5
21671 fi
21672 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21673 done
21674 ;;
21675 (*)
21676 for cf_regex_hdr in regex.h
21677 do
21678 cat >"conftest.$ac_ext" <<_ACEOF
21679 #line 21679 "configure"
21680 #include "confdefs.h"
21681 #include <sys/types.h>
21682 #include <$cf_regex_hdr>
21683 int
21684 main (void)
21685 {
21686
21687 regex_t *p = 0;
21688 int x = regcomp(p, "", 0);
21689 int y = regexec(p, "", 0, 0, 0);
21690 (void)x;
21691 (void)y;
21692 regfree(p);
21693
21694 ;
21695 return 0;
21696 }
21697 _ACEOF
21698 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21699 if { (eval echo "$as_me:21699: \"$ac_link\"") >&5
21700 (eval $ac_link) 2>&5
21701 ac_status=$?
21702 echo "$as_me:21702: \$? = $ac_status" >&5
21703 (exit "$ac_status"); } &&
21704 { ac_try='test -s "conftest$ac_exeext"'
21705 { (eval echo "$as_me:21705: \"$ac_try\"") >&5
21706 (eval $ac_try) 2>&5
21707 ac_status=$?
21708 echo "$as_me:21708: \$? = $ac_status" >&5
21709 (exit "$ac_status"); }; }; then
21710
21711 cf_cv_regex_hdrs=$cf_regex_hdr
21712 break
21713
21714 else
21715 echo "$as_me: failed program was:" >&5
21716 cat "conftest.$ac_ext" >&5
21717 fi
21718 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21719 done
21720 ;;
21721 esac
21722
21723 fi
21724 echo "$as_me:21724: result: $cf_cv_regex_hdrs" >&5
21725 echo "${ECHO_T}$cf_cv_regex_hdrs" >&6
21726
21727 case "$cf_cv_regex_hdrs" in
21728 (no) { echo "$as_me:21728: WARNING: no regular expression header found" >&5
21729 echo "$as_me: WARNING: no regular expression header found" >&2;} ;;
21730 (regex.h)
21731 cat >>confdefs.h <<\EOF
21732 #define HAVE_REGEX_H_FUNCS 1
21733 EOF
21734 ;;
21735 (regexp.h)
21736 cat >>confdefs.h <<\EOF
21737 #define HAVE_REGEXP_H_FUNCS 1
21738 EOF
21739 ;;
21740 (regexpr.h)
21741 cat >>confdefs.h <<\EOF
21742 #define HAVE_REGEXPR_H_FUNCS 1
21743 EOF
21744 ;;
21745 esac
21746
21747 if test "X$cf_cv_regex_hdrs" != "Xregex.h" ; then
21748 { { echo "$as_me:21748: error: Only POSIX, PCRE, or PCRE2 regular expressions are supported" >&5
21749 echo "$as_me: error: Only POSIX, PCRE, or PCRE2 regular expressions are supported" >&2;}
21750 { (exit 1); exit 1; }; }
21751 fi
21752 fi
21753 fi
21754
21755 cat >>confdefs.h <<\EOF
21756 #define OPT_SELECT_REGEX 1
21757 EOF
21758
21759 fi
21760
21761 echo "$as_me:21761: checking if you want support for right-scrollbar" >&5
21762 echo $ECHO_N "checking if you want support for right-scrollbar... $ECHO_C" >&6
21763
21764 # Check whether --enable-rightbar or --disable-rightbar was given.
21765 if test "${enable_rightbar+set}" = set; then
21766 enableval="$enable_rightbar"
21767 test "$enableval" != no && enableval=yes
21768 if test "$enableval" != "yes" ; then
21769 enable_rightbar=no
21770 else
21771 enable_rightbar=yes
21772 fi
21773 else
21774 enableval=yes
21775 enable_rightbar=yes
21776
21777 fi;
21778 echo "$as_me:21778: result: $enable_rightbar" >&5
21779 echo "${ECHO_T}$enable_rightbar" >&6
21780 if test "$enable_rightbar" = yes ; then
21781
21782 cat >>confdefs.h <<\EOF
21783 #define SCROLLBAR_RIGHT 1
21784 EOF
21785
21786 fi
21787
21788 echo "$as_me:21788: checking if you want check for redundant name-change" >&5
21789 echo $ECHO_N "checking if you want check for redundant name-change... $ECHO_C" >&6
21790
21791 # Check whether --enable-samename or --disable-samename was given.
21792 if test "${enable_samename+set}" = set; then
21793 enableval="$enable_samename"
21794 test "$enableval" != no && enableval=yes
21795 if test "$enableval" != "yes" ; then
21796 enable_samename=no
21797 else
21798 enable_samename=yes
21799 fi
21800 else
21801 enableval=yes
21802 enable_samename=yes
21803
21804 fi;
21805 echo "$as_me:21805: result: $enable_samename" >&5
21806 echo "${ECHO_T}$enable_samename" >&6
21807 test "$enable_samename" = no &&
21808 cat >>confdefs.h <<\EOF
21809 #define OPT_SAME_NAME 0
21810 EOF
21811
21812 echo "$as_me:21812: checking if you want support for selection-actions" >&5
21813 echo $ECHO_N "checking if you want support for selection-actions... $ECHO_C" >&6
21814
21815 # Check whether --enable-selection-ops or --disable-selection-ops was given.
21816 if test "${enable_selection_ops+set}" = set; then
21817 enableval="$enable_selection_ops"
21818 test "$enableval" != no && enableval=yes
21819 if test "$enableval" != "yes" ; then
21820 enable_selection_ops=no
21821 else
21822 enable_selection_ops=yes
21823 fi
21824 else
21825 enableval=yes
21826 enable_selection_ops=yes
21827
21828 fi;
21829 echo "$as_me:21829: result: $enable_selection_ops" >&5
21830 echo "${ECHO_T}$enable_selection_ops" >&6
21831 test "$enable_selection_ops" = no &&
21832 cat >>confdefs.h <<\EOF
21833 #define OPT_SELECTION_OPS 0
21834 EOF
21835
21836 echo "$as_me:21836: checking if you want support for session management" >&5
21837 echo $ECHO_N "checking if you want support for session management... $ECHO_C" >&6
21838
21839 # Check whether --enable-session-mgt or --disable-session-mgt was given.
21840 if test "${enable_session_mgt+set}" = set; then
21841 enableval="$enable_session_mgt"
21842 test "$enableval" != no && enableval=yes
21843 if test "$enableval" != "yes" ; then
21844 enable_session_mgt=no
21845 else
21846 enable_session_mgt=yes
21847 fi
21848 else
21849 enableval=yes
21850 enable_session_mgt=yes
21851
21852 fi;
21853 echo "$as_me:21853: result: $enable_session_mgt" >&5
21854 echo "${ECHO_T}$enable_session_mgt" >&6
21855 test "$enable_session_mgt" = no &&
21856 cat >>confdefs.h <<\EOF
21857 #define OPT_SESSION_MGT 0
21858 EOF
21859
21860 echo "$as_me:21860: checking if you want to use termcap function-keys" >&5
21861 echo $ECHO_N "checking if you want to use termcap function-keys... $ECHO_C" >&6
21862
21863 # Check whether --enable-tcap-fkeys or --disable-tcap-fkeys was given.
21864 if test "${enable_tcap_fkeys+set}" = set; then
21865 enableval="$enable_tcap_fkeys"
21866 test "$enableval" != no && enableval=yes
21867 if test "$enableval" != "yes" ; then
21868 enable_tcap_fkeys=no
21869 else
21870 enable_tcap_fkeys=yes
21871 fi
21872 else
21873 enableval=yes
21874 enable_tcap_fkeys=yes
21875
21876 fi;
21877 echo "$as_me:21877: result: $enable_tcap_fkeys" >&5
21878 echo "${ECHO_T}$enable_tcap_fkeys" >&6
21879 test "$enable_tcap_fkeys" = yes &&
21880 cat >>confdefs.h <<\EOF
21881 #define OPT_TCAP_FKEYS 1
21882 EOF
21883
21884 echo "$as_me:21884: checking if you want to use termcap-query/report" >&5
21885 echo $ECHO_N "checking if you want to use termcap-query/report... $ECHO_C" >&6
21886
21887 # Check whether --enable-tcap-query or --disable-tcap-query was given.
21888 if test "${enable_tcap_query+set}" = set; then
21889 enableval="$enable_tcap_query"
21890 test "$enableval" != no && enableval=yes
21891 if test "$enableval" != "yes" ; then
21892 enable_tcap_query=no
21893 else
21894 enable_tcap_query=yes
21895 fi
21896 else
21897 enableval=yes
21898 enable_tcap_query=yes
21899
21900 fi;
21901 echo "$as_me:21901: result: $enable_tcap_query" >&5
21902 echo "${ECHO_T}$enable_tcap_query" >&6
21903 test "$enable_tcap_query" = yes &&
21904 cat >>confdefs.h <<\EOF
21905 #define OPT_TCAP_QUERY 1
21906 EOF
21907
21908 echo "$as_me:21908: checking if you want support for tek4014" >&5
21909 echo $ECHO_N "checking if you want support for tek4014... $ECHO_C" >&6
21910
21911 # Check whether --enable-tek4014 or --disable-tek4014 was given.
21912 if test "${enable_tek4014+set}" = set; then
21913 enableval="$enable_tek4014"
21914 test "$enableval" != no && enableval=yes
21915 if test "$enableval" != "yes" ; then
21916 enable_tek4014=no
21917 else
21918 enable_tek4014=yes
21919 fi
21920 else
21921 enableval=yes
21922 enable_tek4014=yes
21923
21924 fi;
21925 echo "$as_me:21925: result: $enable_tek4014" >&5
21926 echo "${ECHO_T}$enable_tek4014" >&6
21927 if test "$enable_tek4014" = no ; then
21928
21929 cat >>confdefs.h <<\EOF
21930 #define OPT_TEK4014 0
21931 EOF
21932
21933 else
21934 EXTRAHDRS="$EXTRAHDRS Tekparse.h"
21935 EXTRASRCS="$EXTRASRCS TekPrsTbl.c Tekproc.c"
21936 EXTRAOBJS="$EXTRAOBJS TekPrsTbl.o Tekproc.o"
21937 fi
21938
21939 echo "$as_me:21939: checking if you want pulldown menus with a toolbar" >&5
21940 echo $ECHO_N "checking if you want pulldown menus with a toolbar... $ECHO_C" >&6
21941
21942 # Check whether --enable-toolbar or --disable-toolbar was given.
21943 if test "${enable_toolbar+set}" = set; then
21944 enableval="$enable_toolbar"
21945 test "$enableval" != yes && enableval=no
21946 if test "$enableval" != "no" ; then
21947 enable_toolbar=yes
21948 else
21949 enable_toolbar=no
21950 fi
21951 else
21952 enableval=no
21953 enable_toolbar=no
21954
21955 fi;
21956 echo "$as_me:21956: result: $enable_toolbar" >&5
21957 echo "${ECHO_T}$enable_toolbar" >&6
21958 if test "$enable_toolbar" = yes ; then
21959
21960 cat >>confdefs.h <<\EOF
21961 #define OPT_TOOLBAR 1
21962 EOF
21963
21964 fi
21965
21966 echo "$as_me:21966: checking if you want VT52 emulation" >&5
21967 echo $ECHO_N "checking if you want VT52 emulation... $ECHO_C" >&6
21968
21969 # Check whether --enable-vt52 or --disable-vt52 was given.
21970 if test "${enable_vt52+set}" = set; then
21971 enableval="$enable_vt52"
21972 test "$enableval" != no && enableval=yes
21973 if test "$enableval" != "yes" ; then
21974 enable_vt52=no
21975 else
21976 enable_vt52=yes
21977 fi
21978 else
21979 enableval=yes
21980 enable_vt52=yes
21981
21982 fi;
21983 echo "$as_me:21983: result: $enable_vt52" >&5
21984 echo "${ECHO_T}$enable_vt52" >&6
21985 test "$enable_vt52" = no &&
21986 cat >>confdefs.h <<\EOF
21987 #define OPT_VT52_MODE 0
21988 EOF
21989
21990 echo "$as_me:21990: checking if you want wide-attribute support" >&5
21991 echo $ECHO_N "checking if you want wide-attribute support... $ECHO_C" >&6
21992
21993 # Check whether --enable-wide-attrs or --disable-wide-attrs was given.
21994 if test "${enable_wide_attrs+set}" = set; then
21995 enableval="$enable_wide_attrs"
21996 test "$enableval" != no && enableval=yes
21997 if test "$enableval" != "yes" ; then
21998 enable_wattr=no
21999 else
22000 enable_wattr=yes
22001 fi
22002 else
22003 enableval=yes
22004 enable_wattr=yes
22005
22006 fi;
22007 echo "$as_me:22007: result: $enable_wattr" >&5
22008 echo "${ECHO_T}$enable_wattr" >&6
22009
22010 if test x$enable_wattr = xno && test x$enable_direct_color = xyes ; then
22011 { echo "$as_me:22011: WARNING: overriding wide-attributes to support direct color" >&5
22012 echo "$as_me: WARNING: overriding wide-attributes to support direct color" >&2;}
22013 enable_wattr=yes
22014 fi
22015
22016 echo "$as_me:22016: checking if you want wide-character support" >&5
22017 echo $ECHO_N "checking if you want wide-character support... $ECHO_C" >&6
22018
22019 # Check whether --enable-wide-chars or --disable-wide-chars was given.
22020 if test "${enable_wide_chars+set}" = set; then
22021 enableval="$enable_wide_chars"
22022 test "$enableval" != no && enableval=yes
22023 if test "$enableval" != "yes" ; then
22024 enable_wchar=no
22025 else
22026 enable_wchar=yes
22027 fi
22028 else
22029 enableval=yes
22030 enable_wchar=yes
22031
22032 fi;
22033 echo "$as_me:22033: result: $enable_wchar" >&5
22034 echo "${ECHO_T}$enable_wchar" >&6
22035 test "x$enable_wattr" = xno &&
22036 cat >>confdefs.h <<\EOF
22037 #define OPT_WIDE_ATTRS 0
22038 EOF
22039
22040 echo "$as_me:22040: checking if you want only 16-bit character support" >&5
22041 echo $ECHO_N "checking if you want only 16-bit character support... $ECHO_C" >&6
22042
22043 # Check whether --enable-16bit-chars or --disable-16bit-chars was given.
22044 if test "${enable_16bit_chars+set}" = set; then
22045 enableval="$enable_16bit_chars"
22046 test "$enableval" != yes && enableval=no
22047 if test "$enableval" != "no" ; then
22048 enable_16bit_chars=yes
22049 else
22050 enable_16bit_chars=no
22051 fi
22052 else
22053 enableval=no
22054 enable_16bit_chars=no
22055
22056 fi;
22057 echo "$as_me:22057: result: $enable_16bit_chars" >&5
22058 echo "${ECHO_T}$enable_16bit_chars" >&6
22059
22060 if test "$enable_16bit_chars" = yes ; then
22061
22062 cat >>confdefs.h <<\EOF
22063 #define OPT_WIDER_ICHAR 0
22064 EOF
22065
22066 enable_wchar=yes
22067 fi
22068
22069 if test "$enable_wchar" = yes ; then
22070
22071 echo "$as_me:22071: checking if you want to use mini-luit/Latin9 built-in support" >&5
22072 echo $ECHO_N "checking if you want to use mini-luit/Latin9 built-in support... $ECHO_C" >&6
22073
22074 # Check whether --enable-mini-luit or --disable-mini-luit was given.
22075 if test "${enable_mini_luit+set}" = set; then
22076 enableval="$enable_mini_luit"
22077 test "$enableval" != yes && enableval=no
22078 if test "$enableval" != "no" ; then
22079 enable_mini_luit=yes
22080 else
22081 enable_mini_luit=no
22082 fi
22083 else
22084 enableval=no
22085 enable_mini_luit=no
22086
22087 fi;
22088 echo "$as_me:22088: result: $enable_mini_luit" >&5
22089 echo "${ECHO_T}$enable_mini_luit" >&6
22090 if test "$enable_mini_luit" = yes ; then
22091
22092 cat >>confdefs.h <<\EOF
22093 #define OPT_MINI_LUIT 1
22094 EOF
22095
22096 fi
22097
22098 echo "$as_me:22098: checking if you want to use luit" >&5
22099 echo $ECHO_N "checking if you want to use luit... $ECHO_C" >&6
22100
22101 # Check whether --enable-luit or --disable-luit was given.
22102 if test "${enable_luit+set}" = set; then
22103 enableval="$enable_luit"
22104 test "$enableval" != no && enableval=yes
22105 if test "$enableval" != "yes" ; then
22106 enable_luit=no
22107 else
22108 enable_luit=yes
22109 fi
22110 else
22111 enableval=yes
22112 enable_luit=yes
22113
22114 fi;
22115 echo "$as_me:22115: result: $enable_luit" >&5
22116 echo "${ECHO_T}$enable_luit" >&6
22117 if test "$enable_luit" = yes ; then
22118
22119 cat >>confdefs.h <<\EOF
22120 #define OPT_LUIT_PROG 1
22121 EOF
22122
22123 test -z "$LUIT" && LUIT="xterm-filter"
22124 for ac_prog in $LUIT xterm-filter bluit luit
22125 do
22126 # Extract the first word of "$ac_prog", so it can be a program name with args.
22127 set dummy $ac_prog; ac_word=$2
22128 echo "$as_me:22128: checking for $ac_word" >&5
22129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22130 if test "${ac_cv_path_LUIT+set}" = set; then
22131 echo $ECHO_N "(cached) $ECHO_C" >&6
22132 else
22133 case $LUIT in
22134 [\\/]* | ?:[\\/]*)
22135 ac_cv_path_LUIT="$LUIT" # Let the user override the test with a path.
22136 ;;
22137 *)
22138 ac_save_IFS=$IFS; IFS=$ac_path_separator
22139 ac_dummy="$PATH"
22140 for ac_dir in $ac_dummy; do
22141 IFS=$ac_save_IFS
22142 test -z "$ac_dir" && ac_dir=.
22143 if $as_executable_p "$ac_dir/$ac_word"; then
22144 ac_cv_path_LUIT="$ac_dir/$ac_word"
22145 echo "$as_me:22145: found $ac_dir/$ac_word" >&5
22146 break
22147 fi
22148 done
22149
22150 ;;
22151 esac
22152 fi
22153 LUIT=$ac_cv_path_LUIT
22154
22155 if test -n "$LUIT"; then
22156 echo "$as_me:22156: result: $LUIT" >&5
22157 echo "${ECHO_T}$LUIT" >&6
22158 else
22159 echo "$as_me:22159: result: no" >&5
22160 echo "${ECHO_T}no" >&6
22161 fi
22162
22163 test -n "$LUIT" && break
22164 done
22165 test -n "$LUIT" || LUIT="$LUIT"
22166
22167 cf_path_prog=""
22168 cf_path_args=""
22169 IFS="${IFS:- }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR"
22170 for cf_temp in $ac_cv_path_LUIT
22171 do
22172 if test -z "$cf_path_prog" ; then
22173 if test "$with_full_paths" = yes ; then
22174
22175 if test "x$prefix" != xNONE; then
22176 cf_path_syntax="$prefix"
22177 else
22178 cf_path_syntax="$ac_default_prefix"
22179 fi
22180
22181 case ".$cf_temp" in
22182 (.\$\(*\)*|.\'*\'*)
22183 ;;
22184 (..|./*|.\\*)
22185 ;;
22186 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
22187 ;;
22188 (.\$\{*prefix\}*|.\$\{*dir\}*)
22189 eval cf_temp="$cf_temp"
22190 case ".$cf_temp" in
22191 (.NONE/*)
22192 cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%`
22193 ;;
22194 esac
22195 ;;
22196 (.no|.NONE/*)
22197 cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%`
22198 ;;
22199 (*)
22200 break
22201 ;;
22202 esac
22203
22204 cf_path_prog="$cf_temp"
22205 else
22206 cf_path_prog="`basename "$cf_temp"`"
22207 fi
22208 elif test -z "$cf_path_args" ; then
22209 cf_path_args="$cf_temp"
22210 else
22211 cf_path_args="$cf_path_args $cf_temp"
22212 fi
22213 done
22214 IFS="$cf_save_ifs"
22215
22216 if test -n "$cf_path_prog" ; then
22217
22218 echo "${as_me:-configure}:22218: testing defining path for ${cf_path_prog} ..." 1>&5
22219
22220 cat >>confdefs.h <<EOF
22221 #define LUIT_PATH "$cf_path_prog"
22222 EOF
22223
22224 test -n "$cf_path_args" &&
22225 cat >>confdefs.h <<EOF
22226 #define LUIT_ARGS "$cf_path_args"
22227 EOF
22228
22229 fi
22230
22231 fi
22232
22233 cat >>confdefs.h <<\EOF
22234 #define OPT_WIDE_CHARS 1
22235 EOF
22236
22237 EXTRAHDRS="$EXTRAHDRS charclass.h precompose.h wcwidth.h"
22238 EXTRASRCS="$EXTRASRCS charclass.c precompose.c wcwidth.c"
22239 EXTRAOBJS="$EXTRAOBJS charclass.o precompose.o wcwidth.o"
22240 fi
22241
22242 echo "$as_me:22242: checking if you want dynamic-abbreviation support" >&5
22243 echo $ECHO_N "checking if you want dynamic-abbreviation support... $ECHO_C" >&6
22244
22245 # Check whether --enable-dabbrev or --disable-dabbrev was given.
22246 if test "${enable_dabbrev+set}" = set; then
22247 enableval="$enable_dabbrev"
22248 test "$enableval" != yes && enableval=no
22249 if test "$enableval" != "no" ; then
22250 enable_dabbrev=yes
22251 else
22252 enable_dabbrev=no
22253 fi
22254 else
22255 enableval=no
22256 enable_dabbrev=no
22257
22258 fi;
22259 echo "$as_me:22259: result: $enable_dabbrev" >&5
22260 echo "${ECHO_T}$enable_dabbrev" >&6
22261 if test "$enable_dabbrev" = yes ; then
22262
22263 cat >>confdefs.h <<\EOF
22264 #define OPT_DABBREV 1
22265 EOF
22266
22267 fi
22268
22269 echo "$as_me:22269: checking if you want DECterm Locator support" >&5
22270 echo $ECHO_N "checking if you want DECterm Locator support... $ECHO_C" >&6
22271
22272 # Check whether --enable-dec-locator or --disable-dec-locator was given.
22273 if test "${enable_dec_locator+set}" = set; then
22274 enableval="$enable_dec_locator"
22275 test "$enableval" != yes && enableval=no
22276 if test "$enableval" != "no" ; then
22277 enable_dec_locator=yes
22278 else
22279 enable_dec_locator=no
22280 fi
22281 else
22282 enableval=no
22283 enable_dec_locator=no
22284
22285 fi;
22286 echo "$as_me:22286: result: $enable_dec_locator" >&5
22287 echo "${ECHO_T}$enable_dec_locator" >&6
22288 if test "$enable_dec_locator" = yes ; then
22289
22290 cat >>confdefs.h <<\EOF
22291 #define OPT_DEC_LOCATOR 1
22292 EOF
22293
22294 fi
22295
22296 echo "$as_me:22296: checking if you want XHTML and SVG screen dump support" >&5
22297 echo $ECHO_N "checking if you want XHTML and SVG screen dump support... $ECHO_C" >&6
22298
22299 # Check whether --enable-screen-dumps or --disable-screen-dumps was given.
22300 if test "${enable_screen_dumps+set}" = set; then
22301 enableval="$enable_screen_dumps"
22302 test "$enableval" != no && enableval=yes
22303 if test "$enableval" != "yes" ; then
22304 enable_screen_dumps=no
22305 else
22306 enable_screen_dumps=yes
22307 fi
22308 else
22309 enableval=yes
22310 enable_screen_dumps=yes
22311
22312 fi;
22313 echo "$as_me:22313: result: $enable_screen_dumps" >&5
22314 echo "${ECHO_T}$enable_screen_dumps" >&6
22315 if test "$enable_screen_dumps" = yes ; then
22316 EXTRASRCS="$EXTRASRCS html.c svg.c"
22317 EXTRAOBJS="$EXTRAOBJS html.o svg.o"
22318 else
22319
22320 cat >>confdefs.h <<\EOF
22321 #define OPT_SCREEN_DUMPS 0
22322 EOF
22323
22324 fi
22325
22326 echo "$as_me:22326: checking if you want ReGIS graphics support" >&5
22327 echo $ECHO_N "checking if you want ReGIS graphics support... $ECHO_C" >&6
22328
22329 # Check whether --enable-regis-graphics or --disable-regis-graphics was given.
22330 if test "${enable_regis_graphics+set}" = set; then
22331 enableval="$enable_regis_graphics"
22332 test "$enableval" != yes && enableval=no
22333 if test "$enableval" != "no" ; then
22334 enable_regis_graphics=yes
22335 else
22336 enable_regis_graphics=no
22337 fi
22338 else
22339 enableval=no
22340 enable_regis_graphics=no
22341
22342 fi;
22343 echo "$as_me:22343: result: $enable_regis_graphics" >&5
22344 echo "${ECHO_T}$enable_regis_graphics" >&6
22345 if test "$enable_regis_graphics" = yes ; then
22346
22347 cat >>confdefs.h <<\EOF
22348 #define OPT_REGIS_GRAPHICS 1
22349 EOF
22350
22351 EXTRAHDRS="$EXTRAHDRS graphics_regis.h"
22352 EXTRASRCS="$EXTRASRCS graphics_regis.c"
22353 EXTRAOBJS="$EXTRAOBJS graphics_regis.o"
22354
22355 echo "$as_me:22355: checking if -lm needed for math functions" >&5
22356 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
22357 if test "${cf_cv_need_libm+set}" = set; then
22358 echo $ECHO_N "(cached) $ECHO_C" >&6
22359 else
22360
22361 cat >"conftest.$ac_ext" <<_ACEOF
22362 #line 22362 "configure"
22363 #include "confdefs.h"
22364
22365 #include <stdio.h>
22366 #include <stdlib.h>
22367 #include <math.h>
22368
22369 int
22370 main (void)
22371 {
22372 double x = rand(); printf("result = %g\\n", sin(x))
22373 ;
22374 return 0;
22375 }
22376 _ACEOF
22377 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22378 if { (eval echo "$as_me:22378: \"$ac_link\"") >&5
22379 (eval $ac_link) 2>&5
22380 ac_status=$?
22381 echo "$as_me:22381: \$? = $ac_status" >&5
22382 (exit "$ac_status"); } &&
22383 { ac_try='test -s "conftest$ac_exeext"'
22384 { (eval echo "$as_me:22384: \"$ac_try\"") >&5
22385 (eval $ac_try) 2>&5
22386 ac_status=$?
22387 echo "$as_me:22387: \$? = $ac_status" >&5
22388 (exit "$ac_status"); }; }; then
22389 cf_cv_need_libm=no
22390 else
22391 echo "$as_me: failed program was:" >&5
22392 cat "conftest.$ac_ext" >&5
22393 cf_cv_need_libm=yes
22394 fi
22395 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22396 fi
22397 echo "$as_me:22397: result: $cf_cv_need_libm" >&5
22398 echo "${ECHO_T}$cf_cv_need_libm" >&6
22399 if test "$cf_cv_need_libm" = yes
22400 then
22401
22402 cf_add_libs="$LIBS"
22403 # reverse order
22404 cf_add_0lib=
22405 for cf_add_1lib in -lm; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
22406 # filter duplicates
22407 for cf_add_1lib in $cf_add_0lib; do
22408 for cf_add_2lib in $cf_add_libs; do
22409 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
22410 cf_add_1lib=
22411 break
22412 fi
22413 done
22414 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
22415 done
22416 LIBS="$cf_add_libs"
22417
22418 fi
22419
22420 fi
22421
22422 echo "$as_me:22422: checking if you want sixel graphics support" >&5
22423 echo $ECHO_N "checking if you want sixel graphics support... $ECHO_C" >&6
22424
22425 # Check whether --enable-sixel-graphics or --disable-sixel-graphics was given.
22426 if test "${enable_sixel_graphics+set}" = set; then
22427 enableval="$enable_sixel_graphics"
22428 test "$enableval" != no && enableval=yes
22429 if test "$enableval" != "yes" ; then
22430 enable_sixel_graphics=no
22431 else
22432 enable_sixel_graphics=yes
22433 fi
22434 else
22435 enableval=yes
22436 enable_sixel_graphics=yes
22437
22438 fi;
22439 echo "$as_me:22439: result: $enable_sixel_graphics" >&5
22440 echo "${ECHO_T}$enable_sixel_graphics" >&6
22441 if test "$enable_sixel_graphics" = yes ; then
22442
22443 cat >>confdefs.h <<\EOF
22444 #define OPT_SIXEL_GRAPHICS 1
22445 EOF
22446
22447 EXTRAHDRS="$EXTRAHDRS graphics_sixel.h"
22448 EXTRASRCS="$EXTRASRCS graphics_sixel.c"
22449 EXTRAOBJS="$EXTRAOBJS graphics_sixel.o"
22450 fi
22451
22452 if test "$enable_regis_graphics" = yes || test "$enable_sixel_graphics" = yes ; then
22453
22454 cat >>confdefs.h <<\EOF
22455 #define OPT_GRAPHICS 1
22456 EOF
22457
22458 EXTRAHDRS="$EXTRAHDRS graphics.h"
22459 EXTRASRCS="$EXTRASRCS graphics.c"
22460 EXTRAOBJS="$EXTRAOBJS graphics.o"
22461 fi
22462
22463 echo "$as_me:22463: checking if you want sixel screen dump support" >&5
22464 echo $ECHO_N "checking if you want sixel screen dump support... $ECHO_C" >&6
22465
22466 # Check whether --enable-print-graphics or --disable-print-graphics was given.
22467 if test "${enable_print_graphics+set}" = set; then
22468 enableval="$enable_print_graphics"
22469 test "$enableval" != no && enableval=yes
22470 if test "$enableval" != "yes" ; then
22471 enable_print_graphics=no
22472 else
22473 enable_print_graphics=$enable_regis_graphics
22474 fi
22475 else
22476 enableval=yes
22477 enable_print_graphics=$enable_regis_graphics
22478
22479 fi;
22480 echo "$as_me:22480: result: $enable_print_graphics" >&5
22481 echo "${ECHO_T}$enable_print_graphics" >&6
22482 if test "$enable_print_graphics" = yes ; then
22483
22484 cat >>confdefs.h <<\EOF
22485 #define OPT_PRINT_GRAPHICS 1
22486 EOF
22487
22488 fi
22489
22490 echo "$as_me:22490: checking if you want VT420 rectangle support" >&5
22491 echo $ECHO_N "checking if you want VT420 rectangle support... $ECHO_C" >&6
22492
22493 # Check whether --enable-rectangles or --disable-rectangles was given.
22494 if test "${enable_rectangles+set}" = set; then
22495 enableval="$enable_rectangles"
22496 test "$enableval" != no && enableval=yes
22497 if test "$enableval" != "yes" ; then
22498 enable_rectangles=no
22499 else
22500 enable_rectangles=yes
22501 fi
22502 else
22503 enableval=yes
22504 enable_rectangles=yes
22505
22506 fi;
22507 echo "$as_me:22507: result: $enable_rectangles" >&5
22508 echo "${ECHO_T}$enable_rectangles" >&6
22509 if test "$enable_rectangles" = yes ; then
22510
22511 cat >>confdefs.h <<\EOF
22512 #define OPT_DEC_RECTOPS 1
22513 EOF
22514
22515 fi
22516
22517 echo "$as_me:22517: checking if you want -ziconbeep option" >&5
22518 echo $ECHO_N "checking if you want -ziconbeep option... $ECHO_C" >&6
22519
22520 # Check whether --enable-ziconbeep or --disable-ziconbeep was given.
22521 if test "${enable_ziconbeep+set}" = set; then
22522 enableval="$enable_ziconbeep"
22523 test "$enableval" != no && enableval=yes
22524 if test "$enableval" != "yes" ; then
22525 enable_ziconbeep=no
22526 else
22527 enable_ziconbeep=yes
22528 fi
22529 else
22530 enableval=yes
22531 enable_ziconbeep=yes
22532
22533 fi;
22534 echo "$as_me:22534: result: $enable_ziconbeep" >&5
22535 echo "${ECHO_T}$enable_ziconbeep" >&6
22536 test "$enable_ziconbeep" = no &&
22537 cat >>confdefs.h <<\EOF
22538 #define OPT_ZICONBEEP 0
22539 EOF
22540
22541 ###############################################################################
22542
22543 echo "$as_me:22543: checking if you want debugging traces" >&5
22544 echo $ECHO_N "checking if you want debugging traces... $ECHO_C" >&6
22545
22546 # Check whether --enable-trace or --disable-trace was given.
22547 if test "${enable_trace+set}" = set; then
22548 enableval="$enable_trace"
22549 test "$enableval" != yes && enableval=no
22550 if test "$enableval" != "no" ; then
22551 enable_trace=yes
22552 else
22553 enable_trace=no
22554 fi
22555 else
22556 enableval=no
22557 enable_trace=no
22558
22559 fi;
22560 echo "$as_me:22560: result: $enable_trace" >&5
22561 echo "${ECHO_T}$enable_trace" >&6
22562 if test "$enable_trace" = yes ; then
22563
22564 cat >>confdefs.h <<\EOF
22565 #define OPT_TRACE 1
22566 EOF
22567
22568 EXTRASRCS="$EXTRASRCS trace.c"
22569 EXTRAOBJS="$EXTRAOBJS trace.o"
22570 fi
22571
22572 echo "$as_me:22572: checking if you want to use dmalloc for testing" >&5
22573 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
22574
22575 # Check whether --with-dmalloc or --without-dmalloc was given.
22576 if test "${with_dmalloc+set}" = set; then
22577 withval="$with_dmalloc"
22578
22579 cat >>confdefs.h <<EOF
22580 #define USE_DMALLOC 1
22581 EOF
22582
22583 : "${with_cflags:=-g}"
22584 : "${enable_leaks:=no}"
22585 with_dmalloc=yes
22586 else
22587 with_dmalloc=
22588 fi;
22589 echo "$as_me:22589: result: ${with_dmalloc:-no}" >&5
22590 echo "${ECHO_T}${with_dmalloc:-no}" >&6
22591
22592 case ".$with_cflags" in
22593 (.*-g*)
22594 case .$CFLAGS in
22595 (.*-g*)
22596 ;;
22597 (*)
22598
22599 cf_fix_cppflags=no
22600 cf_new_cflags=
22601 cf_new_cppflags=
22602 cf_new_extra_cppflags=
22603
22604 for cf_add_cflags in -g
22605 do
22606 case "$cf_fix_cppflags" in
22607 (no)
22608 case "$cf_add_cflags" in
22609 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
22610 case "$cf_add_cflags" in
22611 (-D*)
22612 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
22613
22614 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
22615 && test -z "${cf_tst_cflags}" \
22616 && cf_fix_cppflags=yes
22617
22618 if test "$cf_fix_cppflags" = yes ; then
22619
22620 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
22621 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
22622
22623 continue
22624 elif test "${cf_tst_cflags}" = "\"'" ; then
22625
22626 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
22627 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
22628
22629 continue
22630 fi
22631 ;;
22632 esac
22633 case "$CPPFLAGS" in
22634 (*$cf_add_cflags)
22635 ;;
22636 (*)
22637 case "$cf_add_cflags" in
22638 (-D*)
22639 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
22640
22641 CPPFLAGS=`echo "$CPPFLAGS" | \
22642 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
22643 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
22644
22645 ;;
22646 esac
22647
22648 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
22649 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
22650
22651 ;;
22652 esac
22653 ;;
22654 (*)
22655
22656 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
22657 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
22658
22659 ;;
22660 esac
22661 ;;
22662 (yes)
22663
22664 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
22665 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
22666
22667 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
22668
22669 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
22670 && test -z "${cf_tst_cflags}" \
22671 && cf_fix_cppflags=no
22672 ;;
22673 esac
22674 done
22675
22676 if test -n "$cf_new_cflags" ; then
22677
22678 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
22679 CFLAGS="${CFLAGS}$cf_new_cflags"
22680
22681 fi
22682
22683 if test -n "$cf_new_cppflags" ; then
22684
22685 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
22686 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
22687
22688 fi
22689
22690 if test -n "$cf_new_extra_cppflags" ; then
22691
22692 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
22693 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
22694
22695 fi
22696
22697 ;;
22698 esac
22699 ;;
22700 esac
22701
22702 if test "$with_dmalloc" = yes ; then
22703 echo "$as_me:22703: checking for dmalloc.h" >&5
22704 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
22705 if test "${ac_cv_header_dmalloc_h+set}" = set; then
22706 echo $ECHO_N "(cached) $ECHO_C" >&6
22707 else
22708 cat >"conftest.$ac_ext" <<_ACEOF
22709 #line 22709 "configure"
22710 #include "confdefs.h"
22711 #include <dmalloc.h>
22712 _ACEOF
22713 if { (eval echo "$as_me:22713: \"$ac_cpp "conftest.$ac_ext"\"") >&5
22714 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
22715 ac_status=$?
22716 $EGREP -v '^ *\+' conftest.er1 >conftest.err
22717 rm -f conftest.er1
22718 cat conftest.err >&5
22719 echo "$as_me:22719: \$? = $ac_status" >&5
22720 (exit "$ac_status"); } >/dev/null; then
22721 if test -s conftest.err; then
22722 ac_cpp_err=$ac_c_preproc_warn_flag
22723 else
22724 ac_cpp_err=
22725 fi
22726 else
22727 ac_cpp_err=yes
22728 fi
22729 if test -z "$ac_cpp_err"; then
22730 ac_cv_header_dmalloc_h=yes
22731 else
22732 echo "$as_me: failed program was:" >&5
22733 cat "conftest.$ac_ext" >&5
22734 ac_cv_header_dmalloc_h=no
22735 fi
22736 rm -f conftest.err "conftest.$ac_ext"
22737 fi
22738 echo "$as_me:22738: result: $ac_cv_header_dmalloc_h" >&5
22739 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
22740 if test "$ac_cv_header_dmalloc_h" = yes; then
22741
22742 echo "$as_me:22742: checking for dmalloc_debug in -ldmalloc" >&5
22743 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
22744 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
22745 echo $ECHO_N "(cached) $ECHO_C" >&6
22746 else
22747 ac_check_lib_save_LIBS=$LIBS
22748 LIBS="-ldmalloc $LIBS"
22749 cat >"conftest.$ac_ext" <<_ACEOF
22750 #line 22750 "configure"
22751 #include "confdefs.h"
22752
22753 /* Override any gcc2 internal prototype to avoid an error. */
22754 #ifdef __cplusplus
22755 extern "C"
22756 #endif
22757 /* We use char because int might match the return type of a gcc2
22758 builtin and then its argument prototype would still apply. */
22759 char dmalloc_debug ();
22760 int
22761 main (void)
22762 {
22763 dmalloc_debug ();
22764 ;
22765 return 0;
22766 }
22767 _ACEOF
22768 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22769 if { (eval echo "$as_me:22769: \"$ac_link\"") >&5
22770 (eval $ac_link) 2>&5
22771 ac_status=$?
22772 echo "$as_me:22772: \$? = $ac_status" >&5
22773 (exit "$ac_status"); } &&
22774 { ac_try='test -s "conftest$ac_exeext"'
22775 { (eval echo "$as_me:22775: \"$ac_try\"") >&5
22776 (eval $ac_try) 2>&5
22777 ac_status=$?
22778 echo "$as_me:22778: \$? = $ac_status" >&5
22779 (exit "$ac_status"); }; }; then
22780 ac_cv_lib_dmalloc_dmalloc_debug=yes
22781 else
22782 echo "$as_me: failed program was:" >&5
22783 cat "conftest.$ac_ext" >&5
22784 ac_cv_lib_dmalloc_dmalloc_debug=no
22785 fi
22786 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22787 LIBS=$ac_check_lib_save_LIBS
22788 fi
22789 echo "$as_me:22789: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
22790 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
22791 if test "$ac_cv_lib_dmalloc_dmalloc_debug" = yes; then
22792 cat >>confdefs.h <<EOF
22793 #define HAVE_LIBDMALLOC 1
22794 EOF
22795
22796 LIBS="-ldmalloc $LIBS"
22797
22798 fi
22799
22800 fi
22801
22802 fi
22803
22804 echo "$as_me:22804: checking if you want to use dbmalloc for testing" >&5
22805 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
22806
22807 # Check whether --with-dbmalloc or --without-dbmalloc was given.
22808 if test "${with_dbmalloc+set}" = set; then
22809 withval="$with_dbmalloc"
22810
22811 cat >>confdefs.h <<EOF
22812 #define USE_DBMALLOC 1
22813 EOF
22814
22815 : "${with_cflags:=-g}"
22816 : "${enable_leaks:=no}"
22817 with_dbmalloc=yes
22818 else
22819 with_dbmalloc=
22820 fi;
22821 echo "$as_me:22821: result: ${with_dbmalloc:-no}" >&5
22822 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
22823
22824 case ".$with_cflags" in
22825 (.*-g*)
22826 case .$CFLAGS in
22827 (.*-g*)
22828 ;;
22829 (*)
22830
22831 cf_fix_cppflags=no
22832 cf_new_cflags=
22833 cf_new_cppflags=
22834 cf_new_extra_cppflags=
22835
22836 for cf_add_cflags in -g
22837 do
22838 case "$cf_fix_cppflags" in
22839 (no)
22840 case "$cf_add_cflags" in
22841 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
22842 case "$cf_add_cflags" in
22843 (-D*)
22844 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
22845
22846 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
22847 && test -z "${cf_tst_cflags}" \
22848 && cf_fix_cppflags=yes
22849
22850 if test "$cf_fix_cppflags" = yes ; then
22851
22852 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
22853 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
22854
22855 continue
22856 elif test "${cf_tst_cflags}" = "\"'" ; then
22857
22858 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
22859 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
22860
22861 continue
22862 fi
22863 ;;
22864 esac
22865 case "$CPPFLAGS" in
22866 (*$cf_add_cflags)
22867 ;;
22868 (*)
22869 case "$cf_add_cflags" in
22870 (-D*)
22871 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
22872
22873 CPPFLAGS=`echo "$CPPFLAGS" | \
22874 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
22875 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
22876
22877 ;;
22878 esac
22879
22880 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
22881 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
22882
22883 ;;
22884 esac
22885 ;;
22886 (*)
22887
22888 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
22889 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
22890
22891 ;;
22892 esac
22893 ;;
22894 (yes)
22895
22896 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
22897 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
22898
22899 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
22900
22901 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
22902 && test -z "${cf_tst_cflags}" \
22903 && cf_fix_cppflags=no
22904 ;;
22905 esac
22906 done
22907
22908 if test -n "$cf_new_cflags" ; then
22909
22910 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
22911 CFLAGS="${CFLAGS}$cf_new_cflags"
22912
22913 fi
22914
22915 if test -n "$cf_new_cppflags" ; then
22916
22917 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
22918 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
22919
22920 fi
22921
22922 if test -n "$cf_new_extra_cppflags" ; then
22923
22924 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
22925 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
22926
22927 fi
22928
22929 ;;
22930 esac
22931 ;;
22932 esac
22933
22934 if test "$with_dbmalloc" = yes ; then
22935 echo "$as_me:22935: checking for dbmalloc.h" >&5
22936 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
22937 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
22938 echo $ECHO_N "(cached) $ECHO_C" >&6
22939 else
22940 cat >"conftest.$ac_ext" <<_ACEOF
22941 #line 22941 "configure"
22942 #include "confdefs.h"
22943 #include <dbmalloc.h>
22944 _ACEOF
22945 if { (eval echo "$as_me:22945: \"$ac_cpp "conftest.$ac_ext"\"") >&5
22946 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
22947 ac_status=$?
22948 $EGREP -v '^ *\+' conftest.er1 >conftest.err
22949 rm -f conftest.er1
22950 cat conftest.err >&5
22951 echo "$as_me:22951: \$? = $ac_status" >&5
22952 (exit "$ac_status"); } >/dev/null; then
22953 if test -s conftest.err; then
22954 ac_cpp_err=$ac_c_preproc_warn_flag
22955 else
22956 ac_cpp_err=
22957 fi
22958 else
22959 ac_cpp_err=yes
22960 fi
22961 if test -z "$ac_cpp_err"; then
22962 ac_cv_header_dbmalloc_h=yes
22963 else
22964 echo "$as_me: failed program was:" >&5
22965 cat "conftest.$ac_ext" >&5
22966 ac_cv_header_dbmalloc_h=no
22967 fi
22968 rm -f conftest.err "conftest.$ac_ext"
22969 fi
22970 echo "$as_me:22970: result: $ac_cv_header_dbmalloc_h" >&5
22971 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
22972 if test "$ac_cv_header_dbmalloc_h" = yes; then
22973
22974 echo "$as_me:22974: checking for debug_malloc in -ldbmalloc" >&5
22975 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
22976 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
22977 echo $ECHO_N "(cached) $ECHO_C" >&6
22978 else
22979 ac_check_lib_save_LIBS=$LIBS
22980 LIBS="-ldbmalloc $LIBS"
22981 cat >"conftest.$ac_ext" <<_ACEOF
22982 #line 22982 "configure"
22983 #include "confdefs.h"
22984
22985 /* Override any gcc2 internal prototype to avoid an error. */
22986 #ifdef __cplusplus
22987 extern "C"
22988 #endif
22989 /* We use char because int might match the return type of a gcc2
22990 builtin and then its argument prototype would still apply. */
22991 char debug_malloc ();
22992 int
22993 main (void)
22994 {
22995 debug_malloc ();
22996 ;
22997 return 0;
22998 }
22999 _ACEOF
23000 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23001 if { (eval echo "$as_me:23001: \"$ac_link\"") >&5
23002 (eval $ac_link) 2>&5
23003 ac_status=$?
23004 echo "$as_me:23004: \$? = $ac_status" >&5
23005 (exit "$ac_status"); } &&
23006 { ac_try='test -s "conftest$ac_exeext"'
23007 { (eval echo "$as_me:23007: \"$ac_try\"") >&5
23008 (eval $ac_try) 2>&5
23009 ac_status=$?
23010 echo "$as_me:23010: \$? = $ac_status" >&5
23011 (exit "$ac_status"); }; }; then
23012 ac_cv_lib_dbmalloc_debug_malloc=yes
23013 else
23014 echo "$as_me: failed program was:" >&5
23015 cat "conftest.$ac_ext" >&5
23016 ac_cv_lib_dbmalloc_debug_malloc=no
23017 fi
23018 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23019 LIBS=$ac_check_lib_save_LIBS
23020 fi
23021 echo "$as_me:23021: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
23022 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
23023 if test "$ac_cv_lib_dbmalloc_debug_malloc" = yes; then
23024 cat >>confdefs.h <<EOF
23025 #define HAVE_LIBDBMALLOC 1
23026 EOF
23027
23028 LIBS="-ldbmalloc $LIBS"
23029
23030 fi
23031
23032 fi
23033
23034 fi
23035
23036 echo "$as_me:23036: checking if you want to use valgrind for testing" >&5
23037 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
23038
23039 # Check whether --with-valgrind or --without-valgrind was given.
23040 if test "${with_valgrind+set}" = set; then
23041 withval="$with_valgrind"
23042
23043 cat >>confdefs.h <<EOF
23044 #define USE_VALGRIND 1
23045 EOF
23046
23047 : "${with_cflags:=-g}"
23048 : "${enable_leaks:=no}"
23049 with_valgrind=yes
23050 else
23051 with_valgrind=
23052 fi;
23053 echo "$as_me:23053: result: ${with_valgrind:-no}" >&5
23054 echo "${ECHO_T}${with_valgrind:-no}" >&6
23055
23056 case ".$with_cflags" in
23057 (.*-g*)
23058 case .$CFLAGS in
23059 (.*-g*)
23060 ;;
23061 (*)
23062
23063 cf_fix_cppflags=no
23064 cf_new_cflags=
23065 cf_new_cppflags=
23066 cf_new_extra_cppflags=
23067
23068 for cf_add_cflags in -g
23069 do
23070 case "$cf_fix_cppflags" in
23071 (no)
23072 case "$cf_add_cflags" in
23073 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
23074 case "$cf_add_cflags" in
23075 (-D*)
23076 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
23077
23078 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
23079 && test -z "${cf_tst_cflags}" \
23080 && cf_fix_cppflags=yes
23081
23082 if test "$cf_fix_cppflags" = yes ; then
23083
23084 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
23085 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
23086
23087 continue
23088 elif test "${cf_tst_cflags}" = "\"'" ; then
23089
23090 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
23091 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
23092
23093 continue
23094 fi
23095 ;;
23096 esac
23097 case "$CPPFLAGS" in
23098 (*$cf_add_cflags)
23099 ;;
23100 (*)
23101 case "$cf_add_cflags" in
23102 (-D*)
23103 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
23104
23105 CPPFLAGS=`echo "$CPPFLAGS" | \
23106 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
23107 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
23108
23109 ;;
23110 esac
23111
23112 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
23113 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
23114
23115 ;;
23116 esac
23117 ;;
23118 (*)
23119
23120 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
23121 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
23122
23123 ;;
23124 esac
23125 ;;
23126 (yes)
23127
23128 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
23129 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
23130
23131 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
23132
23133 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
23134 && test -z "${cf_tst_cflags}" \
23135 && cf_fix_cppflags=no
23136 ;;
23137 esac
23138 done
23139
23140 if test -n "$cf_new_cflags" ; then
23141
23142 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
23143 CFLAGS="${CFLAGS}$cf_new_cflags"
23144
23145 fi
23146
23147 if test -n "$cf_new_cppflags" ; then
23148
23149 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
23150 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
23151
23152 fi
23153
23154 if test -n "$cf_new_extra_cppflags" ; then
23155
23156 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
23157 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
23158
23159 fi
23160
23161 ;;
23162 esac
23163 ;;
23164 esac
23165
23166 echo "$as_me:23166: checking if you want to perform memory-leak testing" >&5
23167 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
23168
23169 # Check whether --enable-leaks or --disable-leaks was given.
23170 if test "${enable_leaks+set}" = set; then
23171 enableval="$enable_leaks"
23172 enable_leaks=no
23173 else
23174 enable_leaks=yes
23175 fi;
23176 if test "x$enable_leaks" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi
23177 echo "$as_me:23177: result: $with_no_leaks" >&5
23178 echo "${ECHO_T}$with_no_leaks" >&6
23179
23180 if test "$enable_leaks" = no ; then
23181
23182 cat >>confdefs.h <<\EOF
23183 #define NO_LEAKS 1
23184 EOF
23185
23186 cat >>confdefs.h <<\EOF
23187 #define YY_NO_LEAKS 1
23188 EOF
23189
23190 fi
23191
23192 echo "$as_me:23192: checking if you want to see long compiling messages" >&5
23193 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
23194
23195 # Check whether --enable-echo or --disable-echo was given.
23196 if test "${enable_echo+set}" = set; then
23197 enableval="$enable_echo"
23198 test "$enableval" != no && enableval=yes
23199 if test "$enableval" != "yes" ; then
23200
23201 ECHO_LT='--silent'
23202 ECHO_LD='@echo linking $@;'
23203 RULE_CC='@echo compiling $<'
23204 SHOW_CC='@echo compiling $@'
23205 ECHO_CC='@'
23206
23207 else
23208
23209 ECHO_LT=''
23210 ECHO_LD=''
23211 RULE_CC=''
23212 SHOW_CC=''
23213 ECHO_CC=''
23214
23215 fi
23216 else
23217 enableval=yes
23218
23219 ECHO_LT=''
23220 ECHO_LD=''
23221 RULE_CC=''
23222 SHOW_CC=''
23223 ECHO_CC=''
23224
23225 fi;
23226 echo "$as_me:23226: result: $enableval" >&5
23227 echo "${ECHO_T}$enableval" >&6
23228
23229 echo "$as_me:23229: checking if you want magic cookie emulation" >&5
23230 echo $ECHO_N "checking if you want magic cookie emulation... $ECHO_C" >&6
23231
23232 # Check whether --enable-xmc-glitch or --disable-xmc-glitch was given.
23233 if test "${enable_xmc_glitch+set}" = set; then
23234 enableval="$enable_xmc_glitch"
23235 test "$enableval" != yes && enableval=no
23236 if test "$enableval" != "no" ; then
23237 enable_xmc=yes
23238 else
23239 enable_xmc=no
23240 fi
23241 else
23242 enableval=no
23243 enable_xmc=no
23244
23245 fi;
23246 echo "$as_me:23246: result: $enable_xmc" >&5
23247 echo "${ECHO_T}$enable_xmc" >&6
23248 if test "$enable_xmc" = yes ; then
23249
23250 cat >>confdefs.h <<\EOF
23251 #define OPT_XMC_GLITCH 1
23252 EOF
23253
23254 EXTRASRCS="$EXTRASRCS testxmc.c"
23255 EXTRAOBJS="$EXTRAOBJS testxmc.o"
23256 fi
23257
23258 for ac_func in tigetstr
23259 do
23260 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23261 echo "$as_me:23261: checking for $ac_func" >&5
23262 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23263 if eval "test \"\${$as_ac_var+set}\" = set"; then
23264 echo $ECHO_N "(cached) $ECHO_C" >&6
23265 else
23266 cat >"conftest.$ac_ext" <<_ACEOF
23267 #line 23267 "configure"
23268 #include "confdefs.h"
23269 #define $ac_func autoconf_temporary
23270 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
23271 #undef $ac_func
23272
23273 #ifdef __cplusplus
23274 extern "C"
23275 #endif
23276
23277 /* We use char because int might match the return type of a gcc2
23278 builtin and then its argument prototype would still apply. */
23279 char $ac_func (void);
23280
23281 int
23282 main (void)
23283 {
23284
23285 /* The GNU C library defines stubs for functions which it implements
23286 to always fail with ENOSYS. Some functions are actually named
23287 something starting with __ and the normal name is an alias. */
23288 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23289 #error found stub for $ac_func
23290 #endif
23291
23292 return $ac_func ();
23293 ;
23294 return 0;
23295 }
23296 _ACEOF
23297 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23298 if { (eval echo "$as_me:23298: \"$ac_link\"") >&5
23299 (eval $ac_link) 2>&5
23300 ac_status=$?
23301 echo "$as_me:23301: \$? = $ac_status" >&5
23302 (exit "$ac_status"); } &&
23303 { ac_try='test -s "conftest$ac_exeext"'
23304 { (eval echo "$as_me:23304: \"$ac_try\"") >&5
23305 (eval $ac_try) 2>&5
23306 ac_status=$?
23307 echo "$as_me:23307: \$? = $ac_status" >&5
23308 (exit "$ac_status"); }; }; then
23309 eval "$as_ac_var=yes"
23310 else
23311 echo "$as_me: failed program was:" >&5
23312 cat "conftest.$ac_ext" >&5
23313 eval "$as_ac_var=no"
23314 fi
23315 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23316 fi
23317 echo "$as_me:23317: result: `eval echo '${'"$as_ac_var"'}'`" >&5
23318 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
23319 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
23320 cat >>confdefs.h <<EOF
23321 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23322 EOF
23323
23324 fi
23325 done
23326
23327 if test -n "$cf_cv_lib_part_tgetent"; then
23328
23329 for ac_func in use_extended_names
23330 do
23331 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23332 echo "$as_me:23332: checking for $ac_func" >&5
23333 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23334 if eval "test \"\${$as_ac_var+set}\" = set"; then
23335 echo $ECHO_N "(cached) $ECHO_C" >&6
23336 else
23337 cat >"conftest.$ac_ext" <<_ACEOF
23338 #line 23338 "configure"
23339 #include "confdefs.h"
23340 #define $ac_func autoconf_temporary
23341 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
23342 #undef $ac_func
23343
23344 #ifdef __cplusplus
23345 extern "C"
23346 #endif
23347
23348 /* We use char because int might match the return type of a gcc2
23349 builtin and then its argument prototype would still apply. */
23350 char $ac_func (void);
23351
23352 int
23353 main (void)
23354 {
23355
23356 /* The GNU C library defines stubs for functions which it implements
23357 to always fail with ENOSYS. Some functions are actually named
23358 something starting with __ and the normal name is an alias. */
23359 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23360 #error found stub for $ac_func
23361 #endif
23362
23363 return $ac_func ();
23364 ;
23365 return 0;
23366 }
23367 _ACEOF
23368 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23369 if { (eval echo "$as_me:23369: \"$ac_link\"") >&5
23370 (eval $ac_link) 2>&5
23371 ac_status=$?
23372 echo "$as_me:23372: \$? = $ac_status" >&5
23373 (exit "$ac_status"); } &&
23374 { ac_try='test -s "conftest$ac_exeext"'
23375 { (eval echo "$as_me:23375: \"$ac_try\"") >&5
23376 (eval $ac_try) 2>&5
23377 ac_status=$?
23378 echo "$as_me:23378: \$? = $ac_status" >&5
23379 (exit "$ac_status"); }; }; then
23380 eval "$as_ac_var=yes"
23381 else
23382 echo "$as_me: failed program was:" >&5
23383 cat "conftest.$ac_ext" >&5
23384 eval "$as_ac_var=no"
23385 fi
23386 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23387 fi
23388 echo "$as_me:23388: result: `eval echo '${'"$as_ac_var"'}'`" >&5
23389 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
23390 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
23391 cat >>confdefs.h <<EOF
23392 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23393 EOF
23394
23395 fi
23396 done
23397
23398 fi
23399
23400 if test "$GCC" = yes || test "$GXX" = yes
23401 then
23402
23403 if test "$GCC" = yes || test "$GXX" = yes
23404 then
23405 case $CFLAGS in
23406 (*-Werror=*)
23407 test -n "$verbose" && echo " repairing CFLAGS: $CFLAGS" 1>&6
23408
23409 echo "${as_me:-configure}:23409: testing repairing CFLAGS: $CFLAGS ..." 1>&5
23410
23411 cf_temp_flags=
23412 for cf_temp_scan in $CFLAGS
23413 do
23414 case "x$cf_temp_scan" in
23415 (x-Werror=*)
23416
23417 test -n "$EXTRA_CFLAGS" && EXTRA_CFLAGS="$EXTRA_CFLAGS "
23418 EXTRA_CFLAGS="${EXTRA_CFLAGS}$cf_temp_scan"
23419
23420 ;;
23421 (*)
23422
23423 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
23424 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
23425
23426 ;;
23427 esac
23428 done
23429 CFLAGS="$cf_temp_flags"
23430 test -n "$verbose" && echo " ... fixed $CFLAGS" 1>&6
23431
23432 echo "${as_me:-configure}:23432: testing ... fixed $CFLAGS ..." 1>&5
23433
23434 test -n "$verbose" && echo " ... extra $EXTRA_CFLAGS" 1>&6
23435
23436 echo "${as_me:-configure}:23436: testing ... extra $EXTRA_CFLAGS ..." 1>&5
23437
23438 ;;
23439 esac
23440 fi
23441
23442 if test "$GCC" = yes || test "$GXX" = yes
23443 then
23444 case $CPPFLAGS in
23445 (*-Werror=*)
23446 test -n "$verbose" && echo " repairing CPPFLAGS: $CPPFLAGS" 1>&6
23447
23448 echo "${as_me:-configure}:23448: testing repairing CPPFLAGS: $CPPFLAGS ..." 1>&5
23449
23450 cf_temp_flags=
23451 for cf_temp_scan in $CPPFLAGS
23452 do
23453 case "x$cf_temp_scan" in
23454 (x-Werror=*)
23455
23456 test -n "$EXTRA_CFLAGS" && EXTRA_CFLAGS="$EXTRA_CFLAGS "
23457 EXTRA_CFLAGS="${EXTRA_CFLAGS}$cf_temp_scan"
23458
23459 ;;
23460 (*)
23461
23462 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
23463 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
23464
23465 ;;
23466 esac
23467 done
23468 CPPFLAGS="$cf_temp_flags"
23469 test -n "$verbose" && echo " ... fixed $CPPFLAGS" 1>&6
23470
23471 echo "${as_me:-configure}:23471: testing ... fixed $CPPFLAGS ..." 1>&5
23472
23473 test -n "$verbose" && echo " ... extra $EXTRA_CFLAGS" 1>&6
23474
23475 echo "${as_me:-configure}:23475: testing ... extra $EXTRA_CFLAGS ..." 1>&5
23476
23477 ;;
23478 esac
23479 fi
23480
23481 if test "$GCC" = yes || test "$GXX" = yes
23482 then
23483 case $LDFLAGS in
23484 (*-Werror=*)
23485 test -n "$verbose" && echo " repairing LDFLAGS: $LDFLAGS" 1>&6
23486
23487 echo "${as_me:-configure}:23487: testing repairing LDFLAGS: $LDFLAGS ..." 1>&5
23488
23489 cf_temp_flags=
23490 for cf_temp_scan in $LDFLAGS
23491 do
23492 case "x$cf_temp_scan" in
23493 (x-Werror=*)
23494
23495 test -n "$EXTRA_CFLAGS" && EXTRA_CFLAGS="$EXTRA_CFLAGS "
23496 EXTRA_CFLAGS="${EXTRA_CFLAGS}$cf_temp_scan"
23497
23498 ;;
23499 (*)
23500
23501 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
23502 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
23503
23504 ;;
23505 esac
23506 done
23507 LDFLAGS="$cf_temp_flags"
23508 test -n "$verbose" && echo " ... fixed $LDFLAGS" 1>&6
23509
23510 echo "${as_me:-configure}:23510: testing ... fixed $LDFLAGS ..." 1>&5
23511
23512 test -n "$verbose" && echo " ... extra $EXTRA_CFLAGS" 1>&6
23513
23514 echo "${as_me:-configure}:23514: testing ... extra $EXTRA_CFLAGS ..." 1>&5
23515
23516 ;;
23517 esac
23518 fi
23519
23520 echo "$as_me:23520: checking if you want to turn on gcc warnings" >&5
23521 echo $ECHO_N "checking if you want to turn on gcc warnings... $ECHO_C" >&6
23522
23523 # Check whether --enable-warnings or --disable-warnings was given.
23524 if test "${enable_warnings+set}" = set; then
23525 enableval="$enable_warnings"
23526 test "$enableval" != yes && enableval=no
23527 if test "$enableval" != "no" ; then
23528 enable_warnings=yes
23529 else
23530 enable_warnings=no
23531 fi
23532 else
23533 enableval=no
23534 enable_warnings=no
23535
23536 fi;
23537 echo "$as_me:23537: result: $enable_warnings" >&5
23538 echo "${ECHO_T}$enable_warnings" >&6
23539 if test "$enable_warnings" = "yes"
23540 then
23541
23542 if test "$GCC" = yes || test "$GXX" = yes
23543 then
23544 cat > conftest.i <<EOF
23545 #ifndef GCC_PRINTF
23546 #define GCC_PRINTF 0
23547 #endif
23548 #ifndef GCC_SCANF
23549 #define GCC_SCANF 0
23550 #endif
23551 #ifndef GCC_NORETURN
23552 #define GCC_NORETURN /* nothing */
23553 #endif
23554 #ifndef GCC_UNUSED
23555 #define GCC_UNUSED /* nothing */
23556 #endif
23557 EOF
23558 if test "$GCC" = yes
23559 then
23560 { echo "$as_me:23560: checking for $CC __attribute__ directives..." >&5
23561 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
23562 cat > "conftest.$ac_ext" <<EOF
23563 #line 23563 "${as_me:-configure}"
23564 #include "confdefs.h"
23565 #include "conftest.h"
23566 #include "conftest.i"
23567 #if GCC_PRINTF
23568 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
23569 #else
23570 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
23571 #endif
23572 #if GCC_SCANF
23573 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
23574 #else
23575 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
23576 #endif
23577 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
23578 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
23579 extern void foo(void) GCC_NORETURN;
23580 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { (void)argc; (void)argv; return 0; }
23581 EOF
23582 cf_printf_attribute=no
23583 cf_scanf_attribute=no
23584 for cf_attribute in scanf printf unused noreturn
23585 do
23586
23587 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
23588
23589 cf_directive="__attribute__(($cf_attribute))"
23590 echo "checking for $CC $cf_directive" 1>&5
23591
23592 case "$cf_attribute" in
23593 (printf)
23594 cf_printf_attribute=yes
23595 cat >conftest.h <<EOF
23596 #define GCC_$cf_ATTRIBUTE 1
23597 EOF
23598 ;;
23599 (scanf)
23600 cf_scanf_attribute=yes
23601 cat >conftest.h <<EOF
23602 #define GCC_$cf_ATTRIBUTE 1
23603 EOF
23604 ;;
23605 (*)
23606 cat >conftest.h <<EOF
23607 #define GCC_$cf_ATTRIBUTE $cf_directive
23608 EOF
23609 ;;
23610 esac
23611
23612 if { (eval echo "$as_me:23612: \"$ac_compile\"") >&5
23613 (eval $ac_compile) 2>&5
23614 ac_status=$?
23615 echo "$as_me:23615: \$? = $ac_status" >&5
23616 (exit "$ac_status"); }; then
23617 test -n "$verbose" && echo "$as_me:23617: result: ... $cf_attribute" >&5
23618 echo "${ECHO_T}... $cf_attribute" >&6
23619 cat conftest.h >>confdefs.h
23620 case "$cf_attribute" in
23621 (noreturn)
23622
23623 cat >>confdefs.h <<EOF
23624 #define GCC_NORETURN $cf_directive
23625 EOF
23626
23627 ;;
23628 (printf)
23629 cf_value='/* nothing */'
23630 if test "$cf_printf_attribute" != no ; then
23631 cf_value='__attribute__((format(printf,fmt,var)))'
23632
23633 cat >>confdefs.h <<\EOF
23634 #define GCC_PRINTF 1
23635 EOF
23636
23637 fi
23638
23639 cat >>confdefs.h <<EOF
23640 #define GCC_PRINTFLIKE(fmt,var) $cf_value
23641 EOF
23642
23643 ;;
23644 (scanf)
23645 cf_value='/* nothing */'
23646 if test "$cf_scanf_attribute" != no ; then
23647 cf_value='__attribute__((format(scanf,fmt,var)))'
23648
23649 cat >>confdefs.h <<\EOF
23650 #define GCC_SCANF 1
23651 EOF
23652
23653 fi
23654
23655 cat >>confdefs.h <<EOF
23656 #define GCC_SCANFLIKE(fmt,var) $cf_value
23657 EOF
23658
23659 ;;
23660 (unused)
23661
23662 cat >>confdefs.h <<EOF
23663 #define GCC_UNUSED $cf_directive
23664 EOF
23665
23666 ;;
23667 esac
23668 fi
23669 done
23670 else
23671 ${FGREP-fgrep} define conftest.i >>confdefs.h
23672 fi
23673 rm -rf ./conftest*
23674 fi
23675
23676 if test "x$have_x" = xyes; then
23677
23678 cf_save_LIBS_CF_CONST_X_STRING="$LIBS"
23679 cf_save_CFLAGS_CF_CONST_X_STRING="$CFLAGS"
23680 cf_save_CPPFLAGS_CF_CONST_X_STRING="$CPPFLAGS"
23681 LIBS="$LIBS ${X_PRE_LIBS} ${X_LIBS} ${X_EXTRA_LIBS}"
23682 for cf_X_CFLAGS in $X_CFLAGS
23683 do
23684 case "x$cf_X_CFLAGS" in
23685 x-[IUD]*)
23686 CPPFLAGS="$CPPFLAGS $cf_X_CFLAGS"
23687 ;;
23688 *)
23689 CFLAGS="$CFLAGS $cf_X_CFLAGS"
23690 ;;
23691 esac
23692 done
23693
23694 cat >"conftest.$ac_ext" <<_ACEOF
23695 #line 23695 "configure"
23696 #include "confdefs.h"
23697
23698 #include <stdlib.h>
23699 #include <X11/Intrinsic.h>
23700
23701 int
23702 main (void)
23703 {
23704 String foo = malloc(1); (void)foo
23705 ;
23706 return 0;
23707 }
23708 _ACEOF
23709 rm -f "conftest.$ac_objext"
23710 if { (eval echo "$as_me:23710: \"$ac_compile\"") >&5
23711 (eval $ac_compile) 2>&5
23712 ac_status=$?
23713 echo "$as_me:23713: \$? = $ac_status" >&5
23714 (exit "$ac_status"); } &&
23715 { ac_try='test -s "conftest.$ac_objext"'
23716 { (eval echo "$as_me:23716: \"$ac_try\"") >&5
23717 (eval $ac_try) 2>&5
23718 ac_status=$?
23719 echo "$as_me:23719: \$? = $ac_status" >&5
23720 (exit "$ac_status"); }; }; then
23721
23722 echo "$as_me:23722: checking for X11/Xt const-feature" >&5
23723 echo $ECHO_N "checking for X11/Xt const-feature... $ECHO_C" >&6
23724 if test "${cf_cv_const_x_string+set}" = set; then
23725 echo $ECHO_N "(cached) $ECHO_C" >&6
23726 else
23727
23728 cat >"conftest.$ac_ext" <<_ACEOF
23729 #line 23729 "configure"
23730 #include "confdefs.h"
23731
23732 #define _CONST_X_STRING /* X11R7.8 (perhaps) */
23733 #undef XTSTRINGDEFINES /* X11R5 and later */
23734 #include <stdlib.h>
23735 #include <X11/Intrinsic.h>
23736
23737 int
23738 main (void)
23739 {
23740 String foo = malloc(1); *foo = 0
23741 ;
23742 return 0;
23743 }
23744 _ACEOF
23745 rm -f "conftest.$ac_objext"
23746 if { (eval echo "$as_me:23746: \"$ac_compile\"") >&5
23747 (eval $ac_compile) 2>&5
23748 ac_status=$?
23749 echo "$as_me:23749: \$? = $ac_status" >&5
23750 (exit "$ac_status"); } &&
23751 { ac_try='test -s "conftest.$ac_objext"'
23752 { (eval echo "$as_me:23752: \"$ac_try\"") >&5
23753 (eval $ac_try) 2>&5
23754 ac_status=$?
23755 echo "$as_me:23755: \$? = $ac_status" >&5
23756 (exit "$ac_status"); }; }; then
23757
23758 cf_cv_const_x_string=no
23759
23760 else
23761 echo "$as_me: failed program was:" >&5
23762 cat "conftest.$ac_ext" >&5
23763
23764 cf_cv_const_x_string=yes
23765
23766 fi
23767 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
23768
23769 fi
23770 echo "$as_me:23770: result: $cf_cv_const_x_string" >&5
23771 echo "${ECHO_T}$cf_cv_const_x_string" >&6
23772
23773 LIBS="$cf_save_LIBS_CF_CONST_X_STRING"
23774 CFLAGS="$cf_save_CFLAGS_CF_CONST_X_STRING"
23775 CPPFLAGS="$cf_save_CPPFLAGS_CF_CONST_X_STRING"
23776
23777 case "$cf_cv_const_x_string" in
23778 (no)
23779
23780 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
23781 CPPFLAGS="${CPPFLAGS}-DXTSTRINGDEFINES"
23782
23783 ;;
23784 (*)
23785
23786 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
23787 CPPFLAGS="${CPPFLAGS}-D_CONST_X_STRING"
23788
23789 ;;
23790 esac
23791
23792 else
23793 echo "$as_me: failed program was:" >&5
23794 cat "conftest.$ac_ext" >&5
23795 fi
23796 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
23797 fi
23798 cat > "conftest.$ac_ext" <<EOF
23799 #line 23799 "${as_me:-configure}"
23800 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
23801 EOF
23802 if test "$INTEL_COMPILER" = yes
23803 then
23804 # The "-wdXXX" options suppress warnings:
23805 # remark #1419: external declaration in primary source file
23806 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
23807 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
23808 # remark #193: zero used for undefined preprocessing identifier
23809 # remark #593: variable "curs_sb_left_arrow" was set but never used
23810 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
23811 # remark #869: parameter "tw" was never referenced
23812 # remark #981: operands are evaluated in unspecified order
23813 # warning #279: controlling expression is constant
23814
23815 { echo "$as_me:23815: checking for $CC warning options..." >&5
23816 echo "$as_me: checking for $CC warning options..." >&6;}
23817 cf_save_CFLAGS="$CFLAGS"
23818 EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
23819 for cf_opt in \
23820 wd1419 \
23821 wd1683 \
23822 wd1684 \
23823 wd193 \
23824 wd593 \
23825 wd279 \
23826 wd810 \
23827 wd869 \
23828 wd981
23829 do
23830 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
23831 if { (eval echo "$as_me:23831: \"$ac_compile\"") >&5
23832 (eval $ac_compile) 2>&5
23833 ac_status=$?
23834 echo "$as_me:23834: \$? = $ac_status" >&5
23835 (exit "$ac_status"); }; then
23836 test -n "$verbose" && echo "$as_me:23836: result: ... -$cf_opt" >&5
23837 echo "${ECHO_T}... -$cf_opt" >&6
23838 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
23839 fi
23840 done
23841 CFLAGS="$cf_save_CFLAGS"
23842 elif test "$GCC" = yes && test "$GCC_VERSION" != "unknown"
23843 then
23844 { echo "$as_me:23844: checking for $CC warning options..." >&5
23845 echo "$as_me: checking for $CC warning options..." >&6;}
23846 cf_save_CFLAGS="$CFLAGS"
23847 cf_warn_CONST=""
23848 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
23849 cf_gcc_warnings="Wignored-qualifiers Wlogical-op Wvarargs"
23850 test "x$CLANG_COMPILER" = xyes && cf_gcc_warnings=
23851 for cf_opt in W Wall \
23852 Wbad-function-cast \
23853 Wcast-align \
23854 Wcast-qual \
23855 Wdeclaration-after-statement \
23856 Wextra \
23857 Winline \
23858 Wmissing-declarations \
23859 Wmissing-prototypes \
23860 Wnested-externs \
23861 Wpointer-arith \
23862 Wshadow \
23863 Wstrict-prototypes \
23864 Wundef Wno-inline $cf_gcc_warnings $cf_warn_CONST Wdeclaration-after-statement Wextra Wno-unknown-pragmas Wswitch-enum Wno-cast-qual
23865 do
23866 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
23867 if { (eval echo "$as_me:23867: \"$ac_compile\"") >&5
23868 (eval $ac_compile) 2>&5
23869 ac_status=$?
23870 echo "$as_me:23870: \$? = $ac_status" >&5
23871 (exit "$ac_status"); }; then
23872 test -n "$verbose" && echo "$as_me:23872: result: ... -$cf_opt" >&5
23873 echo "${ECHO_T}... -$cf_opt" >&6
23874 case "$cf_opt" in
23875 (Winline)
23876 case "$GCC_VERSION" in
23877 ([34].*)
23878 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
23879
23880 echo "${as_me:-configure}:23880: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
23881
23882 continue;;
23883 esac
23884 ;;
23885 (Wpointer-arith)
23886 case "$GCC_VERSION" in
23887 ([12].*)
23888 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
23889
23890 echo "${as_me:-configure}:23890: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
23891
23892 continue;;
23893 esac
23894 ;;
23895 esac
23896 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
23897 fi
23898 done
23899 CFLAGS="$cf_save_CFLAGS"
23900 fi
23901 rm -rf ./conftest*
23902
23903 fi
23904
23905 fi
23906
23907 test "$disable_setuid" = yes &&
23908 cat >>confdefs.h <<\EOF
23909 #define DISABLE_SETUID 1
23910 EOF
23911
23912 test "$disable_setgid" = yes &&
23913 cat >>confdefs.h <<\EOF
23914 #define DISABLE_SETGID 1
23915 EOF
23916
23917 if test $disable_setuid = yes ; then
23918 MAY_SETUID="#"
23919 NOT_SETUID=
23920 elif test $disable_setgid = yes ; then
23921 MAY_SETUID="#"
23922 NOT_SETUID=
23923 else
23924 MAY_SETUID=
23925 NOT_SETUID="#"
23926 fi
23927
23928 ### remove from CPPFLAGS the optional features we define in xtermcfg.h
23929 ### or other conflicting symbols that may be defined via imake:
23930 for cf_def in \
23931 __STDC__ \
23932 ALLOWLOGGING \
23933 ALLOWLOGFILEEXEC \
23934 OPT_LUIT_PROG \
23935 OPT_WIDE_CHARS \
23936 SCROLLBAR_RIGHT \
23937 USE_TTY_GROUP \
23938 USE_UTEMPTER \
23939 XRENDERFONT
23940 do
23941 CPPFLAGS=`echo "$CPPFLAGS" | sed -e s/-D$cf_def//`
23942 done
23943
23944 echo "$as_me:23944: checking if filesystem supports mixed-case filenames" >&5
23945 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
23946 if test "${cf_cv_mixedcase+set}" = set; then
23947 echo $ECHO_N "(cached) $ECHO_C" >&6
23948 else
23949
23950 if test "$cross_compiling" = yes ; then
23951 case "$target_alias" in
23952 (*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*|darwin*)
23953 cf_cv_mixedcase=no
23954 ;;
23955 (*)
23956 cf_cv_mixedcase=yes
23957 ;;
23958 esac
23959 else
23960 rm -f conftest CONFTEST
23961 echo test >conftest
23962 if test -f CONFTEST ; then
23963 cf_cv_mixedcase=no
23964 else
23965 cf_cv_mixedcase=yes
23966 fi
23967 rm -f conftest CONFTEST
23968 fi
23969
23970 fi
23971 echo "$as_me:23971: result: $cf_cv_mixedcase" >&5
23972 echo "${ECHO_T}$cf_cv_mixedcase" >&6
23973 test "$cf_cv_mixedcase" = yes &&
23974 cat >>confdefs.h <<\EOF
23975 #define MIXEDCASE_FILENAMES 1
23976 EOF
23977
23978 for ac_prog in exctags ctags
23979 do
23980 # Extract the first word of "$ac_prog", so it can be a program name with args.
23981 set dummy $ac_prog; ac_word=$2
23982 echo "$as_me:23982: checking for $ac_word" >&5
23983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23984 if test "${ac_cv_prog_CTAGS+set}" = set; then
23985 echo $ECHO_N "(cached) $ECHO_C" >&6
23986 else
23987 if test -n "$CTAGS"; then
23988 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
23989 else
23990 ac_save_IFS=$IFS; IFS=$ac_path_separator
23991 ac_dummy="$PATH"
23992 for ac_dir in $ac_dummy; do
23993 IFS=$ac_save_IFS
23994 test -z "$ac_dir" && ac_dir=.
23995 $as_executable_p "$ac_dir/$ac_word" || continue
23996 ac_cv_prog_CTAGS="$ac_prog"
23997 echo "$as_me:23997: found $ac_dir/$ac_word" >&5
23998 break
23999 done
24000
24001 fi
24002 fi
24003 CTAGS=$ac_cv_prog_CTAGS
24004 if test -n "$CTAGS"; then
24005 echo "$as_me:24005: result: $CTAGS" >&5
24006 echo "${ECHO_T}$CTAGS" >&6
24007 else
24008 echo "$as_me:24008: result: no" >&5
24009 echo "${ECHO_T}no" >&6
24010 fi
24011
24012 test -n "$CTAGS" && break
24013 done
24014
24015 for ac_prog in exetags etags
24016 do
24017 # Extract the first word of "$ac_prog", so it can be a program name with args.
24018 set dummy $ac_prog; ac_word=$2
24019 echo "$as_me:24019: checking for $ac_word" >&5
24020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24021 if test "${ac_cv_prog_ETAGS+set}" = set; then
24022 echo $ECHO_N "(cached) $ECHO_C" >&6
24023 else
24024 if test -n "$ETAGS"; then
24025 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
24026 else
24027 ac_save_IFS=$IFS; IFS=$ac_path_separator
24028 ac_dummy="$PATH"
24029 for ac_dir in $ac_dummy; do
24030 IFS=$ac_save_IFS
24031 test -z "$ac_dir" && ac_dir=.
24032 $as_executable_p "$ac_dir/$ac_word" || continue
24033 ac_cv_prog_ETAGS="$ac_prog"
24034 echo "$as_me:24034: found $ac_dir/$ac_word" >&5
24035 break
24036 done
24037
24038 fi
24039 fi
24040 ETAGS=$ac_cv_prog_ETAGS
24041 if test -n "$ETAGS"; then
24042 echo "$as_me:24042: result: $ETAGS" >&5
24043 echo "${ECHO_T}$ETAGS" >&6
24044 else
24045 echo "$as_me:24045: result: no" >&5
24046 echo "${ECHO_T}no" >&6
24047 fi
24048
24049 test -n "$ETAGS" && break
24050 done
24051
24052 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
24053 set dummy ${CTAGS:-ctags}; ac_word=$2
24054 echo "$as_me:24054: checking for $ac_word" >&5
24055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24056 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
24057 echo $ECHO_N "(cached) $ECHO_C" >&6
24058 else
24059 if test -n "$MAKE_LOWER_TAGS"; then
24060 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
24061 else
24062 ac_save_IFS=$IFS; IFS=$ac_path_separator
24063 ac_dummy="$PATH"
24064 for ac_dir in $ac_dummy; do
24065 IFS=$ac_save_IFS
24066 test -z "$ac_dir" && ac_dir=.
24067 $as_executable_p "$ac_dir/$ac_word" || continue
24068 ac_cv_prog_MAKE_LOWER_TAGS="yes"
24069 echo "$as_me:24069: found $ac_dir/$ac_word" >&5
24070 break
24071 done
24072
24073 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
24074 fi
24075 fi
24076 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
24077 if test -n "$MAKE_LOWER_TAGS"; then
24078 echo "$as_me:24078: result: $MAKE_LOWER_TAGS" >&5
24079 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
24080 else
24081 echo "$as_me:24081: result: no" >&5
24082 echo "${ECHO_T}no" >&6
24083 fi
24084
24085 if test "$cf_cv_mixedcase" = yes ; then
24086 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
24087 set dummy ${ETAGS:-etags}; ac_word=$2
24088 echo "$as_me:24088: checking for $ac_word" >&5
24089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24090 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
24091 echo $ECHO_N "(cached) $ECHO_C" >&6
24092 else
24093 if test -n "$MAKE_UPPER_TAGS"; then
24094 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
24095 else
24096 ac_save_IFS=$IFS; IFS=$ac_path_separator
24097 ac_dummy="$PATH"
24098 for ac_dir in $ac_dummy; do
24099 IFS=$ac_save_IFS
24100 test -z "$ac_dir" && ac_dir=.
24101 $as_executable_p "$ac_dir/$ac_word" || continue
24102 ac_cv_prog_MAKE_UPPER_TAGS="yes"
24103 echo "$as_me:24103: found $ac_dir/$ac_word" >&5
24104 break
24105 done
24106
24107 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
24108 fi
24109 fi
24110 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
24111 if test -n "$MAKE_UPPER_TAGS"; then
24112 echo "$as_me:24112: result: $MAKE_UPPER_TAGS" >&5
24113 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
24114 else
24115 echo "$as_me:24115: result: no" >&5
24116 echo "${ECHO_T}no" >&6
24117 fi
24118
24119 else
24120 MAKE_UPPER_TAGS=no
24121 fi
24122
24123 if test "$MAKE_UPPER_TAGS" = yes ; then
24124 MAKE_UPPER_TAGS=
24125 else
24126 MAKE_UPPER_TAGS="#"
24127 fi
24128
24129 if test "$MAKE_LOWER_TAGS" = yes ; then
24130 MAKE_LOWER_TAGS=
24131 else
24132 MAKE_LOWER_TAGS="#"
24133 fi
24134
24135 LD_RPATH_OPT=
24136 if test "x$cf_cv_enable_rpath" != xno
24137 then
24138 echo "$as_me:24138: checking for an rpath option" >&5
24139 echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6
24140 case "$cf_cv_system_name" in
24141 (irix*)
24142 if test "$GCC" = yes; then
24143 LD_RPATH_OPT="-Wl,-rpath,"
24144 else
24145 LD_RPATH_OPT="-rpath "
24146 fi
24147 ;;
24148 (linux*|gnu*|k*bsd*-gnu|freebsd*)
24149 LD_RPATH_OPT="-Wl,-rpath,"
24150 ;;
24151 (openbsd[2-9].*|mirbsd*)
24152 LD_RPATH_OPT="-Wl,-rpath,"
24153 ;;
24154 (dragonfly*)
24155 LD_RPATH_OPT="-rpath "
24156 ;;
24157 (netbsd*)
24158 LD_RPATH_OPT="-Wl,-rpath,"
24159 ;;
24160 (osf*|mls+*)
24161 LD_RPATH_OPT="-rpath "
24162 ;;
24163 (solaris2*)
24164 LD_RPATH_OPT="-R"
24165 ;;
24166 (*)
24167 ;;
24168 esac
24169 echo "$as_me:24169: result: $LD_RPATH_OPT" >&5
24170 echo "${ECHO_T}$LD_RPATH_OPT" >&6
24171
24172 case "x$LD_RPATH_OPT" in
24173 (x-R*)
24174 echo "$as_me:24174: checking if we need a space after rpath option" >&5
24175 echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
24176 cf_save_LIBS="$LIBS"
24177
24178 cf_add_libs="$LIBS"
24179 # reverse order
24180 cf_add_0lib=
24181 for cf_add_1lib in ${LD_RPATH_OPT}$libdir; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
24182 # filter duplicates
24183 for cf_add_1lib in $cf_add_0lib; do
24184 for cf_add_2lib in $cf_add_libs; do
24185 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
24186 cf_add_1lib=
24187 break
24188 fi
24189 done
24190 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
24191 done
24192 LIBS="$cf_add_libs"
24193
24194 cat >"conftest.$ac_ext" <<_ACEOF
24195 #line 24195 "configure"
24196 #include "confdefs.h"
24197
24198 int
24199 main (void)
24200 {
24201
24202 ;
24203 return 0;
24204 }
24205 _ACEOF
24206 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
24207 if { (eval echo "$as_me:24207: \"$ac_link\"") >&5
24208 (eval $ac_link) 2>&5
24209 ac_status=$?
24210 echo "$as_me:24210: \$? = $ac_status" >&5
24211 (exit "$ac_status"); } &&
24212 { ac_try='test -s "conftest$ac_exeext"'
24213 { (eval echo "$as_me:24213: \"$ac_try\"") >&5
24214 (eval $ac_try) 2>&5
24215 ac_status=$?
24216 echo "$as_me:24216: \$? = $ac_status" >&5
24217 (exit "$ac_status"); }; }; then
24218 cf_rpath_space=no
24219 else
24220 echo "$as_me: failed program was:" >&5
24221 cat "conftest.$ac_ext" >&5
24222 cf_rpath_space=yes
24223 fi
24224 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
24225 LIBS="$cf_save_LIBS"
24226 echo "$as_me:24226: result: $cf_rpath_space" >&5
24227 echo "${ECHO_T}$cf_rpath_space" >&6
24228 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT "
24229 ;;
24230 esac
24231 fi
24232
24233 echo "$as_me:24233: checking if rpath-hack should be disabled" >&5
24234 echo $ECHO_N "checking if rpath-hack should be disabled... $ECHO_C" >&6
24235
24236 # Check whether --enable-rpath-hack or --disable-rpath-hack was given.
24237 if test "${enable_rpath_hack+set}" = set; then
24238 enableval="$enable_rpath_hack"
24239 test "$enableval" != no && enableval=yes
24240 if test "$enableval" != "yes" ; then
24241 enable_rpath_hack=no
24242 else
24243 enable_rpath_hack=yes
24244 fi
24245 else
24246 enableval=yes
24247 enable_rpath_hack=yes
24248
24249 fi;
24250 if test "x$enable_rpath_hack" = xno; then cf_disable_rpath_hack=yes; else cf_disable_rpath_hack=no; fi
24251 echo "$as_me:24251: result: $cf_disable_rpath_hack" >&5
24252 echo "${ECHO_T}$cf_disable_rpath_hack" >&6
24253
24254 if test "$enable_rpath_hack" = yes ; then
24255
24256 echo "$as_me:24256: checking for updated LDFLAGS" >&5
24257 echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6
24258 if test -n "$LD_RPATH_OPT" ; then
24259 echo "$as_me:24259: result: maybe" >&5
24260 echo "${ECHO_T}maybe" >&6
24261
24262 for ac_prog in ldd
24263 do
24264 # Extract the first word of "$ac_prog", so it can be a program name with args.
24265 set dummy $ac_prog; ac_word=$2
24266 echo "$as_me:24266: checking for $ac_word" >&5
24267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24268 if test "${ac_cv_prog_cf_ldd_prog+set}" = set; then
24269 echo $ECHO_N "(cached) $ECHO_C" >&6
24270 else
24271 if test -n "$cf_ldd_prog"; then
24272 ac_cv_prog_cf_ldd_prog="$cf_ldd_prog" # Let the user override the test.
24273 else
24274 ac_save_IFS=$IFS; IFS=$ac_path_separator
24275 ac_dummy="$PATH"
24276 for ac_dir in $ac_dummy; do
24277 IFS=$ac_save_IFS
24278 test -z "$ac_dir" && ac_dir=.
24279 $as_executable_p "$ac_dir/$ac_word" || continue
24280 ac_cv_prog_cf_ldd_prog="$ac_prog"
24281 echo "$as_me:24281: found $ac_dir/$ac_word" >&5
24282 break
24283 done
24284
24285 fi
24286 fi
24287 cf_ldd_prog=$ac_cv_prog_cf_ldd_prog
24288 if test -n "$cf_ldd_prog"; then
24289 echo "$as_me:24289: result: $cf_ldd_prog" >&5
24290 echo "${ECHO_T}$cf_ldd_prog" >&6
24291 else
24292 echo "$as_me:24292: result: no" >&5
24293 echo "${ECHO_T}no" >&6
24294 fi
24295
24296 test -n "$cf_ldd_prog" && break
24297 done
24298 test -n "$cf_ldd_prog" || cf_ldd_prog="no"
24299
24300 cf_rpath_list="/usr/lib /lib"
24301 if test "$cf_ldd_prog" != no
24302 then
24303 cf_rpath_oops=
24304
24305 cat >"conftest.$ac_ext" <<_ACEOF
24306 #line 24306 "configure"
24307 #include "confdefs.h"
24308 #include <stdio.h>
24309 int
24310 main (void)
24311 {
24312 printf("Hello");
24313 ;
24314 return 0;
24315 }
24316 _ACEOF
24317 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
24318 if { (eval echo "$as_me:24318: \"$ac_link\"") >&5
24319 (eval $ac_link) 2>&5
24320 ac_status=$?
24321 echo "$as_me:24321: \$? = $ac_status" >&5
24322 (exit "$ac_status"); } &&
24323 { ac_try='test -s "conftest$ac_exeext"'
24324 { (eval echo "$as_me:24324: \"$ac_try\"") >&5
24325 (eval $ac_try) 2>&5
24326 ac_status=$?
24327 echo "$as_me:24327: \$? = $ac_status" >&5
24328 (exit "$ac_status"); }; }; then
24329 cf_rpath_oops=`"$cf_ldd_prog" "conftest$ac_exeext" | ${FGREP-fgrep} ' not found' | sed -e 's% =>.*$%%' |sort | uniq`
24330 cf_rpath_list=`"$cf_ldd_prog" "conftest$ac_exeext" | ${FGREP-fgrep} / | sed -e 's%^.*[ ]/%/%' -e 's%/[^/][^/]*$%%' |sort | uniq`
24331 else
24332 echo "$as_me: failed program was:" >&5
24333 cat "conftest.$ac_ext" >&5
24334 fi
24335 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
24336
24337 # If we passed the link-test, but get a "not found" on a given library,
24338 # this could be due to inept reconfiguration of gcc to make it only
24339 # partly honor /usr/local/lib (or whatever). Sometimes this behavior
24340 # is intentional, e.g., installing gcc in /usr/bin and suppressing the
24341 # /usr/local libraries.
24342 if test -n "$cf_rpath_oops"
24343 then
24344 for cf_rpath_src in $cf_rpath_oops
24345 do
24346 for cf_rpath_dir in \
24347 /usr/local \
24348 /usr/pkg \
24349 /opt/sfw
24350 do
24351 if test -f "$cf_rpath_dir/lib/$cf_rpath_src"
24352 then
24353 test -n "$verbose" && echo " ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src" 1>&6
24354
24355 echo "${as_me:-configure}:24355: testing ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src ..." 1>&5
24356
24357 LDFLAGS="$LDFLAGS -L$cf_rpath_dir/lib"
24358 break
24359 fi
24360 done
24361 done
24362 fi
24363 fi
24364
24365 test -n "$verbose" && echo " ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
24366
24367 echo "${as_me:-configure}:24367: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
24368
24369 test -n "$verbose" && echo " ...checking LDFLAGS $LDFLAGS" 1>&6
24370
24371 echo "${as_me:-configure}:24371: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5
24372
24373 cf_rpath_dst=
24374 for cf_rpath_src in $LDFLAGS
24375 do
24376 case "$cf_rpath_src" in
24377 (-L*)
24378
24379 # check if this refers to a directory which we will ignore
24380 cf_rpath_skip=no
24381 if test -n "$cf_rpath_list"
24382 then
24383 for cf_rpath_item in $cf_rpath_list
24384 do
24385 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
24386 then
24387 cf_rpath_skip=yes
24388 break
24389 fi
24390 done
24391 fi
24392
24393 if test "$cf_rpath_skip" = no
24394 then
24395 # transform the option
24396 if test "$LD_RPATH_OPT" = "-R " ; then
24397 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
24398 else
24399 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
24400 fi
24401
24402 # if we have not already added this, add it now
24403 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
24404 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
24405 then
24406 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
24407
24408 echo "${as_me:-configure}:24408: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
24409
24410 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
24411 fi
24412 fi
24413 ;;
24414 esac
24415 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
24416 done
24417 LDFLAGS=$cf_rpath_dst
24418
24419 test -n "$verbose" && echo " ...checked LDFLAGS $LDFLAGS" 1>&6
24420
24421 echo "${as_me:-configure}:24421: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5
24422
24423 test -n "$verbose" && echo " ...checking LIBS $LIBS" 1>&6
24424
24425 echo "${as_me:-configure}:24425: testing ...checking LIBS $LIBS ..." 1>&5
24426
24427 cf_rpath_dst=
24428 for cf_rpath_src in $LIBS
24429 do
24430 case "$cf_rpath_src" in
24431 (-L*)
24432
24433 # check if this refers to a directory which we will ignore
24434 cf_rpath_skip=no
24435 if test -n "$cf_rpath_list"
24436 then
24437 for cf_rpath_item in $cf_rpath_list
24438 do
24439 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
24440 then
24441 cf_rpath_skip=yes
24442 break
24443 fi
24444 done
24445 fi
24446
24447 if test "$cf_rpath_skip" = no
24448 then
24449 # transform the option
24450 if test "$LD_RPATH_OPT" = "-R " ; then
24451 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
24452 else
24453 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
24454 fi
24455
24456 # if we have not already added this, add it now
24457 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
24458 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
24459 then
24460 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
24461
24462 echo "${as_me:-configure}:24462: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
24463
24464 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
24465 fi
24466 fi
24467 ;;
24468 esac
24469 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
24470 done
24471 LIBS=$cf_rpath_dst
24472
24473 test -n "$verbose" && echo " ...checked LIBS $LIBS" 1>&6
24474
24475 echo "${as_me:-configure}:24475: testing ...checked LIBS $LIBS ..." 1>&5
24476
24477 test -n "$verbose" && echo " ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
24478
24479 echo "${as_me:-configure}:24479: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
24480
24481 else
24482 echo "$as_me:24482: result: no" >&5
24483 echo "${ECHO_T}no" >&6
24484 fi
24485
24486 fi
24487
24488 # Force plink.sh to not trim pcre's libraries, which have the same symbol
24489 # names as the system regexp.
24490 if test "$with_pcre" != no
24491 then
24492 LIBS=`echo "$LIBS" | sed -e 's/-lpcre/-kpcre/g'`
24493 fi
24494
24495 ### output xtermcfg.h, etc
24496 ac_config_files="$ac_config_files Makefile df-install minstall:minstall.in"
24497
24498 cat >confcache <<\_ACEOF
24499 # This file is a shell script that caches the results of configure
24500 # tests run on this system so they can be shared between configure
24501 # scripts and configure runs, see configure's option --config-cache.
24502 # It is not useful on other systems. If it contains results you don't
24503 # want to keep, you may remove or edit it.
24504 #
24505 # config.status only pays attention to the cache file if you give it
24506 # the --recheck option to rerun configure.
24507 #
24508 # `ac_cv_env_foo' variables (set or unset) will be overriden when
24509 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24510 # following values.
24511
24512 _ACEOF
24513
24514 # The following way of writing the cache mishandles newlines in values,
24515 # but we know of no workaround that is simple, portable, and efficient.
24516 # So, don't put newlines in cache variables' values.
24517 # Ultrix sh set writes to stderr and can't be redirected directly,
24518 # and sets the high bit in the cache file unless we assign to the vars.
24519 {
24520 (set) 2>&1 |
24521 case `(ac_space=' '; set | grep ac_space) 2>&1` in
24522 *ac_space=\ *)
24523 # `set' does not quote correctly, so add quotes (double-quote
24524 # substitution turns \\\\ into \\, and sed turns \\ into \).
24525 sed -n \
24526 "s/'/'\\\\''/g;
24527 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24528 ;;
24529 *)
24530 # `set' quotes correctly as required by POSIX, so do not add quotes.
24531 sed -n \
24532 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
24533 ;;
24534 esac;
24535 } |
24536 sed '
24537 t clear
24538 : clear
24539 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24540 t end
24541 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24542 : end' >>confcache
24543 if cmp -s $cache_file confcache; then :; else
24544 if test -w $cache_file; then
24545 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24546 cat confcache >$cache_file
24547 else
24548 echo "not updating unwritable cache $cache_file"
24549 fi
24550 fi
24551 rm -f confcache
24552
24553 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24554 # Let make expand exec_prefix.
24555 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24556
24557 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24558 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24559 # trailing colons and then remove the whole line if VPATH becomes empty
24560 # (actually we leave an empty line to preserve line numbers).
24561 if test "x$srcdir" = x.; then
24562 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24563 s/:*\$(srcdir):*/:/;
24564 s/:*\${srcdir}:*/:/;
24565 s/:*@srcdir@:*/:/;
24566 s/^\([^=]*=[ ]*\):*/\1/;
24567 s/:*$//;
24568 s/^[^=]*=[ ]*$//;
24569 }'
24570 fi
24571
24572 DEFS=-DHAVE_CONFIG_H
24573
24574 : "${CONFIG_STATUS=./config.status}"
24575 ac_clean_files_save=$ac_clean_files
24576 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24577 { echo "$as_me:24577: creating $CONFIG_STATUS" >&5
24578 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24579 cat >"$CONFIG_STATUS" <<_ACEOF
24580 #! $SHELL
24581 # Generated automatically by configure.
24582 # Run this file to recreate the current configuration.
24583 # Compiler output produced by configure, useful for debugging
24584 # configure, is in config.log if it exists.
24585
24586 debug=false
24587 SHELL=\${CONFIG_SHELL-$SHELL}
24588 ac_cs_invocation="\$0 \$@"
24589
24590 CLICOLOR_FORCE= GREP_OPTIONS=
24591 unset CLICOLOR_FORCE GREP_OPTIONS
24592 _ACEOF
24593
24594 cat >>"$CONFIG_STATUS" <<\_ACEOF
24595 # Be Bourne compatible
24596 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24597 emulate sh
24598 NULLCMD=:
24599 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24600 set -o posix
24601 fi
24602
24603 # Name of the executable.
24604 as_me=`echo "$0" |sed 's,.*[\\/],,'`
24605
24606 if expr a : '\(a\)' >/dev/null 2>&1; then
24607 as_expr=expr
24608 else
24609 as_expr=false
24610 fi
24611
24612 rm -f conf$$ conf$$.exe conf$$.file
24613 echo >conf$$.file
24614 if ln -s conf$$.file conf$$ 2>/dev/null; then
24615 # We could just check for DJGPP; but this test a) works b) is more generic
24616 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24617 if test -f conf$$.exe; then
24618 # Don't use ln at all; we don't have any links
24619 as_ln_s='cp -p'
24620 else
24621 as_ln_s='ln -s'
24622 fi
24623 elif ln conf$$.file conf$$ 2>/dev/null; then
24624 as_ln_s=ln
24625 else
24626 as_ln_s='cp -p'
24627 fi
24628 rm -f conf$$ conf$$.exe conf$$.file
24629
24630 as_executable_p="test -f"
24631
24632 # Support unset when possible.
24633 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
24634 as_unset="unset"
24635 else
24636 as_unset="false"
24637 fi
24638
24639 # NLS nuisances.
24640 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
24641 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
24642 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
24643 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
24644 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
24645 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
24646 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
24647 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
24648
24649 # IFS
24650 # We need space, tab and new line, in precisely that order.
24651 as_nl='
24652 '
24653 IFS=" $as_nl"
24654
24655 # CDPATH.
24656 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
24657
24658 exec 6>&1
24659
24660 _ACEOF
24661
24662 # Files that config.status was made for.
24663 if test -n "$ac_config_files"; then
24664 echo "config_files=\"$ac_config_files\"" >>"$CONFIG_STATUS"
24665 fi
24666
24667 if test -n "$ac_config_headers"; then
24668 echo "config_headers=\"$ac_config_headers\"" >>"$CONFIG_STATUS"
24669 fi
24670
24671 if test -n "$ac_config_links"; then
24672 echo "config_links=\"$ac_config_links\"" >>"$CONFIG_STATUS"
24673 fi
24674
24675 if test -n "$ac_config_commands"; then
24676 echo "config_commands=\"$ac_config_commands\"" >>"$CONFIG_STATUS"
24677 fi
24678
24679 cat >>"$CONFIG_STATUS" <<\EOF
24680
24681 ac_cs_usage="\
24682 \`$as_me' instantiates files from templates according to the
24683 current configuration.
24684
24685 Usage: $0 [OPTIONS] [FILE]...
24686
24687 -h, --help print this help, then exit
24688 -V, --version print version number, then exit
24689 -d, --debug don't remove temporary files
24690 --recheck update $as_me by reconfiguring in the same conditions
24691 --file=FILE[:TEMPLATE]
24692 instantiate the configuration file FILE
24693 --header=FILE[:TEMPLATE]
24694 instantiate the configuration header FILE
24695
24696 Configuration files:
24697 $config_files
24698
24699 Configuration headers:
24700 $config_headers
24701
24702 Report bugs to <dickey@invisible-island.net>."
24703 EOF
24704
24705 cat >>"$CONFIG_STATUS" <<EOF
24706 ac_cs_version="\\
24707 config.status
24708 configured by $0, generated by GNU Autoconf 2.52.20210105,
24709 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24710
24711 Copyright 2003-2020,2021 Thomas E. Dickey
24712 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
24713 Free Software Foundation, Inc.
24714 This config.status script is free software; the Free Software Foundation
24715 gives unlimited permission to copy, distribute and modify it."
24716 srcdir="$srcdir"
24717 INSTALL="$INSTALL"
24718 EOF
24719
24720 cat >>"$CONFIG_STATUS" <<\EOF
24721 # If no file are specified by the user, then we need to provide default
24722 # value. By we need to know if files were specified by the user.
24723 ac_need_defaults=:
24724 while test $# != 0
24725 do
24726 case $1 in
24727 --*=*)
24728 ac_option=`expr "x$1" : 'x\([^=]*\)='`
24729 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24730 shift
24731 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
24732 shift
24733 ;;
24734 -*);;
24735 *) # This is not an option, so the user has probably given explicit
24736 # arguments.
24737 ac_need_defaults=false;;
24738 esac
24739
24740 case $1 in
24741 # Handling of the options.
24742 EOF
24743 cat >>"$CONFIG_STATUS" <<EOF
24744 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24745 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
24746 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
24747 EOF
24748 cat >>"$CONFIG_STATUS" <<\EOF
24749 --version | --vers* | -V )
24750 echo "$ac_cs_version"; exit 0 ;;
24751 --he | --h)
24752 # Conflict between --help and --header
24753 { { echo "$as_me:24753: error: ambiguous option: $1
24754 Try \`$0 --help' for more information." >&5
24755 echo "$as_me: error: ambiguous option: $1
24756 Try \`$0 --help' for more information." >&2;}
24757 { (exit 1); exit 1; }; };;
24758 --help | --hel | -h )
24759 echo "$ac_cs_usage"; exit 0 ;;
24760 --debug | --d* | -d )
24761 debug=: ;;
24762 --file | --fil | --fi | --f )
24763 shift
24764 CONFIG_FILES="$CONFIG_FILES $1"
24765 ac_need_defaults=false;;
24766 --header | --heade | --head | --hea )
24767 shift
24768 CONFIG_HEADERS="$CONFIG_HEADERS $1"
24769 ac_need_defaults=false;;
24770
24771 # This is an error.
24772 -*) { { echo "$as_me:24772: error: unrecognized option: $1
24773 Try \`$0 --help' for more information." >&5
24774 echo "$as_me: error: unrecognized option: $1
24775 Try \`$0 --help' for more information." >&2;}
24776 { (exit 1); exit 1; }; } ;;
24777
24778 *) ac_config_targets="$ac_config_targets $1" ;;
24779
24780 esac
24781 shift
24782 done
24783
24784 exec 5>>config.log
24785 cat >&5 << _ACEOF
24786
24787 ## ----------------------- ##
24788 ## Running config.status. ##
24789 ## ----------------------- ##
24790
24791 This file was extended by $as_me 2.52.20210105, executed with
24792 CONFIG_FILES = $CONFIG_FILES
24793 CONFIG_HEADERS = $CONFIG_HEADERS
24794 CONFIG_LINKS = $CONFIG_LINKS
24795 CONFIG_COMMANDS = $CONFIG_COMMANDS
24796 > "$ac_cs_invocation"
24797 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24798
24799 _ACEOF
24800 EOF
24801
24802 cat >>"$CONFIG_STATUS" <<\EOF
24803 for ac_config_target in $ac_config_targets
24804 do
24805 case "$ac_config_target" in
24806 # Handling of arguments.
24807 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24808 "df-install" ) CONFIG_FILES="$CONFIG_FILES df-install" ;;
24809 "minstall" ) CONFIG_FILES="$CONFIG_FILES minstall:minstall.in" ;;
24810 "xtermcfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS xtermcfg.h:xtermcfg.hin" ;;
24811 *) { { echo "$as_me:24811: error: invalid argument: $ac_config_target" >&5
24812 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24813 { (exit 1); exit 1; }; };;
24814 esac
24815 done
24816
24817 # If the user did not use the arguments to specify the items to instantiate,
24818 # then the envvar interface is used. Set only those that are not.
24819 # We use the long form for the default assignment because of an extremely
24820 # bizarre bug on SunOS 4.1.3.
24821 if "$ac_need_defaults"; then
24822 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24823 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24824 fi
24825
24826 # Create a temporary directory, and hook for its removal unless debugging.
24827 $debug ||
24828 {
24829 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24830 trap '{ (exit 1); exit 1; }' 1 2 13 15
24831 }
24832
24833 # Create a (secure) tmp directory for tmp files.
24834 : ${TMPDIR=/tmp}
24835 {
24836 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
24837 test -n "$tmp" && test -d "$tmp"
24838 } ||
24839 {
24840 tmp=$TMPDIR/cs$$-$RANDOM
24841 (umask 077 && mkdir $tmp)
24842 } ||
24843 {
24844 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
24845 { (exit 1); exit 1; }
24846 }
24847
24848 EOF
24849
24850 cat >>"$CONFIG_STATUS" <<EOF
24851
24852 #
24853 # CONFIG_FILES section.
24854 #
24855
24856 # No need to generate the scripts if there are no CONFIG_FILES.
24857 # This happens for instance when ./config.status config.h
24858 if test -n "\$CONFIG_FILES"; then
24859 # Protect against being on the right side of a sed subst in config.status.
24860 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24861 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24862 s,@SHELL@,$SHELL,;t t
24863 s,@exec_prefix@,$exec_prefix,;t t
24864 s,@prefix@,$prefix,;t t
24865 s,@program_transform_name@,$program_transform_name,;t t
24866 s,@bindir@,$bindir,;t t
24867 s,@sbindir@,$sbindir,;t t
24868 s,@libexecdir@,$libexecdir,;t t
24869 s,@datarootdir@,$datarootdir,;t t
24870 s,@datadir@,$datadir,;t t
24871 s,@sysconfdir@,$sysconfdir,;t t
24872 s,@sharedstatedir@,$sharedstatedir,;t t
24873 s,@localstatedir@,$localstatedir,;t t
24874 s,@runstatedir@,$runstatedir,;t t
24875 s,@libdir@,$libdir,;t t
24876 s,@includedir@,$includedir,;t t
24877 s,@oldincludedir@,$oldincludedir,;t t
24878 s,@infodir@,$infodir,;t t
24879 s,@mandir@,$mandir,;t t
24880 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24881 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24882 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24883 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24884 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24885 s,@build_alias@,$build_alias,;t t
24886 s,@host_alias@,$host_alias,;t t
24887 s,@target_alias@,$target_alias,;t t
24888 s,@ECHO_C@,$ECHO_C,;t t
24889 s,@ECHO_N@,$ECHO_N,;t t
24890 s,@ECHO_T@,$ECHO_T,;t t
24891 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24892 s,@DEFS@,$DEFS,;t t
24893 s,@LIBS@,$LIBS,;t t
24894 s,@build@,$build,;t t
24895 s,@build_cpu@,$build_cpu,;t t
24896 s,@build_vendor@,$build_vendor,;t t
24897 s,@build_os@,$build_os,;t t
24898 s,@host@,$host,;t t
24899 s,@host_cpu@,$host_cpu,;t t
24900 s,@host_vendor@,$host_vendor,;t t
24901 s,@host_os@,$host_os,;t t
24902 s,@CC@,$CC,;t t
24903 s,@CFLAGS@,$CFLAGS,;t t
24904 s,@LDFLAGS@,$LDFLAGS,;t t
24905 s,@CPPFLAGS@,$CPPFLAGS,;t t
24906 s,@ac_ct_CC@,$ac_ct_CC,;t t
24907 s,@EXEEXT@,$EXEEXT,;t t
24908 s,@OBJEXT@,$OBJEXT,;t t
24909 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
24910 s,@CPP@,$CPP,;t t
24911 s,@GREP@,$GREP,;t t
24912 s,@EGREP@,$EGREP,;t t
24913 s,@AWK@,$AWK,;t t
24914 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24915 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24916 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24917 s,@LN_S@,$LN_S,;t t
24918 s,@LINT@,$LINT,;t t
24919 s,@LINT_OPTS@,$LINT_OPTS,;t t
24920 s,@APP_CLASS@,$APP_CLASS,;t t
24921 s,@APPSDIR@,$APPSDIR,;t t
24922 s,@no_appsdir@,$no_appsdir,;t t
24923 s,@ICON_NAME@,$ICON_NAME,;t t
24924 s,@ICON_SYMLINK@,$ICON_SYMLINK,;t t
24925 s,@PIXMAPDIR@,$PIXMAPDIR,;t t
24926 s,@no_pixmapdir@,$no_pixmapdir,;t t
24927 s,@ICONDIR@,$ICONDIR,;t t
24928 s,@no_icondir@,$no_icondir,;t t
24929 s,@ICON_FORMAT@,$ICON_FORMAT,;t t
24930 s,@ICON_THEME@,$ICON_THEME,;t t
24931 s,@ICON_LIST@,$ICON_LIST,;t t
24932 s,@desktop_utils@,$desktop_utils,;t t
24933 s,@DESKTOP_FLAGS@,$DESKTOP_FLAGS,;t t
24934 s,@DESKTOP_CATEGORY@,$DESKTOP_CATEGORY,;t t
24935 s,@XTERM_PATH@,$XTERM_PATH,;t t
24936 s,@XTERM_SYMLINK@,$XTERM_SYMLINK,;t t
24937 s,@SINSTALL_OPTS@,$SINSTALL_OPTS,;t t
24938 s,@X_CFLAGS@,$X_CFLAGS,;t t
24939 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
24940 s,@X_LIBS@,$X_LIBS,;t t
24941 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
24942 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
24943 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
24944 s,@ICON_SUFFIX@,$ICON_SUFFIX,;t t
24945 s,@IMAKE@,$IMAKE,;t t
24946 s,@IMAKE_CFLAGS@,$IMAKE_CFLAGS,;t t
24947 s,@IMAKE_LOADFLAGS@,$IMAKE_LOADFLAGS,;t t
24948 s,@GROFF_PATH@,$GROFF_PATH,;t t
24949 s,@NROFF_PATH@,$NROFF_PATH,;t t
24950 s,@TBL_PATH@,$TBL_PATH,;t t
24951 s,@GROFF_NOTE@,$GROFF_NOTE,;t t
24952 s,@NROFF_NOTE@,$NROFF_NOTE,;t t
24953 s,@FGREP@,$FGREP,;t t
24954 s,@cf_man2html@,$cf_man2html,;t t
24955 s,@MAN2HTML_NOTE@,$MAN2HTML_NOTE,;t t
24956 s,@MAN2HTML_PATH@,$MAN2HTML_PATH,;t t
24957 s,@MAN2HTML_TEMP@,$MAN2HTML_TEMP,;t t
24958 s,@default_termid@,$default_termid,;t t
24959 s,@default_TERM@,$default_TERM,;t t
24960 s,@backarrow_is_bs@,$backarrow_is_bs,;t t
24961 s,@backarrow_is_erase@,$backarrow_is_erase,;t t
24962 s,@delete_is_del@,$delete_is_del,;t t
24963 s,@initial_erase@,$initial_erase,;t t
24964 s,@alt_sends_esc@,$alt_sends_esc,;t t
24965 s,@meta_sends_esc@,$meta_sends_esc,;t t
24966 s,@cf_tic_prog@,$cf_tic_prog,;t t
24967 s,@no_ticprog@,$no_ticprog,;t t
24968 s,@TERMINFO_DIR@,$TERMINFO_DIR,;t t
24969 s,@SET_TERMINFO@,$SET_TERMINFO,;t t
24970 s,@double_buffer@,$double_buffer,;t t
24971 s,@FREETYPE_CONFIG@,$FREETYPE_CONFIG,;t t
24972 s,@FREETYPE_OLD_CONFIG@,$FREETYPE_OLD_CONFIG,;t t
24973 s,@FREETYPE_XFT_CONFIG@,$FREETYPE_XFT_CONFIG,;t t
24974 s,@HAVE_TYPE_FCCHAR32@,$HAVE_TYPE_FCCHAR32,;t t
24975 s,@HAVE_TYPE_XFTCHARSPEC@,$HAVE_TYPE_XFTCHARSPEC,;t t
24976 s,@LUIT@,$LUIT,;t t
24977 s,@ECHO_LT@,$ECHO_LT,;t t
24978 s,@ECHO_LD@,$ECHO_LD,;t t
24979 s,@RULE_CC@,$RULE_CC,;t t
24980 s,@SHOW_CC@,$SHOW_CC,;t t
24981 s,@ECHO_CC@,$ECHO_CC,;t t
24982 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
24983 s,@CHARPROC_DEPS@,$CHARPROC_DEPS,;t t
24984 s,@EXTRAHDRS@,$EXTRAHDRS,;t t
24985 s,@EXTRASRCS@,$EXTRASRCS,;t t
24986 s,@EXTRAOBJS@,$EXTRAOBJS,;t t
24987 s,@MAY_SETUID@,$MAY_SETUID,;t t
24988 s,@NOT_SETUID@,$NOT_SETUID,;t t
24989 s,@CTAGS@,$CTAGS,;t t
24990 s,@ETAGS@,$ETAGS,;t t
24991 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
24992 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
24993 s,@cf_ldd_prog@,$cf_ldd_prog,;t t
24994 s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
24995 CEOF
24996
24997 EOF
24998
24999 cat >>"$CONFIG_STATUS" <<\EOF
25000 # Split the substitutions into bite-sized pieces for seds with
25001 # small command number limits, like on Digital OSF/1 and HP-UX.
25002 ac_max_sed_lines=48
25003 ac_sed_frag=1 # Number of current file.
25004 ac_beg=1 # First line for current file.
25005 ac_end=$ac_max_sed_lines # Line after last line for current file.
25006 ac_more_lines=:
25007 ac_sed_cmds=
25008 while "$ac_more_lines"; do
25009 if test "$ac_beg" -gt 1; then
25010 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25011 else
25012 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25013 fi
25014 if test ! -s $tmp/subs.frag; then
25015 ac_more_lines=false
25016 else
25017 # The purpose of the label and of the branching condition is to
25018 # speed up the sed processing (if there are no `@' at all, there
25019 # is no need to browse any of the substitutions).
25020 # These are the two extra sed commands mentioned above.
25021 (echo ':t
25022 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
25023 # It is possible to make a multiline substitution using escaped newlines.
25024 # Ensure that we do not split the substitution between script fragments.
25025 ac_BEG=$ac_end
25026 ac_END=`expr "$ac_end" + "$ac_max_sed_lines"`
25027 sed "1,${ac_BEG}d; ${ac_END}p; q" $tmp/subs.sed >$tmp/subs.next
25028 if test -s $tmp/subs.next; then
25029 grep '^s,@[^@,][^@,]*@,.*\\$' $tmp/subs.next >$tmp/subs.edit
25030 if test ! -s $tmp/subs.edit; then
25031 grep "^s,@[^@,][^@,]*@,.*,;t t$" $tmp/subs.next >$tmp/subs.edit
25032 if test ! -s $tmp/subs.edit; then
25033 if test "$ac_beg" -gt 1; then
25034 ac_end=`expr "$ac_end" - 1`
25035 continue
25036 fi
25037 fi
25038 fi
25039 fi
25040
25041 if test -z "$ac_sed_cmds"; then
25042 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
25043 else
25044 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
25045 fi
25046 ac_sed_frag=`expr "$ac_sed_frag" + 1`
25047 ac_beg=$ac_end
25048 ac_end=`expr "$ac_end" + "$ac_max_sed_lines"`
25049 fi
25050 done
25051 if test -z "$ac_sed_cmds"; then
25052 ac_sed_cmds=cat
25053 fi
25054 fi # test -n "$CONFIG_FILES"
25055
25056 EOF
25057 cat >>"$CONFIG_STATUS" <<\EOF
25058 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
25059 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25060 case "$ac_file" in
25061 - | *:- | *:-:* ) # input from stdin
25062 cat >$tmp/stdin
25063 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25064 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25065 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25066 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25067 * ) ac_file_in=$ac_file.in ;;
25068 esac
25069
25070 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
25071 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25072 X"$ac_file" : 'X\(//\)[^/]' \| \
25073 X"$ac_file" : 'X\(//\)$' \| \
25074 X"$ac_file" : 'X\(/\)' \| \
25075 . : '\(.\)' 2>/dev/null ||
25076 echo X"$ac_file" |
25077 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25078 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25079 /^X\(\/\/\)$/{ s//\1/; q; }
25080 /^X\(\/\).*/{ s//\1/; q; }
25081 s/.*/./; q'`
25082 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
25083 { case "$ac_dir" in
25084 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
25085 *) as_incr_dir=.;;
25086 esac
25087 as_dummy="$ac_dir"
25088 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
25089 case $as_mkdir_dir in
25090 # Skip DOS drivespec
25091 ?:) as_incr_dir=$as_mkdir_dir ;;
25092 *)
25093 as_incr_dir=$as_incr_dir/$as_mkdir_dir
25094 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
25095 ;;
25096 esac
25097 done; }
25098
25099 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
25100 # A "../" for each directory in $ac_dir_suffix.
25101 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
25102 else
25103 ac_dir_suffix= ac_dots=
25104 fi
25105
25106 case "$srcdir" in
25107 .) ac_srcdir=.
25108 if test -z "$ac_dots"; then
25109 ac_top_srcdir=.
25110 else
25111 ac_top_srcdir=`echo "$ac_dots" | sed 's,/$,,'`
25112 fi ;;
25113 [\\/]* | ?:[\\/]* )
25114 ac_srcdir="$srcdir$ac_dir_suffix";
25115 ac_top_srcdir="$srcdir" ;;
25116 *) # Relative path.
25117 ac_srcdir="$ac_dots$srcdir$ac_dir_suffix"
25118 ac_top_srcdir="$ac_dots$srcdir" ;;
25119 esac
25120
25121 case $INSTALL in
25122 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25123 *) ac_INSTALL=$ac_dots$INSTALL ;;
25124 esac
25125
25126 if test x"$ac_file" != x-; then
25127 { echo "$as_me:25127: creating $ac_file" >&5
25128 echo "$as_me: creating $ac_file" >&6;}
25129 rm -f "$ac_file"
25130 fi
25131 # Let's still pretend it is `configure' which instantiates (i.e., don't
25132 # use $as_me), people would be surprised to read:
25133 # /* config.h. Generated automatically by config.status. */
25134 configure_input="Generated automatically from `echo $ac_file_in |
25135 sed 's,.*/,,'` by configure."
25136
25137 # First look for the input files in the build tree, otherwise in the
25138 # src tree.
25139 ac_file_inputs=`IFS=:
25140 for f in $ac_file_in; do
25141 case $f in
25142 -) echo $tmp/stdin ;;
25143 [\\/$]*)
25144 # Absolute (can't be DOS-style, as IFS=:)
25145 test -f "$f" || { { echo "$as_me:25145: error: cannot find input file: $f" >&5
25146 echo "$as_me: error: cannot find input file: $f" >&2;}
25147 { (exit 1); exit 1; }; }
25148 echo $f;;
25149 *) # Relative
25150 if test -f "$f"; then
25151 # Build tree
25152 echo $f
25153 elif test -f "$srcdir/$f"; then
25154 # Source tree
25155 echo "$srcdir/$f"
25156 else
25157 # /dev/null tree
25158 { { echo "$as_me:25158: error: cannot find input file: $f" >&5
25159 echo "$as_me: error: cannot find input file: $f" >&2;}
25160 { (exit 1); exit 1; }; }
25161 fi;;
25162 esac
25163 done` || { (exit 1); exit 1; }
25164 EOF
25165 cat >>"$CONFIG_STATUS" <<\EOF
25166 ac_warn_datarootdir=no
25167 if test x"$ac_file" != x-; then
25168 for ac_item in $ac_file_inputs
25169 do
25170 ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' "$ac_item"`
25171 if test -n "$ac_seen"; then
25172 ac_used=`grep '@datarootdir@' "$ac_item"`
25173 if test -z "$ac_used"; then
25174 { echo "$as_me:25174: WARNING: datarootdir was used implicitly but not set:
25175 $ac_seen" >&5
25176 echo "$as_me: WARNING: datarootdir was used implicitly but not set:
25177 $ac_seen" >&2;}
25178 ac_warn_datarootdir=yes
25179 fi
25180 fi
25181 ac_seen=`grep '${datarootdir}' "$ac_item"`
25182 if test -n "$ac_seen"; then
25183 { echo "$as_me:25183: WARNING: datarootdir was used explicitly but not set:
25184 $ac_seen" >&5
25185 echo "$as_me: WARNING: datarootdir was used explicitly but not set:
25186 $ac_seen" >&2;}
25187 ac_warn_datarootdir=yes
25188 fi
25189 done
25190 fi
25191
25192 if test "x$ac_warn_datarootdir" = xyes; then
25193 ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'"
25194 fi
25195
25196 EOF
25197 cat >>"$CONFIG_STATUS" <<EOF
25198 sed "$ac_vpsub
25199 $extrasub
25200 EOF
25201 cat >>"$CONFIG_STATUS" <<\EOF
25202 :t
25203 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25204 s,@configure_input@,$configure_input,;t t
25205 s,@srcdir@,$ac_srcdir,;t t
25206 s,@top_srcdir@,$ac_top_srcdir,;t t
25207 s,@INSTALL@,$ac_INSTALL,;t t
25208 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
25209 rm -f $tmp/stdin
25210 if test x"$ac_file" != x-; then
25211 cp "$tmp/out" "$ac_file"
25212
25213 for ac_name in prefix exec_prefix datarootdir
25214 do
25215 ac_seen=`${FGREP-fgrep} -n '${'$ac_name'[:=].*}' "$ac_file"`
25216 if test -n "$ac_seen"; then
25217 ac_init=`${EGREP-egrep} '[ ]*'$ac_name'[ ]*=' "$ac_file"`
25218 if test -z "$ac_init"; then
25219 ac_seen=`echo "$ac_seen" |sed -e 's,^,'$ac_file':,'`
25220 { echo "$as_me:25220: WARNING: Variable $ac_name is used but was not set:
25221 $ac_seen" >&5
25222 echo "$as_me: WARNING: Variable $ac_name is used but was not set:
25223 $ac_seen" >&2;}
25224 fi
25225 fi
25226 done
25227 ${EGREP-egrep} -n '@[a-z_][a-z_0-9]+@' "$ac_file" >$tmp/out
25228 ${EGREP-egrep} -n '@[A-Z_][A-Z_0-9]+@' "$ac_file" >>$tmp/out
25229 if test -s $tmp/out; then
25230 ac_seen=`sed -e 's,^,'$ac_file':,' < $tmp/out`
25231 { echo "$as_me:25231: WARNING: Some variables may not be substituted:
25232 $ac_seen" >&5
25233 echo "$as_me: WARNING: Some variables may not be substituted:
25234 $ac_seen" >&2;}
25235 fi
25236 else
25237 cat $tmp/out
25238 fi
25239 rm -f $tmp/out
25240
25241 done
25242 EOF
25243 cat >>"$CONFIG_STATUS" <<\EOF
25244
25245 #
25246 # CONFIG_HEADER section.
25247 #
25248
25249 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
25250 # NAME is the cpp macro being defined and VALUE is the value it is being given.
25251 #
25252 # ac_d sets the value in "#define NAME VALUE" lines.
25253 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
25254 ac_dB='[ ].*$,\1#\2'
25255 ac_dC=' '
25256 ac_dD=',;t'
25257 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
25258 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
25259 ac_iB='\([ ]\),\1#\2define\3'
25260 ac_iC=' '
25261 ac_iD='\4,;t'
25262 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
25263 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
25264 ac_uB='$,\1#\2define\3'
25265 ac_uC=' '
25266 ac_uD=',;t'
25267
25268 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
25269 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25270 case "$ac_file" in
25271 - | *:- | *:-:* ) # input from stdin
25272 cat >$tmp/stdin
25273 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25274 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25275 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25276 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25277 * ) ac_file_in=$ac_file.in ;;
25278 esac
25279
25280 test x"$ac_file" != x- && { echo "$as_me:25280: creating $ac_file" >&5
25281 echo "$as_me: creating $ac_file" >&6;}
25282
25283 # First look for the input files in the build tree, otherwise in the
25284 # src tree.
25285 ac_file_inputs=`IFS=:
25286 for f in $ac_file_in; do
25287 case $f in
25288 -) echo $tmp/stdin ;;
25289 [\\/$]*)
25290 # Absolute (can't be DOS-style, as IFS=:)
25291 test -f "$f" || { { echo "$as_me:25291: error: cannot find input file: $f" >&5
25292 echo "$as_me: error: cannot find input file: $f" >&2;}
25293 { (exit 1); exit 1; }; }
25294 echo $f;;
25295 *) # Relative
25296 if test -f "$f"; then
25297 # Build tree
25298 echo $f
25299 elif test -f "$srcdir/$f"; then
25300 # Source tree
25301 echo "$srcdir/$f"
25302 else
25303 # /dev/null tree
25304 { { echo "$as_me:25304: error: cannot find input file: $f" >&5
25305 echo "$as_me: error: cannot find input file: $f" >&2;}
25306 { (exit 1); exit 1; }; }
25307 fi;;
25308 esac
25309 done` || { (exit 1); exit 1; }
25310 # Remove the trailing spaces.
25311 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
25312
25313 EOF
25314
25315 # Transform confdefs.h into two sed scripts, `conftest.defines' and
25316 # `conftest.undefs', that substitutes the proper values into
25317 # config.h.in to produce config.h. The first handles `#define'
25318 # templates, and the second `#undef' templates.
25319 # And first: Protect against being on the right side of a sed subst in
25320 # config.status. Protect against being in an unquoted here document
25321 # in config.status.
25322 rm -f conftest.defines conftest.undefs
25323 # Using a here document instead of a string reduces the quoting nightmare.
25324 # Putting comments in sed scripts is not portable.
25325 #
25326 # `end' is used to avoid that the second main sed command (meant for
25327 # 0-ary CPP macros) applies to n-ary macro definitions.
25328 # See the Autoconf documentation for `clear'.
25329 cat >confdef2sed.sed <<\EOF
25330 s/[\\&,]/\\&/g
25331 s,[\\$`],\\&,g
25332 t clear
25333 : clear
25334 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
25335 t end
25336 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
25337 : end
25338 EOF
25339 # If some macros were called several times there might be several times
25340 # the same #defines, which is useless. Nevertheless, we may not want to
25341 # sort them, since we want the *last* AC-DEFINE to be honored.
25342 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
25343 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
25344 sed 's/ac_d/ac_i/g' conftest.defines >>conftest.undefs
25345 rm -f confdef2sed.sed
25346
25347 # This sed command replaces #undef with comments. This is necessary, for
25348 # example, in the case of _POSIX_SOURCE, which is predefined and required
25349 # on some systems where configure will not decide to define it.
25350 cat >>conftest.undefs <<\EOF
25351 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
25352 EOF
25353
25354 # Break up conftest.defines because some shells have a limit on the size
25355 # of here documents, and old seds have small limits too (100 cmds).
25356 echo ' # Handle all the #define templates only if necessary.' >>"$CONFIG_STATUS"
25357 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>"$CONFIG_STATUS"
25358 echo ' # If there are no defines, we may have an empty if/fi' >>"$CONFIG_STATUS"
25359 echo ' :' >>"$CONFIG_STATUS"
25360 rm -f conftest.tail
25361 while grep . conftest.defines >/dev/null
25362 do
25363 # Write a limited-size here document to $tmp/defines.sed.
25364 echo ' cat >$tmp/defines.sed <<CEOF' >>"$CONFIG_STATUS"
25365 # Speed up: don't consider the non `#define' lines.
25366 echo '/^[ ]*#[ ]*define/!b' >>"$CONFIG_STATUS"
25367 # Work around the forget-to-reset-the-flag bug.
25368 echo 't clr' >>"$CONFIG_STATUS"
25369 echo ': clr' >>"$CONFIG_STATUS"
25370 sed "${ac_max_here_lines}q" conftest.defines >>"$CONFIG_STATUS"
25371 echo 'CEOF
25372 sed -f $tmp/defines.sed $tmp/in >$tmp/out
25373 rm -f $tmp/in
25374 mv $tmp/out $tmp/in
25375 ' >>"$CONFIG_STATUS"
25376 sed "1,${ac_max_here_lines}d" conftest.defines >conftest.tail
25377 rm -f conftest.defines
25378 mv conftest.tail conftest.defines
25379 done
25380 rm -f conftest.defines
25381 echo ' fi # egrep' >>"$CONFIG_STATUS"
25382 echo >>"$CONFIG_STATUS"
25383
25384 # Break up conftest.undefs because some shells have a limit on the size
25385 # of here documents, and old seds have small limits too (100 cmds).
25386 echo ' # Handle all the #undef templates' >>"$CONFIG_STATUS"
25387 rm -f conftest.tail
25388 while grep . conftest.undefs >/dev/null
25389 do
25390 # Write a limited-size here document to $tmp/undefs.sed.
25391 echo ' cat >$tmp/undefs.sed <<CEOF' >>"$CONFIG_STATUS"
25392 # Speed up: don't consider the non `#undef'
25393 echo '/^[ ]*#[ ]*undef/!b' >>"$CONFIG_STATUS"
25394 # Work around the forget-to-reset-the-flag bug.
25395 echo 't clr' >>"$CONFIG_STATUS"
25396 echo ': clr' >>"$CONFIG_STATUS"
25397 sed "${ac_max_here_lines}q" conftest.undefs >>"$CONFIG_STATUS"
25398 echo 'CEOF
25399 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25400 rm -f $tmp/in
25401 mv $tmp/out $tmp/in
25402 ' >>"$CONFIG_STATUS"
25403 sed "1,${ac_max_here_lines}d" conftest.undefs >conftest.tail
25404 rm -f conftest.undefs
25405 mv conftest.tail conftest.undefs
25406 done
25407 rm -f conftest.undefs
25408
25409 cat >>"$CONFIG_STATUS" <<\EOF
25410 # Let's still pretend it is `configure' which instantiates (i.e., don't
25411 # use $as_me), people would be surprised to read:
25412 # /* config.h. Generated automatically by config.status. */
25413 if test x"$ac_file" = x-; then
25414 echo "/* Generated automatically by configure. */" >$tmp/config.h
25415 else
25416 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
25417 fi
25418 cat $tmp/in >>$tmp/config.h
25419 rm -f $tmp/in
25420 if test x"$ac_file" != x-; then
25421 if cmp -s "$ac_file" "$tmp/config.h" 2>/dev/null; then
25422 { echo "$as_me:25422: $ac_file is unchanged" >&5
25423 echo "$as_me: $ac_file is unchanged" >&6;}
25424 else
25425 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25426 X"$ac_file" : 'X\(//\)[^/]' \| \
25427 X"$ac_file" : 'X\(//\)$' \| \
25428 X"$ac_file" : 'X\(/\)' \| \
25429 . : '\(.\)' 2>/dev/null ||
25430 echo X"$ac_file" |
25431 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25432 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25433 /^X\(\/\/\)$/{ s//\1/; q; }
25434 /^X\(\/\).*/{ s//\1/; q; }
25435 s/.*/./; q'`
25436 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
25437 { case "$ac_dir" in
25438 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
25439 *) as_incr_dir=.;;
25440 esac
25441 as_dummy="$ac_dir"
25442 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
25443 case $as_mkdir_dir in
25444 # Skip DOS drivespec
25445 ?:) as_incr_dir=$as_mkdir_dir ;;
25446 *)
25447 as_incr_dir=$as_incr_dir/$as_mkdir_dir
25448 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
25449 ;;
25450 esac
25451 done; }
25452
25453 fi
25454 rm -f "$ac_file"
25455 mv "$tmp/config.h" "$ac_file"
25456 fi
25457 else
25458 cat $tmp/config.h
25459 rm -f $tmp/config.h
25460 fi
25461 done
25462 EOF
25463
25464 cat >>"$CONFIG_STATUS" <<\EOF
25465
25466 { (exit 0); exit 0; }
25467 EOF
25468 chmod +x "$CONFIG_STATUS"
25469 ac_clean_files=$ac_clean_files_save
25470
25471 # configure is writing to config.log, and then calls config.status.
25472 # config.status does its own redirection, appending to config.log.
25473 # Unfortunately, on DOS this fails, as config.log is still kept open
25474 # by configure, so config.status won't be able to write to it; its
25475 # output is simply discarded. So we exec the FD to /dev/null,
25476 # effectively closing config.log, so it can be properly (re)opened and
25477 # appended to by config.status. When coming back to configure, we
25478 # need to make the FD available again.
25479 if test "$no_create" != yes; then
25480 ac_cs_success=:
25481 exec 5>/dev/null
25482 $SHELL "$CONFIG_STATUS" || ac_cs_success=false
25483 exec 5>>config.log
25484 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25485 # would make configure fail if this is the last instruction.
25486 "$ac_cs_success" || { (exit 1); exit 1; }
25487 fi
25488
25489