blob: b040a75f5e256b6e3e7b5988340aa2585094b066 [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
4# Generated automatically using autoconf version 2.13
5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6#
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10# Defaults:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
14ac_help="$ac_help
15 --disable-darwin Disable Darwin (Mac OS X) support."
16ac_help="$ac_help
17 --with-vim-name=NAME what to call the Vim executable"
18ac_help="$ac_help
19 --with-ex-name=NAME what to call the Ex executable"
20ac_help="$ac_help
21 --with-view-name=NAME what to call the View executable"
22ac_help="$ac_help
23 --with-global-runtime=DIR global runtime directory in 'runtimepath'"
24ac_help="$ac_help
25 --with-modified-by=NAME name of who modified a release version"
26ac_help="$ac_help
27 --with-features=TYPE tiny, small, normal, big or huge (default: normal)"
28ac_help="$ac_help
29 --with-compiledby=NAME name to show in :version message"
30ac_help="$ac_help
31 --disable-xsmp Disable XSMP session management"
32ac_help="$ac_help
33 --disable-xsmp-interact Disable XSMP interaction"
34ac_help="$ac_help
35 --enable-perlinterp Include Perl interpreter."
36ac_help="$ac_help
37 --enable-pythoninterp Include Python interpreter."
38ac_help="$ac_help
39 --with-python-config-dir=PATH Python's config directory"
40ac_help="$ac_help
41 --enable-tclinterp Include Tcl interpreter."
42ac_help="$ac_help
43 --with-tclsh=PATH which tclsh to use (default: tclsh8.0)"
44ac_help="$ac_help
45 --enable-rubyinterp Include Ruby interpreter."
46ac_help="$ac_help
47 --enable-cscope Include cscope interface."
48ac_help="$ac_help
49 --enable-workshop Include Sun Visual Workshop support."
50ac_help="$ac_help
51 --disable-netbeans Disable NetBeans integration support."
52ac_help="$ac_help
53 --enable-sniff Include Sniff interface."
54ac_help="$ac_help
55 --enable-multibyte Include multibyte editing support."
56ac_help="$ac_help
57 --enable-hangulinput Include Hangul input support."
58ac_help="$ac_help
59 --enable-xim Include XIM input support."
60ac_help="$ac_help
61 --enable-fontset Include X fontset output support."
62ac_help="$ac_help
63 --with-x use the X Window System"
64ac_help="$ac_help
65 --enable-gui[=OPTS] X11 GUI [default=auto] [OPTS=auto/no/gtk/gtk2/gnome/gnome2/motif/athena/neXtaw/beos/photon/carbon]"
66ac_help="$ac_help
67 --enable-gtk-check If auto-select GUI, check for GTK [default=yes]"
68ac_help="$ac_help
69 --enable-gtk2-check If GTK GUI, check for GTK+ 2 [default=yes]"
70ac_help="$ac_help
71 --enable-gnome-check If GTK GUI, check for GNOME [default=no]"
72ac_help="$ac_help
73 --enable-motif-check If auto-select GUI, check for Motif [default=yes]"
74ac_help="$ac_help
75 --enable-athena-check If auto-select GUI, check for Athena [default=yes]"
76ac_help="$ac_help
77 --enable-nextaw-check If auto-select GUI, check for neXtaw [default=yes]"
78ac_help="$ac_help
79 --enable-carbon-check If auto-select GUI, check for Carbon [default=yes]"
80ac_help="$ac_help
81 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
82ac_help="$ac_help
83 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
84ac_help="$ac_help
85 --disable-gtktest Do not try to compile and run a test GTK program"
86ac_help="$ac_help
87 --with-gnome-includes=DIR Specify location of GNOME headers"
88ac_help="$ac_help
89 --with-gnome-libs=DIR Specify location of GNOME libs"
90ac_help="$ac_help
91 --with-gnome Specify prefix for GNOME files"
92ac_help="$ac_help
93 --with-motif-lib=STRING Library for Motif "
94ac_help="$ac_help
95 --with-tlib=library terminal library to be used "
96ac_help="$ac_help
97 --disable-acl Don't check for ACL support."
98ac_help="$ac_help
99 --disable-gpm Don't use gpm (Linux mouse daemon)."
100ac_help="$ac_help
101 --disable-nls Don't support NLS (gettext())."
102
103# Initialize some variables set by options.
104# The variables have the same names as the options, with
105# dashes changed to underlines.
106build=NONE
107cache_file=./config.cache
108exec_prefix=NONE
109host=NONE
110no_create=
111nonopt=NONE
112no_recursion=
113prefix=NONE
114program_prefix=NONE
115program_suffix=NONE
116program_transform_name=s,x,x,
117silent=
118site=
119srcdir=
120target=NONE
121verbose=
122x_includes=NONE
123x_libraries=NONE
124bindir='${exec_prefix}/bin'
125sbindir='${exec_prefix}/sbin'
126libexecdir='${exec_prefix}/libexec'
127datadir='${prefix}/share'
128sysconfdir='${prefix}/etc'
129sharedstatedir='${prefix}/com'
130localstatedir='${prefix}/var'
131libdir='${exec_prefix}/lib'
132includedir='${prefix}/include'
133oldincludedir='/usr/include'
134infodir='${prefix}/info'
135mandir='${prefix}/man'
136
137# Initialize some other variables.
138subdirs=
139MFLAGS= MAKEFLAGS=
140SHELL=${CONFIG_SHELL-/bin/sh}
141# Maximum number of lines to put in a shell here document.
142ac_max_here_lines=12
143
144ac_prev=
145for ac_option
146do
147
148 # If the previous option needs an argument, assign it.
149 if test -n "$ac_prev"; then
150 eval "$ac_prev=\$ac_option"
151 ac_prev=
152 continue
153 fi
154
155 case "$ac_option" in
156 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
157 *) ac_optarg= ;;
158 esac
159
160 # Accept the important Cygnus configure options, so we can diagnose typos.
161
162 case "$ac_option" in
163
164 -bindir | --bindir | --bindi | --bind | --bin | --bi)
165 ac_prev=bindir ;;
166 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
167 bindir="$ac_optarg" ;;
168
169 -build | --build | --buil | --bui | --bu)
170 ac_prev=build ;;
171 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
172 build="$ac_optarg" ;;
173
174 -cache-file | --cache-file | --cache-fil | --cache-fi \
175 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
176 ac_prev=cache_file ;;
177 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
178 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
179 cache_file="$ac_optarg" ;;
180
181 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
182 ac_prev=datadir ;;
183 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
184 | --da=*)
185 datadir="$ac_optarg" ;;
186
187 -disable-* | --disable-*)
188 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
189 # Reject names that are not valid shell variable names.
190 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
191 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
192 fi
193 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
194 eval "enable_${ac_feature}=no" ;;
195
196 -enable-* | --enable-*)
197 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
198 # Reject names that are not valid shell variable names.
199 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
200 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
201 fi
202 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
203 case "$ac_option" in
204 *=*) ;;
205 *) ac_optarg=yes ;;
206 esac
207 eval "enable_${ac_feature}='$ac_optarg'" ;;
208
209 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
210 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
211 | --exec | --exe | --ex)
212 ac_prev=exec_prefix ;;
213 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
214 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
215 | --exec=* | --exe=* | --ex=*)
216 exec_prefix="$ac_optarg" ;;
217
218 -gas | --gas | --ga | --g)
219 # Obsolete; use --with-gas.
220 with_gas=yes ;;
221
222 -help | --help | --hel | --he)
223 # Omit some internal or obsolete options to make the list less imposing.
224 # This message is too long to be a string in the A/UX 3.1 sh.
225 cat << EOF
226Usage: configure [options] [host]
227Options: [defaults in brackets after descriptions]
228Configuration:
229 --cache-file=FILE cache test results in FILE
230 --help print this message
231 --no-create do not create output files
232 --quiet, --silent do not print \`checking...' messages
233 --version print the version of autoconf that created configure
234Directory and file names:
235 --prefix=PREFIX install architecture-independent files in PREFIX
236 [$ac_default_prefix]
237 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
238 [same as prefix]
239 --bindir=DIR user executables in DIR [EPREFIX/bin]
240 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
241 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
242 --datadir=DIR read-only architecture-independent data in DIR
243 [PREFIX/share]
244 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
245 --sharedstatedir=DIR modifiable architecture-independent data in DIR
246 [PREFIX/com]
247 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
248 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
249 --includedir=DIR C header files in DIR [PREFIX/include]
250 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
251 --infodir=DIR info documentation in DIR [PREFIX/info]
252 --mandir=DIR man documentation in DIR [PREFIX/man]
253 --srcdir=DIR find the sources in DIR [configure dir or ..]
254 --program-prefix=PREFIX prepend PREFIX to installed program names
255 --program-suffix=SUFFIX append SUFFIX to installed program names
256 --program-transform-name=PROGRAM
257 run sed PROGRAM on installed program names
258EOF
259 cat << EOF
260Host type:
261 --build=BUILD configure for building on BUILD [BUILD=HOST]
262 --host=HOST configure for HOST [guessed]
263 --target=TARGET configure for TARGET [TARGET=HOST]
264Features and packages:
265 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
266 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
267 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
268 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
269 --x-includes=DIR X include files are in DIR
270 --x-libraries=DIR X library files are in DIR
271EOF
272 if test -n "$ac_help"; then
273 echo "--enable and --with options recognized:$ac_help"
274 fi
275 exit 0 ;;
276
277 -host | --host | --hos | --ho)
278 ac_prev=host ;;
279 -host=* | --host=* | --hos=* | --ho=*)
280 host="$ac_optarg" ;;
281
282 -includedir | --includedir | --includedi | --included | --include \
283 | --includ | --inclu | --incl | --inc)
284 ac_prev=includedir ;;
285 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
286 | --includ=* | --inclu=* | --incl=* | --inc=*)
287 includedir="$ac_optarg" ;;
288
289 -infodir | --infodir | --infodi | --infod | --info | --inf)
290 ac_prev=infodir ;;
291 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
292 infodir="$ac_optarg" ;;
293
294 -libdir | --libdir | --libdi | --libd)
295 ac_prev=libdir ;;
296 -libdir=* | --libdir=* | --libdi=* | --libd=*)
297 libdir="$ac_optarg" ;;
298
299 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
300 | --libexe | --libex | --libe)
301 ac_prev=libexecdir ;;
302 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
303 | --libexe=* | --libex=* | --libe=*)
304 libexecdir="$ac_optarg" ;;
305
306 -localstatedir | --localstatedir | --localstatedi | --localstated \
307 | --localstate | --localstat | --localsta | --localst \
308 | --locals | --local | --loca | --loc | --lo)
309 ac_prev=localstatedir ;;
310 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
311 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
312 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
313 localstatedir="$ac_optarg" ;;
314
315 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
316 ac_prev=mandir ;;
317 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
318 mandir="$ac_optarg" ;;
319
320 -nfp | --nfp | --nf)
321 # Obsolete; use --without-fp.
322 with_fp=no ;;
323
324 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
325 | --no-cr | --no-c)
326 no_create=yes ;;
327
328 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
329 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
330 no_recursion=yes ;;
331
332 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
333 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
334 | --oldin | --oldi | --old | --ol | --o)
335 ac_prev=oldincludedir ;;
336 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
337 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
338 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
339 oldincludedir="$ac_optarg" ;;
340
341 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
342 ac_prev=prefix ;;
343 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
344 prefix="$ac_optarg" ;;
345
346 -program-prefix | --program-prefix | --program-prefi | --program-pref \
347 | --program-pre | --program-pr | --program-p)
348 ac_prev=program_prefix ;;
349 -program-prefix=* | --program-prefix=* | --program-prefi=* \
350 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
351 program_prefix="$ac_optarg" ;;
352
353 -program-suffix | --program-suffix | --program-suffi | --program-suff \
354 | --program-suf | --program-su | --program-s)
355 ac_prev=program_suffix ;;
356 -program-suffix=* | --program-suffix=* | --program-suffi=* \
357 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
358 program_suffix="$ac_optarg" ;;
359
360 -program-transform-name | --program-transform-name \
361 | --program-transform-nam | --program-transform-na \
362 | --program-transform-n | --program-transform- \
363 | --program-transform | --program-transfor \
364 | --program-transfo | --program-transf \
365 | --program-trans | --program-tran \
366 | --progr-tra | --program-tr | --program-t)
367 ac_prev=program_transform_name ;;
368 -program-transform-name=* | --program-transform-name=* \
369 | --program-transform-nam=* | --program-transform-na=* \
370 | --program-transform-n=* | --program-transform-=* \
371 | --program-transform=* | --program-transfor=* \
372 | --program-transfo=* | --program-transf=* \
373 | --program-trans=* | --program-tran=* \
374 | --progr-tra=* | --program-tr=* | --program-t=*)
375 program_transform_name="$ac_optarg" ;;
376
377 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
378 | -silent | --silent | --silen | --sile | --sil)
379 silent=yes ;;
380
381 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
382 ac_prev=sbindir ;;
383 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
384 | --sbi=* | --sb=*)
385 sbindir="$ac_optarg" ;;
386
387 -sharedstatedir | --sharedstatedir | --sharedstatedi \
388 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
389 | --sharedst | --shareds | --shared | --share | --shar \
390 | --sha | --sh)
391 ac_prev=sharedstatedir ;;
392 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
393 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
394 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
395 | --sha=* | --sh=*)
396 sharedstatedir="$ac_optarg" ;;
397
398 -site | --site | --sit)
399 ac_prev=site ;;
400 -site=* | --site=* | --sit=*)
401 site="$ac_optarg" ;;
402
403 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
404 ac_prev=srcdir ;;
405 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
406 srcdir="$ac_optarg" ;;
407
408 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
409 | --syscon | --sysco | --sysc | --sys | --sy)
410 ac_prev=sysconfdir ;;
411 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
412 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
413 sysconfdir="$ac_optarg" ;;
414
415 -target | --target | --targe | --targ | --tar | --ta | --t)
416 ac_prev=target ;;
417 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
418 target="$ac_optarg" ;;
419
420 -v | -verbose | --verbose | --verbos | --verbo | --verb)
421 verbose=yes ;;
422
423 -version | --version | --versio | --versi | --vers)
424 echo "configure generated by autoconf version 2.13"
425 exit 0 ;;
426
427 -with-* | --with-*)
428 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
429 # Reject names that are not valid shell variable names.
430 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
431 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
432 fi
433 ac_package=`echo $ac_package| sed 's/-/_/g'`
434 case "$ac_option" in
435 *=*) ;;
436 *) ac_optarg=yes ;;
437 esac
438 eval "with_${ac_package}='$ac_optarg'" ;;
439
440 -without-* | --without-*)
441 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
442 # Reject names that are not valid shell variable names.
443 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
444 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
445 fi
446 ac_package=`echo $ac_package| sed 's/-/_/g'`
447 eval "with_${ac_package}=no" ;;
448
449 --x)
450 # Obsolete; use --with-x.
451 with_x=yes ;;
452
453 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
454 | --x-incl | --x-inc | --x-in | --x-i)
455 ac_prev=x_includes ;;
456 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
457 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
458 x_includes="$ac_optarg" ;;
459
460 -x-libraries | --x-libraries | --x-librarie | --x-librari \
461 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
462 ac_prev=x_libraries ;;
463 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
464 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
465 x_libraries="$ac_optarg" ;;
466
467 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
468 ;;
469
470 *)
471 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
472 echo "configure: warning: $ac_option: invalid host type" 1>&2
473 fi
474 if test "x$nonopt" != xNONE; then
475 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
476 fi
477 nonopt="$ac_option"
478 ;;
479
480 esac
481done
482
483if test -n "$ac_prev"; then
484 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
485fi
486
487trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
488
489# File descriptor usage:
490# 0 standard input
491# 1 file creation
492# 2 errors and warnings
493# 3 some systems may open it to /dev/tty
494# 4 used on the Kubota Titan
495# 6 checking for... messages and results
496# 5 compiler messages saved in config.log
497if test "$silent" = yes; then
498 exec 6>/dev/null
499else
500 exec 6>&1
501fi
502exec 5>auto/config.log
503
504echo "\
505This file contains any messages produced by compilers while
506running configure, to aid debugging if configure makes a mistake.
507" 1>&5
508
509# Strip out --no-create and --no-recursion so they do not pile up.
510# Also quote any args containing shell metacharacters.
511ac_configure_args=
512for ac_arg
513do
514 case "$ac_arg" in
515 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
516 | --no-cr | --no-c) ;;
517 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
518 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
519 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
520 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
521 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
522 esac
523done
524
525# NLS nuisances.
526# Only set these to C if already set. These must not be set unconditionally
527# because not all systems understand e.g. LANG=C (notably SCO).
528# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
529# Non-C LC_CTYPE values break the ctype check.
530if test "${LANG+set}" = set; then LANG=C; export LANG; fi
531if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
532if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
533if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
534
535# confdefs.h avoids OS command line length limits that DEFS can exceed.
536rm -rf conftest* confdefs.h
537# AIX cpp loses on an empty file, so make sure it contains at least a newline.
538echo > confdefs.h
539
540# A filename unique to this package, relative to the directory that
541# configure is in, which we can look for to find out if srcdir is correct.
542ac_unique_file=vim.h
543
544# Find the source files, if location was not specified.
545if test -z "$srcdir"; then
546 ac_srcdir_defaulted=yes
547 # Try the directory containing this script, then its parent.
548 ac_prog=$0
549 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
550 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
551 srcdir=$ac_confdir
552 if test ! -r $srcdir/$ac_unique_file; then
553 srcdir=..
554 fi
555else
556 ac_srcdir_defaulted=no
557fi
558if test ! -r $srcdir/$ac_unique_file; then
559 if test "$ac_srcdir_defaulted" = yes; then
560 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
561 else
562 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
563 fi
564fi
565srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
566
567# Prefer explicitly selected file to automatically selected ones.
568if test -z "$CONFIG_SITE"; then
569 if test "x$prefix" != xNONE; then
570 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
571 else
572 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
573 fi
574fi
575for ac_site_file in $CONFIG_SITE; do
576 if test -r "$ac_site_file"; then
577 echo "loading site script $ac_site_file"
578 . "$ac_site_file"
579 fi
580done
581
582if test -r "$cache_file"; then
583 echo "loading cache $cache_file"
584 . $cache_file
585else
586 echo "creating cache $cache_file"
587 > $cache_file
588fi
589
590ac_ext=c
591# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
592ac_cpp='$CPP $CPPFLAGS'
593ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
594ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
595cross_compiling=$ac_cv_prog_cc_cross
596
597ac_exeext=
598ac_objext=o
599if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
600 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
601 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
602 ac_n= ac_c='
603' ac_t=' '
604 else
605 ac_n=-n ac_c= ac_t=
606 fi
607else
608 ac_n= ac_c='\c' ac_t=
609fi
610
611
612
613
614cat >> confdefs.h <<\EOF
615#define UNIX 1
616EOF
617
618echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
619echo "configure:620: checking whether ${MAKE-make} sets \${MAKE}" >&5
620set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
621if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
622 echo $ac_n "(cached) $ac_c" 1>&6
623else
624 cat > conftestmake <<\EOF
625all:
626 @echo 'ac_maketemp="${MAKE}"'
627EOF
628# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
629eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
630if test -n "$ac_maketemp"; then
631 eval ac_cv_prog_make_${ac_make}_set=yes
632else
633 eval ac_cv_prog_make_${ac_make}_set=no
634fi
635rm -f conftestmake
636fi
637if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
638 echo "$ac_t""yes" 1>&6
639 SET_MAKE=
640else
641 echo "$ac_t""no" 1>&6
642 SET_MAKE="MAKE=${MAKE-make}"
643fi
644
645
646# Extract the first word of "gcc", so it can be a program name with args.
647set dummy gcc; ac_word=$2
648echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
649echo "configure:650: checking for $ac_word" >&5
650if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
651 echo $ac_n "(cached) $ac_c" 1>&6
652else
653 if test -n "$CC"; then
654 ac_cv_prog_CC="$CC" # Let the user override the test.
655else
656 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
657 ac_dummy="$PATH"
658 for ac_dir in $ac_dummy; do
659 test -z "$ac_dir" && ac_dir=.
660 if test -f $ac_dir/$ac_word; then
661 ac_cv_prog_CC="gcc"
662 break
663 fi
664 done
665 IFS="$ac_save_ifs"
666fi
667fi
668CC="$ac_cv_prog_CC"
669if test -n "$CC"; then
670 echo "$ac_t""$CC" 1>&6
671else
672 echo "$ac_t""no" 1>&6
673fi
674
675if test -z "$CC"; then
676 # Extract the first word of "cc", so it can be a program name with args.
677set dummy cc; ac_word=$2
678echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
679echo "configure:680: checking for $ac_word" >&5
680if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
681 echo $ac_n "(cached) $ac_c" 1>&6
682else
683 if test -n "$CC"; then
684 ac_cv_prog_CC="$CC" # Let the user override the test.
685else
686 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
687 ac_prog_rejected=no
688 ac_dummy="$PATH"
689 for ac_dir in $ac_dummy; do
690 test -z "$ac_dir" && ac_dir=.
691 if test -f $ac_dir/$ac_word; then
692 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
693 ac_prog_rejected=yes
694 continue
695 fi
696 ac_cv_prog_CC="cc"
697 break
698 fi
699 done
700 IFS="$ac_save_ifs"
701if test $ac_prog_rejected = yes; then
702 # We found a bogon in the path, so make sure we never use it.
703 set dummy $ac_cv_prog_CC
704 shift
705 if test $# -gt 0; then
706 # We chose a different compiler from the bogus one.
707 # However, it has the same basename, so the bogon will be chosen
708 # first if we set CC to just the basename; use the full file name.
709 shift
710 set dummy "$ac_dir/$ac_word" "$@"
711 shift
712 ac_cv_prog_CC="$@"
713 fi
714fi
715fi
716fi
717CC="$ac_cv_prog_CC"
718if test -n "$CC"; then
719 echo "$ac_t""$CC" 1>&6
720else
721 echo "$ac_t""no" 1>&6
722fi
723
724 if test -z "$CC"; then
725 case "`uname -s`" in
726 *win32* | *WIN32*)
727 # Extract the first word of "cl", so it can be a program name with args.
728set dummy cl; ac_word=$2
729echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
730echo "configure:731: checking for $ac_word" >&5
731if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
732 echo $ac_n "(cached) $ac_c" 1>&6
733else
734 if test -n "$CC"; then
735 ac_cv_prog_CC="$CC" # Let the user override the test.
736else
737 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
738 ac_dummy="$PATH"
739 for ac_dir in $ac_dummy; do
740 test -z "$ac_dir" && ac_dir=.
741 if test -f $ac_dir/$ac_word; then
742 ac_cv_prog_CC="cl"
743 break
744 fi
745 done
746 IFS="$ac_save_ifs"
747fi
748fi
749CC="$ac_cv_prog_CC"
750if test -n "$CC"; then
751 echo "$ac_t""$CC" 1>&6
752else
753 echo "$ac_t""no" 1>&6
754fi
755 ;;
756 esac
757 fi
758 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
759fi
760
761echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
762echo "configure:763: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
763
764ac_ext=c
765# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
766ac_cpp='$CPP $CPPFLAGS'
767ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
768ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
769cross_compiling=$ac_cv_prog_cc_cross
770
771cat > conftest.$ac_ext << EOF
772
773#line 774 "configure"
774#include "confdefs.h"
775
776main(){return(0);}
777EOF
778if { (eval echo configure:779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
779 ac_cv_prog_cc_works=yes
780 # If we can't run a trivial program, we are probably using a cross compiler.
781 if (./conftest; exit) 2>/dev/null; then
782 ac_cv_prog_cc_cross=no
783 else
784 ac_cv_prog_cc_cross=yes
785 fi
786else
787 echo "configure: failed program was:" >&5
788 cat conftest.$ac_ext >&5
789 ac_cv_prog_cc_works=no
790fi
791rm -fr conftest*
792ac_ext=c
793# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
794ac_cpp='$CPP $CPPFLAGS'
795ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
796ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
797cross_compiling=$ac_cv_prog_cc_cross
798
799echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
800if test $ac_cv_prog_cc_works = no; then
801 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
802fi
803echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
804echo "configure:805: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
805echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
806cross_compiling=$ac_cv_prog_cc_cross
807
808echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
809echo "configure:810: checking whether we are using GNU C" >&5
810if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
811 echo $ac_n "(cached) $ac_c" 1>&6
812else
813 cat > conftest.c <<EOF
814#ifdef __GNUC__
815 yes;
816#endif
817EOF
818if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:819: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
819 ac_cv_prog_gcc=yes
820else
821 ac_cv_prog_gcc=no
822fi
823fi
824
825echo "$ac_t""$ac_cv_prog_gcc" 1>&6
826
827if test $ac_cv_prog_gcc = yes; then
828 GCC=yes
829else
830 GCC=
831fi
832
833ac_test_CFLAGS="${CFLAGS+set}"
834ac_save_CFLAGS="$CFLAGS"
835CFLAGS=
836echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
837echo "configure:838: checking whether ${CC-cc} accepts -g" >&5
838if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
839 echo $ac_n "(cached) $ac_c" 1>&6
840else
841 echo 'void f(){}' > conftest.c
842if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
843 ac_cv_prog_cc_g=yes
844else
845 ac_cv_prog_cc_g=no
846fi
847rm -f conftest*
848
849fi
850
851echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
852if test "$ac_test_CFLAGS" = set; then
853 CFLAGS="$ac_save_CFLAGS"
854elif test $ac_cv_prog_cc_g = yes; then
855 if test "$GCC" = yes; then
856 CFLAGS="-g -O2"
857 else
858 CFLAGS="-g"
859 fi
860else
861 if test "$GCC" = yes; then
862 CFLAGS="-O2"
863 else
864 CFLAGS=
865 fi
866fi
867 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
868echo "configure:869: checking how to run the C preprocessor" >&5
869# On Suns, sometimes $CPP names a directory.
870if test -n "$CPP" && test -d "$CPP"; then
871 CPP=
872fi
873if test -z "$CPP"; then
874if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
875 echo $ac_n "(cached) $ac_c" 1>&6
876else
877 # This must be in double quotes, not single quotes, because CPP may get
878 # substituted into the Makefile and "${CC-cc}" will confuse make.
879 CPP="${CC-cc} -E"
880 # On the NeXT, cc -E runs the code through the compiler's parser,
881 # not just through cpp.
882 cat > conftest.$ac_ext <<EOF
883#line 884 "configure"
884#include "confdefs.h"
885#include <assert.h>
886Syntax Error
887EOF
888ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
889{ (eval echo configure:890: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
890ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
891if test -z "$ac_err"; then
892 :
893else
894 echo "$ac_err" >&5
895 echo "configure: failed program was:" >&5
896 cat conftest.$ac_ext >&5
897 rm -rf conftest*
898 CPP="${CC-cc} -E -traditional-cpp"
899 cat > conftest.$ac_ext <<EOF
900#line 901 "configure"
901#include "confdefs.h"
902#include <assert.h>
903Syntax Error
904EOF
905ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
906{ (eval echo configure:907: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
907ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
908if test -z "$ac_err"; then
909 :
910else
911 echo "$ac_err" >&5
912 echo "configure: failed program was:" >&5
913 cat conftest.$ac_ext >&5
914 rm -rf conftest*
915 CPP="${CC-cc} -nologo -E"
916 cat > conftest.$ac_ext <<EOF
917#line 918 "configure"
918#include "confdefs.h"
919#include <assert.h>
920Syntax Error
921EOF
922ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
923{ (eval echo configure:924: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
924ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
925if test -z "$ac_err"; then
926 :
927else
928 echo "$ac_err" >&5
929 echo "configure: failed program was:" >&5
930 cat conftest.$ac_ext >&5
931 rm -rf conftest*
932 CPP=/lib/cpp
933fi
934rm -f conftest*
935fi
936rm -f conftest*
937fi
938rm -f conftest*
939 ac_cv_prog_CPP="$CPP"
940fi
941 CPP="$ac_cv_prog_CPP"
942else
943 ac_cv_prog_CPP="$CPP"
944fi
945echo "$ac_t""$CPP" 1>&6
946 cat > conftest.$ac_ext <<EOF
947#line 948 "configure"
948#include "confdefs.h"
949
950EOF
951if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
952 egrep "" >/dev/null 2>&1; then
953 :
954fi
955rm -f conftest*
956 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
957echo "configure:958: checking for POSIXized ISC" >&5
958if test -d /etc/conf/kconfig.d &&
959 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
960then
961 echo "$ac_t""yes" 1>&6
962 ISC=yes # If later tests want to check for ISC.
963 cat >> confdefs.h <<\EOF
964#define _POSIX_SOURCE 1
965EOF
966
967 if test "$GCC" = yes; then
968 CC="$CC -posix"
969 else
970 CC="$CC -Xp"
971 fi
972else
973 echo "$ac_t""no" 1>&6
974 ISC=
975fi
976 for ac_prog in mawk gawk nawk awk
977do
978# Extract the first word of "$ac_prog", so it can be a program name with args.
979set dummy $ac_prog; ac_word=$2
980echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
981echo "configure:982: checking for $ac_word" >&5
982if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
983 echo $ac_n "(cached) $ac_c" 1>&6
984else
985 if test -n "$AWK"; then
986 ac_cv_prog_AWK="$AWK" # Let the user override the test.
987else
988 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
989 ac_dummy="$PATH"
990 for ac_dir in $ac_dummy; do
991 test -z "$ac_dir" && ac_dir=.
992 if test -f $ac_dir/$ac_word; then
993 ac_cv_prog_AWK="$ac_prog"
994 break
995 fi
996 done
997 IFS="$ac_save_ifs"
998fi
999fi
1000AWK="$ac_cv_prog_AWK"
1001if test -n "$AWK"; then
1002 echo "$ac_t""$AWK" 1>&6
1003else
1004 echo "$ac_t""no" 1>&6
1005fi
1006
1007test -n "$AWK" && break
1008done
1009
1010# Extract the first word of "strip", so it can be a program name with args.
1011set dummy strip; ac_word=$2
1012echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1013echo "configure:1014: checking for $ac_word" >&5
1014if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1015 echo $ac_n "(cached) $ac_c" 1>&6
1016else
1017 if test -n "$STRIP"; then
1018 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1019else
1020 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1021 ac_dummy="$PATH"
1022 for ac_dir in $ac_dummy; do
1023 test -z "$ac_dir" && ac_dir=.
1024 if test -f $ac_dir/$ac_word; then
1025 ac_cv_prog_STRIP="strip"
1026 break
1027 fi
1028 done
1029 IFS="$ac_save_ifs"
1030 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
1031fi
1032fi
1033STRIP="$ac_cv_prog_STRIP"
1034if test -n "$STRIP"; then
1035 echo "$ac_t""$STRIP" 1>&6
1036else
1037 echo "$ac_t""no" 1>&6
1038fi
1039
1040
1041echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1042echo "configure:1043: checking for Cygwin environment" >&5
1043if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1044 echo $ac_n "(cached) $ac_c" 1>&6
1045else
1046 cat > conftest.$ac_ext <<EOF
1047#line 1048 "configure"
1048#include "confdefs.h"
1049
1050int main() {
1051
1052#ifndef __CYGWIN__
1053#define __CYGWIN__ __CYGWIN32__
1054#endif
1055return __CYGWIN__;
1056; return 0; }
1057EOF
1058if { (eval echo configure:1059: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1059 rm -rf conftest*
1060 ac_cv_cygwin=yes
1061else
1062 echo "configure: failed program was:" >&5
1063 cat conftest.$ac_ext >&5
1064 rm -rf conftest*
1065 ac_cv_cygwin=no
1066fi
1067rm -f conftest*
1068rm -f conftest*
1069fi
1070
1071echo "$ac_t""$ac_cv_cygwin" 1>&6
1072CYGWIN=
1073test "$ac_cv_cygwin" = yes && CYGWIN=yes
1074echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1075echo "configure:1076: checking for mingw32 environment" >&5
1076if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1077 echo $ac_n "(cached) $ac_c" 1>&6
1078else
1079 cat > conftest.$ac_ext <<EOF
1080#line 1081 "configure"
1081#include "confdefs.h"
1082
1083int main() {
1084return __MINGW32__;
1085; return 0; }
1086EOF
1087if { (eval echo configure:1088: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1088 rm -rf conftest*
1089 ac_cv_mingw32=yes
1090else
1091 echo "configure: failed program was:" >&5
1092 cat conftest.$ac_ext >&5
1093 rm -rf conftest*
1094 ac_cv_mingw32=no
1095fi
1096rm -f conftest*
1097rm -f conftest*
1098fi
1099
1100echo "$ac_t""$ac_cv_mingw32" 1>&6
1101MINGW32=
1102test "$ac_cv_mingw32" = yes && MINGW32=yes
1103
1104
1105echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1106echo "configure:1107: checking for executable suffix" >&5
1107if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1108 echo $ac_n "(cached) $ac_c" 1>&6
1109else
1110 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1111 ac_cv_exeext=.exe
1112else
1113 rm -f conftest*
1114 echo 'int main () { return 0; }' > conftest.$ac_ext
1115 ac_cv_exeext=
1116 if { (eval echo configure:1117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1117 for file in conftest.*; do
1118 case $file in
1119 *.c | *.o | *.obj) ;;
1120 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1121 esac
1122 done
1123 else
1124 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1125 fi
1126 rm -f conftest*
1127 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1128fi
1129fi
1130
1131EXEEXT=""
1132test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1133echo "$ac_t""${ac_cv_exeext}" 1>&6
1134ac_exeext=$EXEEXT
1135
1136
1137if test -z "$CFLAGS"; then
1138 CFLAGS="-O"
1139 test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall"
1140fi
1141if test "$GCC" = yes; then
1142 gccversion=`"$CC" --version | sed -e '2,$d;s/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'`
1143 if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2"; then
1144 echo 'GCC 3.0.x has a bug in the optimizer, disabling "-O#"'
1145 CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-O/'`
1146 else
1147 if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" | grep -v fno-strength-reduce >/dev/null`; then
1148 echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"'
1149 CFLAGS="$CFLAGS -fno-strength-reduce"
1150 fi
1151 fi
1152fi
1153
1154if test "$cross_compiling" = yes; then
1155 { echo "configure: error: cannot compile a simple program, check CC and CFLAGS
1156 (cross compiling doesn't work)" 1>&2; exit 1; }
1157fi
1158
1159test "$GCC" = yes && CPP_MM=M;
1160
1161if test -f ./toolcheck; then
1162 echo "checking for buggy tools" 1>&6
1163echo "configure:1164: checking for buggy tools" >&5
1164 sh ./toolcheck 1>&6
1165fi
1166
1167OS_EXTRA_SRC=""; OS_EXTRA_OBJ=""
1168
1169echo $ac_n "checking for BeOS""... $ac_c" 1>&6
1170echo "configure:1171: checking for BeOS" >&5
1171case `uname` in
1172 BeOS) OS_EXTRA_SRC=os_beos.c; OS_EXTRA_OBJ=objects/os_beos.o
1173 BEOS=yes; echo "$ac_t""yes" 1>&6;;
1174 *) BEOS=no; echo "$ac_t""no" 1>&6;;
1175esac
1176
1177echo $ac_n "checking for QNX""... $ac_c" 1>&6
1178echo "configure:1179: checking for QNX" >&5
1179case `uname` in
1180 QNX) OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o
1181 test -z "$with_x" && with_x=no
1182 QNX=yes; echo "$ac_t""yes" 1>&6;;
1183 *) QNX=no; echo "$ac_t""no" 1>&6;;
1184esac
1185
1186DEFAULT_VIMNAME=vim
1187echo $ac_n "checking for Darwin (Mac OS X)""... $ac_c" 1>&6
1188echo "configure:1189: checking for Darwin (Mac OS X)" >&5
1189if test "`(uname) 2>/dev/null`" = Darwin; then
1190 echo "$ac_t""yes" 1>&6
1191
1192 echo $ac_n "checking --disable-darwin argument""... $ac_c" 1>&6
1193echo "configure:1194: checking --disable-darwin argument" >&5
1194 # Check whether --enable-darwin or --disable-darwin was given.
1195if test "${enable_darwin+set}" = set; then
1196 enableval="$enable_darwin"
1197 :
1198else
1199 enable_darwin="yes"
1200fi
1201
1202 if test "$enable_darwin" = "yes"; then
1203 echo "$ac_t""no" 1>&6
1204 echo $ac_n "checking if Darwin files are there""... $ac_c" 1>&6
1205echo "configure:1206: checking if Darwin files are there" >&5
1206 if test -f os_macosx.c; then
1207 echo "$ac_t""yes" 1>&6
1208 else
1209 echo "$ac_t""no, Darwin support disabled" 1>&6
1210 enable_darwin=no
1211 fi
1212 else
1213 echo "$ac_t""yes, Darwin support excluded" 1>&6
1214 fi
1215
1216 if test "$enable_darwin" = "yes"; then
1217 MACOSX=yes
1218 OS_EXTRA_SCR="os_macosx.c";
1219 OS_EXTRA_OBJ="objects/os_macosx.o"
1220 CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX -I/Developer/Headers/FlatCarbon -no-cpp-precomp"
1221
1222 ac_safe=`echo "Carbon/Carbon.h" | sed 'y%./+-%__p_%'`
1223echo $ac_n "checking for Carbon/Carbon.h""... $ac_c" 1>&6
1224echo "configure:1225: checking for Carbon/Carbon.h" >&5
1225if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1226 echo $ac_n "(cached) $ac_c" 1>&6
1227else
1228 cat > conftest.$ac_ext <<EOF
1229#line 1230 "configure"
1230#include "confdefs.h"
1231#include <Carbon/Carbon.h>
1232EOF
1233ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1234{ (eval echo configure:1235: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1235ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1236if test -z "$ac_err"; then
1237 rm -rf conftest*
1238 eval "ac_cv_header_$ac_safe=yes"
1239else
1240 echo "$ac_err" >&5
1241 echo "configure: failed program was:" >&5
1242 cat conftest.$ac_ext >&5
1243 rm -rf conftest*
1244 eval "ac_cv_header_$ac_safe=no"
1245fi
1246rm -f conftest*
1247fi
1248if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1249 echo "$ac_t""yes" 1>&6
1250 CARBON=yes
1251else
1252 echo "$ac_t""no" 1>&6
1253fi
1254
1255 if test "x$CARBON" = "xyes"; then
1256 if test -z "$with_x"; then
1257 with_x=no
1258 DEFAULT_VIMNAME=Vim
1259 fi
1260 fi
1261 fi
1262else
1263 echo "$ac_t""no" 1>&6
1264fi
1265
1266
1267
1268
1269have_local_include=''
1270have_local_lib=''
1271if test "$GCC" = yes; then
1272 echo 'void f(){}' > conftest.c
1273 have_local_include=`${CC-cc} -no-cpp-precomp -c -v conftest.c 2>&1 | grep '/usr/local/include'`
1274 have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep '/usr/local/lib'`
1275 rm -f conftest.c conftest.o
1276fi
1277if test -z "$have_local_lib" -a -d /usr/local/lib; then
1278 tt=`echo "$LDFLAGS" | sed -e 's+-L/usr/local/lib ++g' -e 's+-L/usr/local/lib$++g'`
1279 if test "$tt" = "$LDFLAGS"; then
1280 LDFLAGS="$LDFLAGS -L/usr/local/lib"
1281 fi
1282fi
1283if test -z "$have_local_include" -a -d /usr/local/include; then
1284 tt=`echo "$CPPFLAGS" | sed -e 's+-I/usr/local/include ++g' -e 's+-I/usr/local/include$++g'`
1285 if test "$tt" = "$CPPFLAGS"; then
1286 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
1287 fi
1288fi
1289
1290echo $ac_n "checking --with-vim-name argument""... $ac_c" 1>&6
1291echo "configure:1292: checking --with-vim-name argument" >&5
1292# Check whether --with-vim-name or --without-vim-name was given.
1293if test "${with_vim_name+set}" = set; then
1294 withval="$with_vim_name"
1295 VIMNAME="$withval"; echo "$ac_t""$VIMNAME" 1>&6
1296else
1297 VIMNAME="$DEFAULT_VIMNAME"; echo "$ac_t""Defaulting to $VIMNAME" 1>&6
1298fi
1299
1300
1301echo $ac_n "checking --with-ex-name argument""... $ac_c" 1>&6
1302echo "configure:1303: checking --with-ex-name argument" >&5
1303# Check whether --with-ex-name or --without-ex-name was given.
1304if test "${with_ex_name+set}" = set; then
1305 withval="$with_ex_name"
1306 EXNAME="$withval"; echo "$ac_t""$EXNAME" 1>&6
1307else
1308 EXNAME="ex"; echo "$ac_t""Defaulting to ex" 1>&6
1309fi
1310
1311
1312echo $ac_n "checking --with-view-name argument""... $ac_c" 1>&6
1313echo "configure:1314: checking --with-view-name argument" >&5
1314# Check whether --with-view-name or --without-view-name was given.
1315if test "${with_view_name+set}" = set; then
1316 withval="$with_view_name"
1317 VIEWNAME="$withval"; echo "$ac_t""$VIEWNAME" 1>&6
1318else
1319 VIEWNAME="view"; echo "$ac_t""Defaulting to view" 1>&6
1320fi
1321
1322
1323
1324echo $ac_n "checking --with-global-runtime argument""... $ac_c" 1>&6
1325echo "configure:1326: checking --with-global-runtime argument" >&5
1326# Check whether --with-global-runtime or --without-global-runtime was given.
1327if test "${with_global_runtime+set}" = set; then
1328 withval="$with_global_runtime"
1329 echo "$ac_t""$withval" 1>&6; cat >> confdefs.h <<EOF
1330#define RUNTIME_GLOBAL "$withval"
1331EOF
1332
1333else
1334 echo "$ac_t""no" 1>&6
1335fi
1336
1337
1338echo $ac_n "checking --with-modified-by argument""... $ac_c" 1>&6
1339echo "configure:1340: checking --with-modified-by argument" >&5
1340# Check whether --with-modified-by or --without-modified-by was given.
1341if test "${with_modified_by+set}" = set; then
1342 withval="$with_modified_by"
1343 echo "$ac_t""$withval" 1>&6; cat >> confdefs.h <<EOF
1344#define MODIFIED_BY "$withval"
1345EOF
1346
1347else
1348 echo "$ac_t""no" 1>&6
1349fi
1350
1351
1352echo $ac_n "checking if character set is EBCDIC""... $ac_c" 1>&6
1353echo "configure:1354: checking if character set is EBCDIC" >&5
1354cat > conftest.$ac_ext <<EOF
1355#line 1356 "configure"
1356#include "confdefs.h"
1357
1358int main() {
1359 /* TryCompile function for CharSet.
1360 Treat any failure as ASCII for compatibility with existing art.
1361 Use compile-time rather than run-time tests for cross-compiler
1362 tolerance. */
1363#if '0'!=240
1364make an error "Character set is not EBCDIC"
1365#endif
1366; return 0; }
1367EOF
1368if { (eval echo configure:1369: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1369 rm -rf conftest*
1370 # TryCompile action if true
1371cf_cv_ebcdic=yes
1372else
1373 echo "configure: failed program was:" >&5
1374 cat conftest.$ac_ext >&5
1375 rm -rf conftest*
1376 # TryCompile action if false
1377cf_cv_ebcdic=no
1378fi
1379rm -f conftest*
1380# end of TryCompile ])
1381# end of CacheVal CvEbcdic
1382echo "$ac_t""$cf_cv_ebcdic" 1>&6
1383case "$cf_cv_ebcdic" in #(vi
1384 yes) cat >> confdefs.h <<\EOF
1385#define EBCDIC 1
1386EOF
1387
1388 line_break='"\\n"'
1389 ;;
1390 *) line_break='"\\012"';;
1391esac
1392
1393
1394if test "$cf_cv_ebcdic" = "yes"; then
1395echo $ac_n "checking for OS/390 Unix""... $ac_c" 1>&6
1396echo "configure:1397: checking for OS/390 Unix" >&5
1397case `uname` in
1398 OS/390) OS390Unix="yes";
1399 if test "$CC" = "cc"; then
1400 ccm="$_CC_CCMODE"
1401 ccn="CC"
1402 else
1403 if test "$CC" = "c89"; then
1404 ccm="$_CC_C89MODE"
1405 ccn="C89"
1406 else
1407 ccm=1
1408 fi
1409 fi
1410 if test "$ccm" != "1"; then
1411 echo ""
1412 echo "------------------------------------------"
1413 echo " On OS/390 Unix, the environment variable"
1414 echo " __CC_${ccn}MODE must be set to \"1\"!"
1415 echo " Do:"
1416 echo " export _CC_${ccn}MODE=1"
1417 echo " and then call configure again."
1418 echo "------------------------------------------"
1419 exit 1
1420 fi
1421 CFLAGS="$CFLAGS -D_ALL_SOURCE"; LDFLAGS="$LDFLAGS -Wl,EDIT=NO"
1422 echo "$ac_t""yes" 1>&6
1423 ;;
1424 *) OS390Unix="no";
1425 echo "$ac_t""no" 1>&6
1426 ;;
1427esac
1428fi
1429
1430
1431
1432echo $ac_n "checking --with-features argument""... $ac_c" 1>&6
1433echo "configure:1434: checking --with-features argument" >&5
1434# Check whether --with-features or --without-features was given.
1435if test "${with_features+set}" = set; then
1436 withval="$with_features"
1437 features="$withval"; echo "$ac_t""$features" 1>&6
1438else
1439 features="normal"; echo "$ac_t""Defaulting to normal" 1>&6
1440fi
1441
1442
1443dovimdiff=""
1444dogvimdiff=""
1445case "$features" in
1446 tiny) cat >> confdefs.h <<\EOF
1447#define FEAT_TINY 1
1448EOF
1449 ;;
1450 small) cat >> confdefs.h <<\EOF
1451#define FEAT_SMALL 1
1452EOF
1453 ;;
1454 normal) cat >> confdefs.h <<\EOF
1455#define FEAT_NORMAL 1
1456EOF
1457 dovimdiff="installvimdiff";
1458 dogvimdiff="installgvimdiff" ;;
1459 big) cat >> confdefs.h <<\EOF
1460#define FEAT_BIG 1
1461EOF
1462 dovimdiff="installvimdiff";
1463 dogvimdiff="installgvimdiff" ;;
1464 huge) cat >> confdefs.h <<\EOF
1465#define FEAT_HUGE 1
1466EOF
1467 dovimdiff="installvimdiff";
1468 dogvimdiff="installgvimdiff" ;;
1469 *) echo "$ac_t""Sorry, $features is not supported" 1>&6 ;;
1470esac
1471
1472
1473
1474
1475echo $ac_n "checking --with-compiledby argument""... $ac_c" 1>&6
1476echo "configure:1477: checking --with-compiledby argument" >&5
1477# Check whether --with-compiledby or --without-compiledby was given.
1478if test "${with_compiledby+set}" = set; then
1479 withval="$with_compiledby"
1480 compiledby="$withval"; echo "$ac_t""$withval" 1>&6
1481else
1482 compiledby=""; echo "$ac_t""no" 1>&6
1483fi
1484
1485
1486
1487echo $ac_n "checking --disable-xsmp argument""... $ac_c" 1>&6
1488echo "configure:1489: checking --disable-xsmp argument" >&5
1489# Check whether --enable-xsmp or --disable-xsmp was given.
1490if test "${enable_xsmp+set}" = set; then
1491 enableval="$enable_xsmp"
1492 :
1493else
1494 enable_xsmp="yes"
1495fi
1496
1497
1498if test "$enable_xsmp" = "yes"; then
1499 echo "$ac_t""no" 1>&6
1500 echo $ac_n "checking --disable-xsmp-interact argument""... $ac_c" 1>&6
1501echo "configure:1502: checking --disable-xsmp-interact argument" >&5
1502 # Check whether --enable-xsmp-interact or --disable-xsmp-interact was given.
1503if test "${enable_xsmp_interact+set}" = set; then
1504 enableval="$enable_xsmp_interact"
1505 :
1506else
1507 enable_xsmp_interact="yes"
1508fi
1509
1510 if test "$enable_xsmp_interact" = "yes"; then
1511 echo "$ac_t""no" 1>&6
1512 cat >> confdefs.h <<\EOF
1513#define USE_XSMP_INTERACT 1
1514EOF
1515
1516 else
1517 echo "$ac_t""yes" 1>&6
1518 fi
1519else
1520 echo "$ac_t""yes" 1>&6
1521fi
1522
1523echo $ac_n "checking --enable-perlinterp argument""... $ac_c" 1>&6
1524echo "configure:1525: checking --enable-perlinterp argument" >&5
1525# Check whether --enable-perlinterp or --disable-perlinterp was given.
1526if test "${enable_perlinterp+set}" = set; then
1527 enableval="$enable_perlinterp"
1528 :
1529else
1530 enable_perlinterp="no"
1531fi
1532
1533echo "$ac_t""$enable_perlinterp" 1>&6
1534if test "$enable_perlinterp" = "yes"; then
1535
1536 # Extract the first word of "perl", so it can be a program name with args.
1537set dummy perl; ac_word=$2
1538echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1539echo "configure:1540: checking for $ac_word" >&5
1540if eval "test \"`echo '$''{'ac_cv_path_vi_cv_path_perl'+set}'`\" = set"; then
1541 echo $ac_n "(cached) $ac_c" 1>&6
1542else
1543 case "$vi_cv_path_perl" in
1544 /*)
1545 ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path.
1546 ;;
1547 ?:/*)
1548 ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a dos path.
1549 ;;
1550 *)
1551 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1552 ac_dummy="$PATH"
1553 for ac_dir in $ac_dummy; do
1554 test -z "$ac_dir" && ac_dir=.
1555 if test -f $ac_dir/$ac_word; then
1556 ac_cv_path_vi_cv_path_perl="$ac_dir/$ac_word"
1557 break
1558 fi
1559 done
1560 IFS="$ac_save_ifs"
1561 ;;
1562esac
1563fi
1564vi_cv_path_perl="$ac_cv_path_vi_cv_path_perl"
1565if test -n "$vi_cv_path_perl"; then
1566 echo "$ac_t""$vi_cv_path_perl" 1>&6
1567else
1568 echo "$ac_t""no" 1>&6
1569fi
1570
1571 if test "X$vi_cv_path_perl" != "X"; then
1572 echo $ac_n "checking Perl version""... $ac_c" 1>&6
1573echo "configure:1574: checking Perl version" >&5
1574 if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then
1575 eval `$vi_cv_path_perl -V:usethreads`
1576 if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then
1577 badthreads=no
1578 else
1579 if $vi_cv_path_perl -e 'require 5.6.0' >/dev/null 2>/dev/null; then
1580 eval `$vi_cv_path_perl -V:use5005threads`
1581 if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then
1582 badthreads=no
1583 else
1584 badthreads=yes
1585 echo "$ac_t"">>> Perl > 5.6 with 5.5 threads cannot be used <<<" 1>&6
1586 fi
1587 else
1588 badthreads=yes
1589 echo "$ac_t"">>> Perl 5.5 with threads cannot be used <<<" 1>&6
1590 fi
1591 fi
1592 if test $badthreads = no; then
1593 echo "$ac_t""OK" 1>&6
1594 eval `$vi_cv_path_perl -V:shrpenv`
1595 if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04
1596 shrpenv=""
1597 fi
1598 vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'`
1599
1600 perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \
1601 -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//'`
1602 perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \
1603 sed -e '/Warning/d' -e '/Note (probably harmless)/d' \
1604 -e 's/-bE:perl.exp//' -e 's/-lc //'`
1605 perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \
1606 -e 'ccdlflags' | sed -e 's/-bE:perl.exp//'`
1607
1608 echo $ac_n "checking if compile and link flags for Perl are sane""... $ac_c" 1>&6
1609echo "configure:1610: checking if compile and link flags for Perl are sane" >&5
1610 cflags_save=$CFLAGS
1611 libs_save=$LIBS
1612 ldflags_save=$LDFLAGS
1613 CFLAGS="$CFLAGS $perlcppflags"
1614 LIBS="$LIBS $perllibs"
1615 LDFLAGS="$perlldflags $LDFLAGS"
1616 cat > conftest.$ac_ext <<EOF
1617#line 1618 "configure"
1618#include "confdefs.h"
1619
1620int main() {
1621
1622; return 0; }
1623EOF
1624if { (eval echo configure:1625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1625 rm -rf conftest*
1626 echo "$ac_t""yes" 1>&6; perl_ok=yes
1627else
1628 echo "configure: failed program was:" >&5
1629 cat conftest.$ac_ext >&5
1630 rm -rf conftest*
1631 echo "$ac_t""no: PERL DISABLED" 1>&6; perl_ok=no
1632fi
1633rm -f conftest*
1634 CFLAGS=$cflags_save
1635 LIBS=$libs_save
1636 LDFLAGS=$ldflags_save
1637 if test $perl_ok = yes; then
1638 if test "X$perlcppflags" != "X"; then
1639 PERL_CFLAGS="$perlcppflags"
1640 fi
1641 if test "X$perlldflags" != "X"; then
1642 LDFLAGS="$perlldflags $LDFLAGS"
1643 fi
1644 PERL_LIBS=$perllibs
1645 PERL_SRC="auto/if_perl.c if_perlsfio.c"
1646 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o"
1647 PERL_PRO="if_perl.pro if_perlsfio.pro"
1648 cat >> confdefs.h <<\EOF
1649#define FEAT_PERL 1
1650EOF
1651
1652 fi
1653 fi
1654 else
1655 echo "$ac_t"">>> too old; need Perl version 5.003_01 or later <<<" 1>&6
1656 fi
1657 fi
1658
1659 if test "x$MACOSX" = "xyes"; then
1660 dir=/System/Library/Perl
1661 darwindir=$dir/darwin
1662 if test -d $darwindir; then
1663 PERL=/usr/bin/perl
1664 else
1665 dir=/System/Library/Perl/5.8.1
1666 darwindir=$dir/darwin-thread-multi-2level
1667 if test -d $darwindir; then
1668 PERL=/usr/bin/perl
1669 fi
1670 fi
1671 if test -n "$PERL"; then
1672 PERL_DIR="$dir"
1673 PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE"
1674 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a"
1675 PERL_LIBS="-L$darwindir/CORE -lperl"
1676 fi
1677 fi
1678fi
1679
1680
1681
1682
1683
1684
1685
1686echo $ac_n "checking --enable-pythoninterp argument""... $ac_c" 1>&6
1687echo "configure:1688: checking --enable-pythoninterp argument" >&5
1688# Check whether --enable-pythoninterp or --disable-pythoninterp was given.
1689if test "${enable_pythoninterp+set}" = set; then
1690 enableval="$enable_pythoninterp"
1691 :
1692else
1693 enable_pythoninterp="no"
1694fi
1695
1696echo "$ac_t""$enable_pythoninterp" 1>&6
1697if test "$enable_pythoninterp" = "yes"; then
1698 # Extract the first word of "python", so it can be a program name with args.
1699set dummy python; ac_word=$2
1700echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1701echo "configure:1702: checking for $ac_word" >&5
1702if eval "test \"`echo '$''{'ac_cv_path_vi_cv_path_python'+set}'`\" = set"; then
1703 echo $ac_n "(cached) $ac_c" 1>&6
1704else
1705 case "$vi_cv_path_python" in
1706 /*)
1707 ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path.
1708 ;;
1709 ?:/*)
1710 ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a dos path.
1711 ;;
1712 *)
1713 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1714 ac_dummy="$PATH"
1715 for ac_dir in $ac_dummy; do
1716 test -z "$ac_dir" && ac_dir=.
1717 if test -f $ac_dir/$ac_word; then
1718 ac_cv_path_vi_cv_path_python="$ac_dir/$ac_word"
1719 break
1720 fi
1721 done
1722 IFS="$ac_save_ifs"
1723 ;;
1724esac
1725fi
1726vi_cv_path_python="$ac_cv_path_vi_cv_path_python"
1727if test -n "$vi_cv_path_python"; then
1728 echo "$ac_t""$vi_cv_path_python" 1>&6
1729else
1730 echo "$ac_t""no" 1>&6
1731fi
1732
1733 if test "X$vi_cv_path_python" != "X"; then
1734
1735 echo $ac_n "checking Python version""... $ac_c" 1>&6
1736echo "configure:1737: checking Python version" >&5
1737if eval "test \"`echo '$''{'vi_cv_var_python_version'+set}'`\" = set"; then
1738 echo $ac_n "(cached) $ac_c" 1>&6
1739else
1740 vi_cv_var_python_version=`
1741 ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'`
1742
1743fi
1744
1745echo "$ac_t""$vi_cv_var_python_version" 1>&6
1746
1747 echo $ac_n "checking Python is 1.4 or better""... $ac_c" 1>&6
1748echo "configure:1749: checking Python is 1.4 or better" >&5
1749 if ${vi_cv_path_python} -c \
1750 "import sys; sys.exit(${vi_cv_var_python_version} < 1.4)"
1751 then
1752 echo "$ac_t""yep" 1>&6
1753
1754 echo $ac_n "checking Python's install prefix""... $ac_c" 1>&6
1755echo "configure:1756: checking Python's install prefix" >&5
1756if eval "test \"`echo '$''{'vi_cv_path_python_pfx'+set}'`\" = set"; then
1757 echo $ac_n "(cached) $ac_c" 1>&6
1758else
1759 vi_cv_path_python_pfx=`
1760 ${vi_cv_path_python} -c \
1761 "import sys; print sys.prefix"`
1762fi
1763
1764echo "$ac_t""$vi_cv_path_python_pfx" 1>&6
1765
1766 echo $ac_n "checking Python's execution prefix""... $ac_c" 1>&6
1767echo "configure:1768: checking Python's execution prefix" >&5
1768if eval "test \"`echo '$''{'vi_cv_path_python_epfx'+set}'`\" = set"; then
1769 echo $ac_n "(cached) $ac_c" 1>&6
1770else
1771 vi_cv_path_python_epfx=`
1772 ${vi_cv_path_python} -c \
1773 "import sys; print sys.exec_prefix"`
1774fi
1775
1776echo "$ac_t""$vi_cv_path_python_epfx" 1>&6
1777
1778
1779 if eval "test \"`echo '$''{'vi_cv_path_pythonpath'+set}'`\" = set"; then
1780 echo $ac_n "(cached) $ac_c" 1>&6
1781else
1782 vi_cv_path_pythonpath=`
1783 unset PYTHONPATH;
1784 ${vi_cv_path_python} -c \
1785 "import sys, string; print string.join(sys.path,':')"`
1786fi
1787
1788
1789
1790 # Check whether --with-python-config-dir or --without-python-config-dir was given.
1791if test "${with_python_config_dir+set}" = set; then
1792 withval="$with_python_config_dir"
1793 vi_cv_path_python_conf="${withval}"
1794fi
1795
1796
1797 echo $ac_n "checking Python's configuration directory""... $ac_c" 1>&6
1798echo "configure:1799: checking Python's configuration directory" >&5
1799if eval "test \"`echo '$''{'vi_cv_path_python_conf'+set}'`\" = set"; then
1800 echo $ac_n "(cached) $ac_c" 1>&6
1801else
1802
1803 vi_cv_path_python_conf=
1804 for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do
1805 for subdir in lib share; do
1806 d="${path}/${subdir}/python${vi_cv_var_python_version}/config"
1807 if test -d "$d" && test -f "$d/config.c"; then
1808 vi_cv_path_python_conf="$d"
1809 fi
1810 done
1811 done
1812
1813fi
1814
1815echo "$ac_t""$vi_cv_path_python_conf" 1>&6
1816
1817 PYTHON_CONFDIR="${vi_cv_path_python_conf}"
1818
1819 if test "X$PYTHON_CONFDIR" = "X"; then
1820 echo "$ac_t""can't find it!" 1>&6
1821 else
1822
1823 if eval "test \"`echo '$''{'vi_cv_path_python_plibs'+set}'`\" = set"; then
1824 echo $ac_n "(cached) $ac_c" 1>&6
1825else
1826
1827 tmp_mkf="/tmp/Makefile-conf$$"
1828 cat ${PYTHON_CONFDIR}/Makefile - <<'eof' >${tmp_mkf}
1829__:
1830 @echo "python_MODLIBS='$(MODLIBS)'"
1831 @echo "python_LIBS='$(LIBS)'"
1832 @echo "python_SYSLIBS='$(SYSLIBS)'"
1833 @echo "python_LINKFORSHARED='$(LINKFORSHARED)'"
1834eof
1835 eval "`cd ${PYTHON_CONFDIR} && make -f ${tmp_mkf} __ | sed '/ directory /d'`"
1836 rm -f ${tmp_mkf}
1837 if test "x$MACOSX" = "xyes" && ${vi_cv_path_python} -c \
1838 "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then
1839 vi_cv_path_python_plibs="-framework Python"
1840 else
1841 if test "${vi_cv_var_python_version}" = "1.4"; then
1842 vi_cv_path_python_plibs="${PYTHON_CONFDIR}/libModules.a ${PYTHON_CONFDIR}/libPython.a ${PYTHON_CONFDIR}/libObjects.a ${PYTHON_CONFDIR}/libParser.a"
1843 else
1844 vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}"
1845 fi
1846 vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_MODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}"
1847 vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//`
1848 fi
1849
1850fi
1851
1852
1853 PYTHON_LIBS="${vi_cv_path_python_plibs}"
1854 if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then
1855 PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version}"
1856 else
1857 PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version} -I${vi_cv_path_python_epfx}/include/python${vi_cv_var_python_version}"
1858 fi
1859 PYTHON_SRC="if_python.c"
1860 if test "x$MACOSX" = "xyes"; then
1861 PYTHON_OBJ="objects/if_python.o"
1862 else
1863 PYTHON_OBJ="objects/if_python.o objects/py_config.o"
1864 fi
1865 if test "${vi_cv_var_python_version}" = "1.4"; then
1866 PYTHON_OBJ="$PYTHON_OBJ objects/py_getpath.o"
1867 fi
1868 PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'"
1869
1870 echo $ac_n "checking if -pthread should be used""... $ac_c" 1>&6
1871echo "configure:1872: checking if -pthread should be used" >&5
1872 threadsafe_flag=
1873 thread_lib=
1874 if test "x$MACOSX" != "xyes"; then
1875 test "$GCC" = yes && threadsafe_flag="-pthread"
1876 if test "`(uname) 2>/dev/null`" = FreeBSD; then
1877 threadsafe_flag="-D_THREAD_SAFE"
1878 thread_lib="-pthread"
1879 fi
1880 fi
1881 libs_save_old=$LIBS
1882 if test -n "$threadsafe_flag"; then
1883 cflags_save=$CFLAGS
1884 CFLAGS="$CFLAGS $threadsafe_flag"
1885 LIBS="$LIBS $thread_lib"
1886 cat > conftest.$ac_ext <<EOF
1887#line 1888 "configure"
1888#include "confdefs.h"
1889
1890int main() {
1891
1892; return 0; }
1893EOF
1894if { (eval echo configure:1895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1895 rm -rf conftest*
1896 echo "$ac_t""yes" 1>&6; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag"
1897else
1898 echo "configure: failed program was:" >&5
1899 cat conftest.$ac_ext >&5
1900 rm -rf conftest*
1901 echo "$ac_t""no" 1>&6; LIBS=$libs_save_old
1902
1903fi
1904rm -f conftest*
1905 CFLAGS=$cflags_save
1906 else
1907 echo "$ac_t""no" 1>&6
1908 fi
1909
1910 echo $ac_n "checking if compile and link flags for Python are sane""... $ac_c" 1>&6
1911echo "configure:1912: checking if compile and link flags for Python are sane" >&5
1912 cflags_save=$CFLAGS
1913 libs_save=$LIBS
1914 CFLAGS="$CFLAGS $PYTHON_CFLAGS"
1915 LIBS="$LIBS $PYTHON_LIBS"
1916 cat > conftest.$ac_ext <<EOF
1917#line 1918 "configure"
1918#include "confdefs.h"
1919
1920int main() {
1921
1922; return 0; }
1923EOF
1924if { (eval echo configure:1925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1925 rm -rf conftest*
1926 echo "$ac_t""yes" 1>&6; python_ok=yes
1927else
1928 echo "configure: failed program was:" >&5
1929 cat conftest.$ac_ext >&5
1930 rm -rf conftest*
1931 echo "$ac_t""no: PYTHON DISABLED" 1>&6; python_ok=no
1932fi
1933rm -f conftest*
1934 CFLAGS=$cflags_save
1935 LIBS=$libs_save
1936 if test $python_ok = yes; then
1937 cat >> confdefs.h <<\EOF
1938#define FEAT_PYTHON 1
1939EOF
1940
1941 else
1942 LIBS=$libs_save_old
1943 PYTHON_SRC=
1944 PYTHON_OBJ=
1945 PYTHON_LIBS=
1946 PYTHON_CFLAGS=
1947 fi
1948
1949 fi
1950 else
1951 echo "$ac_t""too old" 1>&6
1952 fi
1953 fi
1954fi
1955
1956
1957
1958
1959
1960
1961
1962echo $ac_n "checking --enable-tclinterp argument""... $ac_c" 1>&6
1963echo "configure:1964: checking --enable-tclinterp argument" >&5
1964# Check whether --enable-tclinterp or --disable-tclinterp was given.
1965if test "${enable_tclinterp+set}" = set; then
1966 enableval="$enable_tclinterp"
1967 :
1968else
1969 enable_tclinterp="no"
1970fi
1971
1972echo "$ac_t""$enable_tclinterp" 1>&6
1973
1974if test "$enable_tclinterp" = "yes"; then
1975
1976 echo $ac_n "checking --with-tclsh argument""... $ac_c" 1>&6
1977echo "configure:1978: checking --with-tclsh argument" >&5
1978 # Check whether --with-tclsh or --without-tclsh was given.
1979if test "${with_tclsh+set}" = set; then
1980 withval="$with_tclsh"
1981 tclsh_name="$withval"; echo "$ac_t""$tclsh_name" 1>&6
1982else
1983 tclsh_name="tclsh8.0"; echo "$ac_t""no" 1>&6
1984fi
1985
1986 # Extract the first word of "$tclsh_name", so it can be a program name with args.
1987set dummy $tclsh_name; ac_word=$2
1988echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1989echo "configure:1990: checking for $ac_word" >&5
1990if eval "test \"`echo '$''{'ac_cv_path_vi_cv_path_tcl'+set}'`\" = set"; then
1991 echo $ac_n "(cached) $ac_c" 1>&6
1992else
1993 case "$vi_cv_path_tcl" in
1994 /*)
1995 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
1996 ;;
1997 ?:/*)
1998 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a dos path.
1999 ;;
2000 *)
2001 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2002 ac_dummy="$PATH"
2003 for ac_dir in $ac_dummy; do
2004 test -z "$ac_dir" && ac_dir=.
2005 if test -f $ac_dir/$ac_word; then
2006 ac_cv_path_vi_cv_path_tcl="$ac_dir/$ac_word"
2007 break
2008 fi
2009 done
2010 IFS="$ac_save_ifs"
2011 ;;
2012esac
2013fi
2014vi_cv_path_tcl="$ac_cv_path_vi_cv_path_tcl"
2015if test -n "$vi_cv_path_tcl"; then
2016 echo "$ac_t""$vi_cv_path_tcl" 1>&6
2017else
2018 echo "$ac_t""no" 1>&6
2019fi
2020
2021
2022
2023 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.0"; then
2024 tclsh_name="tclsh8.2"
2025 # Extract the first word of "$tclsh_name", so it can be a program name with args.
2026set dummy $tclsh_name; ac_word=$2
2027echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2028echo "configure:2029: checking for $ac_word" >&5
2029if eval "test \"`echo '$''{'ac_cv_path_vi_cv_path_tcl'+set}'`\" = set"; then
2030 echo $ac_n "(cached) $ac_c" 1>&6
2031else
2032 case "$vi_cv_path_tcl" in
2033 /*)
2034 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
2035 ;;
2036 ?:/*)
2037 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a dos path.
2038 ;;
2039 *)
2040 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2041 ac_dummy="$PATH"
2042 for ac_dir in $ac_dummy; do
2043 test -z "$ac_dir" && ac_dir=.
2044 if test -f $ac_dir/$ac_word; then
2045 ac_cv_path_vi_cv_path_tcl="$ac_dir/$ac_word"
2046 break
2047 fi
2048 done
2049 IFS="$ac_save_ifs"
2050 ;;
2051esac
2052fi
2053vi_cv_path_tcl="$ac_cv_path_vi_cv_path_tcl"
2054if test -n "$vi_cv_path_tcl"; then
2055 echo "$ac_t""$vi_cv_path_tcl" 1>&6
2056else
2057 echo "$ac_t""no" 1>&6
2058fi
2059
2060 fi
2061 if test "X$vi_cv_path_tcl" = "X"; then
2062 tclsh_name="tclsh"
2063 # Extract the first word of "$tclsh_name", so it can be a program name with args.
2064set dummy $tclsh_name; ac_word=$2
2065echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2066echo "configure:2067: checking for $ac_word" >&5
2067if eval "test \"`echo '$''{'ac_cv_path_vi_cv_path_tcl'+set}'`\" = set"; then
2068 echo $ac_n "(cached) $ac_c" 1>&6
2069else
2070 case "$vi_cv_path_tcl" in
2071 /*)
2072 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
2073 ;;
2074 ?:/*)
2075 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a dos path.
2076 ;;
2077 *)
2078 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2079 ac_dummy="$PATH"
2080 for ac_dir in $ac_dummy; do
2081 test -z "$ac_dir" && ac_dir=.
2082 if test -f $ac_dir/$ac_word; then
2083 ac_cv_path_vi_cv_path_tcl="$ac_dir/$ac_word"
2084 break
2085 fi
2086 done
2087 IFS="$ac_save_ifs"
2088 ;;
2089esac
2090fi
2091vi_cv_path_tcl="$ac_cv_path_vi_cv_path_tcl"
2092if test -n "$vi_cv_path_tcl"; then
2093 echo "$ac_t""$vi_cv_path_tcl" 1>&6
2094else
2095 echo "$ac_t""no" 1>&6
2096fi
2097
2098 fi
2099 if test "X$vi_cv_path_tcl" != "X"; then
2100 echo $ac_n "checking Tcl version""... $ac_c" 1>&6
2101echo "configure:2102: checking Tcl version" >&5
2102 if echo 'exit [expr [info tclversion] < 8.0]' | $vi_cv_path_tcl - ; then
2103 tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -`
2104 echo "$ac_t""$tclver - OK" 1>&6;
2105 tclloc=`echo 'set l [info library];set i [string last lib $l];incr i -2;puts [string range $l 0 $i]' | $vi_cv_path_tcl -`
2106
2107 echo $ac_n "checking for location of Tcl include""... $ac_c" 1>&6
2108echo "configure:2109: checking for location of Tcl include" >&5
2109 if test "x$MACOSX" != "xyes"; then
2110 tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include"
2111 else
2112 tclinc="/System/Library/Frameworks/Tcl.framework/Headers"
2113 fi
2114 for try in $tclinc; do
2115 if test -f "$try/tcl.h"; then
2116 echo "$ac_t""$try/tcl.h" 1>&6
2117 TCL_INC=$try
2118 break
2119 fi
2120 done
2121 if test -z "$TCL_INC"; then
2122 echo "$ac_t""<not found>" 1>&6
2123 SKIP_TCL=YES
2124 fi
2125 if test -z "$SKIP_TCL"; then
2126 echo $ac_n "checking for location of tclConfig.sh script""... $ac_c" 1>&6
2127echo "configure:2128: checking for location of tclConfig.sh script" >&5
2128 if test "x$MACOSX" != "xyes"; then
2129 tclcnf=`echo $tclinc | sed s/include/lib/g`
2130 else
2131 tclcnf="/System/Library/Frameworks/Tcl.framework"
2132 fi
2133 for try in $tclcnf; do
2134 if test -f $try/tclConfig.sh; then
2135 echo "$ac_t""$try/tclConfig.sh" 1>&6
2136 . $try/tclConfig.sh
2137 TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"`
2138 TCL_DEFS=`echo $TCL_DEFS | tr ' ' '\012' | sed -e '/^-[^D]/d' -e '/-D[^_]/d' -e 's/-D_/ -D_/' | tr -d '\012'`
2139 break
2140 fi
2141 done
2142 if test -z "$TCL_LIBS"; then
2143 echo "$ac_t""<not found>" 1>&6
2144 echo $ac_n "checking for Tcl library by myself""... $ac_c" 1>&6
2145echo "configure:2146: checking for Tcl library by myself" >&5
2146 tcllib=`echo $tclinc | sed s/include/lib/g`
2147 for ext in .so .a ; do
2148 for ver in "" $tclver ; do
2149 for try in $tcllib ; do
2150 trylib=tcl$ver$ext
2151 if test -f $try/lib$trylib ; then
2152 echo "$ac_t""$try/lib$trylib" 1>&6
2153 TCL_LIBS="-L$try -ltcl$ver -ldl -lm"
2154 if test "`(uname) 2>/dev/null`" = SunOS &&
2155 uname -r | grep '^5' >/dev/null; then
2156 TCL_LIBS="$TCL_LIBS -R $try"
2157 fi
2158 break 3
2159 fi
2160 done
2161 done
2162 done
2163 if test -z "$TCL_LIBS"; then
2164 echo "$ac_t""<not found>" 1>&6
2165 SKIP_TCL=YES
2166 fi
2167 fi
2168 if test -z "$SKIP_TCL"; then
2169 cat >> confdefs.h <<\EOF
2170#define FEAT_TCL 1
2171EOF
2172
2173 TCL_SRC=if_tcl.c
2174 TCL_OBJ=objects/if_tcl.o
2175 TCL_PRO=if_tcl.pro
2176 TCL_CFLAGS="-I$TCL_INC $TCL_DEFS"
2177 fi
2178 fi
2179 else
2180 echo "$ac_t""too old; need Tcl version 8.0 or later" 1>&6
2181 fi
2182 fi
2183fi
2184
2185
2186
2187
2188
2189
2190echo $ac_n "checking --enable-rubyinterp argument""... $ac_c" 1>&6
2191echo "configure:2192: checking --enable-rubyinterp argument" >&5
2192# Check whether --enable-rubyinterp or --disable-rubyinterp was given.
2193if test "${enable_rubyinterp+set}" = set; then
2194 enableval="$enable_rubyinterp"
2195 :
2196else
2197 enable_rubyinterp="no"
2198fi
2199
2200echo "$ac_t""$enable_rubyinterp" 1>&6
2201if test "$enable_rubyinterp" = "yes"; then
2202
2203 # Extract the first word of "ruby", so it can be a program name with args.
2204set dummy ruby; ac_word=$2
2205echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2206echo "configure:2207: checking for $ac_word" >&5
2207if eval "test \"`echo '$''{'ac_cv_path_vi_cv_path_ruby'+set}'`\" = set"; then
2208 echo $ac_n "(cached) $ac_c" 1>&6
2209else
2210 case "$vi_cv_path_ruby" in
2211 /*)
2212 ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path.
2213 ;;
2214 ?:/*)
2215 ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a dos path.
2216 ;;
2217 *)
2218 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2219 ac_dummy="$PATH"
2220 for ac_dir in $ac_dummy; do
2221 test -z "$ac_dir" && ac_dir=.
2222 if test -f $ac_dir/$ac_word; then
2223 ac_cv_path_vi_cv_path_ruby="$ac_dir/$ac_word"
2224 break
2225 fi
2226 done
2227 IFS="$ac_save_ifs"
2228 ;;
2229esac
2230fi
2231vi_cv_path_ruby="$ac_cv_path_vi_cv_path_ruby"
2232if test -n "$vi_cv_path_ruby"; then
2233 echo "$ac_t""$vi_cv_path_ruby" 1>&6
2234else
2235 echo "$ac_t""no" 1>&6
2236fi
2237
2238 if test "X$vi_cv_path_ruby" != "X"; then
2239 echo $ac_n "checking Ruby version""... $ac_c" 1>&6
2240echo "configure:2241: checking Ruby version" >&5
2241 if $vi_cv_path_ruby -e 'VERSION >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then
2242 echo "$ac_t""OK" 1>&6
2243 echo $ac_n "checking Ruby header files""... $ac_c" 1>&6
2244echo "configure:2245: checking Ruby header files" >&5
2245 rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e 'print Config::CONFIG["archdir"] || $hdrdir' 2>/dev/null`
2246 if test "X$rubyhdrdir" != "X"; then
2247 echo "$ac_t""$rubyhdrdir" 1>&6
2248 RUBY_CFLAGS="-I$rubyhdrdir"
2249 rubylibs=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LIBS"]'`
2250 if test "X$rubylibs" != "X"; then
2251 RUBY_LIBS="$rubylibs"
2252 fi
2253 librubyarg=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["LIBRUBYARG"])'`
2254 if test -f "$rubyhdrdir/$librubyarg"; then
2255 librubyarg="$rubyhdrdir/$librubyarg"
2256 else
2257 rubylibdir=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["libdir"])'`
2258 if test -f "$rubylibdir/$librubyarg"; then
2259 librubyarg="$rubylibdir/$librubyarg"
2260 elif test "$librubyarg" = "libruby.a"; then
2261 librubyarg="-lruby"
2262 else
2263 librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print '$librubyarg'.gsub(/-L\./, %'-L#{Config.expand(Config::CONFIG[\"libdir\"])}')"`
2264 fi
2265 fi
2266
2267 if test "X$librubyarg" != "X"; then
2268 RUBY_LIBS="$librubyarg $RUBY_LIBS"
2269 fi
2270 rubyldflags=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LDFLAGS"]'`
2271 if test "X$rubyldflags" != "X"; then
2272 LDFLAGS="$rubyldflags $LDFLAGS"
2273 fi
2274 RUBY_SRC="if_ruby.c"
2275 RUBY_OBJ="objects/if_ruby.o"
2276 RUBY_PRO="if_ruby.pro"
2277 cat >> confdefs.h <<\EOF
2278#define FEAT_RUBY 1
2279EOF
2280
2281 else
2282 echo "$ac_t""not found" 1>&6
2283 fi
2284 else
2285 echo "$ac_t""too old; need Ruby version 1.6.0 or later" 1>&6
2286 fi
2287 fi
2288fi
2289
2290
2291
2292
2293
2294
2295echo $ac_n "checking --enable-cscope argument""... $ac_c" 1>&6
2296echo "configure:2297: checking --enable-cscope argument" >&5
2297# Check whether --enable-cscope or --disable-cscope was given.
2298if test "${enable_cscope+set}" = set; then
2299 enableval="$enable_cscope"
2300 :
2301else
2302 enable_cscope="no"
2303fi
2304
2305echo "$ac_t""$enable_cscope" 1>&6
2306if test "$enable_cscope" = "yes"; then
2307 cat >> confdefs.h <<\EOF
2308#define FEAT_CSCOPE 1
2309EOF
2310
2311fi
2312
2313echo $ac_n "checking --enable-workshop argument""... $ac_c" 1>&6
2314echo "configure:2315: checking --enable-workshop argument" >&5
2315# Check whether --enable-workshop or --disable-workshop was given.
2316if test "${enable_workshop+set}" = set; then
2317 enableval="$enable_workshop"
2318 :
2319else
2320 enable_workshop="no"
2321fi
2322
2323echo "$ac_t""$enable_workshop" 1>&6
2324if test "$enable_workshop" = "yes"; then
2325 cat >> confdefs.h <<\EOF
2326#define FEAT_SUN_WORKSHOP 1
2327EOF
2328
2329 WORKSHOP_SRC="workshop.c integration.c"
2330
2331 WORKSHOP_OBJ="objects/workshop.o objects/integration.o"
2332
2333 if test "${enable_gui-xxx}" = xxx; then
2334 enable_gui=motif
2335 fi
2336fi
2337
2338echo $ac_n "checking --disable-netbeans argument""... $ac_c" 1>&6
2339echo "configure:2340: checking --disable-netbeans argument" >&5
2340# Check whether --enable-netbeans or --disable-netbeans was given.
2341if test "${enable_netbeans+set}" = set; then
2342 enableval="$enable_netbeans"
2343 :
2344else
2345 enable_netbeans="yes"
2346fi
2347
2348if test "$enable_netbeans" = "yes"; then
2349 echo "$ac_t""no" 1>&6
2350 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
2351echo "configure:2352: checking for socket in -lsocket" >&5
2352ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
2353if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2354 echo $ac_n "(cached) $ac_c" 1>&6
2355else
2356 ac_save_LIBS="$LIBS"
2357LIBS="-lsocket $LIBS"
2358cat > conftest.$ac_ext <<EOF
2359#line 2360 "configure"
2360#include "confdefs.h"
2361/* Override any gcc2 internal prototype to avoid an error. */
2362/* We use char because int might match the return type of a gcc2
2363 builtin and then its argument prototype would still apply. */
2364char socket();
2365
2366int main() {
2367socket()
2368; return 0; }
2369EOF
2370if { (eval echo configure:2371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2371 rm -rf conftest*
2372 eval "ac_cv_lib_$ac_lib_var=yes"
2373else
2374 echo "configure: failed program was:" >&5
2375 cat conftest.$ac_ext >&5
2376 rm -rf conftest*
2377 eval "ac_cv_lib_$ac_lib_var=no"
2378fi
2379rm -f conftest*
2380LIBS="$ac_save_LIBS"
2381
2382fi
2383if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2384 echo "$ac_t""yes" 1>&6
2385 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2386 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2387 cat >> confdefs.h <<EOF
2388#define $ac_tr_lib 1
2389EOF
2390
2391 LIBS="-lsocket $LIBS"
2392
2393else
2394 echo "$ac_t""no" 1>&6
2395fi
2396
2397 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2398echo "configure:2399: checking for gethostbyname in -lnsl" >&5
2399ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2400if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2401 echo $ac_n "(cached) $ac_c" 1>&6
2402else
2403 ac_save_LIBS="$LIBS"
2404LIBS="-lnsl $LIBS"
2405cat > conftest.$ac_ext <<EOF
2406#line 2407 "configure"
2407#include "confdefs.h"
2408/* Override any gcc2 internal prototype to avoid an error. */
2409/* We use char because int might match the return type of a gcc2
2410 builtin and then its argument prototype would still apply. */
2411char gethostbyname();
2412
2413int main() {
2414gethostbyname()
2415; return 0; }
2416EOF
2417if { (eval echo configure:2418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2418 rm -rf conftest*
2419 eval "ac_cv_lib_$ac_lib_var=yes"
2420else
2421 echo "configure: failed program was:" >&5
2422 cat conftest.$ac_ext >&5
2423 rm -rf conftest*
2424 eval "ac_cv_lib_$ac_lib_var=no"
2425fi
2426rm -f conftest*
2427LIBS="$ac_save_LIBS"
2428
2429fi
2430if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2431 echo "$ac_t""yes" 1>&6
2432 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2433 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2434 cat >> confdefs.h <<EOF
2435#define $ac_tr_lib 1
2436EOF
2437
2438 LIBS="-lnsl $LIBS"
2439
2440else
2441 echo "$ac_t""no" 1>&6
2442fi
2443
2444 echo $ac_n "checking whether compiling netbeans integration is possible""... $ac_c" 1>&6
2445echo "configure:2446: checking whether compiling netbeans integration is possible" >&5
2446 cat > conftest.$ac_ext <<EOF
2447#line 2448 "configure"
2448#include "confdefs.h"
2449
2450#include <stdio.h>
2451#include <stdlib.h>
2452#include <stdarg.h>
2453#include <fcntl.h>
2454#include <netdb.h>
2455#include <netinet/in.h>
2456#include <errno.h>
2457#include <sys/types.h>
2458#include <sys/socket.h>
2459 /* Check bitfields */
2460 struct nbbuf {
2461 unsigned int initDone:1;
2462 ushort signmaplen;
2463 };
2464
2465int main() {
2466
2467 /* Check creating a socket. */
2468 struct sockaddr_in server;
2469 (void)socket(AF_INET, SOCK_STREAM, 0);
2470 (void)htons(100);
2471 (void)gethostbyname("microsoft.com");
2472 if (errno == ECONNREFUSED)
2473 (void)connect(1, (struct sockaddr *)&server, sizeof(server));
2474
2475; return 0; }
2476EOF
2477if { (eval echo configure:2478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2478 rm -rf conftest*
2479 echo "$ac_t""yes" 1>&6
2480else
2481 echo "configure: failed program was:" >&5
2482 cat conftest.$ac_ext >&5
2483 rm -rf conftest*
2484 echo "$ac_t""no" 1>&6; enable_netbeans="no"
2485fi
2486rm -f conftest*
2487else
2488 echo "$ac_t""yes" 1>&6
2489fi
2490if test "$enable_netbeans" = "yes"; then
2491 cat >> confdefs.h <<\EOF
2492#define FEAT_NETBEANS_INTG 1
2493EOF
2494
2495 NETBEANS_SRC="netbeans.c"
2496
2497 NETBEANS_OBJ="objects/netbeans.o"
2498
2499fi
2500
2501echo $ac_n "checking --enable-sniff argument""... $ac_c" 1>&6
2502echo "configure:2503: checking --enable-sniff argument" >&5
2503# Check whether --enable-sniff or --disable-sniff was given.
2504if test "${enable_sniff+set}" = set; then
2505 enableval="$enable_sniff"
2506 :
2507else
2508 enable_sniff="no"
2509fi
2510
2511echo "$ac_t""$enable_sniff" 1>&6
2512if test "$enable_sniff" = "yes"; then
2513 cat >> confdefs.h <<\EOF
2514#define FEAT_SNIFF 1
2515EOF
2516
2517 SNIFF_SRC="if_sniff.c"
2518
2519 SNIFF_OBJ="objects/if_sniff.o"
2520
2521fi
2522
2523echo $ac_n "checking --enable-multibyte argument""... $ac_c" 1>&6
2524echo "configure:2525: checking --enable-multibyte argument" >&5
2525# Check whether --enable-multibyte or --disable-multibyte was given.
2526if test "${enable_multibyte+set}" = set; then
2527 enableval="$enable_multibyte"
2528 :
2529else
2530 enable_multibyte="no"
2531fi
2532
2533echo "$ac_t""$enable_multibyte" 1>&6
2534if test "$enable_multibyte" = "yes"; then
2535 cat >> confdefs.h <<\EOF
2536#define FEAT_MBYTE 1
2537EOF
2538
2539fi
2540
2541echo $ac_n "checking --enable-hangulinput argument""... $ac_c" 1>&6
2542echo "configure:2543: checking --enable-hangulinput argument" >&5
2543# Check whether --enable-hangulinput or --disable-hangulinput was given.
2544if test "${enable_hangulinput+set}" = set; then
2545 enableval="$enable_hangulinput"
2546 :
2547else
2548 enable_hangulinput="no"
2549fi
2550
2551echo "$ac_t""$enable_hangulinput" 1>&6
2552
2553echo $ac_n "checking --enable-xim argument""... $ac_c" 1>&6
2554echo "configure:2555: checking --enable-xim argument" >&5
2555# Check whether --enable-xim or --disable-xim was given.
2556if test "${enable_xim+set}" = set; then
2557 enableval="$enable_xim"
2558 echo "$ac_t""$enable_xim" 1>&6
2559else
2560 enable_xim="auto"; echo "$ac_t""defaulting to auto" 1>&6
2561fi
2562
2563
2564echo $ac_n "checking --enable-fontset argument""... $ac_c" 1>&6
2565echo "configure:2566: checking --enable-fontset argument" >&5
2566# Check whether --enable-fontset or --disable-fontset was given.
2567if test "${enable_fontset+set}" = set; then
2568 enableval="$enable_fontset"
2569 :
2570else
2571 enable_fontset="no"
2572fi
2573
2574echo "$ac_t""$enable_fontset" 1>&6
2575
2576test -z "$with_x" && with_x=yes
2577test "${enable_gui-yes}" != no -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && with_x=yes
2578if test "$with_x" = no; then
2579 echo "$ac_t""defaulting to: don't HAVE_X11" 1>&6
2580else
2581
2582 # Extract the first word of "xmkmf", so it can be a program name with args.
2583set dummy xmkmf; ac_word=$2
2584echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2585echo "configure:2586: checking for $ac_word" >&5
2586if eval "test \"`echo '$''{'ac_cv_path_xmkmfpath'+set}'`\" = set"; then
2587 echo $ac_n "(cached) $ac_c" 1>&6
2588else
2589 case "$xmkmfpath" in
2590 /*)
2591 ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path.
2592 ;;
2593 ?:/*)
2594 ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a dos path.
2595 ;;
2596 *)
2597 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2598 ac_dummy="$PATH"
2599 for ac_dir in $ac_dummy; do
2600 test -z "$ac_dir" && ac_dir=.
2601 if test -f $ac_dir/$ac_word; then
2602 ac_cv_path_xmkmfpath="$ac_dir/$ac_word"
2603 break
2604 fi
2605 done
2606 IFS="$ac_save_ifs"
2607 ;;
2608esac
2609fi
2610xmkmfpath="$ac_cv_path_xmkmfpath"
2611if test -n "$xmkmfpath"; then
2612 echo "$ac_t""$xmkmfpath" 1>&6
2613else
2614 echo "$ac_t""no" 1>&6
2615fi
2616
2617
2618 # If we find X, set shell vars x_includes and x_libraries to the
2619# paths, otherwise set no_x=yes.
2620# Uses ac_ vars as temps to allow command line to override cache and checks.
2621# --without-x overrides everything else, but does not touch the cache.
2622echo $ac_n "checking for X""... $ac_c" 1>&6
2623echo "configure:2624: checking for X" >&5
2624
2625# Check whether --with-x or --without-x was given.
2626if test "${with_x+set}" = set; then
2627 withval="$with_x"
2628 :
2629fi
2630
2631# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
2632if test "x$with_x" = xno; then
2633 # The user explicitly disabled X.
2634 have_x=disabled
2635else
2636 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
2637 # Both variables are already set.
2638 have_x=yes
2639 else
2640if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
2641 echo $ac_n "(cached) $ac_c" 1>&6
2642else
2643 # One or both of the vars are not set, and there is no cached value.
2644ac_x_includes=NO ac_x_libraries=NO
2645rm -fr conftestdir
2646if mkdir conftestdir; then
2647 cd conftestdir
2648 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
2649 cat > Imakefile <<'EOF'
2650acfindx:
2651 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
2652EOF
2653 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
2654 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2655 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
2656 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2657 for ac_extension in a so sl; do
2658 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
2659 test -f $ac_im_libdir/libX11.$ac_extension; then
2660 ac_im_usrlibdir=$ac_im_libdir; break
2661 fi
2662 done
2663 # Screen out bogus values from the imake configuration. They are
2664 # bogus both because they are the default anyway, and because
2665 # using them would break gcc on systems where it needs fixed includes.
2666 case "$ac_im_incroot" in
2667 /usr/include) ;;
2668 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
2669 esac
2670 case "$ac_im_usrlibdir" in
2671 /usr/lib | /lib) ;;
2672 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
2673 esac
2674 fi
2675 cd ..
2676 rm -fr conftestdir
2677fi
2678
2679if test "$ac_x_includes" = NO; then
2680 # Guess where to find include files, by looking for this one X11 .h file.
2681 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
2682
2683 # First, try using that file with no special directory specified.
2684cat > conftest.$ac_ext <<EOF
2685#line 2686 "configure"
2686#include "confdefs.h"
2687#include <$x_direct_test_include>
2688EOF
2689ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2690{ (eval echo configure:2691: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2691ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2692if test -z "$ac_err"; then
2693 rm -rf conftest*
2694 # We can compile using X headers with no special include directory.
2695ac_x_includes=
2696else
2697 echo "$ac_err" >&5
2698 echo "configure: failed program was:" >&5
2699 cat conftest.$ac_ext >&5
2700 rm -rf conftest*
2701 # Look for the header file in a standard set of common directories.
2702# Check X11 before X11Rn because it is often a symlink to the current release.
2703 for ac_dir in \
2704 /usr/X11/include \
2705 /usr/X11R6/include \
2706 /usr/X11R5/include \
2707 /usr/X11R4/include \
2708 \
2709 /usr/include/X11 \
2710 /usr/include/X11R6 \
2711 /usr/include/X11R5 \
2712 /usr/include/X11R4 \
2713 \
2714 /usr/local/X11/include \
2715 /usr/local/X11R6/include \
2716 /usr/local/X11R5/include \
2717 /usr/local/X11R4/include \
2718 \
2719 /usr/local/include/X11 \
2720 /usr/local/include/X11R6 \
2721 /usr/local/include/X11R5 \
2722 /usr/local/include/X11R4 \
2723 \
2724 /usr/X386/include \
2725 /usr/x386/include \
2726 /usr/XFree86/include/X11 \
2727 \
2728 /usr/include \
2729 /usr/local/include \
2730 /usr/unsupported/include \
2731 /usr/athena/include \
2732 /usr/local/x11r5/include \
2733 /usr/lpp/Xamples/include \
2734 \
2735 /usr/openwin/include \
2736 /usr/openwin/share/include \
2737 ; \
2738 do
2739 if test -r "$ac_dir/$x_direct_test_include"; then
2740 ac_x_includes=$ac_dir
2741 break
2742 fi
2743 done
2744fi
2745rm -f conftest*
2746fi # $ac_x_includes = NO
2747
2748if test "$ac_x_libraries" = NO; then
2749 # Check for the libraries.
2750
2751 test -z "$x_direct_test_library" && x_direct_test_library=Xt
2752 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
2753
2754 # See if we find them without any special options.
2755 # Don't add to $LIBS permanently.
2756 ac_save_LIBS="$LIBS"
2757 LIBS="-l$x_direct_test_library $LIBS"
2758cat > conftest.$ac_ext <<EOF
2759#line 2760 "configure"
2760#include "confdefs.h"
2761
2762int main() {
2763${x_direct_test_function}()
2764; return 0; }
2765EOF
2766if { (eval echo configure:2767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2767 rm -rf conftest*
2768 LIBS="$ac_save_LIBS"
2769# We can link X programs with no special library path.
2770ac_x_libraries=
2771else
2772 echo "configure: failed program was:" >&5
2773 cat conftest.$ac_ext >&5
2774 rm -rf conftest*
2775 LIBS="$ac_save_LIBS"
2776# First see if replacing the include by lib works.
2777# Check X11 before X11Rn because it is often a symlink to the current release.
2778for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
2779 /usr/X11/lib \
2780 /usr/X11R6/lib \
2781 /usr/X11R5/lib \
2782 /usr/X11R4/lib \
2783 \
2784 /usr/lib/X11 \
2785 /usr/lib/X11R6 \
2786 /usr/lib/X11R5 \
2787 /usr/lib/X11R4 \
2788 \
2789 /usr/local/X11/lib \
2790 /usr/local/X11R6/lib \
2791 /usr/local/X11R5/lib \
2792 /usr/local/X11R4/lib \
2793 \
2794 /usr/local/lib/X11 \
2795 /usr/local/lib/X11R6 \
2796 /usr/local/lib/X11R5 \
2797 /usr/local/lib/X11R4 \
2798 \
2799 /usr/X386/lib \
2800 /usr/x386/lib \
2801 /usr/XFree86/lib/X11 \
2802 \
2803 /usr/lib \
2804 /usr/local/lib \
2805 /usr/unsupported/lib \
2806 /usr/athena/lib \
2807 /usr/local/x11r5/lib \
2808 /usr/lpp/Xamples/lib \
2809 /lib/usr/lib/X11 \
2810 \
2811 /usr/openwin/lib \
2812 /usr/openwin/share/lib \
2813 ; \
2814do
2815 for ac_extension in a so sl; do
2816 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
2817 ac_x_libraries=$ac_dir
2818 break 2
2819 fi
2820 done
2821done
2822fi
2823rm -f conftest*
2824fi # $ac_x_libraries = NO
2825
2826if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
2827 # Didn't find X anywhere. Cache the known absence of X.
2828 ac_cv_have_x="have_x=no"
2829else
2830 # Record where we found X for the cache.
2831 ac_cv_have_x="have_x=yes \
2832 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
2833fi
2834fi
2835 fi
2836 eval "$ac_cv_have_x"
2837fi # $with_x != no
2838
2839if test "$have_x" != yes; then
2840 echo "$ac_t""$have_x" 1>&6
2841 no_x=yes
2842else
2843 # If each of the values was on the command line, it overrides each guess.
2844 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
2845 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
2846 # Update the cache value to reflect the command line values.
2847 ac_cv_have_x="have_x=yes \
2848 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
2849 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
2850fi
2851
2852if test "$no_x" = yes; then
2853 # Not all programs may use this symbol, but it does not hurt to define it.
2854 cat >> confdefs.h <<\EOF
2855#define X_DISPLAY_MISSING 1
2856EOF
2857
2858 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
2859else
2860 if test -n "$x_includes"; then
2861 X_CFLAGS="$X_CFLAGS -I$x_includes"
2862 fi
2863
2864 # It would also be nice to do this for all -L options, not just this one.
2865 if test -n "$x_libraries"; then
2866 X_LIBS="$X_LIBS -L$x_libraries"
2867 # For Solaris; some versions of Sun CC require a space after -R and
2868 # others require no space. Words are not sufficient . . . .
2869 case "`(uname -sr) 2>/dev/null`" in
2870 "SunOS 5"*)
2871 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
2872echo "configure:2873: checking whether -R must be followed by a space" >&5
2873 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
2874 cat > conftest.$ac_ext <<EOF
2875#line 2876 "configure"
2876#include "confdefs.h"
2877
2878int main() {
2879
2880; return 0; }
2881EOF
2882if { (eval echo configure:2883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2883 rm -rf conftest*
2884 ac_R_nospace=yes
2885else
2886 echo "configure: failed program was:" >&5
2887 cat conftest.$ac_ext >&5
2888 rm -rf conftest*
2889 ac_R_nospace=no
2890fi
2891rm -f conftest*
2892 if test $ac_R_nospace = yes; then
2893 echo "$ac_t""no" 1>&6
2894 X_LIBS="$X_LIBS -R$x_libraries"
2895 else
2896 LIBS="$ac_xsave_LIBS -R $x_libraries"
2897 cat > conftest.$ac_ext <<EOF
2898#line 2899 "configure"
2899#include "confdefs.h"
2900
2901int main() {
2902
2903; return 0; }
2904EOF
2905if { (eval echo configure:2906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2906 rm -rf conftest*
2907 ac_R_space=yes
2908else
2909 echo "configure: failed program was:" >&5
2910 cat conftest.$ac_ext >&5
2911 rm -rf conftest*
2912 ac_R_space=no
2913fi
2914rm -f conftest*
2915 if test $ac_R_space = yes; then
2916 echo "$ac_t""yes" 1>&6
2917 X_LIBS="$X_LIBS -R $x_libraries"
2918 else
2919 echo "$ac_t""neither works" 1>&6
2920 fi
2921 fi
2922 LIBS="$ac_xsave_LIBS"
2923 esac
2924 fi
2925
2926 # Check for system-dependent libraries X programs must link with.
2927 # Do this before checking for the system-independent R6 libraries
2928 # (-lICE), since we may need -lsocket or whatever for X linking.
2929
2930 if test "$ISC" = yes; then
2931 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
2932 else
2933 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
2934 # libraries were built with DECnet support. And karl@cs.umb.edu says
2935 # the Alpha needs dnet_stub (dnet does not exist).
2936 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
2937echo "configure:2938: checking for dnet_ntoa in -ldnet" >&5
2938ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
2939if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2940 echo $ac_n "(cached) $ac_c" 1>&6
2941else
2942 ac_save_LIBS="$LIBS"
2943LIBS="-ldnet $LIBS"
2944cat > conftest.$ac_ext <<EOF
2945#line 2946 "configure"
2946#include "confdefs.h"
2947/* Override any gcc2 internal prototype to avoid an error. */
2948/* We use char because int might match the return type of a gcc2
2949 builtin and then its argument prototype would still apply. */
2950char dnet_ntoa();
2951
2952int main() {
2953dnet_ntoa()
2954; return 0; }
2955EOF
2956if { (eval echo configure:2957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2957 rm -rf conftest*
2958 eval "ac_cv_lib_$ac_lib_var=yes"
2959else
2960 echo "configure: failed program was:" >&5
2961 cat conftest.$ac_ext >&5
2962 rm -rf conftest*
2963 eval "ac_cv_lib_$ac_lib_var=no"
2964fi
2965rm -f conftest*
2966LIBS="$ac_save_LIBS"
2967
2968fi
2969if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2970 echo "$ac_t""yes" 1>&6
2971 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
2972else
2973 echo "$ac_t""no" 1>&6
2974fi
2975
2976 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
2977 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
2978echo "configure:2979: checking for dnet_ntoa in -ldnet_stub" >&5
2979ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
2980if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2981 echo $ac_n "(cached) $ac_c" 1>&6
2982else
2983 ac_save_LIBS="$LIBS"
2984LIBS="-ldnet_stub $LIBS"
2985cat > conftest.$ac_ext <<EOF
2986#line 2987 "configure"
2987#include "confdefs.h"
2988/* Override any gcc2 internal prototype to avoid an error. */
2989/* We use char because int might match the return type of a gcc2
2990 builtin and then its argument prototype would still apply. */
2991char dnet_ntoa();
2992
2993int main() {
2994dnet_ntoa()
2995; return 0; }
2996EOF
2997if { (eval echo configure:2998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2998 rm -rf conftest*
2999 eval "ac_cv_lib_$ac_lib_var=yes"
3000else
3001 echo "configure: failed program was:" >&5
3002 cat conftest.$ac_ext >&5
3003 rm -rf conftest*
3004 eval "ac_cv_lib_$ac_lib_var=no"
3005fi
3006rm -f conftest*
3007LIBS="$ac_save_LIBS"
3008
3009fi
3010if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3011 echo "$ac_t""yes" 1>&6
3012 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3013else
3014 echo "$ac_t""no" 1>&6
3015fi
3016
3017 fi
3018
3019 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3020 # to get the SysV transport functions.
3021 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
3022 # needs -lnsl.
3023 # The nsl library prevents programs from opening the X display
3024 # on Irix 5.2, according to dickey@clark.net.
3025 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3026echo "configure:3027: checking for gethostbyname" >&5
3027if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3028 echo $ac_n "(cached) $ac_c" 1>&6
3029else
3030 cat > conftest.$ac_ext <<EOF
3031#line 3032 "configure"
3032#include "confdefs.h"
3033/* System header to define __stub macros and hopefully few prototypes,
3034 which can conflict with char gethostbyname(); below. */
3035#include <assert.h>
3036/* Override any gcc2 internal prototype to avoid an error. */
3037/* We use char because int might match the return type of a gcc2
3038 builtin and then its argument prototype would still apply. */
3039char gethostbyname();
3040
3041int main() {
3042
3043/* The GNU C library defines this for functions which it implements
3044 to always fail with ENOSYS. Some functions are actually named
3045 something starting with __ and the normal name is an alias. */
3046#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3047choke me
3048#else
3049gethostbyname();
3050#endif
3051
3052; return 0; }
3053EOF
3054if { (eval echo configure:3055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3055 rm -rf conftest*
3056 eval "ac_cv_func_gethostbyname=yes"
3057else
3058 echo "configure: failed program was:" >&5
3059 cat conftest.$ac_ext >&5
3060 rm -rf conftest*
3061 eval "ac_cv_func_gethostbyname=no"
3062fi
3063rm -f conftest*
3064fi
3065
3066if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3067 echo "$ac_t""yes" 1>&6
3068 :
3069else
3070 echo "$ac_t""no" 1>&6
3071fi
3072
3073 if test $ac_cv_func_gethostbyname = no; then
3074 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3075echo "configure:3076: checking for gethostbyname in -lnsl" >&5
3076ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3077if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3078 echo $ac_n "(cached) $ac_c" 1>&6
3079else
3080 ac_save_LIBS="$LIBS"
3081LIBS="-lnsl $LIBS"
3082cat > conftest.$ac_ext <<EOF
3083#line 3084 "configure"
3084#include "confdefs.h"
3085/* Override any gcc2 internal prototype to avoid an error. */
3086/* We use char because int might match the return type of a gcc2
3087 builtin and then its argument prototype would still apply. */
3088char gethostbyname();
3089
3090int main() {
3091gethostbyname()
3092; return 0; }
3093EOF
3094if { (eval echo configure:3095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3095 rm -rf conftest*
3096 eval "ac_cv_lib_$ac_lib_var=yes"
3097else
3098 echo "configure: failed program was:" >&5
3099 cat conftest.$ac_ext >&5
3100 rm -rf conftest*
3101 eval "ac_cv_lib_$ac_lib_var=no"
3102fi
3103rm -f conftest*
3104LIBS="$ac_save_LIBS"
3105
3106fi
3107if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3108 echo "$ac_t""yes" 1>&6
3109 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3110else
3111 echo "$ac_t""no" 1>&6
3112fi
3113
3114 fi
3115
3116 # lieder@skyler.mavd.honeywell.com says without -lsocket,
3117 # socket/setsockopt and other routines are undefined under SCO ODT
3118 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
3119 # on later versions), says simon@lia.di.epfl.ch: it contains
3120 # gethostby* variants that don't use the nameserver (or something).
3121 # -lsocket must be given before -lnsl if both are needed.
3122 # We assume that if connect needs -lnsl, so does gethostbyname.
3123 echo $ac_n "checking for connect""... $ac_c" 1>&6
3124echo "configure:3125: checking for connect" >&5
3125if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3126 echo $ac_n "(cached) $ac_c" 1>&6
3127else
3128 cat > conftest.$ac_ext <<EOF
3129#line 3130 "configure"
3130#include "confdefs.h"
3131/* System header to define __stub macros and hopefully few prototypes,
3132 which can conflict with char connect(); below. */
3133#include <assert.h>
3134/* Override any gcc2 internal prototype to avoid an error. */
3135/* We use char because int might match the return type of a gcc2
3136 builtin and then its argument prototype would still apply. */
3137char connect();
3138
3139int main() {
3140
3141/* The GNU C library defines this for functions which it implements
3142 to always fail with ENOSYS. Some functions are actually named
3143 something starting with __ and the normal name is an alias. */
3144#if defined (__stub_connect) || defined (__stub___connect)
3145choke me
3146#else
3147connect();
3148#endif
3149
3150; return 0; }
3151EOF
3152if { (eval echo configure:3153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3153 rm -rf conftest*
3154 eval "ac_cv_func_connect=yes"
3155else
3156 echo "configure: failed program was:" >&5
3157 cat conftest.$ac_ext >&5
3158 rm -rf conftest*
3159 eval "ac_cv_func_connect=no"
3160fi
3161rm -f conftest*
3162fi
3163
3164if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3165 echo "$ac_t""yes" 1>&6
3166 :
3167else
3168 echo "$ac_t""no" 1>&6
3169fi
3170
3171 if test $ac_cv_func_connect = no; then
3172 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3173echo "configure:3174: checking for connect in -lsocket" >&5
3174ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3175if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3176 echo $ac_n "(cached) $ac_c" 1>&6
3177else
3178 ac_save_LIBS="$LIBS"
3179LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3180cat > conftest.$ac_ext <<EOF
3181#line 3182 "configure"
3182#include "confdefs.h"
3183/* Override any gcc2 internal prototype to avoid an error. */
3184/* We use char because int might match the return type of a gcc2
3185 builtin and then its argument prototype would still apply. */
3186char connect();
3187
3188int main() {
3189connect()
3190; return 0; }
3191EOF
3192if { (eval echo configure:3193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3193 rm -rf conftest*
3194 eval "ac_cv_lib_$ac_lib_var=yes"
3195else
3196 echo "configure: failed program was:" >&5
3197 cat conftest.$ac_ext >&5
3198 rm -rf conftest*
3199 eval "ac_cv_lib_$ac_lib_var=no"
3200fi
3201rm -f conftest*
3202LIBS="$ac_save_LIBS"
3203
3204fi
3205if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3206 echo "$ac_t""yes" 1>&6
3207 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3208else
3209 echo "$ac_t""no" 1>&6
3210fi
3211
3212 fi
3213
3214 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
3215 echo $ac_n "checking for remove""... $ac_c" 1>&6
3216echo "configure:3217: checking for remove" >&5
3217if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
3218 echo $ac_n "(cached) $ac_c" 1>&6
3219else
3220 cat > conftest.$ac_ext <<EOF
3221#line 3222 "configure"
3222#include "confdefs.h"
3223/* System header to define __stub macros and hopefully few prototypes,
3224 which can conflict with char remove(); below. */
3225#include <assert.h>
3226/* Override any gcc2 internal prototype to avoid an error. */
3227/* We use char because int might match the return type of a gcc2
3228 builtin and then its argument prototype would still apply. */
3229char remove();
3230
3231int main() {
3232
3233/* The GNU C library defines this for functions which it implements
3234 to always fail with ENOSYS. Some functions are actually named
3235 something starting with __ and the normal name is an alias. */
3236#if defined (__stub_remove) || defined (__stub___remove)
3237choke me
3238#else
3239remove();
3240#endif
3241
3242; return 0; }
3243EOF
3244if { (eval echo configure:3245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3245 rm -rf conftest*
3246 eval "ac_cv_func_remove=yes"
3247else
3248 echo "configure: failed program was:" >&5
3249 cat conftest.$ac_ext >&5
3250 rm -rf conftest*
3251 eval "ac_cv_func_remove=no"
3252fi
3253rm -f conftest*
3254fi
3255
3256if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
3257 echo "$ac_t""yes" 1>&6
3258 :
3259else
3260 echo "$ac_t""no" 1>&6
3261fi
3262
3263 if test $ac_cv_func_remove = no; then
3264 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
3265echo "configure:3266: checking for remove in -lposix" >&5
3266ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
3267if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3268 echo $ac_n "(cached) $ac_c" 1>&6
3269else
3270 ac_save_LIBS="$LIBS"
3271LIBS="-lposix $LIBS"
3272cat > conftest.$ac_ext <<EOF
3273#line 3274 "configure"
3274#include "confdefs.h"
3275/* Override any gcc2 internal prototype to avoid an error. */
3276/* We use char because int might match the return type of a gcc2
3277 builtin and then its argument prototype would still apply. */
3278char remove();
3279
3280int main() {
3281remove()
3282; return 0; }
3283EOF
3284if { (eval echo configure:3285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3285 rm -rf conftest*
3286 eval "ac_cv_lib_$ac_lib_var=yes"
3287else
3288 echo "configure: failed program was:" >&5
3289 cat conftest.$ac_ext >&5
3290 rm -rf conftest*
3291 eval "ac_cv_lib_$ac_lib_var=no"
3292fi
3293rm -f conftest*
3294LIBS="$ac_save_LIBS"
3295
3296fi
3297if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3298 echo "$ac_t""yes" 1>&6
3299 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
3300else
3301 echo "$ac_t""no" 1>&6
3302fi
3303
3304 fi
3305
3306 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
3307 echo $ac_n "checking for shmat""... $ac_c" 1>&6
3308echo "configure:3309: checking for shmat" >&5
3309if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
3310 echo $ac_n "(cached) $ac_c" 1>&6
3311else
3312 cat > conftest.$ac_ext <<EOF
3313#line 3314 "configure"
3314#include "confdefs.h"
3315/* System header to define __stub macros and hopefully few prototypes,
3316 which can conflict with char shmat(); below. */
3317#include <assert.h>
3318/* Override any gcc2 internal prototype to avoid an error. */
3319/* We use char because int might match the return type of a gcc2
3320 builtin and then its argument prototype would still apply. */
3321char shmat();
3322
3323int main() {
3324
3325/* The GNU C library defines this for functions which it implements
3326 to always fail with ENOSYS. Some functions are actually named
3327 something starting with __ and the normal name is an alias. */
3328#if defined (__stub_shmat) || defined (__stub___shmat)
3329choke me
3330#else
3331shmat();
3332#endif
3333
3334; return 0; }
3335EOF
3336if { (eval echo configure:3337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3337 rm -rf conftest*
3338 eval "ac_cv_func_shmat=yes"
3339else
3340 echo "configure: failed program was:" >&5
3341 cat conftest.$ac_ext >&5
3342 rm -rf conftest*
3343 eval "ac_cv_func_shmat=no"
3344fi
3345rm -f conftest*
3346fi
3347
3348if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
3349 echo "$ac_t""yes" 1>&6
3350 :
3351else
3352 echo "$ac_t""no" 1>&6
3353fi
3354
3355 if test $ac_cv_func_shmat = no; then
3356 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
3357echo "configure:3358: checking for shmat in -lipc" >&5
3358ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
3359if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3360 echo $ac_n "(cached) $ac_c" 1>&6
3361else
3362 ac_save_LIBS="$LIBS"
3363LIBS="-lipc $LIBS"
3364cat > conftest.$ac_ext <<EOF
3365#line 3366 "configure"
3366#include "confdefs.h"
3367/* Override any gcc2 internal prototype to avoid an error. */
3368/* We use char because int might match the return type of a gcc2
3369 builtin and then its argument prototype would still apply. */
3370char shmat();
3371
3372int main() {
3373shmat()
3374; return 0; }
3375EOF
3376if { (eval echo configure:3377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3377 rm -rf conftest*
3378 eval "ac_cv_lib_$ac_lib_var=yes"
3379else
3380 echo "configure: failed program was:" >&5
3381 cat conftest.$ac_ext >&5
3382 rm -rf conftest*
3383 eval "ac_cv_lib_$ac_lib_var=no"
3384fi
3385rm -f conftest*
3386LIBS="$ac_save_LIBS"
3387
3388fi
3389if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3390 echo "$ac_t""yes" 1>&6
3391 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
3392else
3393 echo "$ac_t""no" 1>&6
3394fi
3395
3396 fi
3397 fi
3398
3399 # Check for libraries that X11R6 Xt/Xaw programs need.
3400 ac_save_LDFLAGS="$LDFLAGS"
3401 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
3402 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
3403 # check for ICE first), but we must link in the order -lSM -lICE or
3404 # we get undefined symbols. So assume we have SM if we have ICE.
3405 # These have to be linked with before -lX11, unlike the other
3406 # libraries we check for below, so use a different variable.
3407 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
3408 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
3409echo "configure:3410: checking for IceConnectionNumber in -lICE" >&5
3410ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
3411if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3412 echo $ac_n "(cached) $ac_c" 1>&6
3413else
3414 ac_save_LIBS="$LIBS"
3415LIBS="-lICE $X_EXTRA_LIBS $LIBS"
3416cat > conftest.$ac_ext <<EOF
3417#line 3418 "configure"
3418#include "confdefs.h"
3419/* Override any gcc2 internal prototype to avoid an error. */
3420/* We use char because int might match the return type of a gcc2
3421 builtin and then its argument prototype would still apply. */
3422char IceConnectionNumber();
3423
3424int main() {
3425IceConnectionNumber()
3426; return 0; }
3427EOF
3428if { (eval echo configure:3429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3429 rm -rf conftest*
3430 eval "ac_cv_lib_$ac_lib_var=yes"
3431else
3432 echo "configure: failed program was:" >&5
3433 cat conftest.$ac_ext >&5
3434 rm -rf conftest*
3435 eval "ac_cv_lib_$ac_lib_var=no"
3436fi
3437rm -f conftest*
3438LIBS="$ac_save_LIBS"
3439
3440fi
3441if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3442 echo "$ac_t""yes" 1>&6
3443 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
3444else
3445 echo "$ac_t""no" 1>&6
3446fi
3447
3448 LDFLAGS="$ac_save_LDFLAGS"
3449
3450fi
3451
3452
3453 if test "$OS390Unix" = "yes"; then
3454 CFLAGS="$CFLAGS -W c,dll"
3455 LDFLAGS="$LDFLAGS -W l,dll"
3456 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu"
3457 fi
3458
3459
3460 if test -d "$x_includes" && test ! -d "$x_libraries"; then
3461 x_libraries=`echo "$x_includes" | sed s/include/lib/`
3462 echo "$ac_t""Corrected X libraries to $x_libraries" 1>&6
3463 X_LIBS="$X_LIBS -L$x_libraries"
3464 if test "`(uname) 2>/dev/null`" = SunOS &&
3465 uname -r | grep '^5' >/dev/null; then
3466 X_LIBS="$X_LIBS -R $x_libraries"
3467 fi
3468 fi
3469
3470 if test -d "$x_libraries" && test ! -d "$x_includes"; then
3471 x_includes=`echo "$x_libraries" | sed s/lib/include/`
3472 echo "$ac_t""Corrected X includes to $x_includes" 1>&6
3473 X_CFLAGS="$X_CFLAGS -I$x_includes"
3474 fi
3475
3476 X_CFLAGS="`echo $X_CFLAGS\ | sed 's%-I/usr/include %%'`"
3477 X_LIBS="`echo $X_LIBS\ | sed 's%-L/usr/lib %%'`"
3478 X_LIBS="`echo $X_LIBS\ | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`"
3479
3480
3481 echo $ac_n "checking if X11 header files can be found""... $ac_c" 1>&6
3482echo "configure:3483: checking if X11 header files can be found" >&5
3483 cflags_save=$CFLAGS
3484 CFLAGS="$CFLAGS $X_CFLAGS"
3485 cat > conftest.$ac_ext <<EOF
3486#line 3487 "configure"
3487#include "confdefs.h"
3488#include <X11/Xlib.h>
3489int main() {
3490
3491; return 0; }
3492EOF
3493if { (eval echo configure:3494: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3494 rm -rf conftest*
3495 echo "$ac_t""yes" 1>&6
3496else
3497 echo "configure: failed program was:" >&5
3498 cat conftest.$ac_ext >&5
3499 rm -rf conftest*
3500 echo "$ac_t""no" 1>&6; no_x=yes
3501fi
3502rm -f conftest*
3503 CFLAGS=$cflags_save
3504
3505 if test "${no_x-no}" = yes; then
3506 with_x=no
3507 else
3508 cat >> confdefs.h <<\EOF
3509#define HAVE_X11 1
3510EOF
3511
3512 X_LIB="-lXt -lX11";
3513
3514
3515 ac_save_LDFLAGS="$LDFLAGS"
3516 LDFLAGS="-L$x_libraries $LDFLAGS"
3517
3518 echo $ac_n "checking for _XdmcpAuthDoIt in -lXdmcp""... $ac_c" 1>&6
3519echo "configure:3520: checking for _XdmcpAuthDoIt in -lXdmcp" >&5
3520ac_lib_var=`echo Xdmcp'_'_XdmcpAuthDoIt | sed 'y%./+-%__p_%'`
3521if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3522 echo $ac_n "(cached) $ac_c" 1>&6
3523else
3524 ac_save_LIBS="$LIBS"
3525LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS"
3526cat > conftest.$ac_ext <<EOF
3527#line 3528 "configure"
3528#include "confdefs.h"
3529/* Override any gcc2 internal prototype to avoid an error. */
3530/* We use char because int might match the return type of a gcc2
3531 builtin and then its argument prototype would still apply. */
3532char _XdmcpAuthDoIt();
3533
3534int main() {
3535_XdmcpAuthDoIt()
3536; return 0; }
3537EOF
3538if { (eval echo configure:3539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3539 rm -rf conftest*
3540 eval "ac_cv_lib_$ac_lib_var=yes"
3541else
3542 echo "configure: failed program was:" >&5
3543 cat conftest.$ac_ext >&5
3544 rm -rf conftest*
3545 eval "ac_cv_lib_$ac_lib_var=no"
3546fi
3547rm -f conftest*
3548LIBS="$ac_save_LIBS"
3549
3550fi
3551if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3552 echo "$ac_t""yes" 1>&6
3553 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp"
3554else
3555 echo "$ac_t""no" 1>&6
3556fi
3557
3558
3559 echo $ac_n "checking for IceOpenConnection in -lICE""... $ac_c" 1>&6
3560echo "configure:3561: checking for IceOpenConnection in -lICE" >&5
3561ac_lib_var=`echo ICE'_'IceOpenConnection | sed 'y%./+-%__p_%'`
3562if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3563 echo $ac_n "(cached) $ac_c" 1>&6
3564else
3565 ac_save_LIBS="$LIBS"
3566LIBS="-lICE $X_EXTRA_LIBS $LIBS"
3567cat > conftest.$ac_ext <<EOF
3568#line 3569 "configure"
3569#include "confdefs.h"
3570/* Override any gcc2 internal prototype to avoid an error. */
3571/* We use char because int might match the return type of a gcc2
3572 builtin and then its argument prototype would still apply. */
3573char IceOpenConnection();
3574
3575int main() {
3576IceOpenConnection()
3577; return 0; }
3578EOF
3579if { (eval echo configure:3580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3580 rm -rf conftest*
3581 eval "ac_cv_lib_$ac_lib_var=yes"
3582else
3583 echo "configure: failed program was:" >&5
3584 cat conftest.$ac_ext >&5
3585 rm -rf conftest*
3586 eval "ac_cv_lib_$ac_lib_var=no"
3587fi
3588rm -f conftest*
3589LIBS="$ac_save_LIBS"
3590
3591fi
3592if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3593 echo "$ac_t""yes" 1>&6
3594 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE"
3595else
3596 echo "$ac_t""no" 1>&6
3597fi
3598
3599
3600 LDFLAGS="$X_LIBS $ac_save_LDFLAGS"
3601 echo $ac_n "checking for XpmCreatePixmapFromData in -lXpm""... $ac_c" 1>&6
3602echo "configure:3603: checking for XpmCreatePixmapFromData in -lXpm" >&5
3603ac_lib_var=`echo Xpm'_'XpmCreatePixmapFromData | sed 'y%./+-%__p_%'`
3604if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3605 echo $ac_n "(cached) $ac_c" 1>&6
3606else
3607 ac_save_LIBS="$LIBS"
3608LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS"
3609cat > conftest.$ac_ext <<EOF
3610#line 3611 "configure"
3611#include "confdefs.h"
3612/* Override any gcc2 internal prototype to avoid an error. */
3613/* We use char because int might match the return type of a gcc2
3614 builtin and then its argument prototype would still apply. */
3615char XpmCreatePixmapFromData();
3616
3617int main() {
3618XpmCreatePixmapFromData()
3619; return 0; }
3620EOF
3621if { (eval echo configure:3622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3622 rm -rf conftest*
3623 eval "ac_cv_lib_$ac_lib_var=yes"
3624else
3625 echo "configure: failed program was:" >&5
3626 cat conftest.$ac_ext >&5
3627 rm -rf conftest*
3628 eval "ac_cv_lib_$ac_lib_var=no"
3629fi
3630rm -f conftest*
3631LIBS="$ac_save_LIBS"
3632
3633fi
3634if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3635 echo "$ac_t""yes" 1>&6
3636 X_PRE_LIBS="$X_PRE_LIBS -lXpm"
3637else
3638 echo "$ac_t""no" 1>&6
3639fi
3640
3641
3642 echo $ac_n "checking if X11 header files implicitly declare return values""... $ac_c" 1>&6
3643echo "configure:3644: checking if X11 header files implicitly declare return values" >&5
3644 cflags_save=$CFLAGS
3645 CFLAGS="$CFLAGS $X_CFLAGS -Werror"
3646 cat > conftest.$ac_ext <<EOF
3647#line 3648 "configure"
3648#include "confdefs.h"
3649#include <X11/Xlib.h>
3650int main() {
3651
3652; return 0; }
3653EOF
3654if { (eval echo configure:3655: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3655 rm -rf conftest*
3656 echo "$ac_t""no" 1>&6
3657else
3658 echo "configure: failed program was:" >&5
3659 cat conftest.$ac_ext >&5
3660 rm -rf conftest*
3661 CFLAGS="$CFLAGS -Wno-implicit-int"
3662 cat > conftest.$ac_ext <<EOF
3663#line 3664 "configure"
3664#include "confdefs.h"
3665#include <X11/Xlib.h>
3666int main() {
3667
3668; return 0; }
3669EOF
3670if { (eval echo configure:3671: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3671 rm -rf conftest*
3672 echo "$ac_t""yes" 1>&6; cflags_save="$cflags_save -Wno-implicit-int"
3673else
3674 echo "configure: failed program was:" >&5
3675 cat conftest.$ac_ext >&5
3676 rm -rf conftest*
3677 echo "$ac_t""test failed" 1>&6
3678
3679fi
3680rm -f conftest*
3681
3682fi
3683rm -f conftest*
3684 CFLAGS=$cflags_save
3685
3686 LDFLAGS="$ac_save_LDFLAGS"
3687
3688 fi
3689fi
3690
3691test "x$with_x" = xno -a "x$BEOS" != "xyes" -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no
3692
3693echo $ac_n "checking --enable-gui argument""... $ac_c" 1>&6
3694echo "configure:3695: checking --enable-gui argument" >&5
3695# Check whether --enable-gui or --disable-gui was given.
3696if test "${enable_gui+set}" = set; then
3697 enableval="$enable_gui"
3698 :
3699else
3700 enable_gui="auto"
3701fi
3702
3703
3704enable_gui_canon=`echo "_$enable_gui" | \
3705 sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
3706
3707SKIP_GTK=YES
3708SKIP_GTK2=YES
3709SKIP_GNOME=YES
3710SKIP_MOTIF=YES
3711SKIP_ATHENA=YES
3712SKIP_NEXTAW=YES
3713SKIP_PHOTON=YES
3714SKIP_BEOS=YES
3715SKIP_CARBON=YES
3716GUITYPE=NONE
3717
3718if test "x$BEOS" = "xyes"; then
3719 SKIP_BEOS=
3720 case "$enable_gui_canon" in
3721 no) echo "$ac_t""no GUI support" 1>&6
3722 SKIP_BEOS=YES ;;
3723 yes|"") echo "$ac_t""yes - automatic GUI support" 1>&6 ;;
3724 auto) echo "$ac_t""auto - automatic GUI support" 1>&6 ;;
3725 beos) echo "$ac_t""BeOS GUI support" 1>&6 ;;
3726 *) echo "$ac_t""Sorry, $enable_gui GUI is not supported" 1>&6
3727 SKIP_BEOS=YES ;;
3728 esac
3729
3730elif test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then
3731 SKIP_PHOTON=
3732 case "$enable_gui_canon" in
3733 no) echo "$ac_t""no GUI support" 1>&6
3734 SKIP_PHOTON=YES ;;
3735 yes|"") echo "$ac_t""yes - automatic GUI support" 1>&6 ;;
3736 auto) echo "$ac_t""auto - automatic GUI support" 1>&6 ;;
3737 photon) echo "$ac_t""Photon GUI support" 1>&6 ;;
3738 *) echo "$ac_t""Sorry, $enable_gui GUI is not supported" 1>&6
3739 SKIP_PHOTON=YES ;;
3740 esac
3741
3742elif test "x$MACOSX" = "xyes" -a "x$with_x" = "xno" ; then
3743 SKIP_CARBON=
3744 case "$enable_gui_canon" in
3745 no) echo "$ac_t""no GUI support" 1>&6
3746 SKIP_CARBON=YES ;;
3747 yes|"") echo "$ac_t""yes - automatic GUI support" 1>&6 ;;
3748 auto) echo "$ac_t""auto - automatic GUI support" 1>&6 ;;
3749 carbon) echo "$ac_t""Carbon GUI support" 1>&6 ;;
3750 *) echo "$ac_t""Sorry, $enable_gui GUI is not supported" 1>&6
3751 SKIP_CARBON=YES ;;
3752 esac
3753
3754else
3755
3756
3757 case "$enable_gui_canon" in
3758 no|none) echo "$ac_t""no GUI support" 1>&6 ;;
3759 yes|""|auto) echo "$ac_t""yes/auto - automatic GUI support" 1>&6
3760 SKIP_GTK=
3761 SKIP_GTK2=
3762 SKIP_GNOME=
3763 SKIP_MOTIF=
3764 SKIP_ATHENA=
3765 SKIP_NEXTAW=
3766 SKIP_CARBON=;;
3767 gtk) echo "$ac_t""GTK+ 1.x GUI support" 1>&6
3768 SKIP_GTK=;;
3769 gtk2) echo "$ac_t""GTK+ 2.x GUI support" 1>&6
3770 SKIP_GTK=
3771 SKIP_GTK2=;;
3772 gnome) echo "$ac_t""GNOME 1.x GUI support" 1>&6
3773 SKIP_GNOME=
3774 SKIP_GTK=;;
3775 gnome2) echo "$ac_t""GNOME 2.x GUI support" 1>&6
3776 SKIP_GNOME=
3777 SKIP_GTK=
3778 SKIP_GTK2=;;
3779 motif) echo "$ac_t""Motif GUI support" 1>&6
3780 SKIP_MOTIF=;;
3781 athena) echo "$ac_t""Athena GUI support" 1>&6
3782 SKIP_ATHENA=;;
3783 nextaw) echo "$ac_t""neXtaw GUI support" 1>&6
3784 SKIP_NEXTAW=;;
3785 *) echo "$ac_t""Sorry, $enable_gui GUI is not supported" 1>&6 ;;
3786 esac
3787
3788fi
3789
3790if test "x$SKIP_GTK" != "xYES" -a "$enable_gui_canon" != "gtk" -a "$enable_gui_canon" != "gtk2"; then
3791 echo $ac_n "checking whether or not to look for GTK""... $ac_c" 1>&6
3792echo "configure:3793: checking whether or not to look for GTK" >&5
3793 # Check whether --enable-gtk-check or --disable-gtk-check was given.
3794if test "${enable_gtk_check+set}" = set; then
3795 enableval="$enable_gtk_check"
3796 :
3797else
3798 enable_gtk_check="yes"
3799fi
3800
3801 echo "$ac_t""$enable_gtk_check" 1>&6
3802 if test "x$enable_gtk_check" = "xno"; then
3803 SKIP_GTK=YES
3804 SKIP_GNOME=YES
3805 fi
3806fi
3807
3808if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \
3809 -a "$enable_gui_canon" != "gnome2"; then
3810 echo $ac_n "checking whether or not to look for GTK+ 2""... $ac_c" 1>&6
3811echo "configure:3812: checking whether or not to look for GTK+ 2" >&5
3812 # Check whether --enable-gtk2-check or --disable-gtk2-check was given.
3813if test "${enable_gtk2_check+set}" = set; then
3814 enableval="$enable_gtk2_check"
3815 :
3816else
3817 enable_gtk2_check="yes"
3818fi
3819
3820 echo "$ac_t""$enable_gtk2_check" 1>&6
3821 if test "x$enable_gtk2_check" = "xno"; then
3822 SKIP_GTK2=YES
3823 fi
3824fi
3825
3826if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome" \
3827 -a "$enable_gui_canon" != "gnome2"; then
3828 echo $ac_n "checking whether or not to look for GNOME""... $ac_c" 1>&6
3829echo "configure:3830: checking whether or not to look for GNOME" >&5
3830 # Check whether --enable-gnome-check or --disable-gnome-check was given.
3831if test "${enable_gnome_check+set}" = set; then
3832 enableval="$enable_gnome_check"
3833 :
3834else
3835 enable_gnome_check="no"
3836fi
3837
3838 echo "$ac_t""$enable_gnome_check" 1>&6
3839 if test "x$enable_gnome_check" = "xno"; then
3840 SKIP_GNOME=YES
3841 fi
3842fi
3843
3844if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then
3845 echo $ac_n "checking whether or not to look for Motif""... $ac_c" 1>&6
3846echo "configure:3847: checking whether or not to look for Motif" >&5
3847 # Check whether --enable-motif-check or --disable-motif-check was given.
3848if test "${enable_motif_check+set}" = set; then
3849 enableval="$enable_motif_check"
3850 :
3851else
3852 enable_motif_check="yes"
3853fi
3854
3855 echo "$ac_t""$enable_motif_check" 1>&6
3856 if test "x$enable_motif_check" = "xno"; then
3857 SKIP_MOTIF=YES
3858 fi
3859fi
3860
3861if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then
3862 echo $ac_n "checking whether or not to look for Athena""... $ac_c" 1>&6
3863echo "configure:3864: checking whether or not to look for Athena" >&5
3864 # Check whether --enable-athena-check or --disable-athena-check was given.
3865if test "${enable_athena_check+set}" = set; then
3866 enableval="$enable_athena_check"
3867 :
3868else
3869 enable_athena_check="yes"
3870fi
3871
3872 echo "$ac_t""$enable_athena_check" 1>&6
3873 if test "x$enable_athena_check" = "xno"; then
3874 SKIP_ATHENA=YES
3875 fi
3876fi
3877
3878if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then
3879 echo $ac_n "checking whether or not to look for neXtaw""... $ac_c" 1>&6
3880echo "configure:3881: checking whether or not to look for neXtaw" >&5
3881 # Check whether --enable-nextaw-check or --disable-nextaw-check was given.
3882if test "${enable_nextaw_check+set}" = set; then
3883 enableval="$enable_nextaw_check"
3884 :
3885else
3886 enable_nextaw_check="yes"
3887fi
3888
3889 echo "$ac_t""$enable_nextaw_check" 1>&6;
3890 if test "x$enable_nextaw_check" = "xno"; then
3891 SKIP_NEXTAW=YES
3892 fi
3893fi
3894
3895if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then
3896 echo $ac_n "checking whether or not to look for Carbon""... $ac_c" 1>&6
3897echo "configure:3898: checking whether or not to look for Carbon" >&5
3898 # Check whether --enable-carbon-check or --disable-carbon-check was given.
3899if test "${enable_carbon_check+set}" = set; then
3900 enableval="$enable_carbon_check"
3901 :
3902else
3903 enable_carbon_check="yes"
3904fi
3905
3906 echo "$ac_t""$enable_carbon_check" 1>&6;
3907 if test "x$enable_carbon_check" = "xno"; then
3908 SKIP_CARBON=YES
3909 fi
3910fi
3911
3912if test "x$MACOSX" = "xyes" -a -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then
3913 echo $ac_n "checking for Carbon GUI""... $ac_c" 1>&6
3914echo "configure:3915: checking for Carbon GUI" >&5
3915 echo "$ac_t""yes" 1>&6;
3916 GUITYPE=CARBONGUI
3917 SKIP_GTK=YES;
3918 SKIP_GTK2=YES;
3919 SKIP_GNOME=YES;
3920 SKIP_MOTIF=YES;
3921 SKIP_ATHENA=YES;
3922 SKIP_NEXTAW=YES;
3923 SKIP_PHOTON=YES;
3924 SKIP_BEOS=YES;
3925 SKIP_CARBON=YES
3926fi
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937if test -z "$SKIP_GTK"; then
3938
3939 echo $ac_n "checking --with-gtk-prefix argument""... $ac_c" 1>&6
3940echo "configure:3941: checking --with-gtk-prefix argument" >&5
3941 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
3942if test "${with_gtk_prefix+set}" = set; then
3943 withval="$with_gtk_prefix"
3944 gtk_config_prefix="$withval"; echo "$ac_t""$gtk_config_prefix" 1>&6
3945else
3946 gtk_config_prefix=""; echo "$ac_t""no" 1>&6
3947fi
3948
3949
3950 echo $ac_n "checking --with-gtk-exec-prefix argument""... $ac_c" 1>&6
3951echo "configure:3952: checking --with-gtk-exec-prefix argument" >&5
3952 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
3953if test "${with_gtk_exec_prefix+set}" = set; then
3954 withval="$with_gtk_exec_prefix"
3955 gtk_config_exec_prefix="$withval"; echo "$ac_t""$gtk_config_prefix" 1>&6
3956else
3957 gtk_config_exec_prefix=""; echo "$ac_t""no" 1>&6
3958fi
3959
3960
3961 echo $ac_n "checking --disable-gtktest argument""... $ac_c" 1>&6
3962echo "configure:3963: checking --disable-gtktest argument" >&5
3963 # Check whether --enable-gtktest or --disable-gtktest was given.
3964if test "${enable_gtktest+set}" = set; then
3965 enableval="$enable_gtktest"
3966 :
3967else
3968 enable_gtktest=yes
3969fi
3970
3971 if test "x$enable_gtktest" = "xyes" ; then
3972 echo "$ac_t""gtk test enabled" 1>&6
3973 else
3974 echo "$ac_t""gtk test disabled" 1>&6
3975 fi
3976
3977 if test "x$gtk_config_prefix" != "x" ; then
3978 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
3979 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
3980 fi
3981 if test "x$gtk_config_exec_prefix" != "x" ; then
3982 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
3983 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
3984 fi
3985 if test "X$GTK_CONFIG" = "X"; then
3986 # Extract the first word of "gtk-config", so it can be a program name with args.
3987set dummy gtk-config; ac_word=$2
3988echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3989echo "configure:3990: checking for $ac_word" >&5
3990if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
3991 echo $ac_n "(cached) $ac_c" 1>&6
3992else
3993 case "$GTK_CONFIG" in
3994 /*)
3995 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
3996 ;;
3997 ?:/*)
3998 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
3999 ;;
4000 *)
4001 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4002 ac_dummy="$PATH"
4003 for ac_dir in $ac_dummy; do
4004 test -z "$ac_dir" && ac_dir=.
4005 if test -f $ac_dir/$ac_word; then
4006 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
4007 break
4008 fi
4009 done
4010 IFS="$ac_save_ifs"
4011 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
4012 ;;
4013esac
4014fi
4015GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
4016if test -n "$GTK_CONFIG"; then
4017 echo "$ac_t""$GTK_CONFIG" 1>&6
4018else
4019 echo "$ac_t""no" 1>&6
4020fi
4021
4022 if test "X$GTK_CONFIG" = "Xno"; then
4023 # Extract the first word of "gtk12-config", so it can be a program name with args.
4024set dummy gtk12-config; ac_word=$2
4025echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4026echo "configure:4027: checking for $ac_word" >&5
4027if eval "test \"`echo '$''{'ac_cv_path_GTK12_CONFIG'+set}'`\" = set"; then
4028 echo $ac_n "(cached) $ac_c" 1>&6
4029else
4030 case "$GTK12_CONFIG" in
4031 /*)
4032 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
4033 ;;
4034 ?:/*)
4035 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a dos path.
4036 ;;
4037 *)
4038 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4039 ac_dummy="$PATH"
4040 for ac_dir in $ac_dummy; do
4041 test -z "$ac_dir" && ac_dir=.
4042 if test -f $ac_dir/$ac_word; then
4043 ac_cv_path_GTK12_CONFIG="$ac_dir/$ac_word"
4044 break
4045 fi
4046 done
4047 IFS="$ac_save_ifs"
4048 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
4049 ;;
4050esac
4051fi
4052GTK12_CONFIG="$ac_cv_path_GTK12_CONFIG"
4053if test -n "$GTK12_CONFIG"; then
4054 echo "$ac_t""$GTK12_CONFIG" 1>&6
4055else
4056 echo "$ac_t""no" 1>&6
4057fi
4058
4059 GTK_CONFIG="$GTK12_CONFIG"
4060 fi
4061 else
4062 echo "$ac_t""Using GTK configuration program $GTK_CONFIG" 1>&6
4063 fi
4064 if test "X$PKG_CONFIG" = "X"; then
4065 # Extract the first word of "pkg-config", so it can be a program name with args.
4066set dummy pkg-config; ac_word=$2
4067echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4068echo "configure:4069: checking for $ac_word" >&5
4069if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
4070 echo $ac_n "(cached) $ac_c" 1>&6
4071else
4072 case "$PKG_CONFIG" in
4073 /*)
4074 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4075 ;;
4076 ?:/*)
4077 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
4078 ;;
4079 *)
4080 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4081 ac_dummy="$PATH"
4082 for ac_dir in $ac_dummy; do
4083 test -z "$ac_dir" && ac_dir=.
4084 if test -f $ac_dir/$ac_word; then
4085 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
4086 break
4087 fi
4088 done
4089 IFS="$ac_save_ifs"
4090 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
4091 ;;
4092esac
4093fi
4094PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4095if test -n "$PKG_CONFIG"; then
4096 echo "$ac_t""$PKG_CONFIG" 1>&6
4097else
4098 echo "$ac_t""no" 1>&6
4099fi
4100
4101 fi
4102
4103 if test "x$GTK_CONFIG:$PKG_CONFIG" != "xno:no"; then
4104 if test "X$SKIP_GTK2" != "XYES"; then
4105
4106 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
4107 {
4108 min_gtk_version=2.2.0
4109 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
4110echo "configure:4111: checking for GTK - version >= $min_gtk_version" >&5
4111 no_gtk=""
4112 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
4113 && $PKG_CONFIG --exists gtk+-2.0; then
4114 {
4115 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
4116 GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
4117 gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
4118 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
4119 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
4120 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
4121 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
4122 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
4123 }
4124 elif test "X$GTK_CONFIG" != "Xno"; then
4125 {
4126 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
4127 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
4128 gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
4129 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
4130 gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
4131 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
4132 gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
4133 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
4134 }
4135 else
4136 no_gtk=yes
4137 fi
4138
4139 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
4140 {
4141 ac_save_CFLAGS="$CFLAGS"
4142 ac_save_LIBS="$LIBS"
4143 CFLAGS="$CFLAGS $GTK_CFLAGS"
4144 LIBS="$LIBS $GTK_LIBS"
4145
4146 rm -f conf.gtktest
4147 if test "$cross_compiling" = yes; then
4148 echo $ac_n "cross compiling; assumed OK... $ac_c"
4149else
4150 cat > conftest.$ac_ext <<EOF
4151#line 4152 "configure"
4152#include "confdefs.h"
4153
4154#include <gtk/gtk.h>
4155#include <stdio.h>
4156
4157int
4158main ()
4159{
4160int major, minor, micro;
4161char *tmp_version;
4162
4163system ("touch conf.gtktest");
4164
4165/* HP/UX 9 (%@#!) writes to sscanf strings */
4166tmp_version = g_strdup("$min_gtk_version");
4167if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
4168 printf("%s, bad version string\n", "$min_gtk_version");
4169 exit(1);
4170 }
4171
4172if ((gtk_major_version > major) ||
4173 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
4174 ((gtk_major_version == major) && (gtk_minor_version == minor) &&
4175 (gtk_micro_version >= micro)))
4176{
4177 return 0;
4178}
4179return 1;
4180}
4181
4182EOF
4183if { (eval echo configure:4184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4184then
4185 :
4186else
4187 echo "configure: failed program was:" >&5
4188 cat conftest.$ac_ext >&5
4189 rm -fr conftest*
4190 no_gtk=yes
4191fi
4192rm -fr conftest*
4193fi
4194
4195 CFLAGS="$ac_save_CFLAGS"
4196 LIBS="$ac_save_LIBS"
4197 }
4198 fi
4199 if test "x$no_gtk" = x ; then
4200 if test "x$enable_gtktest" = "xyes"; then
4201 echo "$ac_t""yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" 1>&6
4202 else
4203 echo "$ac_t""found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" 1>&6
4204 fi
4205 GTK_LIBNAME="$GTK_LIBS"
4206 GUI_INC_LOC="$GTK_CFLAGS"
4207 else
4208 {
4209 echo "$ac_t""no" 1>&6
4210 GTK_CFLAGS=""
4211 GTK_LIBS=""
4212 :
4213 }
4214 fi
4215 }
4216 else
4217 GTK_CFLAGS=""
4218 GTK_LIBS=""
4219 :
4220 fi
4221
4222
4223 rm -f conf.gtktest
4224
4225 if test "x$GTK_CFLAGS" != "x"; then
4226 SKIP_ATHENA=YES
4227 SKIP_NEXTAW=YES
4228 SKIP_MOTIF=YES
4229 GUITYPE=GTK
4230
4231 fi
4232 fi
4233
4234 if test "x$GUITYPE" != "xGTK"; then
4235 SKIP_GTK2=YES
4236
4237 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
4238 {
4239 min_gtk_version=1.1.16
4240 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
4241echo "configure:4242: checking for GTK - version >= $min_gtk_version" >&5
4242 no_gtk=""
4243 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
4244 && $PKG_CONFIG --exists gtk+-2.0; then
4245 {
4246 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
4247 GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
4248 gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
4249 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
4250 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
4251 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
4252 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
4253 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
4254 }
4255 elif test "X$GTK_CONFIG" != "Xno"; then
4256 {
4257 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
4258 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
4259 gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
4260 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
4261 gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
4262 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
4263 gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
4264 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
4265 }
4266 else
4267 no_gtk=yes
4268 fi
4269
4270 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
4271 {
4272 ac_save_CFLAGS="$CFLAGS"
4273 ac_save_LIBS="$LIBS"
4274 CFLAGS="$CFLAGS $GTK_CFLAGS"
4275 LIBS="$LIBS $GTK_LIBS"
4276
4277 rm -f conf.gtktest
4278 if test "$cross_compiling" = yes; then
4279 echo $ac_n "cross compiling; assumed OK... $ac_c"
4280else
4281 cat > conftest.$ac_ext <<EOF
4282#line 4283 "configure"
4283#include "confdefs.h"
4284
4285#include <gtk/gtk.h>
4286#include <stdio.h>
4287
4288int
4289main ()
4290{
4291int major, minor, micro;
4292char *tmp_version;
4293
4294system ("touch conf.gtktest");
4295
4296/* HP/UX 9 (%@#!) writes to sscanf strings */
4297tmp_version = g_strdup("$min_gtk_version");
4298if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
4299 printf("%s, bad version string\n", "$min_gtk_version");
4300 exit(1);
4301 }
4302
4303if ((gtk_major_version > major) ||
4304 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
4305 ((gtk_major_version == major) && (gtk_minor_version == minor) &&
4306 (gtk_micro_version >= micro)))
4307{
4308 return 0;
4309}
4310return 1;
4311}
4312
4313EOF
4314if { (eval echo configure:4315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4315then
4316 :
4317else
4318 echo "configure: failed program was:" >&5
4319 cat conftest.$ac_ext >&5
4320 rm -fr conftest*
4321 no_gtk=yes
4322fi
4323rm -fr conftest*
4324fi
4325
4326 CFLAGS="$ac_save_CFLAGS"
4327 LIBS="$ac_save_LIBS"
4328 }
4329 fi
4330 if test "x$no_gtk" = x ; then
4331 if test "x$enable_gtktest" = "xyes"; then
4332 echo "$ac_t""yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" 1>&6
4333 else
4334 echo "$ac_t""found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" 1>&6
4335 fi
4336 GTK_LIBNAME="$GTK_LIBS"
4337 GUI_INC_LOC="$GTK_CFLAGS"
4338 else
4339 {
4340 echo "$ac_t""no" 1>&6
4341 GTK_CFLAGS=""
4342 GTK_LIBS=""
4343 :
4344 }
4345 fi
4346 }
4347 else
4348 GTK_CFLAGS=""
4349 GTK_LIBS=""
4350 :
4351 fi
4352
4353
4354 rm -f conf.gtktest
4355
4356 if test "x$GTK_CFLAGS" != "x"; then
4357 SKIP_ATHENA=YES
4358 SKIP_NEXTAW=YES
4359 SKIP_MOTIF=YES
4360 GUITYPE=GTK
4361
4362 fi
4363 fi
4364 fi
4365 if test "x$GUITYPE" = "xGTK"; then
4366 if test "$gtk_major_version" = 1 -a "0$gtk_minor_version" -lt 2 \
4367 -o "$gtk_major_version" = 1 -a "$gtk_minor_version" = 2 -a "0$gtk_micro_version" -lt 3; then
4368 echo "$ac_t""this GTK version is old; version 1.2.3 or later is recommended" 1>&6
4369 else
4370 {
4371 if test "0$gtk_major_version" -ge 2; then
4372 cat >> confdefs.h <<\EOF
4373#define HAVE_GTK2 1
4374EOF
4375
4376 if test "$gtk_minor_version" = 1 -a "0$gtk_micro_version" -ge 1 \
4377 || test "0$gtk_minor_version" -ge 2 \
4378 || test "0$gtk_major_version" -gt 2; then
4379 cat >> confdefs.h <<\EOF
4380#define HAVE_GTK_MULTIHEAD 1
4381EOF
4382
4383 fi
4384 fi
4385 if test -z "$SKIP_GNOME"; then
4386 {
4387
4388
4389
4390
4391
4392 # Check whether --with-gnome-includes or --without-gnome-includes was given.
4393if test "${with_gnome_includes+set}" = set; then
4394 withval="$with_gnome_includes"
4395 CFLAGS="$CFLAGS -I$withval"
4396
4397fi
4398
4399
4400 # Check whether --with-gnome-libs or --without-gnome-libs was given.
4401if test "${with_gnome_libs+set}" = set; then
4402 withval="$with_gnome_libs"
4403 LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval
4404
4405fi
4406
4407
4408 # Check whether --with-gnome or --without-gnome was given.
4409if test "${with_gnome+set}" = set; then
4410 withval="$with_gnome"
4411 if test x$withval = xyes; then
4412 want_gnome=yes
4413 have_gnome=yes
4414 else
4415 if test "x$withval" = xno; then
4416 want_gnome=no
4417 else
4418 want_gnome=yes
4419 LDFLAGS="$LDFLAGS -L$withval/lib"
4420 CFLAGS="$CFLAGS -I$withval/include"
4421 gnome_prefix=$withval/lib
4422 fi
4423 fi
4424else
4425 want_gnome=yes
4426fi
4427
4428
4429 if test "x$want_gnome" = xyes -a "0$gtk_major_version" -ge 2; then
4430 {
4431 echo $ac_n "checking for libgnomeui-2.0""... $ac_c" 1>&6
4432echo "configure:4433: checking for libgnomeui-2.0" >&5
4433 if $PKG_CONFIG --exists libgnomeui-2.0; then
4434 echo "$ac_t""yes" 1>&6
4435 GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0`
4436 GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0`
4437 GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0`
4438 have_gnome=yes
4439 else
4440 echo "$ac_t""not found" 1>&6
4441 if test "x" = xfail; then
4442 { echo "configure: error: Could not find libgnomeui-2.0 via pkg-config" 1>&2; exit 1; }
4443 fi
4444 fi
4445 }
4446 elif test "x$want_gnome" = xyes; then
4447 {
4448 # Extract the first word of "gnome-config", so it can be a program name with args.
4449set dummy gnome-config; ac_word=$2
4450echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4451echo "configure:4452: checking for $ac_word" >&5
4452if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
4453 echo $ac_n "(cached) $ac_c" 1>&6
4454else
4455 case "$GNOME_CONFIG" in
4456 /*)
4457 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
4458 ;;
4459 ?:/*)
4460 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
4461 ;;
4462 *)
4463 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4464 ac_dummy="$PATH"
4465 for ac_dir in $ac_dummy; do
4466 test -z "$ac_dir" && ac_dir=.
4467 if test -f $ac_dir/$ac_word; then
4468 ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
4469 break
4470 fi
4471 done
4472 IFS="$ac_save_ifs"
4473 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
4474 ;;
4475esac
4476fi
4477GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
4478if test -n "$GNOME_CONFIG"; then
4479 echo "$ac_t""$GNOME_CONFIG" 1>&6
4480else
4481 echo "$ac_t""no" 1>&6
4482fi
4483
4484 if test "$GNOME_CONFIG" = "no"; then
4485 no_gnome_config="yes"
4486 else
4487 echo $ac_n "checking if $GNOME_CONFIG works""... $ac_c" 1>&6
4488echo "configure:4489: checking if $GNOME_CONFIG works" >&5
4489 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
4490 echo "$ac_t""yes" 1>&6
4491 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome gnomeui`"
4492 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
4493 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
4494 have_gnome=yes
4495 else
4496 echo "$ac_t""no" 1>&6
4497 no_gnome_config="yes"
4498 fi
4499 fi
4500
4501 if test x$exec_prefix = xNONE; then
4502 if test x$prefix = xNONE; then
4503 gnome_prefix=$ac_default_prefix/lib
4504 else
4505 gnome_prefix=$prefix/lib
4506 fi
4507 else
4508 gnome_prefix=`eval echo \`echo $libdir\``
4509 fi
4510
4511 if test "$no_gnome_config" = "yes"; then
4512 echo $ac_n "checking for gnomeConf.sh file in $gnome_prefix""... $ac_c" 1>&6
4513echo "configure:4514: checking for gnomeConf.sh file in $gnome_prefix" >&5
4514 if test -f $gnome_prefix/gnomeConf.sh; then
4515 echo "$ac_t""found" 1>&6
4516 echo "loading gnome configuration from" \
4517 "$gnome_prefix/gnomeConf.sh"
4518 . $gnome_prefix/gnomeConf.sh
4519 have_gnome=yes
4520 else
4521 echo "$ac_t""not found" 1>&6
4522 if test x = xfail; then
4523 { echo "configure: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" 1>&2; exit 1; }
4524 fi
4525 fi
4526 fi
4527 }
4528 fi
4529
4530 if test x$have_gnome = xyes ; then
4531 cat >> confdefs.h <<\EOF
4532#define FEAT_GUI_GNOME 1
4533EOF
4534
4535 GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR"
4536 GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS"
4537 fi
4538 }
4539 fi
4540 }
4541 fi
4542 fi
4543fi
4544
4545
4546if test -z "$SKIP_MOTIF"; then
4547 gui_XXX="/usr/XXX/Motif* /usr/Motif*/XXX /usr/XXX /usr/shlib /usr/X11*/XXX /usr/XXX/X11* /usr/dt/XXX /local/Motif*/XXX /local/XXX/Motif* /usr/local/Motif*/XXX /usr/local/XXX/Motif* /usr/local/XXX /usr/local/X11*/XXX /usr/local/LessTif/Motif*/XXX $MOTIFHOME/XXX"
4548 GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`"
4549
4550 echo $ac_n "checking for location of Motif GUI includes""... $ac_c" 1>&6
4551echo "configure:4552: checking for location of Motif GUI includes" >&5
4552 gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC"
4553 GUI_INC_LOC=
4554 for try in $gui_includes; do
4555 if test -f "$try/Xm/Xm.h"; then
4556 GUI_INC_LOC=$try
4557 fi
4558 done
4559 if test -n "$GUI_INC_LOC"; then
4560 if test "$GUI_INC_LOC" = /usr/include; then
4561 GUI_INC_LOC=
4562 echo "$ac_t""in default path" 1>&6
4563 else
4564 echo "$ac_t""$GUI_INC_LOC" 1>&6
4565 fi
4566 else
4567 echo "$ac_t""<not found>" 1>&6
4568 SKIP_MOTIF=YES
4569 fi
4570fi
4571
4572
4573if test -z "$SKIP_MOTIF"; then
4574 echo $ac_n "checking --with-motif-lib argument""... $ac_c" 1>&6
4575echo "configure:4576: checking --with-motif-lib argument" >&5
4576 # Check whether --with-motif-lib or --without-motif-lib was given.
4577if test "${with_motif_lib+set}" = set; then
4578 withval="$with_motif_lib"
4579 MOTIF_LIBNAME="${withval}"
4580fi
4581
4582
4583 if test -n "$MOTIF_LIBNAME"; then
4584 echo "$ac_t""$MOTIF_LIBNAME" 1>&6
4585 GUI_LIB_LOC=
4586 else
4587 echo "$ac_t""no" 1>&6
4588
4589 GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`"
4590
4591 echo $ac_n "checking for location of Motif GUI libs""... $ac_c" 1>&6
4592echo "configure:4593: checking for location of Motif GUI libs" >&5
4593 gui_libs="`echo $x_libraries|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/lib/g` `echo "$GUI_INC_LOC" | sed s/include/lib/` $GUI_LIB_LOC"
4594 GUI_LIB_LOC=
4595 for try in $gui_libs; do
4596 for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl; do
4597 if test -f "$libtry"; then
4598 GUI_LIB_LOC=$try
4599 fi
4600 done
4601 done
4602 if test -n "$GUI_LIB_LOC"; then
4603 if test "$GUI_LIB_LOC" = /usr/lib; then
4604 GUI_LIB_LOC=
4605 echo "$ac_t""in default path" 1>&6
4606 else
4607 if test -n "$GUI_LIB_LOC"; then
4608 echo "$ac_t""$GUI_LIB_LOC" 1>&6
4609 if test "`(uname) 2>/dev/null`" = SunOS &&
4610 uname -r | grep '^5' >/dev/null; then
4611 GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC"
4612 fi
4613 fi
4614 fi
4615 MOTIF_LIBNAME=-lXm
4616 else
4617 echo "$ac_t""<not found>" 1>&6
4618 SKIP_MOTIF=YES
4619 fi
4620 fi
4621fi
4622
4623if test -z "$SKIP_MOTIF"; then
4624 SKIP_ATHENA=YES
4625 SKIP_NEXTAW=YES
4626 GUITYPE=MOTIF
4627
4628fi
4629
4630
4631GUI_X_LIBS=
4632
4633if test -z "$SKIP_ATHENA"; then
4634 echo $ac_n "checking if Athena header files can be found""... $ac_c" 1>&6
4635echo "configure:4636: checking if Athena header files can be found" >&5
4636 cflags_save=$CFLAGS
4637 CFLAGS="$CFLAGS $X_CFLAGS"
4638 cat > conftest.$ac_ext <<EOF
4639#line 4640 "configure"
4640#include "confdefs.h"
4641
4642#include <X11/Intrinsic.h>
4643#include <X11/Xaw/Paned.h>
4644int main() {
4645
4646; return 0; }
4647EOF
4648if { (eval echo configure:4649: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4649 rm -rf conftest*
4650 echo "$ac_t""yes" 1>&6
4651else
4652 echo "configure: failed program was:" >&5
4653 cat conftest.$ac_ext >&5
4654 rm -rf conftest*
4655 echo "$ac_t""no" 1>&6; SKIP_ATHENA=YES
4656fi
4657rm -f conftest*
4658 CFLAGS=$cflags_save
4659fi
4660
4661if test -z "$SKIP_ATHENA"; then
4662 GUITYPE=ATHENA
4663fi
4664
4665if test -z "$SKIP_NEXTAW"; then
4666 echo $ac_n "checking if neXtaw header files can be found""... $ac_c" 1>&6
4667echo "configure:4668: checking if neXtaw header files can be found" >&5
4668 cflags_save=$CFLAGS
4669 CFLAGS="$CFLAGS $X_CFLAGS"
4670 cat > conftest.$ac_ext <<EOF
4671#line 4672 "configure"
4672#include "confdefs.h"
4673
4674#include <X11/Intrinsic.h>
4675#include <X11/neXtaw/Paned.h>
4676int main() {
4677
4678; return 0; }
4679EOF
4680if { (eval echo configure:4681: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4681 rm -rf conftest*
4682 echo "$ac_t""yes" 1>&6
4683else
4684 echo "configure: failed program was:" >&5
4685 cat conftest.$ac_ext >&5
4686 rm -rf conftest*
4687 echo "$ac_t""no" 1>&6; SKIP_NEXTAW=YES
4688fi
4689rm -f conftest*
4690 CFLAGS=$cflags_save
4691fi
4692
4693if test -z "$SKIP_NEXTAW"; then
4694 GUITYPE=NEXTAW
4695fi
4696
4697if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
4698 if test -n "$GUI_INC_LOC"; then
4699 GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`"
4700 fi
4701 if test -n "$GUI_LIB_LOC"; then
4702 GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`"
4703 fi
4704
4705 ldflags_save=$LDFLAGS
4706 LDFLAGS="$X_LIBS $LDFLAGS"
4707 echo $ac_n "checking for XShapeQueryExtension in -lXext""... $ac_c" 1>&6
4708echo "configure:4709: checking for XShapeQueryExtension in -lXext" >&5
4709ac_lib_var=`echo Xext'_'XShapeQueryExtension | sed 'y%./+-%__p_%'`
4710if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4711 echo $ac_n "(cached) $ac_c" 1>&6
4712else
4713 ac_save_LIBS="$LIBS"
4714LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
4715cat > conftest.$ac_ext <<EOF
4716#line 4717 "configure"
4717#include "confdefs.h"
4718/* Override any gcc2 internal prototype to avoid an error. */
4719/* We use char because int might match the return type of a gcc2
4720 builtin and then its argument prototype would still apply. */
4721char XShapeQueryExtension();
4722
4723int main() {
4724XShapeQueryExtension()
4725; return 0; }
4726EOF
4727if { (eval echo configure:4728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4728 rm -rf conftest*
4729 eval "ac_cv_lib_$ac_lib_var=yes"
4730else
4731 echo "configure: failed program was:" >&5
4732 cat conftest.$ac_ext >&5
4733 rm -rf conftest*
4734 eval "ac_cv_lib_$ac_lib_var=no"
4735fi
4736rm -f conftest*
4737LIBS="$ac_save_LIBS"
4738
4739fi
4740if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4741 echo "$ac_t""yes" 1>&6
4742 GUI_X_LIBS="-lXext"
4743else
4744 echo "$ac_t""no" 1>&6
4745fi
4746
4747 echo $ac_n "checking for wslen in -lw""... $ac_c" 1>&6
4748echo "configure:4749: checking for wslen in -lw" >&5
4749ac_lib_var=`echo w'_'wslen | sed 'y%./+-%__p_%'`
4750if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4751 echo $ac_n "(cached) $ac_c" 1>&6
4752else
4753 ac_save_LIBS="$LIBS"
4754LIBS="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
4755cat > conftest.$ac_ext <<EOF
4756#line 4757 "configure"
4757#include "confdefs.h"
4758/* Override any gcc2 internal prototype to avoid an error. */
4759/* We use char because int might match the return type of a gcc2
4760 builtin and then its argument prototype would still apply. */
4761char wslen();
4762
4763int main() {
4764wslen()
4765; return 0; }
4766EOF
4767if { (eval echo configure:4768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4768 rm -rf conftest*
4769 eval "ac_cv_lib_$ac_lib_var=yes"
4770else
4771 echo "configure: failed program was:" >&5
4772 cat conftest.$ac_ext >&5
4773 rm -rf conftest*
4774 eval "ac_cv_lib_$ac_lib_var=no"
4775fi
4776rm -f conftest*
4777LIBS="$ac_save_LIBS"
4778
4779fi
4780if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4781 echo "$ac_t""yes" 1>&6
4782 X_EXTRA_LIBS="$X_EXTRA_LIBS -lw"
4783else
4784 echo "$ac_t""no" 1>&6
4785fi
4786
4787 echo $ac_n "checking for dlsym in -ldl""... $ac_c" 1>&6
4788echo "configure:4789: checking for dlsym in -ldl" >&5
4789ac_lib_var=`echo dl'_'dlsym | sed 'y%./+-%__p_%'`
4790if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4791 echo $ac_n "(cached) $ac_c" 1>&6
4792else
4793 ac_save_LIBS="$LIBS"
4794LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
4795cat > conftest.$ac_ext <<EOF
4796#line 4797 "configure"
4797#include "confdefs.h"
4798/* Override any gcc2 internal prototype to avoid an error. */
4799/* We use char because int might match the return type of a gcc2
4800 builtin and then its argument prototype would still apply. */
4801char dlsym();
4802
4803int main() {
4804dlsym()
4805; return 0; }
4806EOF
4807if { (eval echo configure:4808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4808 rm -rf conftest*
4809 eval "ac_cv_lib_$ac_lib_var=yes"
4810else
4811 echo "configure: failed program was:" >&5
4812 cat conftest.$ac_ext >&5
4813 rm -rf conftest*
4814 eval "ac_cv_lib_$ac_lib_var=no"
4815fi
4816rm -f conftest*
4817LIBS="$ac_save_LIBS"
4818
4819fi
4820if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4821 echo "$ac_t""yes" 1>&6
4822 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl"
4823else
4824 echo "$ac_t""no" 1>&6
4825fi
4826
4827 echo $ac_n "checking for XmuCreateStippledPixmap in -lXmu""... $ac_c" 1>&6
4828echo "configure:4829: checking for XmuCreateStippledPixmap in -lXmu" >&5
4829ac_lib_var=`echo Xmu'_'XmuCreateStippledPixmap | sed 'y%./+-%__p_%'`
4830if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4831 echo $ac_n "(cached) $ac_c" 1>&6
4832else
4833 ac_save_LIBS="$LIBS"
4834LIBS="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
4835cat > conftest.$ac_ext <<EOF
4836#line 4837 "configure"
4837#include "confdefs.h"
4838/* Override any gcc2 internal prototype to avoid an error. */
4839/* We use char because int might match the return type of a gcc2
4840 builtin and then its argument prototype would still apply. */
4841char XmuCreateStippledPixmap();
4842
4843int main() {
4844XmuCreateStippledPixmap()
4845; return 0; }
4846EOF
4847if { (eval echo configure:4848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4848 rm -rf conftest*
4849 eval "ac_cv_lib_$ac_lib_var=yes"
4850else
4851 echo "configure: failed program was:" >&5
4852 cat conftest.$ac_ext >&5
4853 rm -rf conftest*
4854 eval "ac_cv_lib_$ac_lib_var=no"
4855fi
4856rm -f conftest*
4857LIBS="$ac_save_LIBS"
4858
4859fi
4860if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4861 echo "$ac_t""yes" 1>&6
4862 GUI_X_LIBS="-lXmu $GUI_X_LIBS"
4863else
4864 echo "$ac_t""no" 1>&6
4865fi
4866
4867 if test -z "$SKIP_MOTIF"; then
4868 echo $ac_n "checking for XpEndJob in -lXp""... $ac_c" 1>&6
4869echo "configure:4870: checking for XpEndJob in -lXp" >&5
4870ac_lib_var=`echo Xp'_'XpEndJob | sed 'y%./+-%__p_%'`
4871if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4872 echo $ac_n "(cached) $ac_c" 1>&6
4873else
4874 ac_save_LIBS="$LIBS"
4875LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
4876cat > conftest.$ac_ext <<EOF
4877#line 4878 "configure"
4878#include "confdefs.h"
4879/* Override any gcc2 internal prototype to avoid an error. */
4880/* We use char because int might match the return type of a gcc2
4881 builtin and then its argument prototype would still apply. */
4882char XpEndJob();
4883
4884int main() {
4885XpEndJob()
4886; return 0; }
4887EOF
4888if { (eval echo configure:4889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4889 rm -rf conftest*
4890 eval "ac_cv_lib_$ac_lib_var=yes"
4891else
4892 echo "configure: failed program was:" >&5
4893 cat conftest.$ac_ext >&5
4894 rm -rf conftest*
4895 eval "ac_cv_lib_$ac_lib_var=no"
4896fi
4897rm -f conftest*
4898LIBS="$ac_save_LIBS"
4899
4900fi
4901if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4902 echo "$ac_t""yes" 1>&6
4903 GUI_X_LIBS="-lXp $GUI_X_LIBS"
4904else
4905 echo "$ac_t""no" 1>&6
4906fi
4907
4908 fi
4909 LDFLAGS=$ldflags_save
4910
4911 echo $ac_n "checking for extra X11 defines""... $ac_c" 1>&6
4912echo "configure:4913: checking for extra X11 defines" >&5
4913 NARROW_PROTO=
4914 rm -fr conftestdir
4915 if mkdir conftestdir; then
4916 cd conftestdir
4917 cat > Imakefile <<'EOF'
4918acfindx:
4919 @echo 'NARROW_PROTO="${PROTO_DEFINES}"'
4920EOF
4921 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4922 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4923 fi
4924 cd ..
4925 rm -fr conftestdir
4926 fi
4927 if test -z "$NARROW_PROTO"; then
4928 echo "$ac_t""no" 1>&6
4929 else
4930 echo "$ac_t""$NARROW_PROTO" 1>&6
4931 fi
4932
4933fi
4934
4935if test "$enable_xsmp" = "yes"; then
4936 cppflags_save=$CPPFLAGS
4937 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
4938 for ac_hdr in X11/SM/SMlib.h
4939do
4940ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4941echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4942echo "configure:4943: checking for $ac_hdr" >&5
4943if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4944 echo $ac_n "(cached) $ac_c" 1>&6
4945else
4946 cat > conftest.$ac_ext <<EOF
4947#line 4948 "configure"
4948#include "confdefs.h"
4949#include <$ac_hdr>
4950EOF
4951ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4952{ (eval echo configure:4953: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4953ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4954if test -z "$ac_err"; then
4955 rm -rf conftest*
4956 eval "ac_cv_header_$ac_safe=yes"
4957else
4958 echo "$ac_err" >&5
4959 echo "configure: failed program was:" >&5
4960 cat conftest.$ac_ext >&5
4961 rm -rf conftest*
4962 eval "ac_cv_header_$ac_safe=no"
4963fi
4964rm -f conftest*
4965fi
4966if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4967 echo "$ac_t""yes" 1>&6
4968 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4969 cat >> confdefs.h <<EOF
4970#define $ac_tr_hdr 1
4971EOF
4972
4973else
4974 echo "$ac_t""no" 1>&6
4975fi
4976done
4977
4978 CPPFLAGS=$cppflags_save
4979fi
4980
4981
4982if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK"; then
4983 cppflags_save=$CPPFLAGS
4984 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
4985 for ac_hdr in X11/xpm.h X11/Sunkeysym.h
4986do
4987ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4988echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4989echo "configure:4990: checking for $ac_hdr" >&5
4990if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4991 echo $ac_n "(cached) $ac_c" 1>&6
4992else
4993 cat > conftest.$ac_ext <<EOF
4994#line 4995 "configure"
4995#include "confdefs.h"
4996#include <$ac_hdr>
4997EOF
4998ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4999{ (eval echo configure:5000: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5000ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5001if test -z "$ac_err"; then
5002 rm -rf conftest*
5003 eval "ac_cv_header_$ac_safe=yes"
5004else
5005 echo "$ac_err" >&5
5006 echo "configure: failed program was:" >&5
5007 cat conftest.$ac_ext >&5
5008 rm -rf conftest*
5009 eval "ac_cv_header_$ac_safe=no"
5010fi
5011rm -f conftest*
5012fi
5013if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5014 echo "$ac_t""yes" 1>&6
5015 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5016 cat >> confdefs.h <<EOF
5017#define $ac_tr_hdr 1
5018EOF
5019
5020else
5021 echo "$ac_t""no" 1>&6
5022fi
5023done
5024
5025
5026 if test ! "$enable_xim" = "no"; then
5027 echo $ac_n "checking for XIMText in X11/Xlib.h""... $ac_c" 1>&6
5028echo "configure:5029: checking for XIMText in X11/Xlib.h" >&5
5029 cat > conftest.$ac_ext <<EOF
5030#line 5031 "configure"
5031#include "confdefs.h"
5032#include <X11/Xlib.h>
5033EOF
5034if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5035 egrep "XIMText" >/dev/null 2>&1; then
5036 rm -rf conftest*
5037 echo "$ac_t""yes" 1>&6
5038else
5039 rm -rf conftest*
5040 echo "$ac_t""no; xim has been disabled" 1>&6; enable_xim = "no"
5041fi
5042rm -f conftest*
5043
5044 fi
5045 CPPFLAGS=$cppflags_save
5046
5047 if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \
5048 -a "x$GUITYPE" != "xNONE" ; then
5049 echo "$ac_t""X GUI selected; xim has been enabled" 1>&6
5050 enable_xim="yes"
5051 fi
5052fi
5053
5054if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
5055 cppflags_save=$CPPFLAGS
5056 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
5057 for ac_hdr in X11/Xmu/Editres.h
5058do
5059ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5060echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5061echo "configure:5062: checking for $ac_hdr" >&5
5062if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5063 echo $ac_n "(cached) $ac_c" 1>&6
5064else
5065 cat > conftest.$ac_ext <<EOF
5066#line 5067 "configure"
5067#include "confdefs.h"
5068#include <$ac_hdr>
5069EOF
5070ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5071{ (eval echo configure:5072: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5072ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5073if test -z "$ac_err"; then
5074 rm -rf conftest*
5075 eval "ac_cv_header_$ac_safe=yes"
5076else
5077 echo "$ac_err" >&5
5078 echo "configure: failed program was:" >&5
5079 cat conftest.$ac_ext >&5
5080 rm -rf conftest*
5081 eval "ac_cv_header_$ac_safe=no"
5082fi
5083rm -f conftest*
5084fi
5085if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5086 echo "$ac_t""yes" 1>&6
5087 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5088 cat >> confdefs.h <<EOF
5089#define $ac_tr_hdr 1
5090EOF
5091
5092else
5093 echo "$ac_t""no" 1>&6
5094fi
5095done
5096
5097 CPPFLAGS=$cppflags_save
5098fi
5099
5100if test -z "$SKIP_MOTIF"; then
5101 cppflags_save=$CPPFLAGS
5102 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
5103 for ac_hdr in Xm/Xm.h Xm/XpmP.h
5104do
5105ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5106echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5107echo "configure:5108: checking for $ac_hdr" >&5
5108if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5109 echo $ac_n "(cached) $ac_c" 1>&6
5110else
5111 cat > conftest.$ac_ext <<EOF
5112#line 5113 "configure"
5113#include "confdefs.h"
5114#include <$ac_hdr>
5115EOF
5116ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5117{ (eval echo configure:5118: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5118ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5119if test -z "$ac_err"; then
5120 rm -rf conftest*
5121 eval "ac_cv_header_$ac_safe=yes"
5122else
5123 echo "$ac_err" >&5
5124 echo "configure: failed program was:" >&5
5125 cat conftest.$ac_ext >&5
5126 rm -rf conftest*
5127 eval "ac_cv_header_$ac_safe=no"
5128fi
5129rm -f conftest*
5130fi
5131if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5132 echo "$ac_t""yes" 1>&6
5133 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5134 cat >> confdefs.h <<EOF
5135#define $ac_tr_hdr 1
5136EOF
5137
5138else
5139 echo "$ac_t""no" 1>&6
5140fi
5141done
5142
5143 CPPFLAGS=$cppflags_save
5144fi
5145
5146if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then
5147 echo "$ac_t""no GUI selected; xim has been disabled" 1>&6
5148 enable_xim="no"
5149fi
5150if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then
5151 echo "$ac_t""no GUI selected; fontset has been disabled" 1>&6
5152 enable_fontset="no"
5153fi
5154if test "x$GUITYPE:$enable_fontset" = "xGTK:yes" -a "0$gtk_major_version" -ge 2; then
5155 echo "$ac_t""GTK+ 2 GUI selected; fontset has been disabled" 1>&6
5156 enable_fontset="no"
5157fi
5158
5159if test -z "$SKIP_BEOS"; then
5160 GUITYPE=BEOSGUI
5161fi
5162
5163if test -z "$SKIP_PHOTON"; then
5164 GUITYPE=PHOTONGUI
5165fi
5166
5167
5168
5169
5170
5171
5172if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then
5173 { echo "configure: error: cannot use workshop without Motif" 1>&2; exit 1; }
5174fi
5175
5176if test "$enable_xim" = "yes"; then
5177 cat >> confdefs.h <<\EOF
5178#define FEAT_XIM 1
5179EOF
5180
5181fi
5182if test "$enable_fontset" = "yes"; then
5183 cat >> confdefs.h <<\EOF
5184#define FEAT_XFONTSET 1
5185EOF
5186
5187fi
5188
5189
5190
5191
5192if test "$enable_hangulinput" = "yes"; then
5193 if test "x$GUITYPE" = "xNONE"; then
5194 echo "$ac_t""no GUI selected; hangul input has been disabled" 1>&6
5195 enable_hangulinput=no
5196 else
5197 cat >> confdefs.h <<\EOF
5198#define FEAT_HANGULIN 1
5199EOF
5200
5201 HANGULIN_SRC=hangulin.c
5202
5203 HANGULIN_OBJ=objects/hangulin.o
5204
5205 fi
5206fi
5207
5208
5209echo $ac_n "checking quality of toupper""... $ac_c" 1>&6
5210echo "configure:5211: checking quality of toupper" >&5
5211if test "$cross_compiling" = yes; then
5212 { echo "configure: error: failed to compile test program" 1>&2; exit 1; }
5213else
5214 cat > conftest.$ac_ext <<EOF
5215#line 5216 "configure"
5216#include "confdefs.h"
5217#include <ctype.h>
5218main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); }
5219EOF
5220if { (eval echo configure:5221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5221then
5222 cat >> confdefs.h <<\EOF
5223#define BROKEN_TOUPPER 1
5224EOF
5225 echo "$ac_t""bad" 1>&6
5226else
5227 echo "configure: failed program was:" >&5
5228 cat conftest.$ac_ext >&5
5229 rm -fr conftest*
5230 echo "$ac_t""good" 1>&6
5231fi
5232rm -fr conftest*
5233fi
5234
5235
5236echo $ac_n "checking whether __DATE__ and __TIME__ work""... $ac_c" 1>&6
5237echo "configure:5238: checking whether __DATE__ and __TIME__ work" >&5
5238cat > conftest.$ac_ext <<EOF
5239#line 5240 "configure"
5240#include "confdefs.h"
5241
5242int main() {
5243printf("(" __DATE__ " " __TIME__ ")");
5244; return 0; }
5245EOF
5246if { (eval echo configure:5247: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5247 rm -rf conftest*
5248 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
5249#define HAVE_DATE_TIME 1
5250EOF
5251
5252else
5253 echo "configure: failed program was:" >&5
5254 cat conftest.$ac_ext >&5
5255 rm -rf conftest*
5256 echo "$ac_t""no" 1>&6
5257fi
5258rm -f conftest*
5259
5260ac_safe=`echo "elf.h" | sed 'y%./+-%__p_%'`
5261echo $ac_n "checking for elf.h""... $ac_c" 1>&6
5262echo "configure:5263: checking for elf.h" >&5
5263if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5264 echo $ac_n "(cached) $ac_c" 1>&6
5265else
5266 cat > conftest.$ac_ext <<EOF
5267#line 5268 "configure"
5268#include "confdefs.h"
5269#include <elf.h>
5270EOF
5271ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5272{ (eval echo configure:5273: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5273ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5274if test -z "$ac_err"; then
5275 rm -rf conftest*
5276 eval "ac_cv_header_$ac_safe=yes"
5277else
5278 echo "$ac_err" >&5
5279 echo "configure: failed program was:" >&5
5280 cat conftest.$ac_ext >&5
5281 rm -rf conftest*
5282 eval "ac_cv_header_$ac_safe=no"
5283fi
5284rm -f conftest*
5285fi
5286if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5287 echo "$ac_t""yes" 1>&6
5288 HAS_ELF=1
5289else
5290 echo "$ac_t""no" 1>&6
5291fi
5292
5293if test "$HAS_ELF" = 1; then
5294 echo $ac_n "checking for main in -lelf""... $ac_c" 1>&6
5295echo "configure:5296: checking for main in -lelf" >&5
5296ac_lib_var=`echo elf'_'main | sed 'y%./+-%__p_%'`
5297if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5298 echo $ac_n "(cached) $ac_c" 1>&6
5299else
5300 ac_save_LIBS="$LIBS"
5301LIBS="-lelf $LIBS"
5302cat > conftest.$ac_ext <<EOF
5303#line 5304 "configure"
5304#include "confdefs.h"
5305
5306int main() {
5307main()
5308; return 0; }
5309EOF
5310if { (eval echo configure:5311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5311 rm -rf conftest*
5312 eval "ac_cv_lib_$ac_lib_var=yes"
5313else
5314 echo "configure: failed program was:" >&5
5315 cat conftest.$ac_ext >&5
5316 rm -rf conftest*
5317 eval "ac_cv_lib_$ac_lib_var=no"
5318fi
5319rm -f conftest*
5320LIBS="$ac_save_LIBS"
5321
5322fi
5323if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5324 echo "$ac_t""yes" 1>&6
5325 ac_tr_lib=HAVE_LIB`echo elf | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5326 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5327 cat >> confdefs.h <<EOF
5328#define $ac_tr_lib 1
5329EOF
5330
5331 LIBS="-lelf $LIBS"
5332
5333else
5334 echo "$ac_t""no" 1>&6
5335fi
5336
5337fi
5338
5339ac_header_dirent=no
5340for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
5341do
5342ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5343echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
5344echo "configure:5345: checking for $ac_hdr that defines DIR" >&5
5345if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
5346 echo $ac_n "(cached) $ac_c" 1>&6
5347else
5348 cat > conftest.$ac_ext <<EOF
5349#line 5350 "configure"
5350#include "confdefs.h"
5351#include <sys/types.h>
5352#include <$ac_hdr>
5353int main() {
5354DIR *dirp = 0;
5355; return 0; }
5356EOF
5357if { (eval echo configure:5358: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5358 rm -rf conftest*
5359 eval "ac_cv_header_dirent_$ac_safe=yes"
5360else
5361 echo "configure: failed program was:" >&5
5362 cat conftest.$ac_ext >&5
5363 rm -rf conftest*
5364 eval "ac_cv_header_dirent_$ac_safe=no"
5365fi
5366rm -f conftest*
5367fi
5368if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
5369 echo "$ac_t""yes" 1>&6
5370 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5371 cat >> confdefs.h <<EOF
5372#define $ac_tr_hdr 1
5373EOF
5374 ac_header_dirent=$ac_hdr; break
5375else
5376 echo "$ac_t""no" 1>&6
5377fi
5378done
5379# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5380if test $ac_header_dirent = dirent.h; then
5381echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
5382echo "configure:5383: checking for opendir in -ldir" >&5
5383ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
5384if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5385 echo $ac_n "(cached) $ac_c" 1>&6
5386else
5387 ac_save_LIBS="$LIBS"
5388LIBS="-ldir $LIBS"
5389cat > conftest.$ac_ext <<EOF
5390#line 5391 "configure"
5391#include "confdefs.h"
5392/* Override any gcc2 internal prototype to avoid an error. */
5393/* We use char because int might match the return type of a gcc2
5394 builtin and then its argument prototype would still apply. */
5395char opendir();
5396
5397int main() {
5398opendir()
5399; return 0; }
5400EOF
5401if { (eval echo configure:5402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5402 rm -rf conftest*
5403 eval "ac_cv_lib_$ac_lib_var=yes"
5404else
5405 echo "configure: failed program was:" >&5
5406 cat conftest.$ac_ext >&5
5407 rm -rf conftest*
5408 eval "ac_cv_lib_$ac_lib_var=no"
5409fi
5410rm -f conftest*
5411LIBS="$ac_save_LIBS"
5412
5413fi
5414if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5415 echo "$ac_t""yes" 1>&6
5416 LIBS="$LIBS -ldir"
5417else
5418 echo "$ac_t""no" 1>&6
5419fi
5420
5421else
5422echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
5423echo "configure:5424: checking for opendir in -lx" >&5
5424ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
5425if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5426 echo $ac_n "(cached) $ac_c" 1>&6
5427else
5428 ac_save_LIBS="$LIBS"
5429LIBS="-lx $LIBS"
5430cat > conftest.$ac_ext <<EOF
5431#line 5432 "configure"
5432#include "confdefs.h"
5433/* Override any gcc2 internal prototype to avoid an error. */
5434/* We use char because int might match the return type of a gcc2
5435 builtin and then its argument prototype would still apply. */
5436char opendir();
5437
5438int main() {
5439opendir()
5440; return 0; }
5441EOF
5442if { (eval echo configure:5443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5443 rm -rf conftest*
5444 eval "ac_cv_lib_$ac_lib_var=yes"
5445else
5446 echo "configure: failed program was:" >&5
5447 cat conftest.$ac_ext >&5
5448 rm -rf conftest*
5449 eval "ac_cv_lib_$ac_lib_var=no"
5450fi
5451rm -f conftest*
5452LIBS="$ac_save_LIBS"
5453
5454fi
5455if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5456 echo "$ac_t""yes" 1>&6
5457 LIBS="$LIBS -lx"
5458else
5459 echo "$ac_t""no" 1>&6
5460fi
5461
5462fi
5463
5464
5465echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
5466echo "configure:5467: checking for ANSI C header files" >&5
5467if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
5468 echo $ac_n "(cached) $ac_c" 1>&6
5469else
5470 cat > conftest.$ac_ext <<EOF
5471#line 5472 "configure"
5472#include "confdefs.h"
5473#include <stdlib.h>
5474#include <stdarg.h>
5475#include <string.h>
5476#include <float.h>
5477EOF
5478ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5479{ (eval echo configure:5480: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5480ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5481if test -z "$ac_err"; then
5482 rm -rf conftest*
5483 ac_cv_header_stdc=yes
5484else
5485 echo "$ac_err" >&5
5486 echo "configure: failed program was:" >&5
5487 cat conftest.$ac_ext >&5
5488 rm -rf conftest*
5489 ac_cv_header_stdc=no
5490fi
5491rm -f conftest*
5492
5493if test $ac_cv_header_stdc = yes; then
5494 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5495cat > conftest.$ac_ext <<EOF
5496#line 5497 "configure"
5497#include "confdefs.h"
5498#include <string.h>
5499EOF
5500if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5501 egrep "memchr" >/dev/null 2>&1; then
5502 :
5503else
5504 rm -rf conftest*
5505 ac_cv_header_stdc=no
5506fi
5507rm -f conftest*
5508
5509fi
5510
5511if test $ac_cv_header_stdc = yes; then
5512 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5513cat > conftest.$ac_ext <<EOF
5514#line 5515 "configure"
5515#include "confdefs.h"
5516#include <stdlib.h>
5517EOF
5518if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5519 egrep "free" >/dev/null 2>&1; then
5520 :
5521else
5522 rm -rf conftest*
5523 ac_cv_header_stdc=no
5524fi
5525rm -f conftest*
5526
5527fi
5528
5529if test $ac_cv_header_stdc = yes; then
5530 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5531if test "$cross_compiling" = yes; then
5532 :
5533else
5534 cat > conftest.$ac_ext <<EOF
5535#line 5536 "configure"
5536#include "confdefs.h"
5537#include <ctype.h>
5538#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5539#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5540#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5541int main () { int i; for (i = 0; i < 256; i++)
5542if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
5543exit (0); }
5544
5545EOF
5546if { (eval echo configure:5547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5547then
5548 :
5549else
5550 echo "configure: failed program was:" >&5
5551 cat conftest.$ac_ext >&5
5552 rm -fr conftest*
5553 ac_cv_header_stdc=no
5554fi
5555rm -fr conftest*
5556fi
5557
5558fi
5559fi
5560
5561echo "$ac_t""$ac_cv_header_stdc" 1>&6
5562if test $ac_cv_header_stdc = yes; then
5563 cat >> confdefs.h <<\EOF
5564#define STDC_HEADERS 1
5565EOF
5566
5567fi
5568
5569echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
5570echo "configure:5571: checking for sys/wait.h that is POSIX.1 compatible" >&5
5571if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
5572 echo $ac_n "(cached) $ac_c" 1>&6
5573else
5574 cat > conftest.$ac_ext <<EOF
5575#line 5576 "configure"
5576#include "confdefs.h"
5577#include <sys/types.h>
5578#include <sys/wait.h>
5579#ifndef WEXITSTATUS
5580#define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5581#endif
5582#ifndef WIFEXITED
5583#define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5584#endif
5585int main() {
5586int s;
5587wait (&s);
5588s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5589; return 0; }
5590EOF
5591if { (eval echo configure:5592: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5592 rm -rf conftest*
5593 ac_cv_header_sys_wait_h=yes
5594else
5595 echo "configure: failed program was:" >&5
5596 cat conftest.$ac_ext >&5
5597 rm -rf conftest*
5598 ac_cv_header_sys_wait_h=no
5599fi
5600rm -f conftest*
5601fi
5602
5603echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
5604if test $ac_cv_header_sys_wait_h = yes; then
5605 cat >> confdefs.h <<\EOF
5606#define HAVE_SYS_WAIT_H 1
5607EOF
5608
5609fi
5610
5611
5612if test $ac_cv_header_sys_wait_h = no; then
5613 echo $ac_n "checking for sys/wait.h that defines union wait""... $ac_c" 1>&6
5614echo "configure:5615: checking for sys/wait.h that defines union wait" >&5
5615 cat > conftest.$ac_ext <<EOF
5616#line 5617 "configure"
5617#include "confdefs.h"
5618#include <sys/wait.h>
5619int main() {
5620union wait xx, yy; xx = yy
5621; return 0; }
5622EOF
5623if { (eval echo configure:5624: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5624 rm -rf conftest*
5625 echo "$ac_t""yes" 1>&6
5626 cat >> confdefs.h <<\EOF
5627#define HAVE_SYS_WAIT_H 1
5628EOF
5629
5630 cat >> confdefs.h <<\EOF
5631#define HAVE_UNION_WAIT 1
5632EOF
5633
5634else
5635 echo "configure: failed program was:" >&5
5636 cat conftest.$ac_ext >&5
5637 rm -rf conftest*
5638 echo "$ac_t""no" 1>&6
5639fi
5640rm -f conftest*
5641fi
5642
5643for ac_hdr in stdarg.h stdlib.h string.h sys/select.h sys/utsname.h \
5644 termcap.h fcntl.h sgtty.h sys/ioctl.h sys/time.h termio.h \
5645 iconv.h langinfo.h unistd.h stropts.h errno.h \
5646 sys/resource.h sys/systeminfo.h locale.h \
5647 sys/stream.h sys/ptem.h termios.h libc.h sys/statfs.h \
5648 poll.h sys/poll.h pwd.h utime.h sys/param.h libintl.h \
5649 libgen.h util/debug.h util/msg18n.h frame.h pthread_np.h \
5650 sys/acl.h sys/access.h sys/sysctl.h sys/sysinfo.h wchar.h
5651do
5652ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5653echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5654echo "configure:5655: checking for $ac_hdr" >&5
5655if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5656 echo $ac_n "(cached) $ac_c" 1>&6
5657else
5658 cat > conftest.$ac_ext <<EOF
5659#line 5660 "configure"
5660#include "confdefs.h"
5661#include <$ac_hdr>
5662EOF
5663ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5664{ (eval echo configure:5665: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5665ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5666if test -z "$ac_err"; then
5667 rm -rf conftest*
5668 eval "ac_cv_header_$ac_safe=yes"
5669else
5670 echo "$ac_err" >&5
5671 echo "configure: failed program was:" >&5
5672 cat conftest.$ac_ext >&5
5673 rm -rf conftest*
5674 eval "ac_cv_header_$ac_safe=no"
5675fi
5676rm -f conftest*
5677fi
5678if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5679 echo "$ac_t""yes" 1>&6
5680 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5681 cat >> confdefs.h <<EOF
5682#define $ac_tr_hdr 1
5683EOF
5684
5685else
5686 echo "$ac_t""no" 1>&6
5687fi
5688done
5689
5690
5691if test "x$MACOSX" != "xyes"; then
5692 for ac_hdr in strings.h
5693do
5694ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5695echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5696echo "configure:5697: checking for $ac_hdr" >&5
5697if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5698 echo $ac_n "(cached) $ac_c" 1>&6
5699else
5700 cat > conftest.$ac_ext <<EOF
5701#line 5702 "configure"
5702#include "confdefs.h"
5703#include <$ac_hdr>
5704EOF
5705ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5706{ (eval echo configure:5707: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5707ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5708if test -z "$ac_err"; then
5709 rm -rf conftest*
5710 eval "ac_cv_header_$ac_safe=yes"
5711else
5712 echo "$ac_err" >&5
5713 echo "configure: failed program was:" >&5
5714 cat conftest.$ac_ext >&5
5715 rm -rf conftest*
5716 eval "ac_cv_header_$ac_safe=no"
5717fi
5718rm -f conftest*
5719fi
5720if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5721 echo "$ac_t""yes" 1>&6
5722 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5723 cat >> confdefs.h <<EOF
5724#define $ac_tr_hdr 1
5725EOF
5726
5727else
5728 echo "$ac_t""no" 1>&6
5729fi
5730done
5731
5732fi
5733
5734echo $ac_n "checking if strings.h can be included after string.h""... $ac_c" 1>&6
5735echo "configure:5736: checking if strings.h can be included after string.h" >&5
5736cppflags_save=$CPPFLAGS
5737CPPFLAGS="$CPPFLAGS $X_CFLAGS"
5738cat > conftest.$ac_ext <<EOF
5739#line 5740 "configure"
5740#include "confdefs.h"
5741
5742#if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO)
5743# define _NO_PROTO /* like in os_unix.h, causes conflict for AIX (Winn) */
5744 /* but don't do it on AIX 5.1 (Uribarri) */
5745#endif
5746#ifdef HAVE_XM_XM_H
5747# include <Xm/Xm.h> /* This breaks it for HP-UX 11 (Squassabia) */
5748#endif
5749#ifdef HAVE_STRING_H
5750# include <string.h>
5751#endif
5752#if defined(HAVE_STRINGS_H)
5753# include <strings.h>
5754#endif
5755
5756int main() {
5757int i; i = 0;
5758; return 0; }
5759EOF
5760if { (eval echo configure:5761: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5761 rm -rf conftest*
5762 echo "$ac_t""yes" 1>&6
5763else
5764 echo "configure: failed program was:" >&5
5765 cat conftest.$ac_ext >&5
5766 rm -rf conftest*
5767 cat >> confdefs.h <<\EOF
5768#define NO_STRINGS_WITH_STRING_H 1
5769EOF
5770
5771 echo "$ac_t""no" 1>&6
5772fi
5773rm -f conftest*
5774CPPFLAGS=$cppflags_save
5775
5776if test $ac_cv_prog_gcc = yes; then
5777 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
5778echo "configure:5779: checking whether ${CC-cc} needs -traditional" >&5
5779if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
5780 echo $ac_n "(cached) $ac_c" 1>&6
5781else
5782 ac_pattern="Autoconf.*'x'"
5783 cat > conftest.$ac_ext <<EOF
5784#line 5785 "configure"
5785#include "confdefs.h"
5786#include <sgtty.h>
5787Autoconf TIOCGETP
5788EOF
5789if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5790 egrep "$ac_pattern" >/dev/null 2>&1; then
5791 rm -rf conftest*
5792 ac_cv_prog_gcc_traditional=yes
5793else
5794 rm -rf conftest*
5795 ac_cv_prog_gcc_traditional=no
5796fi
5797rm -f conftest*
5798
5799
5800 if test $ac_cv_prog_gcc_traditional = no; then
5801 cat > conftest.$ac_ext <<EOF
5802#line 5803 "configure"
5803#include "confdefs.h"
5804#include <termio.h>
5805Autoconf TCGETA
5806EOF
5807if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5808 egrep "$ac_pattern" >/dev/null 2>&1; then
5809 rm -rf conftest*
5810 ac_cv_prog_gcc_traditional=yes
5811fi
5812rm -f conftest*
5813
5814 fi
5815fi
5816
5817echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
5818 if test $ac_cv_prog_gcc_traditional = yes; then
5819 CC="$CC -traditional"
5820 fi
5821fi
5822
5823echo $ac_n "checking for working const""... $ac_c" 1>&6
5824echo "configure:5825: checking for working const" >&5
5825if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5826 echo $ac_n "(cached) $ac_c" 1>&6
5827else
5828 cat > conftest.$ac_ext <<EOF
5829#line 5830 "configure"
5830#include "confdefs.h"
5831
5832int main() {
5833
5834/* Ultrix mips cc rejects this. */
5835typedef int charset[2]; const charset x;
5836/* SunOS 4.1.1 cc rejects this. */
5837char const *const *ccp;
5838char **p;
5839/* NEC SVR4.0.2 mips cc rejects this. */
5840struct point {int x, y;};
5841static struct point const zero = {0,0};
5842/* AIX XL C 1.02.0.0 rejects this.
5843 It does not let you subtract one const X* pointer from another in an arm
5844 of an if-expression whose if-part is not a constant expression */
5845const char *g = "string";
5846ccp = &g + (g ? g-g : 0);
5847/* HPUX 7.0 cc rejects these. */
5848++ccp;
5849p = (char**) ccp;
5850ccp = (char const *const *) p;
5851{ /* SCO 3.2v4 cc rejects this. */
5852 char *t;
5853 char const *s = 0 ? (char *) 0 : (char const *) 0;
5854
5855 *t++ = 0;
5856}
5857{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5858 int x[] = {25, 17};
5859 const int *foo = &x[0];
5860 ++foo;
5861}
5862{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5863 typedef const int *iptr;
5864 iptr p = 0;
5865 ++p;
5866}
5867{ /* AIX XL C 1.02.0.0 rejects this saying
5868 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5869 struct s { int j; const int *ap[3]; };
5870 struct s *b; b->j = 5;
5871}
5872{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5873 const int foo = 10;
5874}
5875
5876; return 0; }
5877EOF
5878if { (eval echo configure:5879: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5879 rm -rf conftest*
5880 ac_cv_c_const=yes
5881else
5882 echo "configure: failed program was:" >&5
5883 cat conftest.$ac_ext >&5
5884 rm -rf conftest*
5885 ac_cv_c_const=no
5886fi
5887rm -f conftest*
5888fi
5889
5890echo "$ac_t""$ac_cv_c_const" 1>&6
5891if test $ac_cv_c_const = no; then
5892 cat >> confdefs.h <<\EOF
5893#define const
5894EOF
5895
5896fi
5897
5898echo $ac_n "checking for mode_t""... $ac_c" 1>&6
5899echo "configure:5900: checking for mode_t" >&5
5900if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
5901 echo $ac_n "(cached) $ac_c" 1>&6
5902else
5903 cat > conftest.$ac_ext <<EOF
5904#line 5905 "configure"
5905#include "confdefs.h"
5906#include <sys/types.h>
5907#if STDC_HEADERS
5908#include <stdlib.h>
5909#include <stddef.h>
5910#endif
5911EOF
5912if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5913 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5914 rm -rf conftest*
5915 ac_cv_type_mode_t=yes
5916else
5917 rm -rf conftest*
5918 ac_cv_type_mode_t=no
5919fi
5920rm -f conftest*
5921
5922fi
5923echo "$ac_t""$ac_cv_type_mode_t" 1>&6
5924if test $ac_cv_type_mode_t = no; then
5925 cat >> confdefs.h <<\EOF
5926#define mode_t int
5927EOF
5928
5929fi
5930
5931echo $ac_n "checking for off_t""... $ac_c" 1>&6
5932echo "configure:5933: checking for off_t" >&5
5933if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
5934 echo $ac_n "(cached) $ac_c" 1>&6
5935else
5936 cat > conftest.$ac_ext <<EOF
5937#line 5938 "configure"
5938#include "confdefs.h"
5939#include <sys/types.h>
5940#if STDC_HEADERS
5941#include <stdlib.h>
5942#include <stddef.h>
5943#endif
5944EOF
5945if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5946 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5947 rm -rf conftest*
5948 ac_cv_type_off_t=yes
5949else
5950 rm -rf conftest*
5951 ac_cv_type_off_t=no
5952fi
5953rm -f conftest*
5954
5955fi
5956echo "$ac_t""$ac_cv_type_off_t" 1>&6
5957if test $ac_cv_type_off_t = no; then
5958 cat >> confdefs.h <<\EOF
5959#define off_t long
5960EOF
5961
5962fi
5963
5964echo $ac_n "checking for pid_t""... $ac_c" 1>&6
5965echo "configure:5966: checking for pid_t" >&5
5966if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
5967 echo $ac_n "(cached) $ac_c" 1>&6
5968else
5969 cat > conftest.$ac_ext <<EOF
5970#line 5971 "configure"
5971#include "confdefs.h"
5972#include <sys/types.h>
5973#if STDC_HEADERS
5974#include <stdlib.h>
5975#include <stddef.h>
5976#endif
5977EOF
5978if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5979 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5980 rm -rf conftest*
5981 ac_cv_type_pid_t=yes
5982else
5983 rm -rf conftest*
5984 ac_cv_type_pid_t=no
5985fi
5986rm -f conftest*
5987
5988fi
5989echo "$ac_t""$ac_cv_type_pid_t" 1>&6
5990if test $ac_cv_type_pid_t = no; then
5991 cat >> confdefs.h <<\EOF
5992#define pid_t int
5993EOF
5994
5995fi
5996
5997echo $ac_n "checking for size_t""... $ac_c" 1>&6
5998echo "configure:5999: checking for size_t" >&5
5999if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
6000 echo $ac_n "(cached) $ac_c" 1>&6
6001else
6002 cat > conftest.$ac_ext <<EOF
6003#line 6004 "configure"
6004#include "confdefs.h"
6005#include <sys/types.h>
6006#if STDC_HEADERS
6007#include <stdlib.h>
6008#include <stddef.h>
6009#endif
6010EOF
6011if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6012 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6013 rm -rf conftest*
6014 ac_cv_type_size_t=yes
6015else
6016 rm -rf conftest*
6017 ac_cv_type_size_t=no
6018fi
6019rm -f conftest*
6020
6021fi
6022echo "$ac_t""$ac_cv_type_size_t" 1>&6
6023if test $ac_cv_type_size_t = no; then
6024 cat >> confdefs.h <<\EOF
6025#define size_t unsigned
6026EOF
6027
6028fi
6029
6030echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
6031echo "configure:6032: checking for uid_t in sys/types.h" >&5
6032if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
6033 echo $ac_n "(cached) $ac_c" 1>&6
6034else
6035 cat > conftest.$ac_ext <<EOF
6036#line 6037 "configure"
6037#include "confdefs.h"
6038#include <sys/types.h>
6039EOF
6040if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6041 egrep "uid_t" >/dev/null 2>&1; then
6042 rm -rf conftest*
6043 ac_cv_type_uid_t=yes
6044else
6045 rm -rf conftest*
6046 ac_cv_type_uid_t=no
6047fi
6048rm -f conftest*
6049
6050fi
6051
6052echo "$ac_t""$ac_cv_type_uid_t" 1>&6
6053if test $ac_cv_type_uid_t = no; then
6054 cat >> confdefs.h <<\EOF
6055#define uid_t int
6056EOF
6057
6058 cat >> confdefs.h <<\EOF
6059#define gid_t int
6060EOF
6061
6062fi
6063
6064echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
6065echo "configure:6066: checking whether time.h and sys/time.h may both be included" >&5
6066if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
6067 echo $ac_n "(cached) $ac_c" 1>&6
6068else
6069 cat > conftest.$ac_ext <<EOF
6070#line 6071 "configure"
6071#include "confdefs.h"
6072#include <sys/types.h>
6073#include <sys/time.h>
6074#include <time.h>
6075int main() {
6076struct tm *tp;
6077; return 0; }
6078EOF
6079if { (eval echo configure:6080: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6080 rm -rf conftest*
6081 ac_cv_header_time=yes
6082else
6083 echo "configure: failed program was:" >&5
6084 cat conftest.$ac_ext >&5
6085 rm -rf conftest*
6086 ac_cv_header_time=no
6087fi
6088rm -f conftest*
6089fi
6090
6091echo "$ac_t""$ac_cv_header_time" 1>&6
6092if test $ac_cv_header_time = yes; then
6093 cat >> confdefs.h <<\EOF
6094#define TIME_WITH_SYS_TIME 1
6095EOF
6096
6097fi
6098
6099echo $ac_n "checking for ino_t""... $ac_c" 1>&6
6100echo "configure:6101: checking for ino_t" >&5
6101if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
6102 echo $ac_n "(cached) $ac_c" 1>&6
6103else
6104 cat > conftest.$ac_ext <<EOF
6105#line 6106 "configure"
6106#include "confdefs.h"
6107#include <sys/types.h>
6108#if STDC_HEADERS
6109#include <stdlib.h>
6110#include <stddef.h>
6111#endif
6112EOF
6113if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6114 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6115 rm -rf conftest*
6116 ac_cv_type_ino_t=yes
6117else
6118 rm -rf conftest*
6119 ac_cv_type_ino_t=no
6120fi
6121rm -f conftest*
6122
6123fi
6124echo "$ac_t""$ac_cv_type_ino_t" 1>&6
6125if test $ac_cv_type_ino_t = no; then
6126 cat >> confdefs.h <<\EOF
6127#define ino_t long
6128EOF
6129
6130fi
6131
6132echo $ac_n "checking for dev_t""... $ac_c" 1>&6
6133echo "configure:6134: checking for dev_t" >&5
6134if eval "test \"`echo '$''{'ac_cv_type_dev_t'+set}'`\" = set"; then
6135 echo $ac_n "(cached) $ac_c" 1>&6
6136else
6137 cat > conftest.$ac_ext <<EOF
6138#line 6139 "configure"
6139#include "confdefs.h"
6140#include <sys/types.h>
6141#if STDC_HEADERS
6142#include <stdlib.h>
6143#include <stddef.h>
6144#endif
6145EOF
6146if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6147 egrep "(^|[^a-zA-Z_0-9])dev_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6148 rm -rf conftest*
6149 ac_cv_type_dev_t=yes
6150else
6151 rm -rf conftest*
6152 ac_cv_type_dev_t=no
6153fi
6154rm -f conftest*
6155
6156fi
6157echo "$ac_t""$ac_cv_type_dev_t" 1>&6
6158if test $ac_cv_type_dev_t = no; then
6159 cat >> confdefs.h <<\EOF
6160#define dev_t unsigned
6161EOF
6162
6163fi
6164
6165
6166echo $ac_n "checking for rlim_t""... $ac_c" 1>&6
6167echo "configure:6168: checking for rlim_t" >&5
6168if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then
6169 echo "$ac_t""(cached) $ac_cv_type_rlim_t" 1>&6
6170else
6171 cat > conftest.$ac_ext <<EOF
6172#line 6173 "configure"
6173#include "confdefs.h"
6174
6175#include <sys/types.h>
6176#if STDC_HEADERS
6177#include <stdlib.h>
6178#include <stddef.h>
6179#endif
6180#ifdef HAVE_SYS_RESOURCE_H
6181#include <sys/resource.h>
6182#endif
6183
6184EOF
6185if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6186 egrep "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6187 rm -rf conftest*
6188 ac_cv_type_rlim_t=yes
6189else
6190 rm -rf conftest*
6191 ac_cv_type_rlim_t=no
6192fi
6193rm -f conftest*
6194
6195 echo "$ac_t""$ac_cv_type_rlim_t" 1>&6
6196fi
6197if test $ac_cv_type_rlim_t = no; then
6198 cat >> confdefs.h <<\EOF
6199#define rlim_t unsigned long
6200EOF
6201fi
6202
6203echo $ac_n "checking for stack_t""... $ac_c" 1>&6
6204echo "configure:6205: checking for stack_t" >&5
6205if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then
6206 echo "$ac_t""(cached) $ac_cv_type_stack_t" 1>&6
6207else
6208 cat > conftest.$ac_ext <<EOF
6209#line 6210 "configure"
6210#include "confdefs.h"
6211
6212#include <sys/types.h>
6213#if STDC_HEADERS
6214#include <stdlib.h>
6215#include <stddef.h>
6216#endif
6217#include <signal.h>
6218
6219EOF
6220if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6221 egrep "stack_t" >/dev/null 2>&1; then
6222 rm -rf conftest*
6223 ac_cv_type_stack_t=yes
6224else
6225 rm -rf conftest*
6226 ac_cv_type_stack_t=no
6227fi
6228rm -f conftest*
6229
6230 echo "$ac_t""$ac_cv_type_stack_t" 1>&6
6231fi
6232if test $ac_cv_type_stack_t = no; then
6233 cat >> confdefs.h <<\EOF
6234#define stack_t struct sigaltstack
6235EOF
6236fi
6237
6238echo $ac_n "checking whether stack_t has an ss_base field""... $ac_c" 1>&6
6239echo "configure:6240: checking whether stack_t has an ss_base field" >&5
6240cat > conftest.$ac_ext <<EOF
6241#line 6242 "configure"
6242#include "confdefs.h"
6243
6244#include <sys/types.h>
6245#if STDC_HEADERS
6246#include <stdlib.h>
6247#include <stddef.h>
6248#endif
6249#include <signal.h>
6250#include "confdefs.h"
6251
6252int main() {
6253stack_t sigstk; sigstk.ss_base = 0;
6254; return 0; }
6255EOF
6256if { (eval echo configure:6257: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6257 rm -rf conftest*
6258 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
6259#define HAVE_SS_BASE 1
6260EOF
6261
6262else
6263 echo "configure: failed program was:" >&5
6264 cat conftest.$ac_ext >&5
6265 rm -rf conftest*
6266 echo "$ac_t""no" 1>&6
6267fi
6268rm -f conftest*
6269
6270olibs="$LIBS"
6271echo $ac_n "checking --with-tlib argument""... $ac_c" 1>&6
6272echo "configure:6273: checking --with-tlib argument" >&5
6273# Check whether --with-tlib or --without-tlib was given.
6274if test "${with_tlib+set}" = set; then
6275 withval="$with_tlib"
6276 :
6277fi
6278
6279if test -n "$with_tlib"; then
6280 echo "$ac_t""$with_tlib" 1>&6
6281 LIBS="$LIBS -l$with_tlib"
6282else
6283 echo "$ac_t""automatic terminal library selection" 1>&6
6284 case "`uname -s 2>/dev/null`" in
6285 OSF1) tlibs="ncurses curses termlib termcap";;
6286 *) tlibs="ncurses termlib termcap curses";;
6287 esac
6288 for libname in $tlibs; do
6289 echo $ac_n "checking for tgetent in -l${libname}""... $ac_c" 1>&6
6290echo "configure:6291: checking for tgetent in -l${libname}" >&5
6291ac_lib_var=`echo ${libname}'_'tgetent | sed 'y%./+-%__p_%'`
6292if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6293 echo $ac_n "(cached) $ac_c" 1>&6
6294else
6295 ac_save_LIBS="$LIBS"
6296LIBS="-l${libname} $LIBS"
6297cat > conftest.$ac_ext <<EOF
6298#line 6299 "configure"
6299#include "confdefs.h"
6300/* Override any gcc2 internal prototype to avoid an error. */
6301/* We use char because int might match the return type of a gcc2
6302 builtin and then its argument prototype would still apply. */
6303char tgetent();
6304
6305int main() {
6306tgetent()
6307; return 0; }
6308EOF
6309if { (eval echo configure:6310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6310 rm -rf conftest*
6311 eval "ac_cv_lib_$ac_lib_var=yes"
6312else
6313 echo "configure: failed program was:" >&5
6314 cat conftest.$ac_ext >&5
6315 rm -rf conftest*
6316 eval "ac_cv_lib_$ac_lib_var=no"
6317fi
6318rm -f conftest*
6319LIBS="$ac_save_LIBS"
6320
6321fi
6322if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6323 echo "$ac_t""yes" 1>&6
6324 ac_tr_lib=HAVE_LIB`echo ${libname} | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6325 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6326 cat >> confdefs.h <<EOF
6327#define $ac_tr_lib 1
6328EOF
6329
6330 LIBS="-l${libname} $LIBS"
6331
6332else
6333 echo "$ac_t""no" 1>&6
6334fi
6335
6336 if test "x$olibs" != "x$LIBS"; then
6337 if test "$cross_compiling" = yes; then
6338 res="FAIL"
6339else
6340 cat > conftest.$ac_ext <<EOF
6341#line 6342 "configure"
6342#include "confdefs.h"
6343
6344#ifdef HAVE_TERMCAP_H
6345# include <termcap.h>
6346#endif
6347main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); }
6348EOF
6349if { (eval echo configure:6350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6350then
6351 res="OK"
6352else
6353 echo "configure: failed program was:" >&5
6354 cat conftest.$ac_ext >&5
6355 rm -fr conftest*
6356 res="FAIL"
6357fi
6358rm -fr conftest*
6359fi
6360
6361 if test "$res" = "OK"; then
6362 break
6363 fi
6364 echo "$ac_t""$libname library is not usable" 1>&6
6365 LIBS="$olibs"
6366 fi
6367 done
6368fi
6369if test "x$olibs" != "x$LIBS"; then
6370 echo $ac_n "checking whether we talk terminfo""... $ac_c" 1>&6
6371echo "configure:6372: checking whether we talk terminfo" >&5
6372 if test "$cross_compiling" = yes; then
6373 { echo "configure: error: failed to compile test program." 1>&2; exit 1; }
6374else
6375 cat > conftest.$ac_ext <<EOF
6376#line 6377 "configure"
6377#include "confdefs.h"
6378
6379#ifdef HAVE_TERMCAP_H
6380# include <termcap.h>
6381#endif
6382main()
6383{char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); }
6384EOF
6385if { (eval echo configure:6386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6386then
6387 echo "$ac_t""no -- we are in termcap land" 1>&6
6388else
6389 echo "configure: failed program was:" >&5
6390 cat conftest.$ac_ext >&5
6391 rm -fr conftest*
6392 echo "$ac_t""yes -- terminfo spoken here" 1>&6; cat >> confdefs.h <<\EOF
6393#define TERMINFO 1
6394EOF
6395
6396fi
6397rm -fr conftest*
6398fi
6399
6400else
6401 echo "$ac_t""none found" 1>&6
6402fi
6403
6404if test "x$olibs" != "x$LIBS"; then
6405 echo $ac_n "checking what tgetent() returns for an unknown terminal""... $ac_c" 1>&6
6406echo "configure:6407: checking what tgetent() returns for an unknown terminal" >&5
6407 if test "$cross_compiling" = yes; then
6408 { echo "configure: error: failed to compile test program." 1>&2; exit 1; }
6409else
6410 cat > conftest.$ac_ext <<EOF
6411#line 6412 "configure"
6412#include "confdefs.h"
6413
6414#ifdef HAVE_TERMCAP_H
6415# include <termcap.h>
6416#endif
6417main()
6418{char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); }
6419EOF
6420if { (eval echo configure:6421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6421then
6422 echo "$ac_t""zero" 1>&6; cat >> confdefs.h <<\EOF
6423#define TGETENT_ZERO_ERR 0
6424EOF
6425
6426else
6427 echo "configure: failed program was:" >&5
6428 cat conftest.$ac_ext >&5
6429 rm -fr conftest*
6430 echo "$ac_t""non-zero" 1>&6
6431fi
6432rm -fr conftest*
6433fi
6434
6435fi
6436
6437echo $ac_n "checking whether termcap.h contains ospeed""... $ac_c" 1>&6
6438echo "configure:6439: checking whether termcap.h contains ospeed" >&5
6439cat > conftest.$ac_ext <<EOF
6440#line 6441 "configure"
6441#include "confdefs.h"
6442
6443#ifdef HAVE_TERMCAP_H
6444# include <termcap.h>
6445#endif
6446
6447int main() {
6448ospeed = 20000
6449; return 0; }
6450EOF
6451if { (eval echo configure:6452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6452 rm -rf conftest*
6453 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
6454#define HAVE_OSPEED 1
6455EOF
6456
6457else
6458 echo "configure: failed program was:" >&5
6459 cat conftest.$ac_ext >&5
6460 rm -rf conftest*
6461 echo "$ac_t""no" 1>&6
6462 echo $ac_n "checking whether ospeed can be extern""... $ac_c" 1>&6
6463echo "configure:6464: checking whether ospeed can be extern" >&5
6464 cat > conftest.$ac_ext <<EOF
6465#line 6466 "configure"
6466#include "confdefs.h"
6467
6468#ifdef HAVE_TERMCAP_H
6469# include <termcap.h>
6470#endif
6471extern short ospeed;
6472
6473int main() {
6474ospeed = 20000
6475; return 0; }
6476EOF
6477if { (eval echo configure:6478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6478 rm -rf conftest*
6479 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
6480#define OSPEED_EXTERN 1
6481EOF
6482
6483else
6484 echo "configure: failed program was:" >&5
6485 cat conftest.$ac_ext >&5
6486 rm -rf conftest*
6487 echo "$ac_t""no" 1>&6
6488fi
6489rm -f conftest*
6490
6491fi
6492rm -f conftest*
6493
6494echo $ac_n "checking whether termcap.h contains UP, BC and PC""... $ac_c" 1>&6
6495echo "configure:6496: checking whether termcap.h contains UP, BC and PC" >&5
6496cat > conftest.$ac_ext <<EOF
6497#line 6498 "configure"
6498#include "confdefs.h"
6499
6500#ifdef HAVE_TERMCAP_H
6501# include <termcap.h>
6502#endif
6503
6504int main() {
6505if (UP == 0 && BC == 0) PC = 1
6506; return 0; }
6507EOF
6508if { (eval echo configure:6509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6509 rm -rf conftest*
6510 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
6511#define HAVE_UP_BC_PC 1
6512EOF
6513
6514else
6515 echo "configure: failed program was:" >&5
6516 cat conftest.$ac_ext >&5
6517 rm -rf conftest*
6518 echo "$ac_t""no" 1>&6
6519 echo $ac_n "checking whether UP, BC and PC can be extern""... $ac_c" 1>&6
6520echo "configure:6521: checking whether UP, BC and PC can be extern" >&5
6521 cat > conftest.$ac_ext <<EOF
6522#line 6523 "configure"
6523#include "confdefs.h"
6524
6525#ifdef HAVE_TERMCAP_H
6526# include <termcap.h>
6527#endif
6528extern char *UP, *BC, PC;
6529
6530int main() {
6531if (UP == 0 && BC == 0) PC = 1
6532; return 0; }
6533EOF
6534if { (eval echo configure:6535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6535 rm -rf conftest*
6536 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
6537#define UP_BC_PC_EXTERN 1
6538EOF
6539
6540else
6541 echo "configure: failed program was:" >&5
6542 cat conftest.$ac_ext >&5
6543 rm -rf conftest*
6544 echo "$ac_t""no" 1>&6
6545fi
6546rm -f conftest*
6547
6548fi
6549rm -f conftest*
6550
6551echo $ac_n "checking whether tputs() uses outfuntype""... $ac_c" 1>&6
6552echo "configure:6553: checking whether tputs() uses outfuntype" >&5
6553cat > conftest.$ac_ext <<EOF
6554#line 6555 "configure"
6555#include "confdefs.h"
6556
6557#ifdef HAVE_TERMCAP_H
6558# include <termcap.h>
6559#endif
6560
6561int main() {
6562extern int xx(); tputs("test", 1, (outfuntype)xx)
6563; return 0; }
6564EOF
6565if { (eval echo configure:6566: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6566 rm -rf conftest*
6567 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
6568#define HAVE_OUTFUNTYPE 1
6569EOF
6570
6571else
6572 echo "configure: failed program was:" >&5
6573 cat conftest.$ac_ext >&5
6574 rm -rf conftest*
6575 echo "$ac_t""no" 1>&6
6576fi
6577rm -f conftest*
6578
6579echo $ac_n "checking whether sys/select.h and sys/time.h may both be included""... $ac_c" 1>&6
6580echo "configure:6581: checking whether sys/select.h and sys/time.h may both be included" >&5
6581cat > conftest.$ac_ext <<EOF
6582#line 6583 "configure"
6583#include "confdefs.h"
6584
6585#include <sys/types.h>
6586#include <sys/time.h>
6587#include <sys/select.h>
6588int main() {
6589
6590; return 0; }
6591EOF
6592if { (eval echo configure:6593: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6593 rm -rf conftest*
6594 echo "$ac_t""yes" 1>&6
6595 cat >> confdefs.h <<\EOF
6596#define SYS_SELECT_WITH_SYS_TIME 1
6597EOF
6598
6599else
6600 echo "configure: failed program was:" >&5
6601 cat conftest.$ac_ext >&5
6602 rm -rf conftest*
6603 echo "$ac_t""no" 1>&6
6604fi
6605rm -f conftest*
6606
6607
6608echo $ac_n "checking for /dev/ptc""... $ac_c" 1>&6
6609echo "configure:6610: checking for /dev/ptc" >&5
6610if test -r /dev/ptc; then
6611 cat >> confdefs.h <<\EOF
6612#define HAVE_DEV_PTC 1
6613EOF
6614
6615 echo "$ac_t""yes" 1>&6
6616else
6617 echo "$ac_t""no" 1>&6
6618fi
6619
6620echo $ac_n "checking for SVR4 ptys""... $ac_c" 1>&6
6621echo "configure:6622: checking for SVR4 ptys" >&5
6622if test -c /dev/ptmx ; then
6623 cat > conftest.$ac_ext <<EOF
6624#line 6625 "configure"
6625#include "confdefs.h"
6626
6627int main() {
6628ptsname(0);grantpt(0);unlockpt(0);
6629; return 0; }
6630EOF
6631if { (eval echo configure:6632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6632 rm -rf conftest*
6633 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
6634#define HAVE_SVR4_PTYS 1
6635EOF
6636
6637else
6638 echo "configure: failed program was:" >&5
6639 cat conftest.$ac_ext >&5
6640 rm -rf conftest*
6641 echo "$ac_t""no" 1>&6
6642fi
6643rm -f conftest*
6644else
6645 echo "$ac_t""no" 1>&6
6646fi
6647
6648echo $ac_n "checking for ptyranges""... $ac_c" 1>&6
6649echo "configure:6650: checking for ptyranges" >&5
6650if test -d /dev/ptym ; then
6651 pdir='/dev/ptym'
6652else
6653 pdir='/dev'
6654fi
6655cat > conftest.$ac_ext <<EOF
6656#line 6657 "configure"
6657#include "confdefs.h"
6658#ifdef M_UNIX
6659 yes;
6660#endif
6661
6662EOF
6663if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6664 egrep "yes" >/dev/null 2>&1; then
6665 rm -rf conftest*
6666 ptys=`echo /dev/ptyp??`
6667else
6668 rm -rf conftest*
6669 ptys=`echo $pdir/pty??`
6670fi
6671rm -f conftest*
6672
6673if test "$ptys" != "$pdir/pty??" ; then
6674 p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
6675 p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'`
6676 cat >> confdefs.h <<EOF
6677#define PTYRANGE0 "$p0"
6678EOF
6679
6680 cat >> confdefs.h <<EOF
6681#define PTYRANGE1 "$p1"
6682EOF
6683
6684 echo "$ac_t""$p0 / $p1" 1>&6
6685else
6686 echo "$ac_t""don't know" 1>&6
6687fi
6688
6689echo $ac_n "checking default tty permissions/group""... $ac_c" 1>&6
6690echo "configure:6691: checking default tty permissions/group" >&5
6691rm -f conftest_grp
6692if test "$cross_compiling" = yes; then
6693 { echo "configure: error: failed to compile test program" 1>&2; exit 1; }
6694else
6695 cat > conftest.$ac_ext <<EOF
6696#line 6697 "configure"
6697#include "confdefs.h"
6698
6699#include <sys/types.h>
6700#include <sys/stat.h>
6701#include <stdio.h>
6702main()
6703{
6704 struct stat sb;
6705 char *x,*ttyname();
6706 int om, m;
6707 FILE *fp;
6708
6709 if (!(x = ttyname(0))) exit(1);
6710 if (stat(x, &sb)) exit(1);
6711 om = sb.st_mode;
6712 if (om & 002) exit(0);
6713 m = system("mesg y");
6714 if (m == -1 || m == 127) exit(1);
6715 if (stat(x, &sb)) exit(1);
6716 m = sb.st_mode;
6717 if (chmod(x, om)) exit(1);
6718 if (m & 002) exit(0);
6719 if (sb.st_gid == getgid()) exit(1);
6720 if (!(fp=fopen("conftest_grp", "w")))
6721 exit(1);
6722 fprintf(fp, "%d\n", sb.st_gid);
6723 fclose(fp);
6724 exit(0);
6725}
6726
6727EOF
6728if { (eval echo configure:6729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6729then
6730
6731 if test -f conftest_grp; then
6732 ptygrp=`cat conftest_grp`
6733 echo "$ac_t""pty mode: 0620, group: $ptygrp" 1>&6
6734 cat >> confdefs.h <<\EOF
6735#define PTYMODE 0620
6736EOF
6737
6738 cat >> confdefs.h <<EOF
6739#define PTYGROUP $ptygrp
6740EOF
6741
6742 else
6743 echo "$ac_t""ptys are world accessable" 1>&6
6744 fi
6745
6746else
6747 echo "configure: failed program was:" >&5
6748 cat conftest.$ac_ext >&5
6749 rm -fr conftest*
6750 echo "$ac_t""can't determine - assume ptys are world accessable" 1>&6
6751fi
6752rm -fr conftest*
6753fi
6754
6755rm -f conftest_grp
6756
6757
6758echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
6759echo "configure:6760: checking return type of signal handlers" >&5
6760if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
6761 echo $ac_n "(cached) $ac_c" 1>&6
6762else
6763 cat > conftest.$ac_ext <<EOF
6764#line 6765 "configure"
6765#include "confdefs.h"
6766#include <sys/types.h>
6767#include <signal.h>
6768#ifdef signal
6769#undef signal
6770#endif
6771#ifdef __cplusplus
6772extern "C" void (*signal (int, void (*)(int)))(int);
6773#else
6774void (*signal ()) ();
6775#endif
6776
6777int main() {
6778int i;
6779; return 0; }
6780EOF
6781if { (eval echo configure:6782: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6782 rm -rf conftest*
6783 ac_cv_type_signal=void
6784else
6785 echo "configure: failed program was:" >&5
6786 cat conftest.$ac_ext >&5
6787 rm -rf conftest*
6788 ac_cv_type_signal=int
6789fi
6790rm -f conftest*
6791fi
6792
6793echo "$ac_t""$ac_cv_type_signal" 1>&6
6794cat >> confdefs.h <<EOF
6795#define RETSIGTYPE $ac_cv_type_signal
6796EOF
6797
6798
6799
6800if test $ac_cv_type_signal = void; then
6801 cat >> confdefs.h <<\EOF
6802#define SIGRETURN return
6803EOF
6804
6805else
6806 cat >> confdefs.h <<\EOF
6807#define SIGRETURN return 0
6808EOF
6809
6810fi
6811
6812echo $ac_n "checking for struct sigcontext""... $ac_c" 1>&6
6813echo "configure:6814: checking for struct sigcontext" >&5
6814cat > conftest.$ac_ext <<EOF
6815#line 6816 "configure"
6816#include "confdefs.h"
6817
6818#include <signal.h>
6819test_sig()
6820{
6821 struct sigcontext *scont;
6822 scont = (struct sigcontext *)0;
6823 return 1;
6824}
6825int main() {
6826
6827; return 0; }
6828EOF
6829if { (eval echo configure:6830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6830 rm -rf conftest*
6831 echo "$ac_t""yes" 1>&6
6832 cat >> confdefs.h <<\EOF
6833#define HAVE_SIGCONTEXT 1
6834EOF
6835
6836else
6837 echo "configure: failed program was:" >&5
6838 cat conftest.$ac_ext >&5
6839 rm -rf conftest*
6840 echo "$ac_t""no" 1>&6
6841fi
6842rm -f conftest*
6843
6844echo $ac_n "checking getcwd implementation""... $ac_c" 1>&6
6845echo "configure:6846: checking getcwd implementation" >&5
6846if test "$cross_compiling" = yes; then
6847 { echo "configure: error: failed to compile test program" 1>&2; exit 1; }
6848else
6849 cat > conftest.$ac_ext <<EOF
6850#line 6851 "configure"
6851#include "confdefs.h"
6852
6853char *dagger[] = { "IFS=pwd", 0 };
6854main()
6855{
6856 char buffer[500];
6857 extern char **environ;
6858 environ = dagger;
6859 return getcwd(buffer, 500) ? 0 : 1;
6860}
6861EOF
6862if { (eval echo configure:6863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6863then
6864 echo "$ac_t""it is usable" 1>&6
6865else
6866 echo "configure: failed program was:" >&5
6867 cat conftest.$ac_ext >&5
6868 rm -fr conftest*
6869 echo "$ac_t""it stinks" 1>&6
6870 cat >> confdefs.h <<\EOF
6871#define BAD_GETCWD 1
6872EOF
6873
6874fi
6875rm -fr conftest*
6876fi
6877
6878
6879for ac_func in bcmp fchdir fchown fseeko fsync ftello getcwd getpseudotty \
6880 getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \
6881 memset nanosleep opendir putenv qsort readlink select setenv \
6882 setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \
6883 sigvec snprintf strcasecmp strerror strftime stricmp strncasecmp \
6884 strnicmp strpbrk strtol tgetent towlower towupper usleep utime utimes
6885do
6886echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6887echo "configure:6888: checking for $ac_func" >&5
6888if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6889 echo $ac_n "(cached) $ac_c" 1>&6
6890else
6891 cat > conftest.$ac_ext <<EOF
6892#line 6893 "configure"
6893#include "confdefs.h"
6894/* System header to define __stub macros and hopefully few prototypes,
6895 which can conflict with char $ac_func(); below. */
6896#include <assert.h>
6897/* Override any gcc2 internal prototype to avoid an error. */
6898/* We use char because int might match the return type of a gcc2
6899 builtin and then its argument prototype would still apply. */
6900char $ac_func();
6901
6902int main() {
6903
6904/* The GNU C library defines this for functions which it implements
6905 to always fail with ENOSYS. Some functions are actually named
6906 something starting with __ and the normal name is an alias. */
6907#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6908choke me
6909#else
6910$ac_func();
6911#endif
6912
6913; return 0; }
6914EOF
6915if { (eval echo configure:6916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6916 rm -rf conftest*
6917 eval "ac_cv_func_$ac_func=yes"
6918else
6919 echo "configure: failed program was:" >&5
6920 cat conftest.$ac_ext >&5
6921 rm -rf conftest*
6922 eval "ac_cv_func_$ac_func=no"
6923fi
6924rm -f conftest*
6925fi
6926
6927if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6928 echo "$ac_t""yes" 1>&6
6929 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6930 cat >> confdefs.h <<EOF
6931#define $ac_tr_func 1
6932EOF
6933
6934else
6935 echo "$ac_t""no" 1>&6
6936fi
6937done
6938
6939
6940echo $ac_n "checking for st_blksize""... $ac_c" 1>&6
6941echo "configure:6942: checking for st_blksize" >&5
6942cat > conftest.$ac_ext <<EOF
6943#line 6944 "configure"
6944#include "confdefs.h"
6945#include <sys/types.h>
6946#include <sys/stat.h>
6947int main() {
6948 struct stat st;
6949 int n;
6950
6951 stat("/", &st);
6952 n = (int)st.st_blksize;
6953; return 0; }
6954EOF
6955if { (eval echo configure:6956: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6956 rm -rf conftest*
6957 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
6958#define HAVE_ST_BLKSIZE 1
6959EOF
6960
6961else
6962 echo "configure: failed program was:" >&5
6963 cat conftest.$ac_ext >&5
6964 rm -rf conftest*
6965 echo "$ac_t""no" 1>&6
6966fi
6967rm -f conftest*
6968
6969echo $ac_n "checking whether stat() ignores a trailing slash""... $ac_c" 1>&6
6970echo "configure:6971: checking whether stat() ignores a trailing slash" >&5
6971if test "$cross_compiling" = yes; then
6972 { echo "configure: error: failed to compile test program" 1>&2; exit 1; }
6973else
6974 cat > conftest.$ac_ext <<EOF
6975#line 6976 "configure"
6976#include "confdefs.h"
6977#include <sys/types.h>
6978#include <sys/stat.h>
6979main() {struct stat st; exit(stat("configure/", &st) != 0); }
6980EOF
6981if { (eval echo configure:6982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6982then
6983 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
6984#define STAT_IGNORES_SLASH 1
6985EOF
6986
6987else
6988 echo "configure: failed program was:" >&5
6989 cat conftest.$ac_ext >&5
6990 rm -fr conftest*
6991 echo "$ac_t""no" 1>&6
6992fi
6993rm -fr conftest*
6994fi
6995
6996
6997echo $ac_n "checking for iconv_open()""... $ac_c" 1>&6
6998echo "configure:6999: checking for iconv_open()" >&5
6999save_LIBS="$LIBS"
7000LIBS="$LIBS -liconv"
7001cat > conftest.$ac_ext <<EOF
7002#line 7003 "configure"
7003#include "confdefs.h"
7004
7005#ifdef HAVE_ICONV_H
7006# include <iconv.h>
7007#endif
7008
7009int main() {
7010iconv_open("fr", "to");
7011; return 0; }
7012EOF
7013if { (eval echo configure:7014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7014 rm -rf conftest*
7015 echo "$ac_t""yes; with -liconv" 1>&6; cat >> confdefs.h <<\EOF
7016#define HAVE_ICONV 1
7017EOF
7018
7019else
7020 echo "configure: failed program was:" >&5
7021 cat conftest.$ac_ext >&5
7022 rm -rf conftest*
7023 LIBS="$save_LIBS"
7024 cat > conftest.$ac_ext <<EOF
7025#line 7026 "configure"
7026#include "confdefs.h"
7027
7028#ifdef HAVE_ICONV_H
7029# include <iconv.h>
7030#endif
7031
7032int main() {
7033iconv_open("fr", "to");
7034; return 0; }
7035EOF
7036if { (eval echo configure:7037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7037 rm -rf conftest*
7038 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
7039#define HAVE_ICONV 1
7040EOF
7041
7042else
7043 echo "configure: failed program was:" >&5
7044 cat conftest.$ac_ext >&5
7045 rm -rf conftest*
7046 echo "$ac_t""no" 1>&6
7047fi
7048rm -f conftest*
7049fi
7050rm -f conftest*
7051
7052
7053echo $ac_n "checking for nl_langinfo(CODESET)""... $ac_c" 1>&6
7054echo "configure:7055: checking for nl_langinfo(CODESET)" >&5
7055cat > conftest.$ac_ext <<EOF
7056#line 7057 "configure"
7057#include "confdefs.h"
7058
7059#ifdef HAVE_LANGINFO_H
7060# include <langinfo.h>
7061#endif
7062
7063int main() {
7064char *cs = nl_langinfo(CODESET);
7065; return 0; }
7066EOF
7067if { (eval echo configure:7068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7068 rm -rf conftest*
7069 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
7070#define HAVE_NL_LANGINFO_CODESET 1
7071EOF
7072
7073else
7074 echo "configure: failed program was:" >&5
7075 cat conftest.$ac_ext >&5
7076 rm -rf conftest*
7077 echo "$ac_t""no" 1>&6
7078fi
7079rm -f conftest*
7080
7081echo $ac_n "checking --disable-acl argument""... $ac_c" 1>&6
7082echo "configure:7083: checking --disable-acl argument" >&5
7083# Check whether --enable-acl or --disable-acl was given.
7084if test "${enable_acl+set}" = set; then
7085 enableval="$enable_acl"
7086 :
7087else
7088 enable_acl="yes"
7089fi
7090
7091if test "$enable_acl" = "yes"; then
7092echo "$ac_t""no" 1>&6
7093echo $ac_n "checking for acl_get_file in -lposix1e""... $ac_c" 1>&6
7094echo "configure:7095: checking for acl_get_file in -lposix1e" >&5
7095ac_lib_var=`echo posix1e'_'acl_get_file | sed 'y%./+-%__p_%'`
7096if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7097 echo $ac_n "(cached) $ac_c" 1>&6
7098else
7099 ac_save_LIBS="$LIBS"
7100LIBS="-lposix1e $LIBS"
7101cat > conftest.$ac_ext <<EOF
7102#line 7103 "configure"
7103#include "confdefs.h"
7104/* Override any gcc2 internal prototype to avoid an error. */
7105/* We use char because int might match the return type of a gcc2
7106 builtin and then its argument prototype would still apply. */
7107char acl_get_file();
7108
7109int main() {
7110acl_get_file()
7111; return 0; }
7112EOF
7113if { (eval echo configure:7114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7114 rm -rf conftest*
7115 eval "ac_cv_lib_$ac_lib_var=yes"
7116else
7117 echo "configure: failed program was:" >&5
7118 cat conftest.$ac_ext >&5
7119 rm -rf conftest*
7120 eval "ac_cv_lib_$ac_lib_var=no"
7121fi
7122rm -f conftest*
7123LIBS="$ac_save_LIBS"
7124
7125fi
7126if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7127 echo "$ac_t""yes" 1>&6
7128 LIBS="$LIBS -lposix1e"
7129else
7130 echo "$ac_t""no" 1>&6
7131echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
7132echo "configure:7133: checking for acl_get_file in -lacl" >&5
7133ac_lib_var=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
7134if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7135 echo $ac_n "(cached) $ac_c" 1>&6
7136else
7137 ac_save_LIBS="$LIBS"
7138LIBS="-lacl $LIBS"
7139cat > conftest.$ac_ext <<EOF
7140#line 7141 "configure"
7141#include "confdefs.h"
7142/* Override any gcc2 internal prototype to avoid an error. */
7143/* We use char because int might match the return type of a gcc2
7144 builtin and then its argument prototype would still apply. */
7145char acl_get_file();
7146
7147int main() {
7148acl_get_file()
7149; return 0; }
7150EOF
7151if { (eval echo configure:7152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7152 rm -rf conftest*
7153 eval "ac_cv_lib_$ac_lib_var=yes"
7154else
7155 echo "configure: failed program was:" >&5
7156 cat conftest.$ac_ext >&5
7157 rm -rf conftest*
7158 eval "ac_cv_lib_$ac_lib_var=no"
7159fi
7160rm -f conftest*
7161LIBS="$ac_save_LIBS"
7162
7163fi
7164if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7165 echo "$ac_t""yes" 1>&6
7166 LIBS="$LIBS -lacl"
7167 echo $ac_n "checking for fgetxattr in -lattr""... $ac_c" 1>&6
7168echo "configure:7169: checking for fgetxattr in -lattr" >&5
7169ac_lib_var=`echo attr'_'fgetxattr | sed 'y%./+-%__p_%'`
7170if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7171 echo $ac_n "(cached) $ac_c" 1>&6
7172else
7173 ac_save_LIBS="$LIBS"
7174LIBS="-lattr $LIBS"
7175cat > conftest.$ac_ext <<EOF
7176#line 7177 "configure"
7177#include "confdefs.h"
7178/* Override any gcc2 internal prototype to avoid an error. */
7179/* We use char because int might match the return type of a gcc2
7180 builtin and then its argument prototype would still apply. */
7181char fgetxattr();
7182
7183int main() {
7184fgetxattr()
7185; return 0; }
7186EOF
7187if { (eval echo configure:7188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7188 rm -rf conftest*
7189 eval "ac_cv_lib_$ac_lib_var=yes"
7190else
7191 echo "configure: failed program was:" >&5
7192 cat conftest.$ac_ext >&5
7193 rm -rf conftest*
7194 eval "ac_cv_lib_$ac_lib_var=no"
7195fi
7196rm -f conftest*
7197LIBS="$ac_save_LIBS"
7198
7199fi
7200if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7201 echo "$ac_t""yes" 1>&6
7202 LIBS="$LIBS -lattr"
7203else
7204 echo "$ac_t""no" 1>&6
7205fi
7206
7207else
7208 echo "$ac_t""no" 1>&6
7209fi
7210
7211fi
7212
7213
7214echo $ac_n "checking for POSIX ACL support""... $ac_c" 1>&6
7215echo "configure:7216: checking for POSIX ACL support" >&5
7216cat > conftest.$ac_ext <<EOF
7217#line 7218 "configure"
7218#include "confdefs.h"
7219
7220#include <sys/types.h>
7221#ifdef HAVE_SYS_ACL_H
7222# include <sys/acl.h>
7223#endif
7224acl_t acl;
7225int main() {
7226acl = acl_get_file("foo", ACL_TYPE_ACCESS);
7227 acl_set_file("foo", ACL_TYPE_ACCESS, acl);
7228 acl_free(acl);
7229; return 0; }
7230EOF
7231if { (eval echo configure:7232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7232 rm -rf conftest*
7233 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
7234#define HAVE_POSIX_ACL 1
7235EOF
7236
7237else
7238 echo "configure: failed program was:" >&5
7239 cat conftest.$ac_ext >&5
7240 rm -rf conftest*
7241 echo "$ac_t""no" 1>&6
7242fi
7243rm -f conftest*
7244
7245echo $ac_n "checking for Solaris ACL support""... $ac_c" 1>&6
7246echo "configure:7247: checking for Solaris ACL support" >&5
7247cat > conftest.$ac_ext <<EOF
7248#line 7249 "configure"
7249#include "confdefs.h"
7250
7251#ifdef HAVE_SYS_ACL_H
7252# include <sys/acl.h>
7253#endif
7254int main() {
7255acl("foo", GETACLCNT, 0, NULL);
7256
7257; return 0; }
7258EOF
7259if { (eval echo configure:7260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7260 rm -rf conftest*
7261 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
7262#define HAVE_SOLARIS_ACL 1
7263EOF
7264
7265else
7266 echo "configure: failed program was:" >&5
7267 cat conftest.$ac_ext >&5
7268 rm -rf conftest*
7269 echo "$ac_t""no" 1>&6
7270fi
7271rm -f conftest*
7272
7273echo $ac_n "checking for AIX ACL support""... $ac_c" 1>&6
7274echo "configure:7275: checking for AIX ACL support" >&5
7275cat > conftest.$ac_ext <<EOF
7276#line 7277 "configure"
7277#include "confdefs.h"
7278
7279#ifdef HAVE_SYS_ACL_H
7280# include <sys/acl.h>
7281#endif
7282#ifdef HAVE_SYS_ACCESS_H
7283# include <sys/access.h>
7284#endif
7285#define _ALL_SOURCE
7286
7287#include <sys/stat.h>
7288
7289int aclsize;
7290struct acl *aclent;
7291int main() {
7292aclsize = sizeof(struct acl);
7293 aclent = (void *)malloc(aclsize);
7294 statacl("foo", STX_NORMAL, aclent, aclsize);
7295
7296; return 0; }
7297EOF
7298if { (eval echo configure:7299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7299 rm -rf conftest*
7300 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
7301#define HAVE_AIX_ACL 1
7302EOF
7303
7304else
7305 echo "configure: failed program was:" >&5
7306 cat conftest.$ac_ext >&5
7307 rm -rf conftest*
7308 echo "$ac_t""no" 1>&6
7309fi
7310rm -f conftest*
7311else
7312 echo "$ac_t""yes" 1>&6
7313fi
7314
7315echo $ac_n "checking --disable-gpm argument""... $ac_c" 1>&6
7316echo "configure:7317: checking --disable-gpm argument" >&5
7317# Check whether --enable-gpm or --disable-gpm was given.
7318if test "${enable_gpm+set}" = set; then
7319 enableval="$enable_gpm"
7320 :
7321else
7322 enable_gpm="yes"
7323fi
7324
7325
7326if test "$enable_gpm" = "yes"; then
7327 echo "$ac_t""no" 1>&6
7328 echo $ac_n "checking for gpm""... $ac_c" 1>&6
7329echo "configure:7330: checking for gpm" >&5
7330if eval "test \"`echo '$''{'vi_cv_have_gpm'+set}'`\" = set"; then
7331 echo $ac_n "(cached) $ac_c" 1>&6
7332else
7333 olibs="$LIBS" ; LIBS="-lgpm"
7334 cat > conftest.$ac_ext <<EOF
7335#line 7336 "configure"
7336#include "confdefs.h"
7337#include <gpm.h>
7338 #include <linux/keyboard.h>
7339int main() {
7340Gpm_GetLibVersion(NULL);
7341; return 0; }
7342EOF
7343if { (eval echo configure:7344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7344 rm -rf conftest*
7345 vi_cv_have_gpm=yes
7346else
7347 echo "configure: failed program was:" >&5
7348 cat conftest.$ac_ext >&5
7349 rm -rf conftest*
7350 vi_cv_have_gpm=no
7351fi
7352rm -f conftest*
7353 LIBS="$olibs"
7354
7355fi
7356
7357echo "$ac_t""$vi_cv_have_gpm" 1>&6
7358 if test $vi_cv_have_gpm = yes; then
7359 LIBS="$LIBS -lgpm"
7360 cat >> confdefs.h <<\EOF
7361#define HAVE_GPM 1
7362EOF
7363
7364 fi
7365else
7366 echo "$ac_t""yes" 1>&6
7367fi
7368
7369echo $ac_n "checking for vsnprintf()""... $ac_c" 1>&6
7370echo "configure:7371: checking for vsnprintf()" >&5
7371if test "$cross_compiling" = yes; then
7372 { echo "configure: error: failed to compile test program" 1>&2; exit 1; }
7373else
7374 cat > conftest.$ac_ext <<EOF
7375#line 7376 "configure"
7376#include "confdefs.h"
7377
7378#include <stdio.h>
7379#include <stdarg.h>
7380 /* Check use of vsnprintf() */
7381 void warn(char *fmt, ...);
7382 void warn(char *fmt, ...)
7383 {
7384 va_list ap; char buf[20];
7385 va_start(ap, fmt);
7386 vsnprintf(buf, 20, fmt, ap);
7387 va_end(ap);
7388 }
7389 main()
7390 {
7391 warn("testing %s\n", "a very long string that won't fit");
7392 exit(0);
7393 }
7394
7395EOF
7396if { (eval echo configure:7397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7397then
7398 cat >> confdefs.h <<\EOF
7399#define HAVE_VSNPRINTF 1
7400EOF
7401 echo "$ac_t""yes" 1>&6
7402else
7403 echo "configure: failed program was:" >&5
7404 cat conftest.$ac_ext >&5
7405 rm -fr conftest*
7406 echo "$ac_t""no" 1>&6
7407fi
7408rm -fr conftest*
7409fi
7410
7411
7412
7413echo $ac_n "checking for rename""... $ac_c" 1>&6
7414echo "configure:7415: checking for rename" >&5
7415cat > conftest.$ac_ext <<EOF
7416#line 7417 "configure"
7417#include "confdefs.h"
7418#include <stdio.h>
7419int main() {
7420rename("this", "that")
7421; return 0; }
7422EOF
7423if { (eval echo configure:7424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7424 rm -rf conftest*
7425 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
7426#define HAVE_RENAME 1
7427EOF
7428
7429else
7430 echo "configure: failed program was:" >&5
7431 cat conftest.$ac_ext >&5
7432 rm -rf conftest*
7433 echo "$ac_t""no" 1>&6
7434fi
7435rm -f conftest*
7436
7437echo $ac_n "checking for sysctl""... $ac_c" 1>&6
7438echo "configure:7439: checking for sysctl" >&5
7439cat > conftest.$ac_ext <<EOF
7440#line 7441 "configure"
7441#include "confdefs.h"
7442#include <sys/types.h>
7443#include <sys/sysctl.h>
7444int main() {
7445 int mib[2], r;
7446 size_t len;
7447
7448 mib[0] = CTL_HW;
7449 mib[1] = HW_USERMEM;
7450 len = sizeof(r);
7451 (void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0);
7452
7453; return 0; }
7454EOF
7455if { (eval echo configure:7456: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7456 rm -rf conftest*
7457 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
7458#define HAVE_SYSCTL 1
7459EOF
7460
7461else
7462 echo "configure: failed program was:" >&5
7463 cat conftest.$ac_ext >&5
7464 rm -rf conftest*
7465 echo "$ac_t""not usable" 1>&6
7466fi
7467rm -f conftest*
7468
7469echo $ac_n "checking for sysinfo""... $ac_c" 1>&6
7470echo "configure:7471: checking for sysinfo" >&5
7471cat > conftest.$ac_ext <<EOF
7472#line 7473 "configure"
7473#include "confdefs.h"
7474#include <sys/types.h>
7475#include <sys/sysinfo.h>
7476int main() {
7477 struct sysinfo sinfo;
7478 int t;
7479
7480 (void)sysinfo(&sinfo);
7481 t = sinfo.totalram;
7482
7483; return 0; }
7484EOF
7485if { (eval echo configure:7486: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7486 rm -rf conftest*
7487 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
7488#define HAVE_SYSINFO 1
7489EOF
7490
7491else
7492 echo "configure: failed program was:" >&5
7493 cat conftest.$ac_ext >&5
7494 rm -rf conftest*
7495 echo "$ac_t""not usable" 1>&6
7496fi
7497rm -f conftest*
7498
7499echo $ac_n "checking for sysconf""... $ac_c" 1>&6
7500echo "configure:7501: checking for sysconf" >&5
7501cat > conftest.$ac_ext <<EOF
7502#line 7503 "configure"
7503#include "confdefs.h"
7504#include <unistd.h>
7505int main() {
7506 (void)sysconf(_SC_PAGESIZE);
7507 (void)sysconf(_SC_PHYS_PAGES);
7508
7509; return 0; }
7510EOF
7511if { (eval echo configure:7512: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7512 rm -rf conftest*
7513 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
7514#define HAVE_SYSCONF 1
7515EOF
7516
7517else
7518 echo "configure: failed program was:" >&5
7519 cat conftest.$ac_ext >&5
7520 rm -rf conftest*
7521 echo "$ac_t""not usable" 1>&6
7522fi
7523rm -f conftest*
7524
7525
7526echo $ac_n "checking size of int""... $ac_c" 1>&6
7527echo "configure:7528: checking size of int" >&5
7528if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
7529 echo $ac_n "(cached) $ac_c" 1>&6
7530else
7531 if test "$cross_compiling" = yes; then
7532 { echo "configure: error: failed to compile test program" 1>&2; exit 1; }
7533else
7534 cat > conftest.$ac_ext <<EOF
7535#line 7536 "configure"
7536#include "confdefs.h"
7537#include <stdio.h>
7538 main()
7539 {
7540 FILE *f=fopen("conftestval", "w");
7541 if (!f) exit(1);
7542 fprintf(f, "%d\n", (int)sizeof(int));
7543 exit(0);
7544 }
7545EOF
7546if { (eval echo configure:7547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7547then
7548 ac_cv_sizeof_int=`cat conftestval`
7549else
7550 echo "configure: failed program was:" >&5
7551 cat conftest.$ac_ext >&5
7552 rm -fr conftest*
7553 ac_cv_sizeof_int=0
7554fi
7555rm -fr conftest*
7556fi
7557
7558fi
7559
7560echo "$ac_t""$ac_cv_sizeof_int" 1>&6
7561cat >> confdefs.h <<EOF
7562#define SIZEOF_INT $ac_cv_sizeof_int
7563EOF
7564
7565
7566echo $ac_n "checking whether memmove/bcopy/memcpy handle overlaps""... $ac_c" 1>&6
7567echo "configure:7568: checking whether memmove/bcopy/memcpy handle overlaps" >&5
7568bcopy_test_prog='
7569main() {
7570 char buf[10];
7571 strcpy(buf, "abcdefghi");
7572 mch_memmove(buf, buf + 2, 3);
7573 if (strncmp(buf, "ababcf", 6))
7574 exit(1);
7575 strcpy(buf, "abcdefghi");
7576 mch_memmove(buf + 2, buf, 3);
7577 if (strncmp(buf, "cdedef", 6))
7578 exit(1);
7579 exit(0); /* libc version works properly. */
7580}'
7581
7582
7583if test "$cross_compiling" = yes; then
7584 { echo "configure: error: failed to compile test program" 1>&2; exit 1; }
7585else
7586 cat > conftest.$ac_ext <<EOF
7587#line 7588 "configure"
7588#include "confdefs.h"
7589#define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog
7590EOF
7591if { (eval echo configure:7592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7592then
7593 cat >> confdefs.h <<\EOF
7594#define USEMEMMOVE 1
7595EOF
7596 echo "$ac_t""memmove does" 1>&6
7597else
7598 echo "configure: failed program was:" >&5
7599 cat conftest.$ac_ext >&5
7600 rm -fr conftest*
7601 if test "$cross_compiling" = yes; then
7602 { echo "configure: error: failed to compile test program" 1>&2; exit 1; }
7603else
7604 cat > conftest.$ac_ext <<EOF
7605#line 7606 "configure"
7606#include "confdefs.h"
7607#define mch_memmove(s,d,l) bcopy(d,s,l) $bcopy_test_prog
7608EOF
7609if { (eval echo configure:7610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7610then
7611 cat >> confdefs.h <<\EOF
7612#define USEBCOPY 1
7613EOF
7614 echo "$ac_t""bcopy does" 1>&6
7615else
7616 echo "configure: failed program was:" >&5
7617 cat conftest.$ac_ext >&5
7618 rm -fr conftest*
7619 if test "$cross_compiling" = yes; then
7620 { echo "configure: error: failed to compile test program" 1>&2; exit 1; }
7621else
7622 cat > conftest.$ac_ext <<EOF
7623#line 7624 "configure"
7624#include "confdefs.h"
7625#define mch_memmove(s,d,l) memcpy(d,s,l) $bcopy_test_prog
7626EOF
7627if { (eval echo configure:7628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7628then
7629 cat >> confdefs.h <<\EOF
7630#define USEMEMCPY 1
7631EOF
7632 echo "$ac_t""memcpy does" 1>&6
7633else
7634 echo "configure: failed program was:" >&5
7635 cat conftest.$ac_ext >&5
7636 rm -fr conftest*
7637 echo "$ac_t""no" 1>&6
7638fi
7639rm -fr conftest*
7640fi
7641
7642fi
7643rm -fr conftest*
7644fi
7645
7646fi
7647rm -fr conftest*
7648fi
7649
7650
7651
7652if test "$enable_multibyte" = "yes"; then
7653 cflags_save=$CFLAGS
7654 ldflags_save=$LDFLAGS
7655 if test -n "$x_includes" ; then
7656 CFLAGS="$CFLAGS -I$x_includes"
7657 LDFLAGS="$X_LIBS $LDFLAGS -lX11"
7658 echo $ac_n "checking whether X_LOCALE needed""... $ac_c" 1>&6
7659echo "configure:7660: checking whether X_LOCALE needed" >&5
7660 cat > conftest.$ac_ext <<EOF
7661#line 7662 "configure"
7662#include "confdefs.h"
7663#include <X11/Xlocale.h>
7664int main() {
7665
7666; return 0; }
7667EOF
7668if { (eval echo configure:7669: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7669 rm -rf conftest*
7670 cat > conftest.$ac_ext <<EOF
7671#line 7672 "configure"
7672#include "confdefs.h"
7673/* Override any gcc2 internal prototype to avoid an error. */
7674/* We use char because int might match the return type of a gcc2
7675 builtin and then its argument prototype would still apply. */
7676char _Xsetlocale();
7677
7678int main() {
7679_Xsetlocale()
7680; return 0; }
7681EOF
7682if { (eval echo configure:7683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7683 rm -rf conftest*
7684 echo "$ac_t""yes" 1>&6
7685 cat >> confdefs.h <<\EOF
7686#define X_LOCALE 1
7687EOF
7688
7689else
7690 echo "configure: failed program was:" >&5
7691 cat conftest.$ac_ext >&5
7692 rm -rf conftest*
7693 echo "$ac_t""no" 1>&6
7694fi
7695rm -f conftest*
7696else
7697 echo "configure: failed program was:" >&5
7698 cat conftest.$ac_ext >&5
7699 rm -rf conftest*
7700 echo "$ac_t""no" 1>&6
7701fi
7702rm -f conftest*
7703 fi
7704 CFLAGS=$cflags_save
7705 LDFLAGS=$ldflags_save
7706fi
7707
7708echo $ac_n "checking for _xpg4_setrunelocale in -lxpg4""... $ac_c" 1>&6
7709echo "configure:7710: checking for _xpg4_setrunelocale in -lxpg4" >&5
7710ac_lib_var=`echo xpg4'_'_xpg4_setrunelocale | sed 'y%./+-%__p_%'`
7711if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7712 echo $ac_n "(cached) $ac_c" 1>&6
7713else
7714 ac_save_LIBS="$LIBS"
7715LIBS="-lxpg4 $LIBS"
7716cat > conftest.$ac_ext <<EOF
7717#line 7718 "configure"
7718#include "confdefs.h"
7719/* Override any gcc2 internal prototype to avoid an error. */
7720/* We use char because int might match the return type of a gcc2
7721 builtin and then its argument prototype would still apply. */
7722char _xpg4_setrunelocale();
7723
7724int main() {
7725_xpg4_setrunelocale()
7726; return 0; }
7727EOF
7728if { (eval echo configure:7729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7729 rm -rf conftest*
7730 eval "ac_cv_lib_$ac_lib_var=yes"
7731else
7732 echo "configure: failed program was:" >&5
7733 cat conftest.$ac_ext >&5
7734 rm -rf conftest*
7735 eval "ac_cv_lib_$ac_lib_var=no"
7736fi
7737rm -f conftest*
7738LIBS="$ac_save_LIBS"
7739
7740fi
7741if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7742 echo "$ac_t""yes" 1>&6
7743 LIBS="$LIBS -lxpg4"
7744else
7745 echo "$ac_t""no" 1>&6
7746fi
7747
7748
7749echo $ac_n "checking how to create tags""... $ac_c" 1>&6
7750echo "configure:7751: checking how to create tags" >&5
7751test -f tags && mv tags tags.save
7752if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
7753 TAGPRG="ctags"
7754else
7755 (eval etags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags"
7756 (eval etags -c /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c"
7757 (eval ctags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags"
7758 (eval ctags -t /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t"
7759 (eval ctags -ts /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts"
7760 (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs"
7761 (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m"
7762fi
7763test -f tags.save && mv tags.save tags
7764echo "$ac_t""$TAGPRG" 1>&6
7765
7766echo $ac_n "checking how to run man with a section nr""... $ac_c" 1>&6
7767echo "configure:7768: checking how to run man with a section nr" >&5
7768MANDEF="man"
7769(eval man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s"
7770echo "$ac_t""$MANDEF" 1>&6
7771if test "$MANDEF" = "man -s"; then
7772 cat >> confdefs.h <<\EOF
7773#define USEMAN_S 1
7774EOF
7775
7776fi
7777
7778echo $ac_n "checking --disable-nls argument""... $ac_c" 1>&6
7779echo "configure:7780: checking --disable-nls argument" >&5
7780# Check whether --enable-nls or --disable-nls was given.
7781if test "${enable_nls+set}" = set; then
7782 enableval="$enable_nls"
7783 :
7784else
7785 enable_nls="yes"
7786fi
7787
7788
7789if test "$enable_nls" = "yes"; then
7790 echo "$ac_t""no" 1>&6
7791 # Extract the first word of "msgfmt", so it can be a program name with args.
7792set dummy msgfmt; ac_word=$2
7793echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7794echo "configure:7795: checking for $ac_word" >&5
7795if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then
7796 echo $ac_n "(cached) $ac_c" 1>&6
7797else
7798 if test -n "$MSGFMT"; then
7799 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
7800else
7801 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7802 ac_dummy="$PATH"
7803 for ac_dir in $ac_dummy; do
7804 test -z "$ac_dir" && ac_dir=.
7805 if test -f $ac_dir/$ac_word; then
7806 ac_cv_prog_MSGFMT="msgfmt"
7807 break
7808 fi
7809 done
7810 IFS="$ac_save_ifs"
7811fi
7812fi
7813MSGFMT="$ac_cv_prog_MSGFMT"
7814if test -n "$MSGFMT"; then
7815 echo "$ac_t""$MSGFMT" 1>&6
7816else
7817 echo "$ac_t""no" 1>&6
7818fi
7819
7820 echo $ac_n "checking for NLS""... $ac_c" 1>&6
7821echo "configure:7822: checking for NLS" >&5
7822 if test -f po/Makefile; then
7823 have_gettext="no"
7824 if test -n "$MSGFMT"; then
7825 cat > conftest.$ac_ext <<EOF
7826#line 7827 "configure"
7827#include "confdefs.h"
7828#include <libintl.h>
7829int main() {
7830gettext("Test");
7831; return 0; }
7832EOF
7833if { (eval echo configure:7834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7834 rm -rf conftest*
7835 echo "$ac_t""gettext() works" 1>&6; have_gettext="yes"
7836else
7837 echo "configure: failed program was:" >&5
7838 cat conftest.$ac_ext >&5
7839 rm -rf conftest*
7840 olibs=$LIBS
7841 LIBS="$LIBS -lintl"
7842 cat > conftest.$ac_ext <<EOF
7843#line 7844 "configure"
7844#include "confdefs.h"
7845#include <libintl.h>
7846int main() {
7847gettext("Test");
7848; return 0; }
7849EOF
7850if { (eval echo configure:7851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7851 rm -rf conftest*
7852 echo "$ac_t""gettext() works with -lintl" 1>&6; have_gettext="yes"
7853else
7854 echo "configure: failed program was:" >&5
7855 cat conftest.$ac_ext >&5
7856 rm -rf conftest*
7857 echo "$ac_t""gettext() doesn't work" 1>&6;
7858 LIBS=$olibs
7859fi
7860rm -f conftest*
7861fi
7862rm -f conftest*
7863 else
7864 echo "$ac_t""msgfmt not found - disabled" 1>&6;
7865 fi
7866 if test $have_gettext = "yes"; then
7867 cat >> confdefs.h <<\EOF
7868#define HAVE_GETTEXT 1
7869EOF
7870
7871 MAKEMO=yes
7872
7873 for ac_func in bind_textdomain_codeset
7874do
7875echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7876echo "configure:7877: checking for $ac_func" >&5
7877if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7878 echo $ac_n "(cached) $ac_c" 1>&6
7879else
7880 cat > conftest.$ac_ext <<EOF
7881#line 7882 "configure"
7882#include "confdefs.h"
7883/* System header to define __stub macros and hopefully few prototypes,
7884 which can conflict with char $ac_func(); below. */
7885#include <assert.h>
7886/* Override any gcc2 internal prototype to avoid an error. */
7887/* We use char because int might match the return type of a gcc2
7888 builtin and then its argument prototype would still apply. */
7889char $ac_func();
7890
7891int main() {
7892
7893/* The GNU C library defines this for functions which it implements
7894 to always fail with ENOSYS. Some functions are actually named
7895 something starting with __ and the normal name is an alias. */
7896#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7897choke me
7898#else
7899$ac_func();
7900#endif
7901
7902; return 0; }
7903EOF
7904if { (eval echo configure:7905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7905 rm -rf conftest*
7906 eval "ac_cv_func_$ac_func=yes"
7907else
7908 echo "configure: failed program was:" >&5
7909 cat conftest.$ac_ext >&5
7910 rm -rf conftest*
7911 eval "ac_cv_func_$ac_func=no"
7912fi
7913rm -f conftest*
7914fi
7915
7916if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7917 echo "$ac_t""yes" 1>&6
7918 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7919 cat >> confdefs.h <<EOF
7920#define $ac_tr_func 1
7921EOF
7922
7923else
7924 echo "$ac_t""no" 1>&6
7925fi
7926done
7927
7928 echo $ac_n "checking for _nl_msg_cat_cntr""... $ac_c" 1>&6
7929echo "configure:7930: checking for _nl_msg_cat_cntr" >&5
7930 cat > conftest.$ac_ext <<EOF
7931#line 7932 "configure"
7932#include "confdefs.h"
7933#include <libintl.h>
7934 extern int _nl_msg_cat_cntr;
7935int main() {
7936++_nl_msg_cat_cntr;
7937; return 0; }
7938EOF
7939if { (eval echo configure:7940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7940 rm -rf conftest*
7941 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
7942#define HAVE_NL_MSG_CAT_CNTR 1
7943EOF
7944
7945else
7946 echo "configure: failed program was:" >&5
7947 cat conftest.$ac_ext >&5
7948 rm -rf conftest*
7949 echo "$ac_t""no" 1>&6
7950fi
7951rm -f conftest*
7952 fi
7953 else
7954 echo "$ac_t""no "po/Makefile" - disabled" 1>&6;
7955 fi
7956else
7957 echo "$ac_t""yes" 1>&6
7958fi
7959
7960ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
7961echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
7962echo "configure:7963: checking for dlfcn.h" >&5
7963if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7964 echo $ac_n "(cached) $ac_c" 1>&6
7965else
7966 cat > conftest.$ac_ext <<EOF
7967#line 7968 "configure"
7968#include "confdefs.h"
7969#include <dlfcn.h>
7970EOF
7971ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7972{ (eval echo configure:7973: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7973ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7974if test -z "$ac_err"; then
7975 rm -rf conftest*
7976 eval "ac_cv_header_$ac_safe=yes"
7977else
7978 echo "$ac_err" >&5
7979 echo "configure: failed program was:" >&5
7980 cat conftest.$ac_ext >&5
7981 rm -rf conftest*
7982 eval "ac_cv_header_$ac_safe=no"
7983fi
7984rm -f conftest*
7985fi
7986if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7987 echo "$ac_t""yes" 1>&6
7988 DLL=dlfcn.h
7989else
7990 echo "$ac_t""no" 1>&6
7991ac_safe=`echo "dl.h" | sed 'y%./+-%__p_%'`
7992echo $ac_n "checking for dl.h""... $ac_c" 1>&6
7993echo "configure:7994: checking for dl.h" >&5
7994if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7995 echo $ac_n "(cached) $ac_c" 1>&6
7996else
7997 cat > conftest.$ac_ext <<EOF
7998#line 7999 "configure"
7999#include "confdefs.h"
8000#include <dl.h>
8001EOF
8002ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8003{ (eval echo configure:8004: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8004ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8005if test -z "$ac_err"; then
8006 rm -rf conftest*
8007 eval "ac_cv_header_$ac_safe=yes"
8008else
8009 echo "$ac_err" >&5
8010 echo "configure: failed program was:" >&5
8011 cat conftest.$ac_ext >&5
8012 rm -rf conftest*
8013 eval "ac_cv_header_$ac_safe=no"
8014fi
8015rm -f conftest*
8016fi
8017if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8018 echo "$ac_t""yes" 1>&6
8019 DLL=dl.h
8020else
8021 echo "$ac_t""no" 1>&6
8022fi
8023
8024fi
8025
8026if test x${DLL} = xdlfcn.h; then
8027 cat >> confdefs.h <<\EOF
8028#define HAVE_DLFCN_H 1
8029EOF
8030
8031 echo $ac_n "checking for dlopen()""... $ac_c" 1>&6
8032echo "configure:8033: checking for dlopen()" >&5
8033 cat > conftest.$ac_ext <<EOF
8034#line 8035 "configure"
8035#include "confdefs.h"
8036
8037int main() {
8038
8039 extern void* dlopen();
8040 dlopen();
8041
8042; return 0; }
8043EOF
8044if { (eval echo configure:8045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8045 rm -rf conftest*
8046 echo "$ac_t""yes" 1>&6;
8047 cat >> confdefs.h <<\EOF
8048#define HAVE_DLOPEN 1
8049EOF
8050
8051else
8052 echo "configure: failed program was:" >&5
8053 cat conftest.$ac_ext >&5
8054 rm -rf conftest*
8055 echo "$ac_t""no" 1>&6;
8056 echo $ac_n "checking for dlopen() in -ldl""... $ac_c" 1>&6
8057echo "configure:8058: checking for dlopen() in -ldl" >&5
8058 olibs=$LIBS
8059 LIBS="$LIBS -ldl"
8060 cat > conftest.$ac_ext <<EOF
8061#line 8062 "configure"
8062#include "confdefs.h"
8063
8064int main() {
8065
8066 extern void* dlopen();
8067 dlopen();
8068
8069; return 0; }
8070EOF
8071if { (eval echo configure:8072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8072 rm -rf conftest*
8073 echo "$ac_t""yes" 1>&6;
8074 cat >> confdefs.h <<\EOF
8075#define HAVE_DLOPEN 1
8076EOF
8077
8078else
8079 echo "configure: failed program was:" >&5
8080 cat conftest.$ac_ext >&5
8081 rm -rf conftest*
8082 echo "$ac_t""no" 1>&6;
8083 LIBS=$olibs
8084fi
8085rm -f conftest*
8086fi
8087rm -f conftest*
8088 echo $ac_n "checking for dlsym()""... $ac_c" 1>&6
8089echo "configure:8090: checking for dlsym()" >&5
8090 cat > conftest.$ac_ext <<EOF
8091#line 8092 "configure"
8092#include "confdefs.h"
8093
8094int main() {
8095
8096 extern void* dlsym();
8097 dlsym();
8098
8099; return 0; }
8100EOF
8101if { (eval echo configure:8102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8102 rm -rf conftest*
8103 echo "$ac_t""yes" 1>&6;
8104 cat >> confdefs.h <<\EOF
8105#define HAVE_DLSYM 1
8106EOF
8107
8108else
8109 echo "configure: failed program was:" >&5
8110 cat conftest.$ac_ext >&5
8111 rm -rf conftest*
8112 echo "$ac_t""no" 1>&6;
8113 echo $ac_n "checking for dlsym() in -ldl""... $ac_c" 1>&6
8114echo "configure:8115: checking for dlsym() in -ldl" >&5
8115 olibs=$LIBS
8116 LIBS="$LIBS -ldl"
8117 cat > conftest.$ac_ext <<EOF
8118#line 8119 "configure"
8119#include "confdefs.h"
8120
8121int main() {
8122
8123 extern void* dlsym();
8124 dlsym();
8125
8126; return 0; }
8127EOF
8128if { (eval echo configure:8129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8129 rm -rf conftest*
8130 echo "$ac_t""yes" 1>&6;
8131 cat >> confdefs.h <<\EOF
8132#define HAVE_DLSYM 1
8133EOF
8134
8135else
8136 echo "configure: failed program was:" >&5
8137 cat conftest.$ac_ext >&5
8138 rm -rf conftest*
8139 echo "$ac_t""no" 1>&6;
8140 LIBS=$olibs
8141fi
8142rm -f conftest*
8143fi
8144rm -f conftest*
8145elif test x${DLL} = xdl.h; then
8146 cat >> confdefs.h <<\EOF
8147#define HAVE_DL_H 1
8148EOF
8149
8150 echo $ac_n "checking for shl_load()""... $ac_c" 1>&6
8151echo "configure:8152: checking for shl_load()" >&5
8152 cat > conftest.$ac_ext <<EOF
8153#line 8154 "configure"
8154#include "confdefs.h"
8155
8156int main() {
8157
8158 extern void* shl_load();
8159 shl_load();
8160
8161; return 0; }
8162EOF
8163if { (eval echo configure:8164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8164 rm -rf conftest*
8165 echo "$ac_t""yes" 1>&6;
8166 cat >> confdefs.h <<\EOF
8167#define HAVE_SHL_LOAD 1
8168EOF
8169
8170else
8171 echo "configure: failed program was:" >&5
8172 cat conftest.$ac_ext >&5
8173 rm -rf conftest*
8174 echo "$ac_t""no" 1>&6;
8175 echo $ac_n "checking for shl_load() in -ldld""... $ac_c" 1>&6
8176echo "configure:8177: checking for shl_load() in -ldld" >&5
8177 olibs=$LIBS
8178 LIBS="$LIBS -ldld"
8179 cat > conftest.$ac_ext <<EOF
8180#line 8181 "configure"
8181#include "confdefs.h"
8182
8183int main() {
8184
8185 extern void* shl_load();
8186 shl_load();
8187
8188; return 0; }
8189EOF
8190if { (eval echo configure:8191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8191 rm -rf conftest*
8192 echo "$ac_t""yes" 1>&6;
8193 cat >> confdefs.h <<\EOF
8194#define HAVE_SHL_LOAD 1
8195EOF
8196
8197else
8198 echo "configure: failed program was:" >&5
8199 cat conftest.$ac_ext >&5
8200 rm -rf conftest*
8201 echo "$ac_t""no" 1>&6;
8202 LIBS=$olibs
8203fi
8204rm -f conftest*
8205fi
8206rm -f conftest*
8207fi
8208for ac_hdr in setjmp.h
8209do
8210ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8211echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8212echo "configure:8213: checking for $ac_hdr" >&5
8213if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8214 echo $ac_n "(cached) $ac_c" 1>&6
8215else
8216 cat > conftest.$ac_ext <<EOF
8217#line 8218 "configure"
8218#include "confdefs.h"
8219#include <$ac_hdr>
8220EOF
8221ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8222{ (eval echo configure:8223: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8223ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8224if test -z "$ac_err"; then
8225 rm -rf conftest*
8226 eval "ac_cv_header_$ac_safe=yes"
8227else
8228 echo "$ac_err" >&5
8229 echo "configure: failed program was:" >&5
8230 cat conftest.$ac_ext >&5
8231 rm -rf conftest*
8232 eval "ac_cv_header_$ac_safe=no"
8233fi
8234rm -f conftest*
8235fi
8236if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8237 echo "$ac_t""yes" 1>&6
8238 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8239 cat >> confdefs.h <<EOF
8240#define $ac_tr_hdr 1
8241EOF
8242
8243else
8244 echo "$ac_t""no" 1>&6
8245fi
8246done
8247
8248
8249if test "x$MACOSX" = "xyes" -a -n "$PERL"; then
8250 if echo $LIBS | grep -e '-ldl' >/dev/null; then
8251 LIBS=`echo $LIBS | sed s/-ldl//`
8252 PERL_LIBS="$PERL_LIBS -ldl"
8253 fi
8254fi
8255
8256if test "x$MACOSX" = "xyes" && test "x$CARBON" = "xyes" \
8257 && test "x$GUITYPE" != "xCARBONGUI"; then
8258 echo $ac_n "checking whether we need -framework Carbon""... $ac_c" 1>&6
8259echo "configure:8260: checking whether we need -framework Carbon" >&5
8260 if test "x$enable_multibyte" = "xyes" || test "x$features" == "xbig" \
8261 || test "x$features" = "xhuge"; then
8262 LIBS="$LIBS -framework Carbon"
8263 echo "$ac_t""yes" 1>&6
8264 else
8265 echo "$ac_t""no" 1>&6
8266 fi
8267fi
8268
8269
8270trap '' 1 2 15
8271cat > confcache <<\EOF
8272# This file is a shell script that caches the results of configure
8273# tests run on this system so they can be shared between configure
8274# scripts and configure runs. It is not useful on other systems.
8275# If it contains results you don't want to keep, you may remove or edit it.
8276#
8277# By default, configure uses ./config.cache as the cache file,
8278# creating it if it does not exist already. You can give configure
8279# the --cache-file=FILE option to use a different cache file; that is
8280# what configure does when it calls configure scripts in
8281# subdirectories, so they share the cache.
8282# Giving --cache-file=/dev/null disables caching, for debugging configure.
8283# config.status only pays attention to the cache file if you give it the
8284# --recheck option to rerun configure.
8285#
8286EOF
8287# The following way of writing the cache mishandles newlines in values,
8288# but we know of no workaround that is simple, portable, and efficient.
8289# So, don't put newlines in cache variables' values.
8290# Ultrix sh set writes to stderr and can't be redirected directly,
8291# and sets the high bit in the cache file unless we assign to the vars.
8292(set) 2>&1 |
8293 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8294 *ac_space=\ *)
8295 # `set' does not quote correctly, so add quotes (double-quote substitution
8296 # turns \\\\ into \\, and sed turns \\ into \).
8297 sed -n \
8298 -e "s/'/'\\\\''/g" \
8299 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8300 ;;
8301 *)
8302 # `set' quotes correctly as required by POSIX, so do not add quotes.
8303 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8304 ;;
8305 esac >> confcache
8306if cmp -s $cache_file confcache; then
8307 :
8308else
8309 if test -w $cache_file; then
8310 echo "updating cache $cache_file"
8311 cat confcache > $cache_file
8312 else
8313 echo "not updating unwritable cache $cache_file"
8314 fi
8315fi
8316rm -f confcache
8317
8318trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8319
8320test "x$prefix" = xNONE && prefix=$ac_default_prefix
8321# Let make expand exec_prefix.
8322test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8323
8324# Any assignment to VPATH causes Sun make to only execute
8325# the first set of double-colon rules, so remove it if not needed.
8326# If there is a colon in the path, we need to keep it.
8327if test "x$srcdir" = x.; then
8328 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8329fi
8330
8331trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8332
8333DEFS=-DHAVE_CONFIG_H
8334
8335# Without the "./", some shells look in PATH for config.status.
8336: ${CONFIG_STATUS=./config.status}
8337
8338echo creating $CONFIG_STATUS
8339rm -f $CONFIG_STATUS
8340cat > $CONFIG_STATUS <<EOF
8341#! /bin/sh
8342# Generated automatically by configure.
8343# Run this file to recreate the current configuration.
8344# This directory was configured as follows,
8345# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8346#
8347# $0 $ac_configure_args
8348#
8349# Compiler output produced by configure, useful for debugging
8350# configure, is in auto/config.log if it exists.
8351
8352ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8353for ac_option
8354do
8355 case "\$ac_option" in
8356 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8357 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8358 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8359 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8360 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8361 exit 0 ;;
8362 -help | --help | --hel | --he | --h)
8363 echo "\$ac_cs_usage"; exit 0 ;;
8364 *) echo "\$ac_cs_usage"; exit 1 ;;
8365 esac
8366done
8367
8368ac_given_srcdir=$srcdir
8369
8370trap 'rm -fr `echo "auto/config.mk:config.mk.in auto/config.h:config.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8371EOF
8372cat >> $CONFIG_STATUS <<EOF
8373
8374# Protect against being on the right side of a sed subst in config.status.
8375sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8376 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8377$ac_vpsub
8378$extrasub
8379s%@SHELL@%$SHELL%g
8380s%@CFLAGS@%$CFLAGS%g
8381s%@CPPFLAGS@%$CPPFLAGS%g
8382s%@CXXFLAGS@%$CXXFLAGS%g
8383s%@FFLAGS@%$FFLAGS%g
8384s%@DEFS@%$DEFS%g
8385s%@LDFLAGS@%$LDFLAGS%g
8386s%@LIBS@%$LIBS%g
8387s%@exec_prefix@%$exec_prefix%g
8388s%@prefix@%$prefix%g
8389s%@program_transform_name@%$program_transform_name%g
8390s%@bindir@%$bindir%g
8391s%@sbindir@%$sbindir%g
8392s%@libexecdir@%$libexecdir%g
8393s%@datadir@%$datadir%g
8394s%@sysconfdir@%$sysconfdir%g
8395s%@sharedstatedir@%$sharedstatedir%g
8396s%@localstatedir@%$localstatedir%g
8397s%@libdir@%$libdir%g
8398s%@includedir@%$includedir%g
8399s%@oldincludedir@%$oldincludedir%g
8400s%@infodir@%$infodir%g
8401s%@mandir@%$mandir%g
8402s%@SET_MAKE@%$SET_MAKE%g
8403s%@CC@%$CC%g
8404s%@CPP@%$CPP%g
8405s%@AWK@%$AWK%g
8406s%@STRIP@%$STRIP%g
8407s%@EXEEXT@%$EXEEXT%g
8408s%@CPP_MM@%$CPP_MM%g
8409s%@OS_EXTRA_SRC@%$OS_EXTRA_SRC%g
8410s%@OS_EXTRA_OBJ@%$OS_EXTRA_OBJ%g
8411s%@VIMNAME@%$VIMNAME%g
8412s%@EXNAME@%$EXNAME%g
8413s%@VIEWNAME@%$VIEWNAME%g
8414s%@line_break@%$line_break%g
8415s%@dovimdiff@%$dovimdiff%g
8416s%@dogvimdiff@%$dogvimdiff%g
8417s%@compiledby@%$compiledby%g
8418s%@vi_cv_path_perl@%$vi_cv_path_perl%g
8419s%@vi_cv_perllib@%$vi_cv_perllib%g
8420s%@shrpenv@%$shrpenv%g
8421s%@PERL_SRC@%$PERL_SRC%g
8422s%@PERL_OBJ@%$PERL_OBJ%g
8423s%@PERL_PRO@%$PERL_PRO%g
8424s%@PERL_CFLAGS@%$PERL_CFLAGS%g
8425s%@PERL_LIBS@%$PERL_LIBS%g
8426s%@vi_cv_path_python@%$vi_cv_path_python%g
8427s%@PYTHON_CONFDIR@%$PYTHON_CONFDIR%g
8428s%@PYTHON_LIBS@%$PYTHON_LIBS%g
8429s%@PYTHON_GETPATH_CFLAGS@%$PYTHON_GETPATH_CFLAGS%g
8430s%@PYTHON_CFLAGS@%$PYTHON_CFLAGS%g
8431s%@PYTHON_SRC@%$PYTHON_SRC%g
8432s%@PYTHON_OBJ@%$PYTHON_OBJ%g
8433s%@vi_cv_path_tcl@%$vi_cv_path_tcl%g
8434s%@TCL_SRC@%$TCL_SRC%g
8435s%@TCL_OBJ@%$TCL_OBJ%g
8436s%@TCL_PRO@%$TCL_PRO%g
8437s%@TCL_CFLAGS@%$TCL_CFLAGS%g
8438s%@TCL_LIBS@%$TCL_LIBS%g
8439s%@vi_cv_path_ruby@%$vi_cv_path_ruby%g
8440s%@RUBY_SRC@%$RUBY_SRC%g
8441s%@RUBY_OBJ@%$RUBY_OBJ%g
8442s%@RUBY_PRO@%$RUBY_PRO%g
8443s%@RUBY_CFLAGS@%$RUBY_CFLAGS%g
8444s%@RUBY_LIBS@%$RUBY_LIBS%g
8445s%@WORKSHOP_SRC@%$WORKSHOP_SRC%g
8446s%@WORKSHOP_OBJ@%$WORKSHOP_OBJ%g
8447s%@NETBEANS_SRC@%$NETBEANS_SRC%g
8448s%@NETBEANS_OBJ@%$NETBEANS_OBJ%g
8449s%@SNIFF_SRC@%$SNIFF_SRC%g
8450s%@SNIFF_OBJ@%$SNIFF_OBJ%g
8451s%@xmkmfpath@%$xmkmfpath%g
8452s%@X_CFLAGS@%$X_CFLAGS%g
8453s%@X_PRE_LIBS@%$X_PRE_LIBS%g
8454s%@X_LIBS@%$X_LIBS%g
8455s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
8456s%@X_LIB@%$X_LIB%g
8457s%@GTK_CONFIG@%$GTK_CONFIG%g
8458s%@GTK12_CONFIG@%$GTK12_CONFIG%g
8459s%@PKG_CONFIG@%$PKG_CONFIG%g
8460s%@GTK_CFLAGS@%$GTK_CFLAGS%g
8461s%@GTK_LIBS@%$GTK_LIBS%g
8462s%@GTK_LIBNAME@%$GTK_LIBNAME%g
8463s%@GNOME_LIBS@%$GNOME_LIBS%g
8464s%@GNOME_LIBDIR@%$GNOME_LIBDIR%g
8465s%@GNOME_INCLUDEDIR@%$GNOME_INCLUDEDIR%g
8466s%@GNOME_CONFIG@%$GNOME_CONFIG%g
8467s%@MOTIF_LIBNAME@%$MOTIF_LIBNAME%g
8468s%@NARROW_PROTO@%$NARROW_PROTO%g
8469s%@GUI_INC_LOC@%$GUI_INC_LOC%g
8470s%@GUI_LIB_LOC@%$GUI_LIB_LOC%g
8471s%@GUITYPE@%$GUITYPE%g
8472s%@GUI_X_LIBS@%$GUI_X_LIBS%g
8473s%@HANGULIN_SRC@%$HANGULIN_SRC%g
8474s%@HANGULIN_OBJ@%$HANGULIN_OBJ%g
8475s%@TAGPRG@%$TAGPRG%g
8476s%@MSGFMT@%$MSGFMT%g
8477s%@MAKEMO@%$MAKEMO%g
8478
8479CEOF
8480EOF
8481
8482cat >> $CONFIG_STATUS <<\EOF
8483
8484# Split the substitutions into bite-sized pieces for seds with
8485# small command number limits, like on Digital OSF/1 and HP-UX.
8486ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
8487ac_file=1 # Number of current file.
8488ac_beg=1 # First line for current file.
8489ac_end=$ac_max_sed_cmds # Line after last line for current file.
8490ac_more_lines=:
8491ac_sed_cmds=""
8492while $ac_more_lines; do
8493 if test $ac_beg -gt 1; then
8494 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
8495 else
8496 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
8497 fi
8498 if test ! -s conftest.s$ac_file; then
8499 ac_more_lines=false
8500 rm -f conftest.s$ac_file
8501 else
8502 if test -z "$ac_sed_cmds"; then
8503 ac_sed_cmds="sed -f conftest.s$ac_file"
8504 else
8505 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
8506 fi
8507 ac_file=`expr $ac_file + 1`
8508 ac_beg=$ac_end
8509 ac_end=`expr $ac_end + $ac_max_sed_cmds`
8510 fi
8511done
8512if test -z "$ac_sed_cmds"; then
8513 ac_sed_cmds=cat
8514fi
8515EOF
8516
8517cat >> $CONFIG_STATUS <<EOF
8518
8519CONFIG_FILES=\${CONFIG_FILES-"auto/config.mk:config.mk.in"}
8520EOF
8521cat >> $CONFIG_STATUS <<\EOF
8522for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
8523 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8524 case "$ac_file" in
8525 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8526 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8527 *) ac_file_in="${ac_file}.in" ;;
8528 esac
8529
8530 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8531
8532 # Remove last slash and all that follows it. Not all systems have dirname.
8533 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8534 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8535 # The file is in a subdirectory.
8536 test ! -d "$ac_dir" && mkdir "$ac_dir"
8537 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
8538 # A "../" for each directory in $ac_dir_suffix.
8539 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8540 else
8541 ac_dir_suffix= ac_dots=
8542 fi
8543
8544 case "$ac_given_srcdir" in
8545 .) srcdir=.
8546 if test -z "$ac_dots"; then top_srcdir=.
8547 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8548 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
8549 *) # Relative path.
8550 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8551 top_srcdir="$ac_dots$ac_given_srcdir" ;;
8552 esac
8553
8554
8555 echo creating "$ac_file"
8556 rm -f "$ac_file"
8557 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8558 case "$ac_file" in
8559 *Makefile*) ac_comsub="1i\\
8560# $configure_input" ;;
8561 *) ac_comsub= ;;
8562 esac
8563
8564 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8565 sed -e "$ac_comsub
8566s%@configure_input@%$configure_input%g
8567s%@srcdir@%$srcdir%g
8568s%@top_srcdir@%$top_srcdir%g
8569" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
8570fi; done
8571rm -f conftest.s*
8572
8573# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8574# NAME is the cpp macro being defined and VALUE is the value it is being given.
8575#
8576# ac_d sets the value in "#define NAME VALUE" lines.
8577ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8578ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
8579ac_dC='\3'
8580ac_dD='%g'
8581# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8582ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8583ac_uB='\([ ]\)%\1#\2define\3'
8584ac_uC=' '
8585ac_uD='\4%g'
8586# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8587ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8588ac_eB='$%\1#\2define\3'
8589ac_eC=' '
8590ac_eD='%g'
8591
8592if test "${CONFIG_HEADERS+set}" != set; then
8593EOF
8594cat >> $CONFIG_STATUS <<EOF
8595 CONFIG_HEADERS="auto/config.h:config.h.in"
8596EOF
8597cat >> $CONFIG_STATUS <<\EOF
8598fi
8599for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
8600 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8601 case "$ac_file" in
8602 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8603 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8604 *) ac_file_in="${ac_file}.in" ;;
8605 esac
8606
8607 echo creating $ac_file
8608
8609 rm -f conftest.frag conftest.in conftest.out
8610 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8611 cat $ac_file_inputs > conftest.in
8612
8613EOF
8614
8615# Transform confdefs.h into a sed script conftest.vals that substitutes
8616# the proper values into config.h.in to produce config.h. And first:
8617# Protect against being on the right side of a sed subst in config.status.
8618# Protect against being in an unquoted here document in config.status.
8619rm -f conftest.vals
8620cat > conftest.hdr <<\EOF
8621s/[\\&%]/\\&/g
8622s%[\\$`]%\\&%g
8623s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
8624s%ac_d%ac_u%gp
8625s%ac_u%ac_e%gp
8626EOF
8627sed -n -f conftest.hdr confdefs.h > conftest.vals
8628rm -f conftest.hdr
8629
8630# This sed command replaces #undef with comments. This is necessary, for
8631# example, in the case of _POSIX_SOURCE, which is predefined and required
8632# on some systems where configure will not decide to define it.
8633cat >> conftest.vals <<\EOF
8634s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8635EOF
8636
8637# Break up conftest.vals because some shells have a limit on
8638# the size of here documents, and old seds have small limits too.
8639
8640rm -f conftest.tail
8641while :
8642do
8643 ac_lines=`grep -c . conftest.vals`
8644 # grep -c gives empty output for an empty file on some AIX systems.
8645 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
8646 # Write a limited-size here document to conftest.frag.
8647 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
8648 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
8649 echo 'CEOF
8650 sed -f conftest.frag conftest.in > conftest.out
8651 rm -f conftest.in
8652 mv conftest.out conftest.in
8653' >> $CONFIG_STATUS
8654 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
8655 rm -f conftest.vals
8656 mv conftest.tail conftest.vals
8657done
8658rm -f conftest.vals
8659
8660cat >> $CONFIG_STATUS <<\EOF
8661 rm -f conftest.frag conftest.h
8662 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
8663 cat conftest.in >> conftest.h
8664 rm -f conftest.in
8665 if cmp -s $ac_file conftest.h 2>/dev/null; then
8666 echo "$ac_file is unchanged"
8667 rm -f conftest.h
8668 else
8669 # Remove last slash and all that follows it. Not all systems have dirname.
8670 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8671 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8672 # The file is in a subdirectory.
8673 test ! -d "$ac_dir" && mkdir "$ac_dir"
8674 fi
8675 rm -f $ac_file
8676 mv conftest.h $ac_file
8677 fi
8678fi; done
8679
8680EOF
8681cat >> $CONFIG_STATUS <<EOF
8682
8683EOF
8684cat >> $CONFIG_STATUS <<\EOF
8685
8686exit 0
8687EOF
8688chmod +x $CONFIG_STATUS
8689rm -fr confdefs* $ac_clean_files
8690test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
8691
8692