]> Dogcows Code - chaz/openbox/blob - configure
gcc 3 compatibility, converted strstreams to stringstreams
[chaz/openbox] / configure
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 ac_help="$ac_help
17 --enable-shape enable support of the XShape extension [default=yes]"
18 ac_help="$ac_help
19 --enable-slit include code for the Slit [default=yes]"
20 ac_help="$ac_help
21 --enable-newspec include code for the new WM Spec (DOES NOTHING)
22 [default=no]"
23 ac_help="$ac_help
24 --enable-interlace include code for image interlacing [default=yes]"
25 ac_help="$ac_help
26 --enable-ordered-pseudo include code for ordered pseudocolor (8bpp)
27 dithering [default=no]"
28 ac_help="$ac_help
29 --enable-clobber intercept mouse events to clients when num lock
30 or scroll lock are on [default=yes]"
31 ac_help="$ac_help
32 --enable-debug include verbose debugging code [default=no]"
33 ac_help="$ac_help
34 --enable-nls include natural language support [default=yes]"
35 ac_help="$ac_help
36 --enable-timed-cache use new timed pixmap cache [default=yes]"
37 ac_help="$ac_help
38 --enable-maintainer-mode enable make rules and dependencies not useful
39 (and sometimes confusing) to the casual installer"
40
41 # Initialize some variables set by options.
42 # The variables have the same names as the options, with
43 # dashes changed to underlines.
44 build=NONE
45 cache_file=./config.cache
46 exec_prefix=NONE
47 host=NONE
48 no_create=
49 nonopt=NONE
50 no_recursion=
51 prefix=NONE
52 program_prefix=NONE
53 program_suffix=NONE
54 program_transform_name=s,x,x,
55 silent=
56 site=
57 srcdir=
58 target=NONE
59 verbose=
60 x_includes=NONE
61 x_libraries=NONE
62 bindir='${exec_prefix}/bin'
63 sbindir='${exec_prefix}/sbin'
64 libexecdir='${exec_prefix}/libexec'
65 datadir='${prefix}/share'
66 sysconfdir='${prefix}/etc'
67 sharedstatedir='${prefix}/com'
68 localstatedir='${prefix}/var'
69 libdir='${exec_prefix}/lib'
70 includedir='${prefix}/include'
71 oldincludedir='/usr/include'
72 infodir='${prefix}/info'
73 mandir='${prefix}/man'
74
75 # Initialize some other variables.
76 subdirs=
77 MFLAGS= MAKEFLAGS=
78 SHELL=${CONFIG_SHELL-/bin/sh}
79 # Maximum number of lines to put in a shell here document.
80 ac_max_here_lines=12
81
82 ac_prev=
83 for ac_option
84 do
85
86 # If the previous option needs an argument, assign it.
87 if test -n "$ac_prev"; then
88 eval "$ac_prev=\$ac_option"
89 ac_prev=
90 continue
91 fi
92
93 case "$ac_option" in
94 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
95 *) ac_optarg= ;;
96 esac
97
98 # Accept the important Cygnus configure options, so we can diagnose typos.
99
100 case "$ac_option" in
101
102 -bindir | --bindir | --bindi | --bind | --bin | --bi)
103 ac_prev=bindir ;;
104 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
105 bindir="$ac_optarg" ;;
106
107 -build | --build | --buil | --bui | --bu)
108 ac_prev=build ;;
109 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
110 build="$ac_optarg" ;;
111
112 -cache-file | --cache-file | --cache-fil | --cache-fi \
113 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
114 ac_prev=cache_file ;;
115 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
116 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
117 cache_file="$ac_optarg" ;;
118
119 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
120 ac_prev=datadir ;;
121 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
122 | --da=*)
123 datadir="$ac_optarg" ;;
124
125 -disable-* | --disable-*)
126 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
127 # Reject names that are not valid shell variable names.
128 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
129 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
130 fi
131 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
132 eval "enable_${ac_feature}=no" ;;
133
134 -enable-* | --enable-*)
135 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
136 # Reject names that are not valid shell variable names.
137 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
138 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
139 fi
140 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
141 case "$ac_option" in
142 *=*) ;;
143 *) ac_optarg=yes ;;
144 esac
145 eval "enable_${ac_feature}='$ac_optarg'" ;;
146
147 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
148 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
149 | --exec | --exe | --ex)
150 ac_prev=exec_prefix ;;
151 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
152 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
153 | --exec=* | --exe=* | --ex=*)
154 exec_prefix="$ac_optarg" ;;
155
156 -gas | --gas | --ga | --g)
157 # Obsolete; use --with-gas.
158 with_gas=yes ;;
159
160 -help | --help | --hel | --he)
161 # Omit some internal or obsolete options to make the list less imposing.
162 # This message is too long to be a string in the A/UX 3.1 sh.
163 cat << EOF
164 Usage: configure [options] [host]
165 Options: [defaults in brackets after descriptions]
166 Configuration:
167 --cache-file=FILE cache test results in FILE
168 --help print this message
169 --no-create do not create output files
170 --quiet, --silent do not print \`checking...' messages
171 --version print the version of autoconf that created configure
172 Directory and file names:
173 --prefix=PREFIX install architecture-independent files in PREFIX
174 [$ac_default_prefix]
175 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
176 [same as prefix]
177 --bindir=DIR user executables in DIR [EPREFIX/bin]
178 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
179 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
180 --datadir=DIR read-only architecture-independent data in DIR
181 [PREFIX/share]
182 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
183 --sharedstatedir=DIR modifiable architecture-independent data in DIR
184 [PREFIX/com]
185 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
186 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
187 --includedir=DIR C header files in DIR [PREFIX/include]
188 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
189 --infodir=DIR info documentation in DIR [PREFIX/info]
190 --mandir=DIR man documentation in DIR [PREFIX/man]
191 --srcdir=DIR find the sources in DIR [configure dir or ..]
192 --program-prefix=PREFIX prepend PREFIX to installed program names
193 --program-suffix=SUFFIX append SUFFIX to installed program names
194 --program-transform-name=PROGRAM
195 run sed PROGRAM on installed program names
196 EOF
197 cat << EOF
198 Host type:
199 --build=BUILD configure for building on BUILD [BUILD=HOST]
200 --host=HOST configure for HOST [guessed]
201 --target=TARGET configure for TARGET [TARGET=HOST]
202 Features and packages:
203 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
204 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
205 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
206 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
207 --x-includes=DIR X include files are in DIR
208 --x-libraries=DIR X library files are in DIR
209 EOF
210 if test -n "$ac_help"; then
211 echo "--enable and --with options recognized:$ac_help"
212 fi
213 exit 0 ;;
214
215 -host | --host | --hos | --ho)
216 ac_prev=host ;;
217 -host=* | --host=* | --hos=* | --ho=*)
218 host="$ac_optarg" ;;
219
220 -includedir | --includedir | --includedi | --included | --include \
221 | --includ | --inclu | --incl | --inc)
222 ac_prev=includedir ;;
223 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
224 | --includ=* | --inclu=* | --incl=* | --inc=*)
225 includedir="$ac_optarg" ;;
226
227 -infodir | --infodir | --infodi | --infod | --info | --inf)
228 ac_prev=infodir ;;
229 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
230 infodir="$ac_optarg" ;;
231
232 -libdir | --libdir | --libdi | --libd)
233 ac_prev=libdir ;;
234 -libdir=* | --libdir=* | --libdi=* | --libd=*)
235 libdir="$ac_optarg" ;;
236
237 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
238 | --libexe | --libex | --libe)
239 ac_prev=libexecdir ;;
240 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
241 | --libexe=* | --libex=* | --libe=*)
242 libexecdir="$ac_optarg" ;;
243
244 -localstatedir | --localstatedir | --localstatedi | --localstated \
245 | --localstate | --localstat | --localsta | --localst \
246 | --locals | --local | --loca | --loc | --lo)
247 ac_prev=localstatedir ;;
248 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
249 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
250 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
251 localstatedir="$ac_optarg" ;;
252
253 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
254 ac_prev=mandir ;;
255 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
256 mandir="$ac_optarg" ;;
257
258 -nfp | --nfp | --nf)
259 # Obsolete; use --without-fp.
260 with_fp=no ;;
261
262 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
263 | --no-cr | --no-c)
264 no_create=yes ;;
265
266 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
267 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
268 no_recursion=yes ;;
269
270 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
271 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
272 | --oldin | --oldi | --old | --ol | --o)
273 ac_prev=oldincludedir ;;
274 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
275 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
276 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
277 oldincludedir="$ac_optarg" ;;
278
279 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
280 ac_prev=prefix ;;
281 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
282 prefix="$ac_optarg" ;;
283
284 -program-prefix | --program-prefix | --program-prefi | --program-pref \
285 | --program-pre | --program-pr | --program-p)
286 ac_prev=program_prefix ;;
287 -program-prefix=* | --program-prefix=* | --program-prefi=* \
288 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
289 program_prefix="$ac_optarg" ;;
290
291 -program-suffix | --program-suffix | --program-suffi | --program-suff \
292 | --program-suf | --program-su | --program-s)
293 ac_prev=program_suffix ;;
294 -program-suffix=* | --program-suffix=* | --program-suffi=* \
295 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
296 program_suffix="$ac_optarg" ;;
297
298 -program-transform-name | --program-transform-name \
299 | --program-transform-nam | --program-transform-na \
300 | --program-transform-n | --program-transform- \
301 | --program-transform | --program-transfor \
302 | --program-transfo | --program-transf \
303 | --program-trans | --program-tran \
304 | --progr-tra | --program-tr | --program-t)
305 ac_prev=program_transform_name ;;
306 -program-transform-name=* | --program-transform-name=* \
307 | --program-transform-nam=* | --program-transform-na=* \
308 | --program-transform-n=* | --program-transform-=* \
309 | --program-transform=* | --program-transfor=* \
310 | --program-transfo=* | --program-transf=* \
311 | --program-trans=* | --program-tran=* \
312 | --progr-tra=* | --program-tr=* | --program-t=*)
313 program_transform_name="$ac_optarg" ;;
314
315 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
316 | -silent | --silent | --silen | --sile | --sil)
317 silent=yes ;;
318
319 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
320 ac_prev=sbindir ;;
321 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
322 | --sbi=* | --sb=*)
323 sbindir="$ac_optarg" ;;
324
325 -sharedstatedir | --sharedstatedir | --sharedstatedi \
326 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
327 | --sharedst | --shareds | --shared | --share | --shar \
328 | --sha | --sh)
329 ac_prev=sharedstatedir ;;
330 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
331 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
332 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
333 | --sha=* | --sh=*)
334 sharedstatedir="$ac_optarg" ;;
335
336 -site | --site | --sit)
337 ac_prev=site ;;
338 -site=* | --site=* | --sit=*)
339 site="$ac_optarg" ;;
340
341 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
342 ac_prev=srcdir ;;
343 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
344 srcdir="$ac_optarg" ;;
345
346 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
347 | --syscon | --sysco | --sysc | --sys | --sy)
348 ac_prev=sysconfdir ;;
349 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
350 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
351 sysconfdir="$ac_optarg" ;;
352
353 -target | --target | --targe | --targ | --tar | --ta | --t)
354 ac_prev=target ;;
355 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
356 target="$ac_optarg" ;;
357
358 -v | -verbose | --verbose | --verbos | --verbo | --verb)
359 verbose=yes ;;
360
361 -version | --version | --versio | --versi | --vers)
362 echo "configure generated by autoconf version 2.13"
363 exit 0 ;;
364
365 -with-* | --with-*)
366 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
367 # Reject names that are not valid shell variable names.
368 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
369 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
370 fi
371 ac_package=`echo $ac_package| sed 's/-/_/g'`
372 case "$ac_option" in
373 *=*) ;;
374 *) ac_optarg=yes ;;
375 esac
376 eval "with_${ac_package}='$ac_optarg'" ;;
377
378 -without-* | --without-*)
379 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
380 # Reject names that are not valid shell variable names.
381 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
382 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
383 fi
384 ac_package=`echo $ac_package| sed 's/-/_/g'`
385 eval "with_${ac_package}=no" ;;
386
387 --x)
388 # Obsolete; use --with-x.
389 with_x=yes ;;
390
391 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
392 | --x-incl | --x-inc | --x-in | --x-i)
393 ac_prev=x_includes ;;
394 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
395 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
396 x_includes="$ac_optarg" ;;
397
398 -x-libraries | --x-libraries | --x-librarie | --x-librari \
399 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
400 ac_prev=x_libraries ;;
401 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
402 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
403 x_libraries="$ac_optarg" ;;
404
405 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
406 ;;
407
408 *)
409 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
410 echo "configure: warning: $ac_option: invalid host type" 1>&2
411 fi
412 if test "x$nonopt" != xNONE; then
413 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
414 fi
415 nonopt="$ac_option"
416 ;;
417
418 esac
419 done
420
421 if test -n "$ac_prev"; then
422 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
423 fi
424
425 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
426
427 # File descriptor usage:
428 # 0 standard input
429 # 1 file creation
430 # 2 errors and warnings
431 # 3 some systems may open it to /dev/tty
432 # 4 used on the Kubota Titan
433 # 6 checking for... messages and results
434 # 5 compiler messages saved in config.log
435 if test "$silent" = yes; then
436 exec 6>/dev/null
437 else
438 exec 6>&1
439 fi
440 exec 5>./config.log
441
442 echo "\
443 This file contains any messages produced by compilers while
444 running configure, to aid debugging if configure makes a mistake.
445 " 1>&5
446
447 # Strip out --no-create and --no-recursion so they do not pile up.
448 # Also quote any args containing shell metacharacters.
449 ac_configure_args=
450 for ac_arg
451 do
452 case "$ac_arg" in
453 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
454 | --no-cr | --no-c) ;;
455 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
456 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
457 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
458 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
459 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
460 esac
461 done
462
463 # NLS nuisances.
464 # Only set these to C if already set. These must not be set unconditionally
465 # because not all systems understand e.g. LANG=C (notably SCO).
466 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
467 # Non-C LC_CTYPE values break the ctype check.
468 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
469 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
470 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
471 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
472
473 # confdefs.h avoids OS command line length limits that DEFS can exceed.
474 rm -rf conftest* confdefs.h
475 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
476 echo > confdefs.h
477
478 # A filename unique to this package, relative to the directory that
479 # configure is in, which we can look for to find out if srcdir is correct.
480 ac_unique_file=src/openbox.cc
481
482 # Find the source files, if location was not specified.
483 if test -z "$srcdir"; then
484 ac_srcdir_defaulted=yes
485 # Try the directory containing this script, then its parent.
486 ac_prog=$0
487 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
488 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
489 srcdir=$ac_confdir
490 if test ! -r $srcdir/$ac_unique_file; then
491 srcdir=..
492 fi
493 else
494 ac_srcdir_defaulted=no
495 fi
496 if test ! -r $srcdir/$ac_unique_file; then
497 if test "$ac_srcdir_defaulted" = yes; then
498 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
499 else
500 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
501 fi
502 fi
503 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
504
505 # Prefer explicitly selected file to automatically selected ones.
506 if test -z "$CONFIG_SITE"; then
507 if test "x$prefix" != xNONE; then
508 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
509 else
510 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
511 fi
512 fi
513 for ac_site_file in $CONFIG_SITE; do
514 if test -r "$ac_site_file"; then
515 echo "loading site script $ac_site_file"
516 . "$ac_site_file"
517 fi
518 done
519
520 if test -r "$cache_file"; then
521 echo "loading cache $cache_file"
522 . $cache_file
523 else
524 echo "creating cache $cache_file"
525 > $cache_file
526 fi
527
528 ac_ext=c
529 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
530 ac_cpp='$CPP $CPPFLAGS'
531 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
532 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
533 cross_compiling=$ac_cv_prog_cc_cross
534
535 ac_exeext=
536 ac_objext=o
537 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
538 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
539 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
540 ac_n= ac_c='
541 ' ac_t=' '
542 else
543 ac_n=-n ac_c= ac_t=
544 fi
545 else
546 ac_n= ac_c='\c' ac_t=
547 fi
548
549
550 ac_aux_dir=
551 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
552 if test -f $ac_dir/install-sh; then
553 ac_aux_dir=$ac_dir
554 ac_install_sh="$ac_aux_dir/install-sh -c"
555 break
556 elif test -f $ac_dir/install.sh; then
557 ac_aux_dir=$ac_dir
558 ac_install_sh="$ac_aux_dir/install.sh -c"
559 break
560 fi
561 done
562 if test -z "$ac_aux_dir"; then
563 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
564 fi
565 ac_config_guess=$ac_aux_dir/config.guess
566 ac_config_sub=$ac_aux_dir/config.sub
567 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
568
569 # Find a good install program. We prefer a C program (faster),
570 # so one script is as good as another. But avoid the broken or
571 # incompatible versions:
572 # SysV /etc/install, /usr/sbin/install
573 # SunOS /usr/etc/install
574 # IRIX /sbin/install
575 # AIX /bin/install
576 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
577 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
578 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
579 # ./install, which can be erroneously created by make from ./install.sh.
580 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
581 echo "configure:582: checking for a BSD compatible install" >&5
582 if test -z "$INSTALL"; then
583 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
584 echo $ac_n "(cached) $ac_c" 1>&6
585 else
586 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
587 for ac_dir in $PATH; do
588 # Account for people who put trailing slashes in PATH elements.
589 case "$ac_dir/" in
590 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
591 *)
592 # OSF1 and SCO ODT 3.0 have their own names for install.
593 # Don't use installbsd from OSF since it installs stuff as root
594 # by default.
595 for ac_prog in ginstall scoinst install; do
596 if test -f $ac_dir/$ac_prog; then
597 if test $ac_prog = install &&
598 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
599 # AIX install. It has an incompatible calling convention.
600 :
601 else
602 ac_cv_path_install="$ac_dir/$ac_prog -c"
603 break 2
604 fi
605 fi
606 done
607 ;;
608 esac
609 done
610 IFS="$ac_save_IFS"
611
612 fi
613 if test "${ac_cv_path_install+set}" = set; then
614 INSTALL="$ac_cv_path_install"
615 else
616 # As a last resort, use the slow shell script. We don't cache a
617 # path for INSTALL within a source directory, because that will
618 # break other packages using the cache if that directory is
619 # removed, or if the path is relative.
620 INSTALL="$ac_install_sh"
621 fi
622 fi
623 echo "$ac_t""$INSTALL" 1>&6
624
625 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
626 # It thinks the first close brace ends the variable substitution.
627 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
628
629 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
630
631 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
632
633 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
634 echo "configure:635: checking whether build environment is sane" >&5
635 # Just in case
636 sleep 1
637 echo timestamp > conftestfile
638 # Do `set' in a subshell so we don't clobber the current shell's
639 # arguments. Must try -L first in case configure is actually a
640 # symlink; some systems play weird games with the mod time of symlinks
641 # (eg FreeBSD returns the mod time of the symlink's containing
642 # directory).
643 if (
644 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
645 if test "$*" = "X"; then
646 # -L didn't work.
647 set X `ls -t $srcdir/configure conftestfile`
648 fi
649 if test "$*" != "X $srcdir/configure conftestfile" \
650 && test "$*" != "X conftestfile $srcdir/configure"; then
651
652 # If neither matched, then we have a broken ls. This can happen
653 # if, for instance, CONFIG_SHELL is bash and it inherits a
654 # broken ls alias from the environment. This has actually
655 # happened. Such a system could not be considered "sane".
656 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
657 alias in your environment" 1>&2; exit 1; }
658 fi
659
660 test "$2" = conftestfile
661 )
662 then
663 # Ok.
664 :
665 else
666 { echo "configure: error: newly created file is older than distributed files!
667 Check your system clock" 1>&2; exit 1; }
668 fi
669 rm -f conftest*
670 echo "$ac_t""yes" 1>&6
671 if test "$program_transform_name" = s,x,x,; then
672 program_transform_name=
673 else
674 # Double any \ or $. echo might interpret backslashes.
675 cat <<\EOF_SED > conftestsed
676 s,\\,\\\\,g; s,\$,$$,g
677 EOF_SED
678 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
679 rm -f conftestsed
680 fi
681 test "$program_prefix" != NONE &&
682 program_transform_name="s,^,${program_prefix},; $program_transform_name"
683 # Use a double $ so make ignores it.
684 test "$program_suffix" != NONE &&
685 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
686
687 # sed with no file args requires a program.
688 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
689
690 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
691 echo "configure:692: checking whether ${MAKE-make} sets \${MAKE}" >&5
692 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
693 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
694 echo $ac_n "(cached) $ac_c" 1>&6
695 else
696 cat > conftestmake <<\EOF
697 all:
698 @echo 'ac_maketemp="${MAKE}"'
699 EOF
700 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
701 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
702 if test -n "$ac_maketemp"; then
703 eval ac_cv_prog_make_${ac_make}_set=yes
704 else
705 eval ac_cv_prog_make_${ac_make}_set=no
706 fi
707 rm -f conftestmake
708 fi
709 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
710 echo "$ac_t""yes" 1>&6
711 SET_MAKE=
712 else
713 echo "$ac_t""no" 1>&6
714 SET_MAKE="MAKE=${MAKE-make}"
715 fi
716
717
718 PACKAGE=openbox
719
720 VERSION=1.0.1
721
722 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
723 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
724 fi
725
726
727
728 missing_dir=`cd $ac_aux_dir && pwd`
729 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
730 echo "configure:731: checking for working aclocal" >&5
731 # Run test in a subshell; some versions of sh will print an error if
732 # an executable is not found, even if stderr is redirected.
733 # Redirect stdin to placate older versions of autoconf. Sigh.
734 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
735 ACLOCAL=aclocal
736 echo "$ac_t""found" 1>&6
737 else
738 ACLOCAL="$missing_dir/missing aclocal"
739 echo "$ac_t""missing" 1>&6
740 fi
741
742 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
743 echo "configure:744: checking for working autoconf" >&5
744 # Run test in a subshell; some versions of sh will print an error if
745 # an executable is not found, even if stderr is redirected.
746 # Redirect stdin to placate older versions of autoconf. Sigh.
747 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
748 AUTOCONF=autoconf
749 echo "$ac_t""found" 1>&6
750 else
751 AUTOCONF="$missing_dir/missing autoconf"
752 echo "$ac_t""missing" 1>&6
753 fi
754
755 echo $ac_n "checking for working automake""... $ac_c" 1>&6
756 echo "configure:757: checking for working automake" >&5
757 # Run test in a subshell; some versions of sh will print an error if
758 # an executable is not found, even if stderr is redirected.
759 # Redirect stdin to placate older versions of autoconf. Sigh.
760 if (automake --version) < /dev/null > /dev/null 2>&1; then
761 AUTOMAKE=automake
762 echo "$ac_t""found" 1>&6
763 else
764 AUTOMAKE="$missing_dir/missing automake"
765 echo "$ac_t""missing" 1>&6
766 fi
767
768 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
769 echo "configure:770: checking for working autoheader" >&5
770 # Run test in a subshell; some versions of sh will print an error if
771 # an executable is not found, even if stderr is redirected.
772 # Redirect stdin to placate older versions of autoconf. Sigh.
773 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
774 AUTOHEADER=autoheader
775 echo "$ac_t""found" 1>&6
776 else
777 AUTOHEADER="$missing_dir/missing autoheader"
778 echo "$ac_t""missing" 1>&6
779 fi
780
781 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
782 echo "configure:783: checking for working makeinfo" >&5
783 # Run test in a subshell; some versions of sh will print an error if
784 # an executable is not found, even if stderr is redirected.
785 # Redirect stdin to placate older versions of autoconf. Sigh.
786 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
787 MAKEINFO=makeinfo
788 echo "$ac_t""found" 1>&6
789 else
790 MAKEINFO="$missing_dir/missing makeinfo"
791 echo "$ac_t""missing" 1>&6
792 fi
793
794
795
796 test x$prefix = "xNONE" && prefix="$ac_default_prefix"
797
798
799 # Extract the first word of "gcc", so it can be a program name with args.
800 set dummy gcc; ac_word=$2
801 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
802 echo "configure:803: checking for $ac_word" >&5
803 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
804 echo $ac_n "(cached) $ac_c" 1>&6
805 else
806 if test -n "$CC"; then
807 ac_cv_prog_CC="$CC" # Let the user override the test.
808 else
809 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
810 ac_dummy="$PATH"
811 for ac_dir in $ac_dummy; do
812 test -z "$ac_dir" && ac_dir=.
813 if test -f $ac_dir/$ac_word; then
814 ac_cv_prog_CC="gcc"
815 break
816 fi
817 done
818 IFS="$ac_save_ifs"
819 fi
820 fi
821 CC="$ac_cv_prog_CC"
822 if test -n "$CC"; then
823 echo "$ac_t""$CC" 1>&6
824 else
825 echo "$ac_t""no" 1>&6
826 fi
827
828 if test -z "$CC"; then
829 # Extract the first word of "cc", so it can be a program name with args.
830 set dummy cc; ac_word=$2
831 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
832 echo "configure:833: checking for $ac_word" >&5
833 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
834 echo $ac_n "(cached) $ac_c" 1>&6
835 else
836 if test -n "$CC"; then
837 ac_cv_prog_CC="$CC" # Let the user override the test.
838 else
839 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
840 ac_prog_rejected=no
841 ac_dummy="$PATH"
842 for ac_dir in $ac_dummy; do
843 test -z "$ac_dir" && ac_dir=.
844 if test -f $ac_dir/$ac_word; then
845 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
846 ac_prog_rejected=yes
847 continue
848 fi
849 ac_cv_prog_CC="cc"
850 break
851 fi
852 done
853 IFS="$ac_save_ifs"
854 if test $ac_prog_rejected = yes; then
855 # We found a bogon in the path, so make sure we never use it.
856 set dummy $ac_cv_prog_CC
857 shift
858 if test $# -gt 0; then
859 # We chose a different compiler from the bogus one.
860 # However, it has the same basename, so the bogon will be chosen
861 # first if we set CC to just the basename; use the full file name.
862 shift
863 set dummy "$ac_dir/$ac_word" "$@"
864 shift
865 ac_cv_prog_CC="$@"
866 fi
867 fi
868 fi
869 fi
870 CC="$ac_cv_prog_CC"
871 if test -n "$CC"; then
872 echo "$ac_t""$CC" 1>&6
873 else
874 echo "$ac_t""no" 1>&6
875 fi
876
877 if test -z "$CC"; then
878 case "`uname -s`" in
879 *win32* | *WIN32*)
880 # Extract the first word of "cl", so it can be a program name with args.
881 set dummy cl; ac_word=$2
882 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
883 echo "configure:884: checking for $ac_word" >&5
884 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
885 echo $ac_n "(cached) $ac_c" 1>&6
886 else
887 if test -n "$CC"; then
888 ac_cv_prog_CC="$CC" # Let the user override the test.
889 else
890 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
891 ac_dummy="$PATH"
892 for ac_dir in $ac_dummy; do
893 test -z "$ac_dir" && ac_dir=.
894 if test -f $ac_dir/$ac_word; then
895 ac_cv_prog_CC="cl"
896 break
897 fi
898 done
899 IFS="$ac_save_ifs"
900 fi
901 fi
902 CC="$ac_cv_prog_CC"
903 if test -n "$CC"; then
904 echo "$ac_t""$CC" 1>&6
905 else
906 echo "$ac_t""no" 1>&6
907 fi
908 ;;
909 esac
910 fi
911 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
912 fi
913
914 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
915 echo "configure:916: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
916
917 ac_ext=c
918 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
919 ac_cpp='$CPP $CPPFLAGS'
920 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
921 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
922 cross_compiling=$ac_cv_prog_cc_cross
923
924 cat > conftest.$ac_ext << EOF
925
926 #line 927 "configure"
927 #include "confdefs.h"
928
929 main(){return(0);}
930 EOF
931 if { (eval echo configure:932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
932 ac_cv_prog_cc_works=yes
933 # If we can't run a trivial program, we are probably using a cross compiler.
934 if (./conftest; exit) 2>/dev/null; then
935 ac_cv_prog_cc_cross=no
936 else
937 ac_cv_prog_cc_cross=yes
938 fi
939 else
940 echo "configure: failed program was:" >&5
941 cat conftest.$ac_ext >&5
942 ac_cv_prog_cc_works=no
943 fi
944 rm -fr conftest*
945 ac_ext=c
946 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
947 ac_cpp='$CPP $CPPFLAGS'
948 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
949 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
950 cross_compiling=$ac_cv_prog_cc_cross
951
952 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
953 if test $ac_cv_prog_cc_works = no; then
954 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
955 fi
956 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
957 echo "configure:958: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
958 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
959 cross_compiling=$ac_cv_prog_cc_cross
960
961 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
962 echo "configure:963: checking whether we are using GNU C" >&5
963 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
964 echo $ac_n "(cached) $ac_c" 1>&6
965 else
966 cat > conftest.c <<EOF
967 #ifdef __GNUC__
968 yes;
969 #endif
970 EOF
971 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:972: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
972 ac_cv_prog_gcc=yes
973 else
974 ac_cv_prog_gcc=no
975 fi
976 fi
977
978 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
979
980 if test $ac_cv_prog_gcc = yes; then
981 GCC=yes
982 else
983 GCC=
984 fi
985
986 ac_test_CFLAGS="${CFLAGS+set}"
987 ac_save_CFLAGS="$CFLAGS"
988 CFLAGS=
989 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
990 echo "configure:991: checking whether ${CC-cc} accepts -g" >&5
991 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
992 echo $ac_n "(cached) $ac_c" 1>&6
993 else
994 echo 'void f(){}' > conftest.c
995 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
996 ac_cv_prog_cc_g=yes
997 else
998 ac_cv_prog_cc_g=no
999 fi
1000 rm -f conftest*
1001
1002 fi
1003
1004 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1005 if test "$ac_test_CFLAGS" = set; then
1006 CFLAGS="$ac_save_CFLAGS"
1007 elif test $ac_cv_prog_cc_g = yes; then
1008 if test "$GCC" = yes; then
1009 CFLAGS="-g -O2"
1010 else
1011 CFLAGS="-g"
1012 fi
1013 else
1014 if test "$GCC" = yes; then
1015 CFLAGS="-O2"
1016 else
1017 CFLAGS=
1018 fi
1019 fi
1020
1021 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1022 do
1023 # Extract the first word of "$ac_prog", so it can be a program name with args.
1024 set dummy $ac_prog; ac_word=$2
1025 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1026 echo "configure:1027: checking for $ac_word" >&5
1027 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1028 echo $ac_n "(cached) $ac_c" 1>&6
1029 else
1030 if test -n "$CXX"; then
1031 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1032 else
1033 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1034 ac_dummy="$PATH"
1035 for ac_dir in $ac_dummy; do
1036 test -z "$ac_dir" && ac_dir=.
1037 if test -f $ac_dir/$ac_word; then
1038 ac_cv_prog_CXX="$ac_prog"
1039 break
1040 fi
1041 done
1042 IFS="$ac_save_ifs"
1043 fi
1044 fi
1045 CXX="$ac_cv_prog_CXX"
1046 if test -n "$CXX"; then
1047 echo "$ac_t""$CXX" 1>&6
1048 else
1049 echo "$ac_t""no" 1>&6
1050 fi
1051
1052 test -n "$CXX" && break
1053 done
1054 test -n "$CXX" || CXX="gcc"
1055
1056
1057 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1058 echo "configure:1059: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1059
1060 ac_ext=C
1061 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1062 ac_cpp='$CXXCPP $CPPFLAGS'
1063 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1064 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1065 cross_compiling=$ac_cv_prog_cxx_cross
1066
1067 cat > conftest.$ac_ext << EOF
1068
1069 #line 1070 "configure"
1070 #include "confdefs.h"
1071
1072 int main(){return(0);}
1073 EOF
1074 if { (eval echo configure:1075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1075 ac_cv_prog_cxx_works=yes
1076 # If we can't run a trivial program, we are probably using a cross compiler.
1077 if (./conftest; exit) 2>/dev/null; then
1078 ac_cv_prog_cxx_cross=no
1079 else
1080 ac_cv_prog_cxx_cross=yes
1081 fi
1082 else
1083 echo "configure: failed program was:" >&5
1084 cat conftest.$ac_ext >&5
1085 ac_cv_prog_cxx_works=no
1086 fi
1087 rm -fr conftest*
1088 ac_ext=c
1089 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1090 ac_cpp='$CPP $CPPFLAGS'
1091 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1092 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1093 cross_compiling=$ac_cv_prog_cc_cross
1094
1095 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1096 if test $ac_cv_prog_cxx_works = no; then
1097 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1098 fi
1099 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1100 echo "configure:1101: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1101 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1102 cross_compiling=$ac_cv_prog_cxx_cross
1103
1104 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1105 echo "configure:1106: checking whether we are using GNU C++" >&5
1106 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1107 echo $ac_n "(cached) $ac_c" 1>&6
1108 else
1109 cat > conftest.C <<EOF
1110 #ifdef __GNUC__
1111 yes;
1112 #endif
1113 EOF
1114 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1115: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1115 ac_cv_prog_gxx=yes
1116 else
1117 ac_cv_prog_gxx=no
1118 fi
1119 fi
1120
1121 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1122
1123 if test $ac_cv_prog_gxx = yes; then
1124 GXX=yes
1125 else
1126 GXX=
1127 fi
1128
1129 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1130 ac_save_CXXFLAGS="$CXXFLAGS"
1131 CXXFLAGS=
1132 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1133 echo "configure:1134: checking whether ${CXX-g++} accepts -g" >&5
1134 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1135 echo $ac_n "(cached) $ac_c" 1>&6
1136 else
1137 echo 'void f(){}' > conftest.cc
1138 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1139 ac_cv_prog_cxx_g=yes
1140 else
1141 ac_cv_prog_cxx_g=no
1142 fi
1143 rm -f conftest*
1144
1145 fi
1146
1147 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1148 if test "$ac_test_CXXFLAGS" = set; then
1149 CXXFLAGS="$ac_save_CXXFLAGS"
1150 elif test $ac_cv_prog_cxx_g = yes; then
1151 if test "$GXX" = yes; then
1152 CXXFLAGS="-g -O2"
1153 else
1154 CXXFLAGS="-g"
1155 fi
1156 else
1157 if test "$GXX" = yes; then
1158 CXXFLAGS="-O2"
1159 else
1160 CXXFLAGS=
1161 fi
1162 fi
1163
1164 # Find a good install program. We prefer a C program (faster),
1165 # so one script is as good as another. But avoid the broken or
1166 # incompatible versions:
1167 # SysV /etc/install, /usr/sbin/install
1168 # SunOS /usr/etc/install
1169 # IRIX /sbin/install
1170 # AIX /bin/install
1171 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1172 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1173 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1174 # ./install, which can be erroneously created by make from ./install.sh.
1175 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1176 echo "configure:1177: checking for a BSD compatible install" >&5
1177 if test -z "$INSTALL"; then
1178 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1179 echo $ac_n "(cached) $ac_c" 1>&6
1180 else
1181 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1182 for ac_dir in $PATH; do
1183 # Account for people who put trailing slashes in PATH elements.
1184 case "$ac_dir/" in
1185 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1186 *)
1187 # OSF1 and SCO ODT 3.0 have their own names for install.
1188 # Don't use installbsd from OSF since it installs stuff as root
1189 # by default.
1190 for ac_prog in ginstall scoinst install; do
1191 if test -f $ac_dir/$ac_prog; then
1192 if test $ac_prog = install &&
1193 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1194 # AIX install. It has an incompatible calling convention.
1195 :
1196 else
1197 ac_cv_path_install="$ac_dir/$ac_prog -c"
1198 break 2
1199 fi
1200 fi
1201 done
1202 ;;
1203 esac
1204 done
1205 IFS="$ac_save_IFS"
1206
1207 fi
1208 if test "${ac_cv_path_install+set}" = set; then
1209 INSTALL="$ac_cv_path_install"
1210 else
1211 # As a last resort, use the slow shell script. We don't cache a
1212 # path for INSTALL within a source directory, because that will
1213 # break other packages using the cache if that directory is
1214 # removed, or if the path is relative.
1215 INSTALL="$ac_install_sh"
1216 fi
1217 fi
1218 echo "$ac_t""$INSTALL" 1>&6
1219
1220 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1221 # It thinks the first close brace ends the variable substitution.
1222 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1223
1224 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1225
1226 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1227
1228
1229 ac_ext=C
1230 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1231 ac_cpp='$CXXCPP $CPPFLAGS'
1232 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1233 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1234 cross_compiling=$ac_cv_prog_cxx_cross
1235
1236
1237 for ac_prog in sed
1238 do
1239 # Extract the first word of "$ac_prog", so it can be a program name with args.
1240 set dummy $ac_prog; ac_word=$2
1241 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1242 echo "configure:1243: checking for $ac_word" >&5
1243 if eval "test \"`echo '$''{'ac_cv_prog_regex_cmd'+set}'`\" = set"; then
1244 echo $ac_n "(cached) $ac_c" 1>&6
1245 else
1246 if test -n "$regex_cmd"; then
1247 ac_cv_prog_regex_cmd="$regex_cmd" # Let the user override the test.
1248 else
1249 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1250 ac_dummy="$PATH"
1251 for ac_dir in $ac_dummy; do
1252 test -z "$ac_dir" && ac_dir=.
1253 if test -f $ac_dir/$ac_word; then
1254 ac_cv_prog_regex_cmd="$ac_prog"
1255 break
1256 fi
1257 done
1258 IFS="$ac_save_ifs"
1259 fi
1260 fi
1261 regex_cmd="$ac_cv_prog_regex_cmd"
1262 if test -n "$regex_cmd"; then
1263 echo "$ac_t""$regex_cmd" 1>&6
1264 else
1265 echo "$ac_t""no" 1>&6
1266 fi
1267
1268 test -n "$regex_cmd" && break
1269 done
1270
1271 if test x$regex_cmd = "x"; then
1272 { echo "configure: error: error. sed is required to build the default menu file." 1>&2; exit 1; }
1273 fi
1274
1275 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
1276 echo "configure:1277: checking how to run the C++ preprocessor" >&5
1277 if test -z "$CXXCPP"; then
1278 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
1279 echo $ac_n "(cached) $ac_c" 1>&6
1280 else
1281 ac_ext=C
1282 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1283 ac_cpp='$CXXCPP $CPPFLAGS'
1284 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1285 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1286 cross_compiling=$ac_cv_prog_cxx_cross
1287 CXXCPP="${CXX-g++} -E"
1288 cat > conftest.$ac_ext <<EOF
1289 #line 1290 "configure"
1290 #include "confdefs.h"
1291 #include <stdlib.h>
1292 EOF
1293 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1294 { (eval echo configure:1295: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1295 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1296 if test -z "$ac_err"; then
1297 :
1298 else
1299 echo "$ac_err" >&5
1300 echo "configure: failed program was:" >&5
1301 cat conftest.$ac_ext >&5
1302 rm -rf conftest*
1303 CXXCPP=/lib/cpp
1304 fi
1305 rm -f conftest*
1306 ac_cv_prog_CXXCPP="$CXXCPP"
1307 ac_ext=C
1308 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1309 ac_cpp='$CXXCPP $CPPFLAGS'
1310 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1311 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1312 cross_compiling=$ac_cv_prog_cxx_cross
1313 fi
1314 fi
1315 CXXCPP="$ac_cv_prog_CXXCPP"
1316 echo "$ac_t""$CXXCPP" 1>&6
1317
1318 for ac_hdr in ctype.h dirent.h fcntl.h libgen.h locale.h nl_types.h process.h signal.h stdarg.h stdio.h string.h stdlib.h time.h unistd.h sys/param.h sys/select.h sys/signal.h sys/stat.h sys/time.h sys/types.h sys/wait.h sstream
1319 do
1320 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1321 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1322 echo "configure:1323: checking for $ac_hdr" >&5
1323 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1324 echo $ac_n "(cached) $ac_c" 1>&6
1325 else
1326 cat > conftest.$ac_ext <<EOF
1327 #line 1328 "configure"
1328 #include "confdefs.h"
1329 #include <$ac_hdr>
1330 EOF
1331 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1332 { (eval echo configure:1333: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1333 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1334 if test -z "$ac_err"; then
1335 rm -rf conftest*
1336 eval "ac_cv_header_$ac_safe=yes"
1337 else
1338 echo "$ac_err" >&5
1339 echo "configure: failed program was:" >&5
1340 cat conftest.$ac_ext >&5
1341 rm -rf conftest*
1342 eval "ac_cv_header_$ac_safe=no"
1343 fi
1344 rm -f conftest*
1345 fi
1346 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1347 echo "$ac_t""yes" 1>&6
1348 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1349 cat >> confdefs.h <<EOF
1350 #define $ac_tr_hdr 1
1351 EOF
1352
1353 else
1354 echo "$ac_t""no" 1>&6
1355 fi
1356 done
1357
1358 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1359 echo "configure:1360: checking whether time.h and sys/time.h may both be included" >&5
1360 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1361 echo $ac_n "(cached) $ac_c" 1>&6
1362 else
1363 cat > conftest.$ac_ext <<EOF
1364 #line 1365 "configure"
1365 #include "confdefs.h"
1366 #include <sys/types.h>
1367 #include <sys/time.h>
1368 #include <time.h>
1369 int main() {
1370 struct tm *tp;
1371 ; return 0; }
1372 EOF
1373 if { (eval echo configure:1374: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1374 rm -rf conftest*
1375 ac_cv_header_time=yes
1376 else
1377 echo "configure: failed program was:" >&5
1378 cat conftest.$ac_ext >&5
1379 rm -rf conftest*
1380 ac_cv_header_time=no
1381 fi
1382 rm -f conftest*
1383 fi
1384
1385 echo "$ac_t""$ac_cv_header_time" 1>&6
1386 if test $ac_cv_header_time = yes; then
1387 cat >> confdefs.h <<\EOF
1388 #define TIME_WITH_SYS_TIME 1
1389 EOF
1390
1391 fi
1392
1393
1394 for ac_func in basename
1395 do
1396 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1397 echo "configure:1398: checking for $ac_func" >&5
1398 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1399 echo $ac_n "(cached) $ac_c" 1>&6
1400 else
1401 cat > conftest.$ac_ext <<EOF
1402 #line 1403 "configure"
1403 #include "confdefs.h"
1404 /* System header to define __stub macros and hopefully few prototypes,
1405 which can conflict with char $ac_func(); below. */
1406 #include <assert.h>
1407 /* Override any gcc2 internal prototype to avoid an error. */
1408 #ifdef __cplusplus
1409 extern "C"
1410 #endif
1411 /* We use char because int might match the return type of a gcc2
1412 builtin and then its argument prototype would still apply. */
1413 char $ac_func();
1414
1415 int main() {
1416
1417 /* The GNU C library defines this for functions which it implements
1418 to always fail with ENOSYS. Some functions are actually named
1419 something starting with __ and the normal name is an alias. */
1420 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1421 choke me
1422 #else
1423 $ac_func();
1424 #endif
1425
1426 ; return 0; }
1427 EOF
1428 if { (eval echo configure:1429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1429 rm -rf conftest*
1430 eval "ac_cv_func_$ac_func=yes"
1431 else
1432 echo "configure: failed program was:" >&5
1433 cat conftest.$ac_ext >&5
1434 rm -rf conftest*
1435 eval "ac_cv_func_$ac_func=no"
1436 fi
1437 rm -f conftest*
1438 fi
1439
1440 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1441 echo "$ac_t""yes" 1>&6
1442 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1443 cat >> confdefs.h <<EOF
1444 #define $ac_tr_func 1
1445 EOF
1446
1447 else
1448 echo "$ac_t""no" 1>&6
1449 echo $ac_n "checking for basename in -lgen""... $ac_c" 1>&6
1450 echo "configure:1451: checking for basename in -lgen" >&5
1451 ac_lib_var=`echo gen'_'basename | sed 'y%./+-%__p_%'`
1452 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1453 echo $ac_n "(cached) $ac_c" 1>&6
1454 else
1455 ac_save_LIBS="$LIBS"
1456 LIBS="-lgen $LIBS"
1457 cat > conftest.$ac_ext <<EOF
1458 #line 1459 "configure"
1459 #include "confdefs.h"
1460 /* Override any gcc2 internal prototype to avoid an error. */
1461 #ifdef __cplusplus
1462 extern "C"
1463 #endif
1464 /* We use char because int might match the return type of a gcc2
1465 builtin and then its argument prototype would still apply. */
1466 char basename();
1467
1468 int main() {
1469 basename()
1470 ; return 0; }
1471 EOF
1472 if { (eval echo configure:1473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1473 rm -rf conftest*
1474 eval "ac_cv_lib_$ac_lib_var=yes"
1475 else
1476 echo "configure: failed program was:" >&5
1477 cat conftest.$ac_ext >&5
1478 rm -rf conftest*
1479 eval "ac_cv_lib_$ac_lib_var=no"
1480 fi
1481 rm -f conftest*
1482 LIBS="$ac_save_LIBS"
1483
1484 fi
1485 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1486 echo "$ac_t""yes" 1>&6
1487 cat >> confdefs.h <<\EOF
1488 #define HAVE_BASENAME 1
1489 EOF
1490 LIBS="$LIBS -lgen"
1491 else
1492 echo "$ac_t""no" 1>&6
1493 fi
1494
1495 fi
1496 done
1497
1498 for ac_func in getpid setlocale sigaction strftime strcasestr snprintf vsnprintf catopen catgets catclose
1499 do
1500 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1501 echo "configure:1502: checking for $ac_func" >&5
1502 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1503 echo $ac_n "(cached) $ac_c" 1>&6
1504 else
1505 cat > conftest.$ac_ext <<EOF
1506 #line 1507 "configure"
1507 #include "confdefs.h"
1508 /* System header to define __stub macros and hopefully few prototypes,
1509 which can conflict with char $ac_func(); below. */
1510 #include <assert.h>
1511 /* Override any gcc2 internal prototype to avoid an error. */
1512 #ifdef __cplusplus
1513 extern "C"
1514 #endif
1515 /* We use char because int might match the return type of a gcc2
1516 builtin and then its argument prototype would still apply. */
1517 char $ac_func();
1518
1519 int main() {
1520
1521 /* The GNU C library defines this for functions which it implements
1522 to always fail with ENOSYS. Some functions are actually named
1523 something starting with __ and the normal name is an alias. */
1524 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1525 choke me
1526 #else
1527 $ac_func();
1528 #endif
1529
1530 ; return 0; }
1531 EOF
1532 if { (eval echo configure:1533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1533 rm -rf conftest*
1534 eval "ac_cv_func_$ac_func=yes"
1535 else
1536 echo "configure: failed program was:" >&5
1537 cat conftest.$ac_ext >&5
1538 rm -rf conftest*
1539 eval "ac_cv_func_$ac_func=no"
1540 fi
1541 rm -f conftest*
1542 fi
1543
1544 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1545 echo "$ac_t""yes" 1>&6
1546 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1547 cat >> confdefs.h <<EOF
1548 #define $ac_tr_func 1
1549 EOF
1550
1551 else
1552 echo "$ac_t""no" 1>&6
1553 fi
1554 done
1555
1556 echo $ac_n "checking for t_open in -lnsl""... $ac_c" 1>&6
1557 echo "configure:1558: checking for t_open in -lnsl" >&5
1558 ac_lib_var=`echo nsl'_'t_open | sed 'y%./+-%__p_%'`
1559 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1560 echo $ac_n "(cached) $ac_c" 1>&6
1561 else
1562 ac_save_LIBS="$LIBS"
1563 LIBS="-lnsl $LIBS"
1564 cat > conftest.$ac_ext <<EOF
1565 #line 1566 "configure"
1566 #include "confdefs.h"
1567 /* Override any gcc2 internal prototype to avoid an error. */
1568 #ifdef __cplusplus
1569 extern "C"
1570 #endif
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 t_open();
1574
1575 int main() {
1576 t_open()
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 LIBS="$LIBS -lnsl"
1595 else
1596 echo "$ac_t""no" 1>&6
1597 fi
1598
1599 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
1600 echo "configure:1601: checking for socket in -lsocket" >&5
1601 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
1602 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1603 echo $ac_n "(cached) $ac_c" 1>&6
1604 else
1605 ac_save_LIBS="$LIBS"
1606 LIBS="-lsocket $LIBS"
1607 cat > conftest.$ac_ext <<EOF
1608 #line 1609 "configure"
1609 #include "confdefs.h"
1610 /* Override any gcc2 internal prototype to avoid an error. */
1611 #ifdef __cplusplus
1612 extern "C"
1613 #endif
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 socket();
1617
1618 int main() {
1619 socket()
1620 ; return 0; }
1621 EOF
1622 if { (eval echo configure:1623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1623 rm -rf conftest*
1624 eval "ac_cv_lib_$ac_lib_var=yes"
1625 else
1626 echo "configure: failed program was:" >&5
1627 cat conftest.$ac_ext >&5
1628 rm -rf conftest*
1629 eval "ac_cv_lib_$ac_lib_var=no"
1630 fi
1631 rm -f conftest*
1632 LIBS="$ac_save_LIBS"
1633
1634 fi
1635 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1636 echo "$ac_t""yes" 1>&6
1637 LIBS="$LIBS -lsocket"
1638 else
1639 echo "$ac_t""no" 1>&6
1640 fi
1641
1642
1643 # If we find X, set shell vars x_includes and x_libraries to the
1644 # paths, otherwise set no_x=yes.
1645 # Uses ac_ vars as temps to allow command line to override cache and checks.
1646 # --without-x overrides everything else, but does not touch the cache.
1647 echo $ac_n "checking for X""... $ac_c" 1>&6
1648 echo "configure:1649: checking for X" >&5
1649
1650 # Check whether --with-x or --without-x was given.
1651 if test "${with_x+set}" = set; then
1652 withval="$with_x"
1653 :
1654 fi
1655
1656 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
1657 if test "x$with_x" = xno; then
1658 # The user explicitly disabled X.
1659 have_x=disabled
1660 else
1661 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
1662 # Both variables are already set.
1663 have_x=yes
1664 else
1665 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
1666 echo $ac_n "(cached) $ac_c" 1>&6
1667 else
1668 # One or both of the vars are not set, and there is no cached value.
1669 ac_x_includes=NO ac_x_libraries=NO
1670 rm -fr conftestdir
1671 if mkdir conftestdir; then
1672 cd conftestdir
1673 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
1674 cat > Imakefile <<'EOF'
1675 acfindx:
1676 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
1677 EOF
1678 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
1679 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1680 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
1681 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
1682 for ac_extension in a so sl; do
1683 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
1684 test -f $ac_im_libdir/libX11.$ac_extension; then
1685 ac_im_usrlibdir=$ac_im_libdir; break
1686 fi
1687 done
1688 # Screen out bogus values from the imake configuration. They are
1689 # bogus both because they are the default anyway, and because
1690 # using them would break gcc on systems where it needs fixed includes.
1691 case "$ac_im_incroot" in
1692 /usr/include) ;;
1693 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
1694 esac
1695 case "$ac_im_usrlibdir" in
1696 /usr/lib | /lib) ;;
1697 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
1698 esac
1699 fi
1700 cd ..
1701 rm -fr conftestdir
1702 fi
1703
1704 if test "$ac_x_includes" = NO; then
1705 # Guess where to find include files, by looking for this one X11 .h file.
1706 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
1707
1708 # First, try using that file with no special directory specified.
1709 cat > conftest.$ac_ext <<EOF
1710 #line 1711 "configure"
1711 #include "confdefs.h"
1712 #include <$x_direct_test_include>
1713 EOF
1714 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1715 { (eval echo configure:1716: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1716 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1717 if test -z "$ac_err"; then
1718 rm -rf conftest*
1719 # We can compile using X headers with no special include directory.
1720 ac_x_includes=
1721 else
1722 echo "$ac_err" >&5
1723 echo "configure: failed program was:" >&5
1724 cat conftest.$ac_ext >&5
1725 rm -rf conftest*
1726 # Look for the header file in a standard set of common directories.
1727 # Check X11 before X11Rn because it is often a symlink to the current release.
1728 for ac_dir in \
1729 /usr/X11/include \
1730 /usr/X11R6/include \
1731 /usr/X11R5/include \
1732 /usr/X11R4/include \
1733 \
1734 /usr/include/X11 \
1735 /usr/include/X11R6 \
1736 /usr/include/X11R5 \
1737 /usr/include/X11R4 \
1738 \
1739 /usr/local/X11/include \
1740 /usr/local/X11R6/include \
1741 /usr/local/X11R5/include \
1742 /usr/local/X11R4/include \
1743 \
1744 /usr/local/include/X11 \
1745 /usr/local/include/X11R6 \
1746 /usr/local/include/X11R5 \
1747 /usr/local/include/X11R4 \
1748 \
1749 /usr/X386/include \
1750 /usr/x386/include \
1751 /usr/XFree86/include/X11 \
1752 \
1753 /usr/include \
1754 /usr/local/include \
1755 /usr/unsupported/include \
1756 /usr/athena/include \
1757 /usr/local/x11r5/include \
1758 /usr/lpp/Xamples/include \
1759 \
1760 /usr/openwin/include \
1761 /usr/openwin/share/include \
1762 ; \
1763 do
1764 if test -r "$ac_dir/$x_direct_test_include"; then
1765 ac_x_includes=$ac_dir
1766 break
1767 fi
1768 done
1769 fi
1770 rm -f conftest*
1771 fi # $ac_x_includes = NO
1772
1773 if test "$ac_x_libraries" = NO; then
1774 # Check for the libraries.
1775
1776 test -z "$x_direct_test_library" && x_direct_test_library=Xt
1777 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
1778
1779 # See if we find them without any special options.
1780 # Don't add to $LIBS permanently.
1781 ac_save_LIBS="$LIBS"
1782 LIBS="-l$x_direct_test_library $LIBS"
1783 cat > conftest.$ac_ext <<EOF
1784 #line 1785 "configure"
1785 #include "confdefs.h"
1786
1787 int main() {
1788 ${x_direct_test_function}()
1789 ; return 0; }
1790 EOF
1791 if { (eval echo configure:1792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1792 rm -rf conftest*
1793 LIBS="$ac_save_LIBS"
1794 # We can link X programs with no special library path.
1795 ac_x_libraries=
1796 else
1797 echo "configure: failed program was:" >&5
1798 cat conftest.$ac_ext >&5
1799 rm -rf conftest*
1800 LIBS="$ac_save_LIBS"
1801 # First see if replacing the include by lib works.
1802 # Check X11 before X11Rn because it is often a symlink to the current release.
1803 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
1804 /usr/X11/lib \
1805 /usr/X11R6/lib \
1806 /usr/X11R5/lib \
1807 /usr/X11R4/lib \
1808 \
1809 /usr/lib/X11 \
1810 /usr/lib/X11R6 \
1811 /usr/lib/X11R5 \
1812 /usr/lib/X11R4 \
1813 \
1814 /usr/local/X11/lib \
1815 /usr/local/X11R6/lib \
1816 /usr/local/X11R5/lib \
1817 /usr/local/X11R4/lib \
1818 \
1819 /usr/local/lib/X11 \
1820 /usr/local/lib/X11R6 \
1821 /usr/local/lib/X11R5 \
1822 /usr/local/lib/X11R4 \
1823 \
1824 /usr/X386/lib \
1825 /usr/x386/lib \
1826 /usr/XFree86/lib/X11 \
1827 \
1828 /usr/lib \
1829 /usr/local/lib \
1830 /usr/unsupported/lib \
1831 /usr/athena/lib \
1832 /usr/local/x11r5/lib \
1833 /usr/lpp/Xamples/lib \
1834 /lib/usr/lib/X11 \
1835 \
1836 /usr/openwin/lib \
1837 /usr/openwin/share/lib \
1838 ; \
1839 do
1840 for ac_extension in a so sl; do
1841 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
1842 ac_x_libraries=$ac_dir
1843 break 2
1844 fi
1845 done
1846 done
1847 fi
1848 rm -f conftest*
1849 fi # $ac_x_libraries = NO
1850
1851 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
1852 # Didn't find X anywhere. Cache the known absence of X.
1853 ac_cv_have_x="have_x=no"
1854 else
1855 # Record where we found X for the cache.
1856 ac_cv_have_x="have_x=yes \
1857 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1858 fi
1859 fi
1860 fi
1861 eval "$ac_cv_have_x"
1862 fi # $with_x != no
1863
1864 if test "$have_x" != yes; then
1865 echo "$ac_t""$have_x" 1>&6
1866 no_x=yes
1867 else
1868 # If each of the values was on the command line, it overrides each guess.
1869 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
1870 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
1871 # Update the cache value to reflect the command line values.
1872 ac_cv_have_x="have_x=yes \
1873 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1874 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1875 fi
1876
1877 if test "$no_x" = yes; then
1878 # Not all programs may use this symbol, but it does not hurt to define it.
1879 cat >> confdefs.h <<\EOF
1880 #define X_DISPLAY_MISSING 1
1881 EOF
1882
1883 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
1884 else
1885 if test -n "$x_includes"; then
1886 X_CFLAGS="$X_CFLAGS -I$x_includes"
1887 fi
1888
1889 # It would also be nice to do this for all -L options, not just this one.
1890 if test -n "$x_libraries"; then
1891 X_LIBS="$X_LIBS -L$x_libraries"
1892 # For Solaris; some versions of Sun CC require a space after -R and
1893 # others require no space. Words are not sufficient . . . .
1894 case "`(uname -sr) 2>/dev/null`" in
1895 "SunOS 5"*)
1896 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1897 echo "configure:1898: checking whether -R must be followed by a space" >&5
1898 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
1899 cat > conftest.$ac_ext <<EOF
1900 #line 1901 "configure"
1901 #include "confdefs.h"
1902
1903 int main() {
1904
1905 ; return 0; }
1906 EOF
1907 if { (eval echo configure:1908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1908 rm -rf conftest*
1909 ac_R_nospace=yes
1910 else
1911 echo "configure: failed program was:" >&5
1912 cat conftest.$ac_ext >&5
1913 rm -rf conftest*
1914 ac_R_nospace=no
1915 fi
1916 rm -f conftest*
1917 if test $ac_R_nospace = yes; then
1918 echo "$ac_t""no" 1>&6
1919 X_LIBS="$X_LIBS -R$x_libraries"
1920 else
1921 LIBS="$ac_xsave_LIBS -R $x_libraries"
1922 cat > conftest.$ac_ext <<EOF
1923 #line 1924 "configure"
1924 #include "confdefs.h"
1925
1926 int main() {
1927
1928 ; return 0; }
1929 EOF
1930 if { (eval echo configure:1931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1931 rm -rf conftest*
1932 ac_R_space=yes
1933 else
1934 echo "configure: failed program was:" >&5
1935 cat conftest.$ac_ext >&5
1936 rm -rf conftest*
1937 ac_R_space=no
1938 fi
1939 rm -f conftest*
1940 if test $ac_R_space = yes; then
1941 echo "$ac_t""yes" 1>&6
1942 X_LIBS="$X_LIBS -R $x_libraries"
1943 else
1944 echo "$ac_t""neither works" 1>&6
1945 fi
1946 fi
1947 LIBS="$ac_xsave_LIBS"
1948 esac
1949 fi
1950
1951 # Check for system-dependent libraries X programs must link with.
1952 # Do this before checking for the system-independent R6 libraries
1953 # (-lICE), since we may need -lsocket or whatever for X linking.
1954
1955 if test "$ISC" = yes; then
1956 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
1957 else
1958 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1959 # libraries were built with DECnet support. And karl@cs.umb.edu says
1960 # the Alpha needs dnet_stub (dnet does not exist).
1961 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1962 echo "configure:1963: checking for dnet_ntoa in -ldnet" >&5
1963 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1964 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1965 echo $ac_n "(cached) $ac_c" 1>&6
1966 else
1967 ac_save_LIBS="$LIBS"
1968 LIBS="-ldnet $LIBS"
1969 cat > conftest.$ac_ext <<EOF
1970 #line 1971 "configure"
1971 #include "confdefs.h"
1972 /* Override any gcc2 internal prototype to avoid an error. */
1973 #ifdef __cplusplus
1974 extern "C"
1975 #endif
1976 /* We use char because int might match the return type of a gcc2
1977 builtin and then its argument prototype would still apply. */
1978 char dnet_ntoa();
1979
1980 int main() {
1981 dnet_ntoa()
1982 ; return 0; }
1983 EOF
1984 if { (eval echo configure:1985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1985 rm -rf conftest*
1986 eval "ac_cv_lib_$ac_lib_var=yes"
1987 else
1988 echo "configure: failed program was:" >&5
1989 cat conftest.$ac_ext >&5
1990 rm -rf conftest*
1991 eval "ac_cv_lib_$ac_lib_var=no"
1992 fi
1993 rm -f conftest*
1994 LIBS="$ac_save_LIBS"
1995
1996 fi
1997 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1998 echo "$ac_t""yes" 1>&6
1999 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
2000 else
2001 echo "$ac_t""no" 1>&6
2002 fi
2003
2004 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
2005 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
2006 echo "configure:2007: checking for dnet_ntoa in -ldnet_stub" >&5
2007 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
2008 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2009 echo $ac_n "(cached) $ac_c" 1>&6
2010 else
2011 ac_save_LIBS="$LIBS"
2012 LIBS="-ldnet_stub $LIBS"
2013 cat > conftest.$ac_ext <<EOF
2014 #line 2015 "configure"
2015 #include "confdefs.h"
2016 /* Override any gcc2 internal prototype to avoid an error. */
2017 #ifdef __cplusplus
2018 extern "C"
2019 #endif
2020 /* We use char because int might match the return type of a gcc2
2021 builtin and then its argument prototype would still apply. */
2022 char dnet_ntoa();
2023
2024 int main() {
2025 dnet_ntoa()
2026 ; return 0; }
2027 EOF
2028 if { (eval echo configure:2029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2029 rm -rf conftest*
2030 eval "ac_cv_lib_$ac_lib_var=yes"
2031 else
2032 echo "configure: failed program was:" >&5
2033 cat conftest.$ac_ext >&5
2034 rm -rf conftest*
2035 eval "ac_cv_lib_$ac_lib_var=no"
2036 fi
2037 rm -f conftest*
2038 LIBS="$ac_save_LIBS"
2039
2040 fi
2041 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2042 echo "$ac_t""yes" 1>&6
2043 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
2044 else
2045 echo "$ac_t""no" 1>&6
2046 fi
2047
2048 fi
2049
2050 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
2051 # to get the SysV transport functions.
2052 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
2053 # needs -lnsl.
2054 # The nsl library prevents programs from opening the X display
2055 # on Irix 5.2, according to dickey@clark.net.
2056 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
2057 echo "configure:2058: checking for gethostbyname" >&5
2058 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
2059 echo $ac_n "(cached) $ac_c" 1>&6
2060 else
2061 cat > conftest.$ac_ext <<EOF
2062 #line 2063 "configure"
2063 #include "confdefs.h"
2064 /* System header to define __stub macros and hopefully few prototypes,
2065 which can conflict with char gethostbyname(); below. */
2066 #include <assert.h>
2067 /* Override any gcc2 internal prototype to avoid an error. */
2068 #ifdef __cplusplus
2069 extern "C"
2070 #endif
2071 /* We use char because int might match the return type of a gcc2
2072 builtin and then its argument prototype would still apply. */
2073 char gethostbyname();
2074
2075 int main() {
2076
2077 /* The GNU C library defines this for functions which it implements
2078 to always fail with ENOSYS. Some functions are actually named
2079 something starting with __ and the normal name is an alias. */
2080 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2081 choke me
2082 #else
2083 gethostbyname();
2084 #endif
2085
2086 ; return 0; }
2087 EOF
2088 if { (eval echo configure:2089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2089 rm -rf conftest*
2090 eval "ac_cv_func_gethostbyname=yes"
2091 else
2092 echo "configure: failed program was:" >&5
2093 cat conftest.$ac_ext >&5
2094 rm -rf conftest*
2095 eval "ac_cv_func_gethostbyname=no"
2096 fi
2097 rm -f conftest*
2098 fi
2099
2100 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
2101 echo "$ac_t""yes" 1>&6
2102 :
2103 else
2104 echo "$ac_t""no" 1>&6
2105 fi
2106
2107 if test $ac_cv_func_gethostbyname = no; then
2108 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2109 echo "configure:2110: checking for gethostbyname in -lnsl" >&5
2110 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2111 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2112 echo $ac_n "(cached) $ac_c" 1>&6
2113 else
2114 ac_save_LIBS="$LIBS"
2115 LIBS="-lnsl $LIBS"
2116 cat > conftest.$ac_ext <<EOF
2117 #line 2118 "configure"
2118 #include "confdefs.h"
2119 /* Override any gcc2 internal prototype to avoid an error. */
2120 #ifdef __cplusplus
2121 extern "C"
2122 #endif
2123 /* We use char because int might match the return type of a gcc2
2124 builtin and then its argument prototype would still apply. */
2125 char gethostbyname();
2126
2127 int main() {
2128 gethostbyname()
2129 ; return 0; }
2130 EOF
2131 if { (eval echo configure:2132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2132 rm -rf conftest*
2133 eval "ac_cv_lib_$ac_lib_var=yes"
2134 else
2135 echo "configure: failed program was:" >&5
2136 cat conftest.$ac_ext >&5
2137 rm -rf conftest*
2138 eval "ac_cv_lib_$ac_lib_var=no"
2139 fi
2140 rm -f conftest*
2141 LIBS="$ac_save_LIBS"
2142
2143 fi
2144 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2145 echo "$ac_t""yes" 1>&6
2146 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
2147 else
2148 echo "$ac_t""no" 1>&6
2149 fi
2150
2151 fi
2152
2153 # lieder@skyler.mavd.honeywell.com says without -lsocket,
2154 # socket/setsockopt and other routines are undefined under SCO ODT
2155 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
2156 # on later versions), says simon@lia.di.epfl.ch: it contains
2157 # gethostby* variants that don't use the nameserver (or something).
2158 # -lsocket must be given before -lnsl if both are needed.
2159 # We assume that if connect needs -lnsl, so does gethostbyname.
2160 echo $ac_n "checking for connect""... $ac_c" 1>&6
2161 echo "configure:2162: checking for connect" >&5
2162 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
2163 echo $ac_n "(cached) $ac_c" 1>&6
2164 else
2165 cat > conftest.$ac_ext <<EOF
2166 #line 2167 "configure"
2167 #include "confdefs.h"
2168 /* System header to define __stub macros and hopefully few prototypes,
2169 which can conflict with char connect(); below. */
2170 #include <assert.h>
2171 /* Override any gcc2 internal prototype to avoid an error. */
2172 #ifdef __cplusplus
2173 extern "C"
2174 #endif
2175 /* We use char because int might match the return type of a gcc2
2176 builtin and then its argument prototype would still apply. */
2177 char connect();
2178
2179 int main() {
2180
2181 /* The GNU C library defines this for functions which it implements
2182 to always fail with ENOSYS. Some functions are actually named
2183 something starting with __ and the normal name is an alias. */
2184 #if defined (__stub_connect) || defined (__stub___connect)
2185 choke me
2186 #else
2187 connect();
2188 #endif
2189
2190 ; return 0; }
2191 EOF
2192 if { (eval echo configure:2193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2193 rm -rf conftest*
2194 eval "ac_cv_func_connect=yes"
2195 else
2196 echo "configure: failed program was:" >&5
2197 cat conftest.$ac_ext >&5
2198 rm -rf conftest*
2199 eval "ac_cv_func_connect=no"
2200 fi
2201 rm -f conftest*
2202 fi
2203
2204 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
2205 echo "$ac_t""yes" 1>&6
2206 :
2207 else
2208 echo "$ac_t""no" 1>&6
2209 fi
2210
2211 if test $ac_cv_func_connect = no; then
2212 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2213 echo "configure:2214: checking for connect in -lsocket" >&5
2214 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2215 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2216 echo $ac_n "(cached) $ac_c" 1>&6
2217 else
2218 ac_save_LIBS="$LIBS"
2219 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
2220 cat > conftest.$ac_ext <<EOF
2221 #line 2222 "configure"
2222 #include "confdefs.h"
2223 /* Override any gcc2 internal prototype to avoid an error. */
2224 #ifdef __cplusplus
2225 extern "C"
2226 #endif
2227 /* We use char because int might match the return type of a gcc2
2228 builtin and then its argument prototype would still apply. */
2229 char connect();
2230
2231 int main() {
2232 connect()
2233 ; return 0; }
2234 EOF
2235 if { (eval echo configure:2236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2236 rm -rf conftest*
2237 eval "ac_cv_lib_$ac_lib_var=yes"
2238 else
2239 echo "configure: failed program was:" >&5
2240 cat conftest.$ac_ext >&5
2241 rm -rf conftest*
2242 eval "ac_cv_lib_$ac_lib_var=no"
2243 fi
2244 rm -f conftest*
2245 LIBS="$ac_save_LIBS"
2246
2247 fi
2248 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2249 echo "$ac_t""yes" 1>&6
2250 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
2251 else
2252 echo "$ac_t""no" 1>&6
2253 fi
2254
2255 fi
2256
2257 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
2258 echo $ac_n "checking for remove""... $ac_c" 1>&6
2259 echo "configure:2260: checking for remove" >&5
2260 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
2261 echo $ac_n "(cached) $ac_c" 1>&6
2262 else
2263 cat > conftest.$ac_ext <<EOF
2264 #line 2265 "configure"
2265 #include "confdefs.h"
2266 /* System header to define __stub macros and hopefully few prototypes,
2267 which can conflict with char remove(); below. */
2268 #include <assert.h>
2269 /* Override any gcc2 internal prototype to avoid an error. */
2270 #ifdef __cplusplus
2271 extern "C"
2272 #endif
2273 /* We use char because int might match the return type of a gcc2
2274 builtin and then its argument prototype would still apply. */
2275 char remove();
2276
2277 int main() {
2278
2279 /* The GNU C library defines this for functions which it implements
2280 to always fail with ENOSYS. Some functions are actually named
2281 something starting with __ and the normal name is an alias. */
2282 #if defined (__stub_remove) || defined (__stub___remove)
2283 choke me
2284 #else
2285 remove();
2286 #endif
2287
2288 ; return 0; }
2289 EOF
2290 if { (eval echo configure:2291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2291 rm -rf conftest*
2292 eval "ac_cv_func_remove=yes"
2293 else
2294 echo "configure: failed program was:" >&5
2295 cat conftest.$ac_ext >&5
2296 rm -rf conftest*
2297 eval "ac_cv_func_remove=no"
2298 fi
2299 rm -f conftest*
2300 fi
2301
2302 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
2303 echo "$ac_t""yes" 1>&6
2304 :
2305 else
2306 echo "$ac_t""no" 1>&6
2307 fi
2308
2309 if test $ac_cv_func_remove = no; then
2310 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
2311 echo "configure:2312: checking for remove in -lposix" >&5
2312 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
2313 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2314 echo $ac_n "(cached) $ac_c" 1>&6
2315 else
2316 ac_save_LIBS="$LIBS"
2317 LIBS="-lposix $LIBS"
2318 cat > conftest.$ac_ext <<EOF
2319 #line 2320 "configure"
2320 #include "confdefs.h"
2321 /* Override any gcc2 internal prototype to avoid an error. */
2322 #ifdef __cplusplus
2323 extern "C"
2324 #endif
2325 /* We use char because int might match the return type of a gcc2
2326 builtin and then its argument prototype would still apply. */
2327 char remove();
2328
2329 int main() {
2330 remove()
2331 ; return 0; }
2332 EOF
2333 if { (eval echo configure:2334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2334 rm -rf conftest*
2335 eval "ac_cv_lib_$ac_lib_var=yes"
2336 else
2337 echo "configure: failed program was:" >&5
2338 cat conftest.$ac_ext >&5
2339 rm -rf conftest*
2340 eval "ac_cv_lib_$ac_lib_var=no"
2341 fi
2342 rm -f conftest*
2343 LIBS="$ac_save_LIBS"
2344
2345 fi
2346 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2347 echo "$ac_t""yes" 1>&6
2348 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
2349 else
2350 echo "$ac_t""no" 1>&6
2351 fi
2352
2353 fi
2354
2355 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
2356 echo $ac_n "checking for shmat""... $ac_c" 1>&6
2357 echo "configure:2358: checking for shmat" >&5
2358 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
2359 echo $ac_n "(cached) $ac_c" 1>&6
2360 else
2361 cat > conftest.$ac_ext <<EOF
2362 #line 2363 "configure"
2363 #include "confdefs.h"
2364 /* System header to define __stub macros and hopefully few prototypes,
2365 which can conflict with char shmat(); below. */
2366 #include <assert.h>
2367 /* Override any gcc2 internal prototype to avoid an error. */
2368 #ifdef __cplusplus
2369 extern "C"
2370 #endif
2371 /* We use char because int might match the return type of a gcc2
2372 builtin and then its argument prototype would still apply. */
2373 char shmat();
2374
2375 int main() {
2376
2377 /* The GNU C library defines this for functions which it implements
2378 to always fail with ENOSYS. Some functions are actually named
2379 something starting with __ and the normal name is an alias. */
2380 #if defined (__stub_shmat) || defined (__stub___shmat)
2381 choke me
2382 #else
2383 shmat();
2384 #endif
2385
2386 ; return 0; }
2387 EOF
2388 if { (eval echo configure:2389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2389 rm -rf conftest*
2390 eval "ac_cv_func_shmat=yes"
2391 else
2392 echo "configure: failed program was:" >&5
2393 cat conftest.$ac_ext >&5
2394 rm -rf conftest*
2395 eval "ac_cv_func_shmat=no"
2396 fi
2397 rm -f conftest*
2398 fi
2399
2400 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
2401 echo "$ac_t""yes" 1>&6
2402 :
2403 else
2404 echo "$ac_t""no" 1>&6
2405 fi
2406
2407 if test $ac_cv_func_shmat = no; then
2408 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
2409 echo "configure:2410: checking for shmat in -lipc" >&5
2410 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
2411 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2412 echo $ac_n "(cached) $ac_c" 1>&6
2413 else
2414 ac_save_LIBS="$LIBS"
2415 LIBS="-lipc $LIBS"
2416 cat > conftest.$ac_ext <<EOF
2417 #line 2418 "configure"
2418 #include "confdefs.h"
2419 /* Override any gcc2 internal prototype to avoid an error. */
2420 #ifdef __cplusplus
2421 extern "C"
2422 #endif
2423 /* We use char because int might match the return type of a gcc2
2424 builtin and then its argument prototype would still apply. */
2425 char shmat();
2426
2427 int main() {
2428 shmat()
2429 ; return 0; }
2430 EOF
2431 if { (eval echo configure:2432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2432 rm -rf conftest*
2433 eval "ac_cv_lib_$ac_lib_var=yes"
2434 else
2435 echo "configure: failed program was:" >&5
2436 cat conftest.$ac_ext >&5
2437 rm -rf conftest*
2438 eval "ac_cv_lib_$ac_lib_var=no"
2439 fi
2440 rm -f conftest*
2441 LIBS="$ac_save_LIBS"
2442
2443 fi
2444 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2445 echo "$ac_t""yes" 1>&6
2446 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
2447 else
2448 echo "$ac_t""no" 1>&6
2449 fi
2450
2451 fi
2452 fi
2453
2454 # Check for libraries that X11R6 Xt/Xaw programs need.
2455 ac_save_LDFLAGS="$LDFLAGS"
2456 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
2457 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
2458 # check for ICE first), but we must link in the order -lSM -lICE or
2459 # we get undefined symbols. So assume we have SM if we have ICE.
2460 # These have to be linked with before -lX11, unlike the other
2461 # libraries we check for below, so use a different variable.
2462 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
2463 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
2464 echo "configure:2465: checking for IceConnectionNumber in -lICE" >&5
2465 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
2466 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2467 echo $ac_n "(cached) $ac_c" 1>&6
2468 else
2469 ac_save_LIBS="$LIBS"
2470 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
2471 cat > conftest.$ac_ext <<EOF
2472 #line 2473 "configure"
2473 #include "confdefs.h"
2474 /* Override any gcc2 internal prototype to avoid an error. */
2475 #ifdef __cplusplus
2476 extern "C"
2477 #endif
2478 /* We use char because int might match the return type of a gcc2
2479 builtin and then its argument prototype would still apply. */
2480 char IceConnectionNumber();
2481
2482 int main() {
2483 IceConnectionNumber()
2484 ; return 0; }
2485 EOF
2486 if { (eval echo configure:2487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2487 rm -rf conftest*
2488 eval "ac_cv_lib_$ac_lib_var=yes"
2489 else
2490 echo "configure: failed program was:" >&5
2491 cat conftest.$ac_ext >&5
2492 rm -rf conftest*
2493 eval "ac_cv_lib_$ac_lib_var=no"
2494 fi
2495 rm -f conftest*
2496 LIBS="$ac_save_LIBS"
2497
2498 fi
2499 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2500 echo "$ac_t""yes" 1>&6
2501 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
2502 else
2503 echo "$ac_t""no" 1>&6
2504 fi
2505
2506 LDFLAGS="$ac_save_LDFLAGS"
2507
2508 fi
2509
2510
2511 test x$no_x = "xyes" && { echo "configure: error: Openbox requires the X Window System libraries and headers." 1>&2; exit 1; }
2512
2513 test x$x_includes = "x" && x_includes="/usr/include"
2514 test x$x_libraries = "x" && x_libraries="/usr/lib"
2515
2516 CFLAGS="$CFLAGS $X_CFLAGS"
2517 CXXFLAGS="$CXXFLAGS $X_CFLAGS"
2518 LIBS="$LIBS $X_LIBS"
2519 LDFLAGS="$LDFLAGS $LIBS $X_PRE_LIBS"
2520
2521 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
2522 echo "configure:2523: checking for XOpenDisplay in -lX11" >&5
2523 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
2524 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2525 echo $ac_n "(cached) $ac_c" 1>&6
2526 else
2527 ac_save_LIBS="$LIBS"
2528 LIBS="-lX11 $LIBS"
2529 cat > conftest.$ac_ext <<EOF
2530 #line 2531 "configure"
2531 #include "confdefs.h"
2532 /* Override any gcc2 internal prototype to avoid an error. */
2533 #ifdef __cplusplus
2534 extern "C"
2535 #endif
2536 /* We use char because int might match the return type of a gcc2
2537 builtin and then its argument prototype would still apply. */
2538 char XOpenDisplay();
2539
2540 int main() {
2541 XOpenDisplay()
2542 ; return 0; }
2543 EOF
2544 if { (eval echo configure:2545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2545 rm -rf conftest*
2546 eval "ac_cv_lib_$ac_lib_var=yes"
2547 else
2548 echo "configure: failed program was:" >&5
2549 cat conftest.$ac_ext >&5
2550 rm -rf conftest*
2551 eval "ac_cv_lib_$ac_lib_var=no"
2552 fi
2553 rm -f conftest*
2554 LIBS="$ac_save_LIBS"
2555
2556 fi
2557 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2558 echo "$ac_t""yes" 1>&6
2559 LIBS="$LIBS -lX11"
2560 else
2561 echo "$ac_t""no" 1>&6
2562 { echo "configure: error: Could not find XOpenDisplay in -lX11." 1>&2; exit 1; }
2563
2564 fi
2565
2566
2567 LIBS="$LIBS $X_EXTRA_LIBS"
2568
2569 Xext_lib=""
2570
2571 SHAPE=""
2572 echo $ac_n "checking whether to build support for the XShape extension""... $ac_c" 1>&6
2573 echo "configure:2574: checking whether to build support for the XShape extension" >&5
2574 # Check whether --enable-shape or --disable-shape was given.
2575 if test "${enable_shape+set}" = set; then
2576 enableval="$enable_shape"
2577 :
2578 fi
2579
2580
2581 : ${enableval="yes"}
2582 if test x$enableval = "xyes"; then
2583 echo "$ac_t""yes" 1>&6
2584 echo $ac_n "checking for XShapeCombineShape in -lXext""... $ac_c" 1>&6
2585 echo "configure:2586: checking for XShapeCombineShape in -lXext" >&5
2586 ac_lib_var=`echo Xext'_'XShapeCombineShape | sed 'y%./+-%__p_%'`
2587 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2588 echo $ac_n "(cached) $ac_c" 1>&6
2589 else
2590 ac_save_LIBS="$LIBS"
2591 LIBS="-lXext $LIBS"
2592 cat > conftest.$ac_ext <<EOF
2593 #line 2594 "configure"
2594 #include "confdefs.h"
2595 /* Override any gcc2 internal prototype to avoid an error. */
2596 #ifdef __cplusplus
2597 extern "C"
2598 #endif
2599 /* We use char because int might match the return type of a gcc2
2600 builtin and then its argument prototype would still apply. */
2601 char XShapeCombineShape();
2602
2603 int main() {
2604 XShapeCombineShape()
2605 ; return 0; }
2606 EOF
2607 if { (eval echo configure:2608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2608 rm -rf conftest*
2609 eval "ac_cv_lib_$ac_lib_var=yes"
2610 else
2611 echo "configure: failed program was:" >&5
2612 cat conftest.$ac_ext >&5
2613 rm -rf conftest*
2614 eval "ac_cv_lib_$ac_lib_var=no"
2615 fi
2616 rm -f conftest*
2617 LIBS="$ac_save_LIBS"
2618
2619 fi
2620 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2621 echo "$ac_t""yes" 1>&6
2622 echo $ac_n "checking for X11/extensions/shape.h""... $ac_c" 1>&6
2623 echo "configure:2624: checking for X11/extensions/shape.h" >&5
2624 cat > conftest.$ac_ext <<EOF
2625 #line 2626 "configure"
2626 #include "confdefs.h"
2627 #include <X11/Xlib.h>
2628 #include <X11/Xutil.h>
2629 #include <X11/extensions/shape.h>
2630
2631 int main() {
2632 long foo = ShapeSet
2633 ; return 0; }
2634 EOF
2635 if { (eval echo configure:2636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2636 rm -rf conftest*
2637 echo "$ac_t""yes" 1>&6
2638 SHAPE="-DSHAPE"; Xext_lib="-lXext"
2639 else
2640 echo "configure: failed program was:" >&5
2641 cat conftest.$ac_ext >&5
2642 rm -rf conftest*
2643 echo "$ac_t""no" 1>&6
2644
2645 fi
2646 rm -f conftest*
2647
2648 else
2649 echo "$ac_t""no" 1>&6
2650 fi
2651
2652 else
2653 echo "$ac_t""no" 1>&6
2654 fi
2655
2656
2657 LIBS="$LIBS $Xext_lib"
2658
2659 SLIT=""
2660 echo $ac_n "checking whether to include the Slit""... $ac_c" 1>&6
2661 echo "configure:2662: checking whether to include the Slit" >&5
2662 # Check whether --enable-slit or --disable-slit was given.
2663 if test "${enable_slit+set}" = set; then
2664 enableval="$enable_slit"
2665 if test x$enableval = "xyes"; then
2666 echo "$ac_t""yes" 1>&6
2667 SLIT="-DSLIT"
2668 else
2669 echo "$ac_t""no" 1>&6
2670 fi
2671 else
2672 echo "$ac_t""yes" 1>&6
2673 SLIT="-DSLIT"
2674
2675 fi
2676
2677
2678
2679 NEWWMSPEC=""
2680 echo $ac_n "checking whether to include the new WM Spec (DOES NOTHING)""... $ac_c" 1>&6
2681 echo "configure:2682: checking whether to include the new WM Spec (DOES NOTHING)" >&5
2682 # Check whether --enable-newspec or --disable-newspec was given.
2683 if test "${enable_newspec+set}" = set; then
2684 enableval="$enable_newspec"
2685 if test x$enableval = "xyes"; then
2686 echo "$ac_t""yes" 1>&6
2687 NEWWMSPEC="-DNEWWMSPEC"
2688 else
2689 echo "$ac_t""no" 1>&6
2690 fi
2691 else
2692 echo "$ac_t""no" 1>&6
2693
2694 fi
2695
2696
2697
2698
2699 INTERLACE=""
2700 echo $ac_n "checking whether to include interlacing image code""... $ac_c" 1>&6
2701 echo "configure:2702: checking whether to include interlacing image code" >&5
2702 # Check whether --enable-interlace or --disable-interlace was given.
2703 if test "${enable_interlace+set}" = set; then
2704 enableval="$enable_interlace"
2705 if test x$enableval = "xyes"; then
2706 echo "$ac_t""yes" 1>&6
2707 INTERLACE="-DINTERLACE"
2708 else
2709 echo "$ac_t""no" 1>&6
2710 fi
2711 else
2712 echo "$ac_t""yes" 1>&6
2713 INTERLACE="-DINTERLACE"
2714
2715 fi
2716
2717
2718
2719 ORDEREDPSEUDO=""
2720 echo $ac_n "checking whether to include Pseudocolor ordered dithering code""... $ac_c" 1>&6
2721 echo "configure:2722: checking whether to include Pseudocolor ordered dithering code" >&5
2722 # Check whether --enable-ordered-pseudo or --disable-ordered-pseudo was given.
2723 if test "${enable_ordered_pseudo+set}" = set; then
2724 enableval="$enable_ordered_pseudo"
2725 if test x$enableval = "xyes"; then
2726 echo "$ac_t""yes" 1>&6
2727 ORDEREDPSEUDO="-DORDEREDPSEUDO"
2728 else
2729 echo "$ac_t""no" 1>&6
2730 fi
2731 else
2732 echo "$ac_t""no" 1>&6
2733
2734 fi
2735
2736
2737
2738 CLOBBER=""
2739 echo $ac_n "checking whether to intercept mouse events to clients""... $ac_c" 1>&6
2740 echo "configure:2741: checking whether to intercept mouse events to clients" >&5
2741 # Check whether --enable-clobber or --disable-clobber was given.
2742 if test "${enable_clobber+set}" = set; then
2743 enableval="$enable_clobber"
2744 if test x$enableval = "xno"; then
2745 echo "$ac_t""no" 1>&6
2746 CLOBBER="-DNOCLOBBER"
2747 else
2748 echo "$ac_t""yes" 1>&6
2749 fi
2750 else
2751 echo "$ac_t""no" 1>&6
2752
2753 fi
2754
2755
2756
2757 DEBUG=""
2758 echo $ac_n "checking whether to include verbose debugging code""... $ac_c" 1>&6
2759 echo "configure:2760: checking whether to include verbose debugging code" >&5
2760 # Check whether --enable-debug or --disable-debug was given.
2761 if test "${enable_debug+set}" = set; then
2762 enableval="$enable_debug"
2763 if test x$enableval = "xyes"; then
2764 echo "$ac_t""yes" 1>&6
2765 DEBUG="-DDEBUG"
2766 else
2767 echo "$ac_t""no" 1>&6
2768 fi
2769 else
2770 echo "$ac_t""no" 1>&6
2771
2772 fi
2773
2774
2775
2776 NLS=""
2777 echo $ac_n "checking whether to include NLS support""... $ac_c" 1>&6
2778 echo "configure:2779: checking whether to include NLS support" >&5
2779 # Check whether --enable-nls or --disable-nls was given.
2780 if test "${enable_nls+set}" = set; then
2781 enableval="$enable_nls"
2782 if test x$enableval = "xyes"; then
2783 echo "$ac_t""yes" 1>&6
2784 NLS="-DNLS"
2785 else
2786 echo "$ac_t""no" 1>&6
2787 fi
2788 else
2789 echo "$ac_t""yes" 1>&6
2790 NLS="-DNLS"
2791
2792 fi
2793
2794
2795
2796 echo $ac_n "checking for setlocale in -lxpg4""... $ac_c" 1>&6
2797 echo "configure:2798: checking for setlocale in -lxpg4" >&5
2798 ac_lib_var=`echo xpg4'_'setlocale | sed 'y%./+-%__p_%'`
2799 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2800 echo $ac_n "(cached) $ac_c" 1>&6
2801 else
2802 ac_save_LIBS="$LIBS"
2803 LIBS="-lxpg4 $LIBS"
2804 cat > conftest.$ac_ext <<EOF
2805 #line 2806 "configure"
2806 #include "confdefs.h"
2807 /* Override any gcc2 internal prototype to avoid an error. */
2808 #ifdef __cplusplus
2809 extern "C"
2810 #endif
2811 /* We use char because int might match the return type of a gcc2
2812 builtin and then its argument prototype would still apply. */
2813 char setlocale();
2814
2815 int main() {
2816 setlocale()
2817 ; return 0; }
2818 EOF
2819 if { (eval echo configure:2820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2820 rm -rf conftest*
2821 eval "ac_cv_lib_$ac_lib_var=yes"
2822 else
2823 echo "configure: failed program was:" >&5
2824 cat conftest.$ac_ext >&5
2825 rm -rf conftest*
2826 eval "ac_cv_lib_$ac_lib_var=no"
2827 fi
2828 rm -f conftest*
2829 LIBS="$ac_save_LIBS"
2830
2831 fi
2832 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2833 echo "$ac_t""yes" 1>&6
2834 LIBS="$LIBS -lxpg4"
2835 else
2836 echo "$ac_t""no" 1>&6
2837 fi
2838
2839
2840 for ac_prog in gencat
2841 do
2842 # Extract the first word of "$ac_prog", so it can be a program name with args.
2843 set dummy $ac_prog; ac_word=$2
2844 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2845 echo "configure:2846: checking for $ac_word" >&5
2846 if eval "test \"`echo '$''{'ac_cv_prog_gencat_cmd'+set}'`\" = set"; then
2847 echo $ac_n "(cached) $ac_c" 1>&6
2848 else
2849 if test -n "$gencat_cmd"; then
2850 ac_cv_prog_gencat_cmd="$gencat_cmd" # Let the user override the test.
2851 else
2852 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2853 ac_dummy="$PATH"
2854 for ac_dir in $ac_dummy; do
2855 test -z "$ac_dir" && ac_dir=.
2856 if test -f $ac_dir/$ac_word; then
2857 ac_cv_prog_gencat_cmd="$ac_prog"
2858 break
2859 fi
2860 done
2861 IFS="$ac_save_ifs"
2862 fi
2863 fi
2864 gencat_cmd="$ac_cv_prog_gencat_cmd"
2865 if test -n "$gencat_cmd"; then
2866 echo "$ac_t""$gencat_cmd" 1>&6
2867 else
2868 echo "$ac_t""no" 1>&6
2869 fi
2870
2871 test -n "$gencat_cmd" && break
2872 done
2873
2874 if test x$gencat_cmd = "x"; then
2875 NLS=""
2876 fi
2877
2878
2879 TIMEDCACHE=""
2880 echo $ac_n "checking whether to use the new timed pixmap cache""... $ac_c" 1>&6
2881 echo "configure:2882: checking whether to use the new timed pixmap cache" >&5
2882 # Check whether --enable-timed-cache or --disable-timed-cache was given.
2883 if test "${enable_timed_cache+set}" = set; then
2884 enableval="$enable_timed_cache"
2885 if test x$enableval = "xyes"; then
2886 echo "$ac_t""yes" 1>&6
2887 TIMEDCACHE="-DTIMEDCACHE"
2888 else
2889 echo "$ac_t""no" 1>&6
2890 fi
2891 else
2892 echo "$ac_t""yes" 1>&6
2893 TIMEDCACHE="-DTIMEDCACHE"
2894
2895 fi
2896
2897
2898
2899 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2900 echo "configure:2901: checking return type of signal handlers" >&5
2901 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2902 echo $ac_n "(cached) $ac_c" 1>&6
2903 else
2904 cat > conftest.$ac_ext <<EOF
2905 #line 2906 "configure"
2906 #include "confdefs.h"
2907 #include <sys/types.h>
2908 #include <signal.h>
2909 #ifdef signal
2910 #undef signal
2911 #endif
2912 #ifdef __cplusplus
2913 extern "C" void (*signal (int, void (*)(int)))(int);
2914 #else
2915 void (*signal ()) ();
2916 #endif
2917
2918 int main() {
2919 int i;
2920 ; return 0; }
2921 EOF
2922 if { (eval echo configure:2923: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2923 rm -rf conftest*
2924 ac_cv_type_signal=void
2925 else
2926 echo "configure: failed program was:" >&5
2927 cat conftest.$ac_ext >&5
2928 rm -rf conftest*
2929 ac_cv_type_signal=int
2930 fi
2931 rm -f conftest*
2932 fi
2933
2934 echo "$ac_t""$ac_cv_type_signal" 1>&6
2935 cat >> confdefs.h <<EOF
2936 #define RETSIGTYPE $ac_cv_type_signal
2937 EOF
2938
2939
2940
2941 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
2942 echo "configure:2943: checking whether to enable maintainer-specific portions of Makefiles" >&5
2943 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2944 if test "${enable_maintainer_mode+set}" = set; then
2945 enableval="$enable_maintainer_mode"
2946 USE_MAINTAINER_MODE=$enableval
2947 else
2948 USE_MAINTAINER_MODE=no
2949 fi
2950
2951 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
2952
2953
2954 if test $USE_MAINTAINER_MODE = yes; then
2955 MAINTAINER_MODE_TRUE=
2956 MAINTAINER_MODE_FALSE='#'
2957 else
2958 MAINTAINER_MODE_TRUE='#'
2959 MAINTAINER_MODE_FALSE=
2960 fi
2961 MAINT=$MAINTAINER_MODE_TRUE
2962
2963
2964
2965 echo "$ac_t""" 1>&6
2966 echo "$ac_t"" $PACKAGE version $VERSION configured successfully." 1>&6
2967 echo "$ac_t""" 1>&6
2968 echo "$ac_t""Using '$prefix' for installation." 1>&6
2969 echo "$ac_t""Using '$CXX' for C++ compiler." 1>&6
2970 echo "$ac_t""Building with '$CXXFLAGS' for C++ compiler flags." 1>&6
2971 echo "$ac_t""Building with '$LIBS' for linker flags." 1>&6
2972 echo "$ac_t""" 1>&6
2973
2974
2975
2976
2977 trap '' 1 2 15
2978 cat > confcache <<\EOF
2979 # This file is a shell script that caches the results of configure
2980 # tests run on this system so they can be shared between configure
2981 # scripts and configure runs. It is not useful on other systems.
2982 # If it contains results you don't want to keep, you may remove or edit it.
2983 #
2984 # By default, configure uses ./config.cache as the cache file,
2985 # creating it if it does not exist already. You can give configure
2986 # the --cache-file=FILE option to use a different cache file; that is
2987 # what configure does when it calls configure scripts in
2988 # subdirectories, so they share the cache.
2989 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2990 # config.status only pays attention to the cache file if you give it the
2991 # --recheck option to rerun configure.
2992 #
2993 EOF
2994 # The following way of writing the cache mishandles newlines in values,
2995 # but we know of no workaround that is simple, portable, and efficient.
2996 # So, don't put newlines in cache variables' values.
2997 # Ultrix sh set writes to stderr and can't be redirected directly,
2998 # and sets the high bit in the cache file unless we assign to the vars.
2999 (set) 2>&1 |
3000 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3001 *ac_space=\ *)
3002 # `set' does not quote correctly, so add quotes (double-quote substitution
3003 # turns \\\\ into \\, and sed turns \\ into \).
3004 sed -n \
3005 -e "s/'/'\\\\''/g" \
3006 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3007 ;;
3008 *)
3009 # `set' quotes correctly as required by POSIX, so do not add quotes.
3010 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3011 ;;
3012 esac >> confcache
3013 if cmp -s $cache_file confcache; then
3014 :
3015 else
3016 if test -w $cache_file; then
3017 echo "updating cache $cache_file"
3018 cat confcache > $cache_file
3019 else
3020 echo "not updating unwritable cache $cache_file"
3021 fi
3022 fi
3023 rm -f confcache
3024
3025 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3026
3027 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3028 # Let make expand exec_prefix.
3029 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3030
3031 # Any assignment to VPATH causes Sun make to only execute
3032 # the first set of double-colon rules, so remove it if not needed.
3033 # If there is a colon in the path, we need to keep it.
3034 if test "x$srcdir" = x.; then
3035 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3036 fi
3037
3038 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3039
3040 DEFS=-DHAVE_CONFIG_H
3041
3042 # Without the "./", some shells look in PATH for config.status.
3043 : ${CONFIG_STATUS=./config.status}
3044
3045 echo creating $CONFIG_STATUS
3046 rm -f $CONFIG_STATUS
3047 cat > $CONFIG_STATUS <<EOF
3048 #! /bin/sh
3049 # Generated automatically by configure.
3050 # Run this file to recreate the current configuration.
3051 # This directory was configured as follows,
3052 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3053 #
3054 # $0 $ac_configure_args
3055 #
3056 # Compiler output produced by configure, useful for debugging
3057 # configure, is in ./config.log if it exists.
3058
3059 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3060 for ac_option
3061 do
3062 case "\$ac_option" in
3063 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3064 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3065 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3066 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3067 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3068 exit 0 ;;
3069 -help | --help | --hel | --he | --h)
3070 echo "\$ac_cs_usage"; exit 0 ;;
3071 *) echo "\$ac_cs_usage"; exit 1 ;;
3072 esac
3073 done
3074
3075 ac_given_srcdir=$srcdir
3076 ac_given_INSTALL="$INSTALL"
3077
3078 trap 'rm -fr `echo "Makefile
3079 src/Makefile
3080 util/Makefile
3081 data/Makefile
3082 data/styles/Makefile
3083 doc/Makefile
3084 nls/Makefile
3085 nls/C/Makefile
3086 nls/da_DK/Makefile
3087 nls/de_DE/Makefile
3088 nls/es_ES/Makefile
3089 nls/et_EE/Makefile
3090 nls/fr_FR/Makefile
3091 nls/it_IT/Makefile
3092 nls/ja_JP/Makefile
3093 nls/nl_NL/Makefile
3094 nls/pt_BR/Makefile
3095 nls/ru_RU/Makefile
3096 nls/sl_SI/Makefile
3097 nls/sv_SE/Makefile
3098 nls/tr_TR/Makefile
3099 nls/zh_CN/Makefile
3100 version.h config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3101 EOF
3102 cat >> $CONFIG_STATUS <<EOF
3103
3104 # Protect against being on the right side of a sed subst in config.status.
3105 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3106 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3107 $ac_vpsub
3108 $extrasub
3109 s%@SHELL@%$SHELL%g
3110 s%@CFLAGS@%$CFLAGS%g
3111 s%@CPPFLAGS@%$CPPFLAGS%g
3112 s%@CXXFLAGS@%$CXXFLAGS%g
3113 s%@FFLAGS@%$FFLAGS%g
3114 s%@DEFS@%$DEFS%g
3115 s%@LDFLAGS@%$LDFLAGS%g
3116 s%@LIBS@%$LIBS%g
3117 s%@exec_prefix@%$exec_prefix%g
3118 s%@prefix@%$prefix%g
3119 s%@program_transform_name@%$program_transform_name%g
3120 s%@bindir@%$bindir%g
3121 s%@sbindir@%$sbindir%g
3122 s%@libexecdir@%$libexecdir%g
3123 s%@datadir@%$datadir%g
3124 s%@sysconfdir@%$sysconfdir%g
3125 s%@sharedstatedir@%$sharedstatedir%g
3126 s%@localstatedir@%$localstatedir%g
3127 s%@libdir@%$libdir%g
3128 s%@includedir@%$includedir%g
3129 s%@oldincludedir@%$oldincludedir%g
3130 s%@infodir@%$infodir%g
3131 s%@mandir@%$mandir%g
3132 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3133 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3134 s%@INSTALL_DATA@%$INSTALL_DATA%g
3135 s%@PACKAGE@%$PACKAGE%g
3136 s%@VERSION@%$VERSION%g
3137 s%@ACLOCAL@%$ACLOCAL%g
3138 s%@AUTOCONF@%$AUTOCONF%g
3139 s%@AUTOMAKE@%$AUTOMAKE%g
3140 s%@AUTOHEADER@%$AUTOHEADER%g
3141 s%@MAKEINFO@%$MAKEINFO%g
3142 s%@SET_MAKE@%$SET_MAKE%g
3143 s%@CC@%$CC%g
3144 s%@CXX@%$CXX%g
3145 s%@regex_cmd@%$regex_cmd%g
3146 s%@CXXCPP@%$CXXCPP%g
3147 s%@X_CFLAGS@%$X_CFLAGS%g
3148 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
3149 s%@X_LIBS@%$X_LIBS%g
3150 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
3151 s%@SHAPE@%$SHAPE%g
3152 s%@SLIT@%$SLIT%g
3153 s%@NEWWMSPEC@%$NEWWMSPEC%g
3154 s%@INTERLACE@%$INTERLACE%g
3155 s%@ORDEREDPSEUDO@%$ORDEREDPSEUDO%g
3156 s%@CLOBBER@%$CLOBBER%g
3157 s%@DEBUG@%$DEBUG%g
3158 s%@NLS@%$NLS%g
3159 s%@gencat_cmd@%$gencat_cmd%g
3160 s%@TIMEDCACHE@%$TIMEDCACHE%g
3161 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
3162 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
3163 s%@MAINT@%$MAINT%g
3164
3165 CEOF
3166 EOF
3167
3168 cat >> $CONFIG_STATUS <<\EOF
3169
3170 # Split the substitutions into bite-sized pieces for seds with
3171 # small command number limits, like on Digital OSF/1 and HP-UX.
3172 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3173 ac_file=1 # Number of current file.
3174 ac_beg=1 # First line for current file.
3175 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3176 ac_more_lines=:
3177 ac_sed_cmds=""
3178 while $ac_more_lines; do
3179 if test $ac_beg -gt 1; then
3180 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3181 else
3182 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3183 fi
3184 if test ! -s conftest.s$ac_file; then
3185 ac_more_lines=false
3186 rm -f conftest.s$ac_file
3187 else
3188 if test -z "$ac_sed_cmds"; then
3189 ac_sed_cmds="sed -f conftest.s$ac_file"
3190 else
3191 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3192 fi
3193 ac_file=`expr $ac_file + 1`
3194 ac_beg=$ac_end
3195 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3196 fi
3197 done
3198 if test -z "$ac_sed_cmds"; then
3199 ac_sed_cmds=cat
3200 fi
3201 EOF
3202
3203 cat >> $CONFIG_STATUS <<EOF
3204
3205 CONFIG_FILES=\${CONFIG_FILES-"Makefile
3206 src/Makefile
3207 util/Makefile
3208 data/Makefile
3209 data/styles/Makefile
3210 doc/Makefile
3211 nls/Makefile
3212 nls/C/Makefile
3213 nls/da_DK/Makefile
3214 nls/de_DE/Makefile
3215 nls/es_ES/Makefile
3216 nls/et_EE/Makefile
3217 nls/fr_FR/Makefile
3218 nls/it_IT/Makefile
3219 nls/ja_JP/Makefile
3220 nls/nl_NL/Makefile
3221 nls/pt_BR/Makefile
3222 nls/ru_RU/Makefile
3223 nls/sl_SI/Makefile
3224 nls/sv_SE/Makefile
3225 nls/tr_TR/Makefile
3226 nls/zh_CN/Makefile
3227 version.h"}
3228 EOF
3229 cat >> $CONFIG_STATUS <<\EOF
3230 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3231 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3232 case "$ac_file" in
3233 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3234 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3235 *) ac_file_in="${ac_file}.in" ;;
3236 esac
3237
3238 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3239
3240 # Remove last slash and all that follows it. Not all systems have dirname.
3241 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3242 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3243 # The file is in a subdirectory.
3244 test ! -d "$ac_dir" && mkdir "$ac_dir"
3245 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3246 # A "../" for each directory in $ac_dir_suffix.
3247 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3248 else
3249 ac_dir_suffix= ac_dots=
3250 fi
3251
3252 case "$ac_given_srcdir" in
3253 .) srcdir=.
3254 if test -z "$ac_dots"; then top_srcdir=.
3255 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3256 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3257 *) # Relative path.
3258 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3259 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3260 esac
3261
3262 case "$ac_given_INSTALL" in
3263 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3264 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3265 esac
3266
3267 echo creating "$ac_file"
3268 rm -f "$ac_file"
3269 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3270 case "$ac_file" in
3271 *Makefile*) ac_comsub="1i\\
3272 # $configure_input" ;;
3273 *) ac_comsub= ;;
3274 esac
3275
3276 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3277 sed -e "$ac_comsub
3278 s%@configure_input@%$configure_input%g
3279 s%@srcdir@%$srcdir%g
3280 s%@top_srcdir@%$top_srcdir%g
3281 s%@INSTALL@%$INSTALL%g
3282 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3283 fi; done
3284 rm -f conftest.s*
3285
3286 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3287 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3288 #
3289 # ac_d sets the value in "#define NAME VALUE" lines.
3290 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3291 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3292 ac_dC='\3'
3293 ac_dD='%g'
3294 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3295 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3296 ac_uB='\([ ]\)%\1#\2define\3'
3297 ac_uC=' '
3298 ac_uD='\4%g'
3299 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3300 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3301 ac_eB='$%\1#\2define\3'
3302 ac_eC=' '
3303 ac_eD='%g'
3304
3305 if test "${CONFIG_HEADERS+set}" != set; then
3306 EOF
3307 cat >> $CONFIG_STATUS <<EOF
3308 CONFIG_HEADERS="config.h"
3309 EOF
3310 cat >> $CONFIG_STATUS <<\EOF
3311 fi
3312 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3313 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3314 case "$ac_file" in
3315 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3316 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3317 *) ac_file_in="${ac_file}.in" ;;
3318 esac
3319
3320 echo creating $ac_file
3321
3322 rm -f conftest.frag conftest.in conftest.out
3323 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3324 cat $ac_file_inputs > conftest.in
3325
3326 EOF
3327
3328 # Transform confdefs.h into a sed script conftest.vals that substitutes
3329 # the proper values into config.h.in to produce config.h. And first:
3330 # Protect against being on the right side of a sed subst in config.status.
3331 # Protect against being in an unquoted here document in config.status.
3332 rm -f conftest.vals
3333 cat > conftest.hdr <<\EOF
3334 s/[\\&%]/\\&/g
3335 s%[\\$`]%\\&%g
3336 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3337 s%ac_d%ac_u%gp
3338 s%ac_u%ac_e%gp
3339 EOF
3340 sed -n -f conftest.hdr confdefs.h > conftest.vals
3341 rm -f conftest.hdr
3342
3343 # This sed command replaces #undef with comments. This is necessary, for
3344 # example, in the case of _POSIX_SOURCE, which is predefined and required
3345 # on some systems where configure will not decide to define it.
3346 cat >> conftest.vals <<\EOF
3347 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3348 EOF
3349
3350 # Break up conftest.vals because some shells have a limit on
3351 # the size of here documents, and old seds have small limits too.
3352
3353 rm -f conftest.tail
3354 while :
3355 do
3356 ac_lines=`grep -c . conftest.vals`
3357 # grep -c gives empty output for an empty file on some AIX systems.
3358 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3359 # Write a limited-size here document to conftest.frag.
3360 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3361 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3362 echo 'CEOF
3363 sed -f conftest.frag conftest.in > conftest.out
3364 rm -f conftest.in
3365 mv conftest.out conftest.in
3366 ' >> $CONFIG_STATUS
3367 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3368 rm -f conftest.vals
3369 mv conftest.tail conftest.vals
3370 done
3371 rm -f conftest.vals
3372
3373 cat >> $CONFIG_STATUS <<\EOF
3374 rm -f conftest.frag conftest.h
3375 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3376 cat conftest.in >> conftest.h
3377 rm -f conftest.in
3378 if cmp -s $ac_file conftest.h 2>/dev/null; then
3379 echo "$ac_file is unchanged"
3380 rm -f conftest.h
3381 else
3382 # Remove last slash and all that follows it. Not all systems have dirname.
3383 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3384 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3385 # The file is in a subdirectory.
3386 test ! -d "$ac_dir" && mkdir "$ac_dir"
3387 fi
3388 rm -f $ac_file
3389 mv conftest.h $ac_file
3390 fi
3391 fi; done
3392
3393 EOF
3394 cat >> $CONFIG_STATUS <<EOF
3395
3396
3397 EOF
3398 cat >> $CONFIG_STATUS <<\EOF
3399 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
3400
3401 exit 0
3402 EOF
3403 chmod +x $CONFIG_STATUS
3404 rm -fr confdefs* $ac_clean_files
3405 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3406
This page took 0.212845 seconds and 4 git commands to generate.