Debian Codegraph @

contrib/xmindpath/configure

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