]> Dogcows Code - chaz/openbox/blob - configure
8be548a6c2c2367c839fcbd35d625d48fbee8d6c
[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.3.0
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 for ac_prog in sed
1230 do
1231 # Extract the first word of "$ac_prog", so it can be a program name with args.
1232 set dummy $ac_prog; ac_word=$2
1233 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1234 echo "configure:1235: checking for $ac_word" >&5
1235 if eval "test \"`echo '$''{'ac_cv_prog_regex_cmd'+set}'`\" = set"; then
1236 echo $ac_n "(cached) $ac_c" 1>&6
1237 else
1238 if test -n "$regex_cmd"; then
1239 ac_cv_prog_regex_cmd="$regex_cmd" # Let the user override the test.
1240 else
1241 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1242 ac_dummy="$PATH"
1243 for ac_dir in $ac_dummy; do
1244 test -z "$ac_dir" && ac_dir=.
1245 if test -f $ac_dir/$ac_word; then
1246 ac_cv_prog_regex_cmd="$ac_prog"
1247 break
1248 fi
1249 done
1250 IFS="$ac_save_ifs"
1251 fi
1252 fi
1253 regex_cmd="$ac_cv_prog_regex_cmd"
1254 if test -n "$regex_cmd"; then
1255 echo "$ac_t""$regex_cmd" 1>&6
1256 else
1257 echo "$ac_t""no" 1>&6
1258 fi
1259
1260 test -n "$regex_cmd" && break
1261 done
1262
1263 if test x$regex_cmd = "x"; then
1264 { echo "configure: error: error. sed is required to build the default menu file." 1>&2; exit 1; }
1265 fi
1266
1267 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1268 echo "configure:1269: checking how to run the C preprocessor" >&5
1269 # On Suns, sometimes $CPP names a directory.
1270 if test -n "$CPP" && test -d "$CPP"; then
1271 CPP=
1272 fi
1273 if test -z "$CPP"; then
1274 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1275 echo $ac_n "(cached) $ac_c" 1>&6
1276 else
1277 # This must be in double quotes, not single quotes, because CPP may get
1278 # substituted into the Makefile and "${CC-cc}" will confuse make.
1279 CPP="${CC-cc} -E"
1280 # On the NeXT, cc -E runs the code through the compiler's parser,
1281 # not just through cpp.
1282 cat > conftest.$ac_ext <<EOF
1283 #line 1284 "configure"
1284 #include "confdefs.h"
1285 #include <assert.h>
1286 Syntax Error
1287 EOF
1288 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1289 { (eval echo configure:1290: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1290 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1291 if test -z "$ac_err"; then
1292 :
1293 else
1294 echo "$ac_err" >&5
1295 echo "configure: failed program was:" >&5
1296 cat conftest.$ac_ext >&5
1297 rm -rf conftest*
1298 CPP="${CC-cc} -E -traditional-cpp"
1299 cat > conftest.$ac_ext <<EOF
1300 #line 1301 "configure"
1301 #include "confdefs.h"
1302 #include <assert.h>
1303 Syntax Error
1304 EOF
1305 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1306 { (eval echo configure:1307: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1307 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1308 if test -z "$ac_err"; then
1309 :
1310 else
1311 echo "$ac_err" >&5
1312 echo "configure: failed program was:" >&5
1313 cat conftest.$ac_ext >&5
1314 rm -rf conftest*
1315 CPP="${CC-cc} -nologo -E"
1316 cat > conftest.$ac_ext <<EOF
1317 #line 1318 "configure"
1318 #include "confdefs.h"
1319 #include <assert.h>
1320 Syntax Error
1321 EOF
1322 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1323 { (eval echo configure:1324: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1324 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1325 if test -z "$ac_err"; then
1326 :
1327 else
1328 echo "$ac_err" >&5
1329 echo "configure: failed program was:" >&5
1330 cat conftest.$ac_ext >&5
1331 rm -rf conftest*
1332 CPP=/lib/cpp
1333 fi
1334 rm -f conftest*
1335 fi
1336 rm -f conftest*
1337 fi
1338 rm -f conftest*
1339 ac_cv_prog_CPP="$CPP"
1340 fi
1341 CPP="$ac_cv_prog_CPP"
1342 else
1343 ac_cv_prog_CPP="$CPP"
1344 fi
1345 echo "$ac_t""$CPP" 1>&6
1346
1347 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
1348 do
1349 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1350 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1351 echo "configure:1352: checking for $ac_hdr" >&5
1352 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1353 echo $ac_n "(cached) $ac_c" 1>&6
1354 else
1355 cat > conftest.$ac_ext <<EOF
1356 #line 1357 "configure"
1357 #include "confdefs.h"
1358 #include <$ac_hdr>
1359 EOF
1360 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1361 { (eval echo configure:1362: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1362 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1363 if test -z "$ac_err"; then
1364 rm -rf conftest*
1365 eval "ac_cv_header_$ac_safe=yes"
1366 else
1367 echo "$ac_err" >&5
1368 echo "configure: failed program was:" >&5
1369 cat conftest.$ac_ext >&5
1370 rm -rf conftest*
1371 eval "ac_cv_header_$ac_safe=no"
1372 fi
1373 rm -f conftest*
1374 fi
1375 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1376 echo "$ac_t""yes" 1>&6
1377 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1378 cat >> confdefs.h <<EOF
1379 #define $ac_tr_hdr 1
1380 EOF
1381
1382 else
1383 echo "$ac_t""no" 1>&6
1384 fi
1385 done
1386
1387 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1388 echo "configure:1389: checking whether time.h and sys/time.h may both be included" >&5
1389 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1390 echo $ac_n "(cached) $ac_c" 1>&6
1391 else
1392 cat > conftest.$ac_ext <<EOF
1393 #line 1394 "configure"
1394 #include "confdefs.h"
1395 #include <sys/types.h>
1396 #include <sys/time.h>
1397 #include <time.h>
1398 int main() {
1399 struct tm *tp;
1400 ; return 0; }
1401 EOF
1402 if { (eval echo configure:1403: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1403 rm -rf conftest*
1404 ac_cv_header_time=yes
1405 else
1406 echo "configure: failed program was:" >&5
1407 cat conftest.$ac_ext >&5
1408 rm -rf conftest*
1409 ac_cv_header_time=no
1410 fi
1411 rm -f conftest*
1412 fi
1413
1414 echo "$ac_t""$ac_cv_header_time" 1>&6
1415 if test $ac_cv_header_time = yes; then
1416 cat >> confdefs.h <<\EOF
1417 #define TIME_WITH_SYS_TIME 1
1418 EOF
1419
1420 fi
1421
1422
1423 for ac_func in basename
1424 do
1425 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1426 echo "configure:1427: checking for $ac_func" >&5
1427 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1428 echo $ac_n "(cached) $ac_c" 1>&6
1429 else
1430 cat > conftest.$ac_ext <<EOF
1431 #line 1432 "configure"
1432 #include "confdefs.h"
1433 /* System header to define __stub macros and hopefully few prototypes,
1434 which can conflict with char $ac_func(); below. */
1435 #include <assert.h>
1436 /* Override any gcc2 internal prototype to avoid an error. */
1437 /* We use char because int might match the return type of a gcc2
1438 builtin and then its argument prototype would still apply. */
1439 char $ac_func();
1440
1441 int main() {
1442
1443 /* The GNU C library defines this for functions which it implements
1444 to always fail with ENOSYS. Some functions are actually named
1445 something starting with __ and the normal name is an alias. */
1446 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1447 choke me
1448 #else
1449 $ac_func();
1450 #endif
1451
1452 ; return 0; }
1453 EOF
1454 if { (eval echo configure:1455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1455 rm -rf conftest*
1456 eval "ac_cv_func_$ac_func=yes"
1457 else
1458 echo "configure: failed program was:" >&5
1459 cat conftest.$ac_ext >&5
1460 rm -rf conftest*
1461 eval "ac_cv_func_$ac_func=no"
1462 fi
1463 rm -f conftest*
1464 fi
1465
1466 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1467 echo "$ac_t""yes" 1>&6
1468 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1469 cat >> confdefs.h <<EOF
1470 #define $ac_tr_func 1
1471 EOF
1472
1473 else
1474 echo "$ac_t""no" 1>&6
1475 echo $ac_n "checking for basename in -lgen""... $ac_c" 1>&6
1476 echo "configure:1477: checking for basename in -lgen" >&5
1477 ac_lib_var=`echo gen'_'basename | sed 'y%./+-%__p_%'`
1478 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1479 echo $ac_n "(cached) $ac_c" 1>&6
1480 else
1481 ac_save_LIBS="$LIBS"
1482 LIBS="-lgen $LIBS"
1483 cat > conftest.$ac_ext <<EOF
1484 #line 1485 "configure"
1485 #include "confdefs.h"
1486 /* Override any gcc2 internal prototype to avoid an error. */
1487 /* We use char because int might match the return type of a gcc2
1488 builtin and then its argument prototype would still apply. */
1489 char basename();
1490
1491 int main() {
1492 basename()
1493 ; return 0; }
1494 EOF
1495 if { (eval echo configure:1496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1496 rm -rf conftest*
1497 eval "ac_cv_lib_$ac_lib_var=yes"
1498 else
1499 echo "configure: failed program was:" >&5
1500 cat conftest.$ac_ext >&5
1501 rm -rf conftest*
1502 eval "ac_cv_lib_$ac_lib_var=no"
1503 fi
1504 rm -f conftest*
1505 LIBS="$ac_save_LIBS"
1506
1507 fi
1508 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1509 echo "$ac_t""yes" 1>&6
1510 cat >> confdefs.h <<\EOF
1511 #define HAVE_BASENAME 1
1512 EOF
1513 LIBS="$LIBS -lgen"
1514 else
1515 echo "$ac_t""no" 1>&6
1516 fi
1517
1518 fi
1519 done
1520
1521 for ac_func in getpid setlocale sigaction strftime strcasestr snprintf vsnprintf catopen catgets catclose
1522 do
1523 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1524 echo "configure:1525: checking for $ac_func" >&5
1525 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1526 echo $ac_n "(cached) $ac_c" 1>&6
1527 else
1528 cat > conftest.$ac_ext <<EOF
1529 #line 1530 "configure"
1530 #include "confdefs.h"
1531 /* System header to define __stub macros and hopefully few prototypes,
1532 which can conflict with char $ac_func(); below. */
1533 #include <assert.h>
1534 /* Override any gcc2 internal prototype to avoid an error. */
1535 /* We use char because int might match the return type of a gcc2
1536 builtin and then its argument prototype would still apply. */
1537 char $ac_func();
1538
1539 int main() {
1540
1541 /* The GNU C library defines this for functions which it implements
1542 to always fail with ENOSYS. Some functions are actually named
1543 something starting with __ and the normal name is an alias. */
1544 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1545 choke me
1546 #else
1547 $ac_func();
1548 #endif
1549
1550 ; return 0; }
1551 EOF
1552 if { (eval echo configure:1553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1553 rm -rf conftest*
1554 eval "ac_cv_func_$ac_func=yes"
1555 else
1556 echo "configure: failed program was:" >&5
1557 cat conftest.$ac_ext >&5
1558 rm -rf conftest*
1559 eval "ac_cv_func_$ac_func=no"
1560 fi
1561 rm -f conftest*
1562 fi
1563
1564 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1565 echo "$ac_t""yes" 1>&6
1566 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1567 cat >> confdefs.h <<EOF
1568 #define $ac_tr_func 1
1569 EOF
1570
1571 else
1572 echo "$ac_t""no" 1>&6
1573 fi
1574 done
1575
1576 echo $ac_n "checking for t_open in -lnsl""... $ac_c" 1>&6
1577 echo "configure:1578: checking for t_open in -lnsl" >&5
1578 ac_lib_var=`echo nsl'_'t_open | sed 'y%./+-%__p_%'`
1579 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1580 echo $ac_n "(cached) $ac_c" 1>&6
1581 else
1582 ac_save_LIBS="$LIBS"
1583 LIBS="-lnsl $LIBS"
1584 cat > conftest.$ac_ext <<EOF
1585 #line 1586 "configure"
1586 #include "confdefs.h"
1587 /* Override any gcc2 internal prototype to avoid an error. */
1588 /* We use char because int might match the return type of a gcc2
1589 builtin and then its argument prototype would still apply. */
1590 char t_open();
1591
1592 int main() {
1593 t_open()
1594 ; return 0; }
1595 EOF
1596 if { (eval echo configure:1597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1597 rm -rf conftest*
1598 eval "ac_cv_lib_$ac_lib_var=yes"
1599 else
1600 echo "configure: failed program was:" >&5
1601 cat conftest.$ac_ext >&5
1602 rm -rf conftest*
1603 eval "ac_cv_lib_$ac_lib_var=no"
1604 fi
1605 rm -f conftest*
1606 LIBS="$ac_save_LIBS"
1607
1608 fi
1609 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1610 echo "$ac_t""yes" 1>&6
1611 LIBS="$LIBS -lnsl"
1612 else
1613 echo "$ac_t""no" 1>&6
1614 fi
1615
1616 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
1617 echo "configure:1618: checking for socket in -lsocket" >&5
1618 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
1619 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1620 echo $ac_n "(cached) $ac_c" 1>&6
1621 else
1622 ac_save_LIBS="$LIBS"
1623 LIBS="-lsocket $LIBS"
1624 cat > conftest.$ac_ext <<EOF
1625 #line 1626 "configure"
1626 #include "confdefs.h"
1627 /* Override any gcc2 internal prototype to avoid an error. */
1628 /* We use char because int might match the return type of a gcc2
1629 builtin and then its argument prototype would still apply. */
1630 char socket();
1631
1632 int main() {
1633 socket()
1634 ; return 0; }
1635 EOF
1636 if { (eval echo configure:1637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1637 rm -rf conftest*
1638 eval "ac_cv_lib_$ac_lib_var=yes"
1639 else
1640 echo "configure: failed program was:" >&5
1641 cat conftest.$ac_ext >&5
1642 rm -rf conftest*
1643 eval "ac_cv_lib_$ac_lib_var=no"
1644 fi
1645 rm -f conftest*
1646 LIBS="$ac_save_LIBS"
1647
1648 fi
1649 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1650 echo "$ac_t""yes" 1>&6
1651 LIBS="$LIBS -lsocket"
1652 else
1653 echo "$ac_t""no" 1>&6
1654 fi
1655
1656
1657 # If we find X, set shell vars x_includes and x_libraries to the
1658 # paths, otherwise set no_x=yes.
1659 # Uses ac_ vars as temps to allow command line to override cache and checks.
1660 # --without-x overrides everything else, but does not touch the cache.
1661 echo $ac_n "checking for X""... $ac_c" 1>&6
1662 echo "configure:1663: checking for X" >&5
1663
1664 # Check whether --with-x or --without-x was given.
1665 if test "${with_x+set}" = set; then
1666 withval="$with_x"
1667 :
1668 fi
1669
1670 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
1671 if test "x$with_x" = xno; then
1672 # The user explicitly disabled X.
1673 have_x=disabled
1674 else
1675 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
1676 # Both variables are already set.
1677 have_x=yes
1678 else
1679 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
1680 echo $ac_n "(cached) $ac_c" 1>&6
1681 else
1682 # One or both of the vars are not set, and there is no cached value.
1683 ac_x_includes=NO ac_x_libraries=NO
1684 rm -fr conftestdir
1685 if mkdir conftestdir; then
1686 cd conftestdir
1687 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
1688 cat > Imakefile <<'EOF'
1689 acfindx:
1690 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
1691 EOF
1692 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
1693 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1694 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
1695 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
1696 for ac_extension in a so sl; do
1697 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
1698 test -f $ac_im_libdir/libX11.$ac_extension; then
1699 ac_im_usrlibdir=$ac_im_libdir; break
1700 fi
1701 done
1702 # Screen out bogus values from the imake configuration. They are
1703 # bogus both because they are the default anyway, and because
1704 # using them would break gcc on systems where it needs fixed includes.
1705 case "$ac_im_incroot" in
1706 /usr/include) ;;
1707 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
1708 esac
1709 case "$ac_im_usrlibdir" in
1710 /usr/lib | /lib) ;;
1711 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
1712 esac
1713 fi
1714 cd ..
1715 rm -fr conftestdir
1716 fi
1717
1718 if test "$ac_x_includes" = NO; then
1719 # Guess where to find include files, by looking for this one X11 .h file.
1720 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
1721
1722 # First, try using that file with no special directory specified.
1723 cat > conftest.$ac_ext <<EOF
1724 #line 1725 "configure"
1725 #include "confdefs.h"
1726 #include <$x_direct_test_include>
1727 EOF
1728 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1729 { (eval echo configure:1730: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1730 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1731 if test -z "$ac_err"; then
1732 rm -rf conftest*
1733 # We can compile using X headers with no special include directory.
1734 ac_x_includes=
1735 else
1736 echo "$ac_err" >&5
1737 echo "configure: failed program was:" >&5
1738 cat conftest.$ac_ext >&5
1739 rm -rf conftest*
1740 # Look for the header file in a standard set of common directories.
1741 # Check X11 before X11Rn because it is often a symlink to the current release.
1742 for ac_dir in \
1743 /usr/X11/include \
1744 /usr/X11R6/include \
1745 /usr/X11R5/include \
1746 /usr/X11R4/include \
1747 \
1748 /usr/include/X11 \
1749 /usr/include/X11R6 \
1750 /usr/include/X11R5 \
1751 /usr/include/X11R4 \
1752 \
1753 /usr/local/X11/include \
1754 /usr/local/X11R6/include \
1755 /usr/local/X11R5/include \
1756 /usr/local/X11R4/include \
1757 \
1758 /usr/local/include/X11 \
1759 /usr/local/include/X11R6 \
1760 /usr/local/include/X11R5 \
1761 /usr/local/include/X11R4 \
1762 \
1763 /usr/X386/include \
1764 /usr/x386/include \
1765 /usr/XFree86/include/X11 \
1766 \
1767 /usr/include \
1768 /usr/local/include \
1769 /usr/unsupported/include \
1770 /usr/athena/include \
1771 /usr/local/x11r5/include \
1772 /usr/lpp/Xamples/include \
1773 \
1774 /usr/openwin/include \
1775 /usr/openwin/share/include \
1776 ; \
1777 do
1778 if test -r "$ac_dir/$x_direct_test_include"; then
1779 ac_x_includes=$ac_dir
1780 break
1781 fi
1782 done
1783 fi
1784 rm -f conftest*
1785 fi # $ac_x_includes = NO
1786
1787 if test "$ac_x_libraries" = NO; then
1788 # Check for the libraries.
1789
1790 test -z "$x_direct_test_library" && x_direct_test_library=Xt
1791 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
1792
1793 # See if we find them without any special options.
1794 # Don't add to $LIBS permanently.
1795 ac_save_LIBS="$LIBS"
1796 LIBS="-l$x_direct_test_library $LIBS"
1797 cat > conftest.$ac_ext <<EOF
1798 #line 1799 "configure"
1799 #include "confdefs.h"
1800
1801 int main() {
1802 ${x_direct_test_function}()
1803 ; return 0; }
1804 EOF
1805 if { (eval echo configure:1806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1806 rm -rf conftest*
1807 LIBS="$ac_save_LIBS"
1808 # We can link X programs with no special library path.
1809 ac_x_libraries=
1810 else
1811 echo "configure: failed program was:" >&5
1812 cat conftest.$ac_ext >&5
1813 rm -rf conftest*
1814 LIBS="$ac_save_LIBS"
1815 # First see if replacing the include by lib works.
1816 # Check X11 before X11Rn because it is often a symlink to the current release.
1817 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
1818 /usr/X11/lib \
1819 /usr/X11R6/lib \
1820 /usr/X11R5/lib \
1821 /usr/X11R4/lib \
1822 \
1823 /usr/lib/X11 \
1824 /usr/lib/X11R6 \
1825 /usr/lib/X11R5 \
1826 /usr/lib/X11R4 \
1827 \
1828 /usr/local/X11/lib \
1829 /usr/local/X11R6/lib \
1830 /usr/local/X11R5/lib \
1831 /usr/local/X11R4/lib \
1832 \
1833 /usr/local/lib/X11 \
1834 /usr/local/lib/X11R6 \
1835 /usr/local/lib/X11R5 \
1836 /usr/local/lib/X11R4 \
1837 \
1838 /usr/X386/lib \
1839 /usr/x386/lib \
1840 /usr/XFree86/lib/X11 \
1841 \
1842 /usr/lib \
1843 /usr/local/lib \
1844 /usr/unsupported/lib \
1845 /usr/athena/lib \
1846 /usr/local/x11r5/lib \
1847 /usr/lpp/Xamples/lib \
1848 /lib/usr/lib/X11 \
1849 \
1850 /usr/openwin/lib \
1851 /usr/openwin/share/lib \
1852 ; \
1853 do
1854 for ac_extension in a so sl; do
1855 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
1856 ac_x_libraries=$ac_dir
1857 break 2
1858 fi
1859 done
1860 done
1861 fi
1862 rm -f conftest*
1863 fi # $ac_x_libraries = NO
1864
1865 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
1866 # Didn't find X anywhere. Cache the known absence of X.
1867 ac_cv_have_x="have_x=no"
1868 else
1869 # Record where we found X for the cache.
1870 ac_cv_have_x="have_x=yes \
1871 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1872 fi
1873 fi
1874 fi
1875 eval "$ac_cv_have_x"
1876 fi # $with_x != no
1877
1878 if test "$have_x" != yes; then
1879 echo "$ac_t""$have_x" 1>&6
1880 no_x=yes
1881 else
1882 # If each of the values was on the command line, it overrides each guess.
1883 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
1884 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
1885 # Update the cache value to reflect the command line values.
1886 ac_cv_have_x="have_x=yes \
1887 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1888 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1889 fi
1890
1891 if test "$no_x" = yes; then
1892 # Not all programs may use this symbol, but it does not hurt to define it.
1893 cat >> confdefs.h <<\EOF
1894 #define X_DISPLAY_MISSING 1
1895 EOF
1896
1897 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
1898 else
1899 if test -n "$x_includes"; then
1900 X_CFLAGS="$X_CFLAGS -I$x_includes"
1901 fi
1902
1903 # It would also be nice to do this for all -L options, not just this one.
1904 if test -n "$x_libraries"; then
1905 X_LIBS="$X_LIBS -L$x_libraries"
1906 # For Solaris; some versions of Sun CC require a space after -R and
1907 # others require no space. Words are not sufficient . . . .
1908 case "`(uname -sr) 2>/dev/null`" in
1909 "SunOS 5"*)
1910 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1911 echo "configure:1912: checking whether -R must be followed by a space" >&5
1912 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
1913 cat > conftest.$ac_ext <<EOF
1914 #line 1915 "configure"
1915 #include "confdefs.h"
1916
1917 int main() {
1918
1919 ; return 0; }
1920 EOF
1921 if { (eval echo configure:1922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1922 rm -rf conftest*
1923 ac_R_nospace=yes
1924 else
1925 echo "configure: failed program was:" >&5
1926 cat conftest.$ac_ext >&5
1927 rm -rf conftest*
1928 ac_R_nospace=no
1929 fi
1930 rm -f conftest*
1931 if test $ac_R_nospace = yes; then
1932 echo "$ac_t""no" 1>&6
1933 X_LIBS="$X_LIBS -R$x_libraries"
1934 else
1935 LIBS="$ac_xsave_LIBS -R $x_libraries"
1936 cat > conftest.$ac_ext <<EOF
1937 #line 1938 "configure"
1938 #include "confdefs.h"
1939
1940 int main() {
1941
1942 ; return 0; }
1943 EOF
1944 if { (eval echo configure:1945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1945 rm -rf conftest*
1946 ac_R_space=yes
1947 else
1948 echo "configure: failed program was:" >&5
1949 cat conftest.$ac_ext >&5
1950 rm -rf conftest*
1951 ac_R_space=no
1952 fi
1953 rm -f conftest*
1954 if test $ac_R_space = yes; then
1955 echo "$ac_t""yes" 1>&6
1956 X_LIBS="$X_LIBS -R $x_libraries"
1957 else
1958 echo "$ac_t""neither works" 1>&6
1959 fi
1960 fi
1961 LIBS="$ac_xsave_LIBS"
1962 esac
1963 fi
1964
1965 # Check for system-dependent libraries X programs must link with.
1966 # Do this before checking for the system-independent R6 libraries
1967 # (-lICE), since we may need -lsocket or whatever for X linking.
1968
1969 if test "$ISC" = yes; then
1970 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
1971 else
1972 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1973 # libraries were built with DECnet support. And karl@cs.umb.edu says
1974 # the Alpha needs dnet_stub (dnet does not exist).
1975 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1976 echo "configure:1977: checking for dnet_ntoa in -ldnet" >&5
1977 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1978 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1979 echo $ac_n "(cached) $ac_c" 1>&6
1980 else
1981 ac_save_LIBS="$LIBS"
1982 LIBS="-ldnet $LIBS"
1983 cat > conftest.$ac_ext <<EOF
1984 #line 1985 "configure"
1985 #include "confdefs.h"
1986 /* Override any gcc2 internal prototype to avoid an error. */
1987 /* We use char because int might match the return type of a gcc2
1988 builtin and then its argument prototype would still apply. */
1989 char dnet_ntoa();
1990
1991 int main() {
1992 dnet_ntoa()
1993 ; return 0; }
1994 EOF
1995 if { (eval echo configure:1996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1996 rm -rf conftest*
1997 eval "ac_cv_lib_$ac_lib_var=yes"
1998 else
1999 echo "configure: failed program was:" >&5
2000 cat conftest.$ac_ext >&5
2001 rm -rf conftest*
2002 eval "ac_cv_lib_$ac_lib_var=no"
2003 fi
2004 rm -f conftest*
2005 LIBS="$ac_save_LIBS"
2006
2007 fi
2008 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2009 echo "$ac_t""yes" 1>&6
2010 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
2011 else
2012 echo "$ac_t""no" 1>&6
2013 fi
2014
2015 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
2016 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
2017 echo "configure:2018: checking for dnet_ntoa in -ldnet_stub" >&5
2018 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
2019 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2020 echo $ac_n "(cached) $ac_c" 1>&6
2021 else
2022 ac_save_LIBS="$LIBS"
2023 LIBS="-ldnet_stub $LIBS"
2024 cat > conftest.$ac_ext <<EOF
2025 #line 2026 "configure"
2026 #include "confdefs.h"
2027 /* Override any gcc2 internal prototype to avoid an error. */
2028 /* We use char because int might match the return type of a gcc2
2029 builtin and then its argument prototype would still apply. */
2030 char dnet_ntoa();
2031
2032 int main() {
2033 dnet_ntoa()
2034 ; return 0; }
2035 EOF
2036 if { (eval echo configure:2037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2037 rm -rf conftest*
2038 eval "ac_cv_lib_$ac_lib_var=yes"
2039 else
2040 echo "configure: failed program was:" >&5
2041 cat conftest.$ac_ext >&5
2042 rm -rf conftest*
2043 eval "ac_cv_lib_$ac_lib_var=no"
2044 fi
2045 rm -f conftest*
2046 LIBS="$ac_save_LIBS"
2047
2048 fi
2049 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2050 echo "$ac_t""yes" 1>&6
2051 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
2052 else
2053 echo "$ac_t""no" 1>&6
2054 fi
2055
2056 fi
2057
2058 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
2059 # to get the SysV transport functions.
2060 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
2061 # needs -lnsl.
2062 # The nsl library prevents programs from opening the X display
2063 # on Irix 5.2, according to dickey@clark.net.
2064 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
2065 echo "configure:2066: checking for gethostbyname" >&5
2066 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
2067 echo $ac_n "(cached) $ac_c" 1>&6
2068 else
2069 cat > conftest.$ac_ext <<EOF
2070 #line 2071 "configure"
2071 #include "confdefs.h"
2072 /* System header to define __stub macros and hopefully few prototypes,
2073 which can conflict with char gethostbyname(); below. */
2074 #include <assert.h>
2075 /* Override any gcc2 internal prototype to avoid an error. */
2076 /* We use char because int might match the return type of a gcc2
2077 builtin and then its argument prototype would still apply. */
2078 char gethostbyname();
2079
2080 int main() {
2081
2082 /* The GNU C library defines this for functions which it implements
2083 to always fail with ENOSYS. Some functions are actually named
2084 something starting with __ and the normal name is an alias. */
2085 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2086 choke me
2087 #else
2088 gethostbyname();
2089 #endif
2090
2091 ; return 0; }
2092 EOF
2093 if { (eval echo configure:2094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2094 rm -rf conftest*
2095 eval "ac_cv_func_gethostbyname=yes"
2096 else
2097 echo "configure: failed program was:" >&5
2098 cat conftest.$ac_ext >&5
2099 rm -rf conftest*
2100 eval "ac_cv_func_gethostbyname=no"
2101 fi
2102 rm -f conftest*
2103 fi
2104
2105 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
2106 echo "$ac_t""yes" 1>&6
2107 :
2108 else
2109 echo "$ac_t""no" 1>&6
2110 fi
2111
2112 if test $ac_cv_func_gethostbyname = no; then
2113 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2114 echo "configure:2115: checking for gethostbyname in -lnsl" >&5
2115 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2116 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2117 echo $ac_n "(cached) $ac_c" 1>&6
2118 else
2119 ac_save_LIBS="$LIBS"
2120 LIBS="-lnsl $LIBS"
2121 cat > conftest.$ac_ext <<EOF
2122 #line 2123 "configure"
2123 #include "confdefs.h"
2124 /* Override any gcc2 internal prototype to avoid an error. */
2125 /* We use char because int might match the return type of a gcc2
2126 builtin and then its argument prototype would still apply. */
2127 char gethostbyname();
2128
2129 int main() {
2130 gethostbyname()
2131 ; return 0; }
2132 EOF
2133 if { (eval echo configure:2134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2134 rm -rf conftest*
2135 eval "ac_cv_lib_$ac_lib_var=yes"
2136 else
2137 echo "configure: failed program was:" >&5
2138 cat conftest.$ac_ext >&5
2139 rm -rf conftest*
2140 eval "ac_cv_lib_$ac_lib_var=no"
2141 fi
2142 rm -f conftest*
2143 LIBS="$ac_save_LIBS"
2144
2145 fi
2146 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2147 echo "$ac_t""yes" 1>&6
2148 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
2149 else
2150 echo "$ac_t""no" 1>&6
2151 fi
2152
2153 fi
2154
2155 # lieder@skyler.mavd.honeywell.com says without -lsocket,
2156 # socket/setsockopt and other routines are undefined under SCO ODT
2157 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
2158 # on later versions), says simon@lia.di.epfl.ch: it contains
2159 # gethostby* variants that don't use the nameserver (or something).
2160 # -lsocket must be given before -lnsl if both are needed.
2161 # We assume that if connect needs -lnsl, so does gethostbyname.
2162 echo $ac_n "checking for connect""... $ac_c" 1>&6
2163 echo "configure:2164: checking for connect" >&5
2164 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
2165 echo $ac_n "(cached) $ac_c" 1>&6
2166 else
2167 cat > conftest.$ac_ext <<EOF
2168 #line 2169 "configure"
2169 #include "confdefs.h"
2170 /* System header to define __stub macros and hopefully few prototypes,
2171 which can conflict with char connect(); below. */
2172 #include <assert.h>
2173 /* Override any gcc2 internal prototype to avoid an error. */
2174 /* We use char because int might match the return type of a gcc2
2175 builtin and then its argument prototype would still apply. */
2176 char connect();
2177
2178 int main() {
2179
2180 /* The GNU C library defines this for functions which it implements
2181 to always fail with ENOSYS. Some functions are actually named
2182 something starting with __ and the normal name is an alias. */
2183 #if defined (__stub_connect) || defined (__stub___connect)
2184 choke me
2185 #else
2186 connect();
2187 #endif
2188
2189 ; return 0; }
2190 EOF
2191 if { (eval echo configure:2192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2192 rm -rf conftest*
2193 eval "ac_cv_func_connect=yes"
2194 else
2195 echo "configure: failed program was:" >&5
2196 cat conftest.$ac_ext >&5
2197 rm -rf conftest*
2198 eval "ac_cv_func_connect=no"
2199 fi
2200 rm -f conftest*
2201 fi
2202
2203 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
2204 echo "$ac_t""yes" 1>&6
2205 :
2206 else
2207 echo "$ac_t""no" 1>&6
2208 fi
2209
2210 if test $ac_cv_func_connect = no; then
2211 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2212 echo "configure:2213: checking for connect in -lsocket" >&5
2213 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2214 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2215 echo $ac_n "(cached) $ac_c" 1>&6
2216 else
2217 ac_save_LIBS="$LIBS"
2218 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
2219 cat > conftest.$ac_ext <<EOF
2220 #line 2221 "configure"
2221 #include "confdefs.h"
2222 /* Override any gcc2 internal prototype to avoid an error. */
2223 /* We use char because int might match the return type of a gcc2
2224 builtin and then its argument prototype would still apply. */
2225 char connect();
2226
2227 int main() {
2228 connect()
2229 ; return 0; }
2230 EOF
2231 if { (eval echo configure:2232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2232 rm -rf conftest*
2233 eval "ac_cv_lib_$ac_lib_var=yes"
2234 else
2235 echo "configure: failed program was:" >&5
2236 cat conftest.$ac_ext >&5
2237 rm -rf conftest*
2238 eval "ac_cv_lib_$ac_lib_var=no"
2239 fi
2240 rm -f conftest*
2241 LIBS="$ac_save_LIBS"
2242
2243 fi
2244 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2245 echo "$ac_t""yes" 1>&6
2246 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
2247 else
2248 echo "$ac_t""no" 1>&6
2249 fi
2250
2251 fi
2252
2253 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
2254 echo $ac_n "checking for remove""... $ac_c" 1>&6
2255 echo "configure:2256: checking for remove" >&5
2256 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
2257 echo $ac_n "(cached) $ac_c" 1>&6
2258 else
2259 cat > conftest.$ac_ext <<EOF
2260 #line 2261 "configure"
2261 #include "confdefs.h"
2262 /* System header to define __stub macros and hopefully few prototypes,
2263 which can conflict with char remove(); below. */
2264 #include <assert.h>
2265 /* Override any gcc2 internal prototype to avoid an error. */
2266 /* We use char because int might match the return type of a gcc2
2267 builtin and then its argument prototype would still apply. */
2268 char remove();
2269
2270 int main() {
2271
2272 /* The GNU C library defines this for functions which it implements
2273 to always fail with ENOSYS. Some functions are actually named
2274 something starting with __ and the normal name is an alias. */
2275 #if defined (__stub_remove) || defined (__stub___remove)
2276 choke me
2277 #else
2278 remove();
2279 #endif
2280
2281 ; return 0; }
2282 EOF
2283 if { (eval echo configure:2284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2284 rm -rf conftest*
2285 eval "ac_cv_func_remove=yes"
2286 else
2287 echo "configure: failed program was:" >&5
2288 cat conftest.$ac_ext >&5
2289 rm -rf conftest*
2290 eval "ac_cv_func_remove=no"
2291 fi
2292 rm -f conftest*
2293 fi
2294
2295 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
2296 echo "$ac_t""yes" 1>&6
2297 :
2298 else
2299 echo "$ac_t""no" 1>&6
2300 fi
2301
2302 if test $ac_cv_func_remove = no; then
2303 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
2304 echo "configure:2305: checking for remove in -lposix" >&5
2305 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
2306 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2307 echo $ac_n "(cached) $ac_c" 1>&6
2308 else
2309 ac_save_LIBS="$LIBS"
2310 LIBS="-lposix $LIBS"
2311 cat > conftest.$ac_ext <<EOF
2312 #line 2313 "configure"
2313 #include "confdefs.h"
2314 /* Override any gcc2 internal prototype to avoid an error. */
2315 /* We use char because int might match the return type of a gcc2
2316 builtin and then its argument prototype would still apply. */
2317 char remove();
2318
2319 int main() {
2320 remove()
2321 ; return 0; }
2322 EOF
2323 if { (eval echo configure:2324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2324 rm -rf conftest*
2325 eval "ac_cv_lib_$ac_lib_var=yes"
2326 else
2327 echo "configure: failed program was:" >&5
2328 cat conftest.$ac_ext >&5
2329 rm -rf conftest*
2330 eval "ac_cv_lib_$ac_lib_var=no"
2331 fi
2332 rm -f conftest*
2333 LIBS="$ac_save_LIBS"
2334
2335 fi
2336 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2337 echo "$ac_t""yes" 1>&6
2338 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
2339 else
2340 echo "$ac_t""no" 1>&6
2341 fi
2342
2343 fi
2344
2345 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
2346 echo $ac_n "checking for shmat""... $ac_c" 1>&6
2347 echo "configure:2348: checking for shmat" >&5
2348 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
2349 echo $ac_n "(cached) $ac_c" 1>&6
2350 else
2351 cat > conftest.$ac_ext <<EOF
2352 #line 2353 "configure"
2353 #include "confdefs.h"
2354 /* System header to define __stub macros and hopefully few prototypes,
2355 which can conflict with char shmat(); below. */
2356 #include <assert.h>
2357 /* Override any gcc2 internal prototype to avoid an error. */
2358 /* We use char because int might match the return type of a gcc2
2359 builtin and then its argument prototype would still apply. */
2360 char shmat();
2361
2362 int main() {
2363
2364 /* The GNU C library defines this for functions which it implements
2365 to always fail with ENOSYS. Some functions are actually named
2366 something starting with __ and the normal name is an alias. */
2367 #if defined (__stub_shmat) || defined (__stub___shmat)
2368 choke me
2369 #else
2370 shmat();
2371 #endif
2372
2373 ; return 0; }
2374 EOF
2375 if { (eval echo configure:2376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2376 rm -rf conftest*
2377 eval "ac_cv_func_shmat=yes"
2378 else
2379 echo "configure: failed program was:" >&5
2380 cat conftest.$ac_ext >&5
2381 rm -rf conftest*
2382 eval "ac_cv_func_shmat=no"
2383 fi
2384 rm -f conftest*
2385 fi
2386
2387 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
2388 echo "$ac_t""yes" 1>&6
2389 :
2390 else
2391 echo "$ac_t""no" 1>&6
2392 fi
2393
2394 if test $ac_cv_func_shmat = no; then
2395 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
2396 echo "configure:2397: checking for shmat in -lipc" >&5
2397 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
2398 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2399 echo $ac_n "(cached) $ac_c" 1>&6
2400 else
2401 ac_save_LIBS="$LIBS"
2402 LIBS="-lipc $LIBS"
2403 cat > conftest.$ac_ext <<EOF
2404 #line 2405 "configure"
2405 #include "confdefs.h"
2406 /* Override any gcc2 internal prototype to avoid an error. */
2407 /* We use char because int might match the return type of a gcc2
2408 builtin and then its argument prototype would still apply. */
2409 char shmat();
2410
2411 int main() {
2412 shmat()
2413 ; return 0; }
2414 EOF
2415 if { (eval echo configure:2416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2416 rm -rf conftest*
2417 eval "ac_cv_lib_$ac_lib_var=yes"
2418 else
2419 echo "configure: failed program was:" >&5
2420 cat conftest.$ac_ext >&5
2421 rm -rf conftest*
2422 eval "ac_cv_lib_$ac_lib_var=no"
2423 fi
2424 rm -f conftest*
2425 LIBS="$ac_save_LIBS"
2426
2427 fi
2428 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2429 echo "$ac_t""yes" 1>&6
2430 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
2431 else
2432 echo "$ac_t""no" 1>&6
2433 fi
2434
2435 fi
2436 fi
2437
2438 # Check for libraries that X11R6 Xt/Xaw programs need.
2439 ac_save_LDFLAGS="$LDFLAGS"
2440 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
2441 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
2442 # check for ICE first), but we must link in the order -lSM -lICE or
2443 # we get undefined symbols. So assume we have SM if we have ICE.
2444 # These have to be linked with before -lX11, unlike the other
2445 # libraries we check for below, so use a different variable.
2446 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
2447 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
2448 echo "configure:2449: checking for IceConnectionNumber in -lICE" >&5
2449 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
2450 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2451 echo $ac_n "(cached) $ac_c" 1>&6
2452 else
2453 ac_save_LIBS="$LIBS"
2454 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
2455 cat > conftest.$ac_ext <<EOF
2456 #line 2457 "configure"
2457 #include "confdefs.h"
2458 /* Override any gcc2 internal prototype to avoid an error. */
2459 /* We use char because int might match the return type of a gcc2
2460 builtin and then its argument prototype would still apply. */
2461 char IceConnectionNumber();
2462
2463 int main() {
2464 IceConnectionNumber()
2465 ; return 0; }
2466 EOF
2467 if { (eval echo configure:2468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2468 rm -rf conftest*
2469 eval "ac_cv_lib_$ac_lib_var=yes"
2470 else
2471 echo "configure: failed program was:" >&5
2472 cat conftest.$ac_ext >&5
2473 rm -rf conftest*
2474 eval "ac_cv_lib_$ac_lib_var=no"
2475 fi
2476 rm -f conftest*
2477 LIBS="$ac_save_LIBS"
2478
2479 fi
2480 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2481 echo "$ac_t""yes" 1>&6
2482 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
2483 else
2484 echo "$ac_t""no" 1>&6
2485 fi
2486
2487 LDFLAGS="$ac_save_LDFLAGS"
2488
2489 fi
2490
2491
2492 test x$no_x = "xyes" && { echo "configure: error: Openbox requires the X Window System libraries and headers." 1>&2; exit 1; }
2493
2494 test x$x_includes = "x" && x_includes="/usr/include"
2495 test x$x_libraries = "x" && x_libraries="/usr/lib"
2496
2497 CFLAGS="$CFLAGS $X_CFLAGS"
2498 CXXFLAGS="$CXXFLAGS $X_CFLAGS"
2499 LIBS="$LIBS $X_LIBS"
2500 LDFLAGS="$LDFLAGS $LIBS $X_PRE_LIBS"
2501
2502 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
2503 echo "configure:2504: checking for XOpenDisplay in -lX11" >&5
2504 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
2505 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2506 echo $ac_n "(cached) $ac_c" 1>&6
2507 else
2508 ac_save_LIBS="$LIBS"
2509 LIBS="-lX11 $LIBS"
2510 cat > conftest.$ac_ext <<EOF
2511 #line 2512 "configure"
2512 #include "confdefs.h"
2513 /* Override any gcc2 internal prototype to avoid an error. */
2514 /* We use char because int might match the return type of a gcc2
2515 builtin and then its argument prototype would still apply. */
2516 char XOpenDisplay();
2517
2518 int main() {
2519 XOpenDisplay()
2520 ; return 0; }
2521 EOF
2522 if { (eval echo configure:2523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2523 rm -rf conftest*
2524 eval "ac_cv_lib_$ac_lib_var=yes"
2525 else
2526 echo "configure: failed program was:" >&5
2527 cat conftest.$ac_ext >&5
2528 rm -rf conftest*
2529 eval "ac_cv_lib_$ac_lib_var=no"
2530 fi
2531 rm -f conftest*
2532 LIBS="$ac_save_LIBS"
2533
2534 fi
2535 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2536 echo "$ac_t""yes" 1>&6
2537 LIBS="$LIBS -lX11"
2538 else
2539 echo "$ac_t""no" 1>&6
2540 { echo "configure: error: Could not find XOpenDisplay in -lX11." 1>&2; exit 1; }
2541
2542 fi
2543
2544
2545 LIBS="$LIBS $X_EXTRA_LIBS"
2546
2547 Xext_lib=""
2548
2549 SHAPE=""
2550 echo $ac_n "checking whether to build support for the XShape extension""... $ac_c" 1>&6
2551 echo "configure:2552: checking whether to build support for the XShape extension" >&5
2552 # Check whether --enable-shape or --disable-shape was given.
2553 if test "${enable_shape+set}" = set; then
2554 enableval="$enable_shape"
2555 :
2556 fi
2557
2558
2559 : ${enableval="yes"}
2560 if test x$enableval = "xyes"; then
2561 echo "$ac_t""yes" 1>&6
2562 echo $ac_n "checking for XShapeCombineShape in -lXext""... $ac_c" 1>&6
2563 echo "configure:2564: checking for XShapeCombineShape in -lXext" >&5
2564 ac_lib_var=`echo Xext'_'XShapeCombineShape | sed 'y%./+-%__p_%'`
2565 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2566 echo $ac_n "(cached) $ac_c" 1>&6
2567 else
2568 ac_save_LIBS="$LIBS"
2569 LIBS="-lXext $LIBS"
2570 cat > conftest.$ac_ext <<EOF
2571 #line 2572 "configure"
2572 #include "confdefs.h"
2573 /* Override any gcc2 internal prototype to avoid an error. */
2574 /* We use char because int might match the return type of a gcc2
2575 builtin and then its argument prototype would still apply. */
2576 char XShapeCombineShape();
2577
2578 int main() {
2579 XShapeCombineShape()
2580 ; return 0; }
2581 EOF
2582 if { (eval echo configure:2583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2583 rm -rf conftest*
2584 eval "ac_cv_lib_$ac_lib_var=yes"
2585 else
2586 echo "configure: failed program was:" >&5
2587 cat conftest.$ac_ext >&5
2588 rm -rf conftest*
2589 eval "ac_cv_lib_$ac_lib_var=no"
2590 fi
2591 rm -f conftest*
2592 LIBS="$ac_save_LIBS"
2593
2594 fi
2595 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2596 echo "$ac_t""yes" 1>&6
2597 echo $ac_n "checking for X11/extensions/shape.h""... $ac_c" 1>&6
2598 echo "configure:2599: checking for X11/extensions/shape.h" >&5
2599 cat > conftest.$ac_ext <<EOF
2600 #line 2601 "configure"
2601 #include "confdefs.h"
2602 #include <X11/Xlib.h>
2603 #include <X11/Xutil.h>
2604 #include <X11/extensions/shape.h>
2605
2606 int main() {
2607 long foo = ShapeSet
2608 ; return 0; }
2609 EOF
2610 if { (eval echo configure:2611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2611 rm -rf conftest*
2612 echo "$ac_t""yes" 1>&6
2613 SHAPE="-DSHAPE"; Xext_lib="-lXext"
2614 else
2615 echo "configure: failed program was:" >&5
2616 cat conftest.$ac_ext >&5
2617 rm -rf conftest*
2618 echo "$ac_t""no" 1>&6
2619
2620 fi
2621 rm -f conftest*
2622
2623 else
2624 echo "$ac_t""no" 1>&6
2625 fi
2626
2627 else
2628 echo "$ac_t""no" 1>&6
2629 fi
2630
2631
2632 LIBS="$LIBS $Xext_lib"
2633
2634 SLIT=""
2635 echo $ac_n "checking whether to include the Slit""... $ac_c" 1>&6
2636 echo "configure:2637: checking whether to include the Slit" >&5
2637 # Check whether --enable-slit or --disable-slit was given.
2638 if test "${enable_slit+set}" = set; then
2639 enableval="$enable_slit"
2640 if test x$enableval = "xyes"; then
2641 echo "$ac_t""yes" 1>&6
2642 SLIT="-DSLIT"
2643 else
2644 echo "$ac_t""no" 1>&6
2645 fi
2646 else
2647 echo "$ac_t""yes" 1>&6
2648 SLIT="-DSLIT"
2649
2650 fi
2651
2652
2653
2654 NEWWMSPEC=""
2655 echo $ac_n "checking whether to include the new WM Spec (DOES NOTHING)""... $ac_c" 1>&6
2656 echo "configure:2657: checking whether to include the new WM Spec (DOES NOTHING)" >&5
2657 # Check whether --enable-newspec or --disable-newspec was given.
2658 if test "${enable_newspec+set}" = set; then
2659 enableval="$enable_newspec"
2660 if test x$enableval = "xyes"; then
2661 echo "$ac_t""yes" 1>&6
2662 NEWWMSPEC="-DNEWWMSPEC"
2663 else
2664 echo "$ac_t""no" 1>&6
2665 fi
2666 else
2667 echo "$ac_t""no" 1>&6
2668
2669 fi
2670
2671
2672
2673
2674 INTERLACE=""
2675 echo $ac_n "checking whether to include interlacing image code""... $ac_c" 1>&6
2676 echo "configure:2677: checking whether to include interlacing image code" >&5
2677 # Check whether --enable-interlace or --disable-interlace was given.
2678 if test "${enable_interlace+set}" = set; then
2679 enableval="$enable_interlace"
2680 if test x$enableval = "xyes"; then
2681 echo "$ac_t""yes" 1>&6
2682 INTERLACE="-DINTERLACE"
2683 else
2684 echo "$ac_t""no" 1>&6
2685 fi
2686 else
2687 echo "$ac_t""yes" 1>&6
2688 INTERLACE="-DINTERLACE"
2689
2690 fi
2691
2692
2693
2694 ORDEREDPSEUDO=""
2695 echo $ac_n "checking whether to include Pseudocolor ordered dithering code""... $ac_c" 1>&6
2696 echo "configure:2697: checking whether to include Pseudocolor ordered dithering code" >&5
2697 # Check whether --enable-ordered-pseudo or --disable-ordered-pseudo was given.
2698 if test "${enable_ordered_pseudo+set}" = set; then
2699 enableval="$enable_ordered_pseudo"
2700 if test x$enableval = "xyes"; then
2701 echo "$ac_t""yes" 1>&6
2702 ORDEREDPSEUDO="-DORDEREDPSEUDO"
2703 else
2704 echo "$ac_t""no" 1>&6
2705 fi
2706 else
2707 echo "$ac_t""no" 1>&6
2708
2709 fi
2710
2711
2712
2713 CLOBBER=""
2714 echo $ac_n "checking whether to intercept mouse events to clients""... $ac_c" 1>&6
2715 echo "configure:2716: checking whether to intercept mouse events to clients" >&5
2716 # Check whether --enable-clobber or --disable-clobber was given.
2717 if test "${enable_clobber+set}" = set; then
2718 enableval="$enable_clobber"
2719 if test x$enableval = "xno"; then
2720 echo "$ac_t""no" 1>&6
2721 CLOBBER="-DNOCLOBBER"
2722 else
2723 echo "$ac_t""yes" 1>&6
2724 fi
2725 else
2726 echo "$ac_t""no" 1>&6
2727
2728 fi
2729
2730
2731
2732 DEBUG=""
2733 echo $ac_n "checking whether to include verbose debugging code""... $ac_c" 1>&6
2734 echo "configure:2735: checking whether to include verbose debugging code" >&5
2735 # Check whether --enable-debug or --disable-debug was given.
2736 if test "${enable_debug+set}" = set; then
2737 enableval="$enable_debug"
2738 if test x$enableval = "xyes"; then
2739 echo "$ac_t""yes" 1>&6
2740 DEBUG="-DDEBUG -Wall -W -pedantic"
2741 else
2742 echo "$ac_t""no" 1>&6
2743 fi
2744 else
2745 echo "$ac_t""no" 1>&6
2746
2747 fi
2748
2749
2750
2751 NLS=""
2752 echo $ac_n "checking whether to include NLS support""... $ac_c" 1>&6
2753 echo "configure:2754: checking whether to include NLS support" >&5
2754 # Check whether --enable-nls or --disable-nls was given.
2755 if test "${enable_nls+set}" = set; then
2756 enableval="$enable_nls"
2757 if test x$enableval = "xyes"; then
2758 echo "$ac_t""yes" 1>&6
2759 NLS="-DNLS"
2760 else
2761 echo "$ac_t""no" 1>&6
2762 fi
2763 else
2764 echo "$ac_t""yes" 1>&6
2765 NLS="-DNLS"
2766
2767 fi
2768
2769
2770
2771 echo $ac_n "checking for setlocale in -lxpg4""... $ac_c" 1>&6
2772 echo "configure:2773: checking for setlocale in -lxpg4" >&5
2773 ac_lib_var=`echo xpg4'_'setlocale | sed 'y%./+-%__p_%'`
2774 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2775 echo $ac_n "(cached) $ac_c" 1>&6
2776 else
2777 ac_save_LIBS="$LIBS"
2778 LIBS="-lxpg4 $LIBS"
2779 cat > conftest.$ac_ext <<EOF
2780 #line 2781 "configure"
2781 #include "confdefs.h"
2782 /* Override any gcc2 internal prototype to avoid an error. */
2783 /* We use char because int might match the return type of a gcc2
2784 builtin and then its argument prototype would still apply. */
2785 char setlocale();
2786
2787 int main() {
2788 setlocale()
2789 ; return 0; }
2790 EOF
2791 if { (eval echo configure:2792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2792 rm -rf conftest*
2793 eval "ac_cv_lib_$ac_lib_var=yes"
2794 else
2795 echo "configure: failed program was:" >&5
2796 cat conftest.$ac_ext >&5
2797 rm -rf conftest*
2798 eval "ac_cv_lib_$ac_lib_var=no"
2799 fi
2800 rm -f conftest*
2801 LIBS="$ac_save_LIBS"
2802
2803 fi
2804 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2805 echo "$ac_t""yes" 1>&6
2806 LIBS="$LIBS -lxpg4"
2807 else
2808 echo "$ac_t""no" 1>&6
2809 fi
2810
2811
2812 for ac_prog in gencat
2813 do
2814 # Extract the first word of "$ac_prog", so it can be a program name with args.
2815 set dummy $ac_prog; ac_word=$2
2816 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2817 echo "configure:2818: checking for $ac_word" >&5
2818 if eval "test \"`echo '$''{'ac_cv_prog_gencat_cmd'+set}'`\" = set"; then
2819 echo $ac_n "(cached) $ac_c" 1>&6
2820 else
2821 if test -n "$gencat_cmd"; then
2822 ac_cv_prog_gencat_cmd="$gencat_cmd" # Let the user override the test.
2823 else
2824 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2825 ac_dummy="$PATH"
2826 for ac_dir in $ac_dummy; do
2827 test -z "$ac_dir" && ac_dir=.
2828 if test -f $ac_dir/$ac_word; then
2829 ac_cv_prog_gencat_cmd="$ac_prog"
2830 break
2831 fi
2832 done
2833 IFS="$ac_save_ifs"
2834 fi
2835 fi
2836 gencat_cmd="$ac_cv_prog_gencat_cmd"
2837 if test -n "$gencat_cmd"; then
2838 echo "$ac_t""$gencat_cmd" 1>&6
2839 else
2840 echo "$ac_t""no" 1>&6
2841 fi
2842
2843 test -n "$gencat_cmd" && break
2844 done
2845
2846 if test x$gencat_cmd = "x"; then
2847 NLS=""
2848 fi
2849
2850
2851 TIMEDCACHE=""
2852 echo $ac_n "checking whether to use the new timed pixmap cache""... $ac_c" 1>&6
2853 echo "configure:2854: checking whether to use the new timed pixmap cache" >&5
2854 # Check whether --enable-timed-cache or --disable-timed-cache was given.
2855 if test "${enable_timed_cache+set}" = set; then
2856 enableval="$enable_timed_cache"
2857 if test x$enableval = "xyes"; then
2858 echo "$ac_t""yes" 1>&6
2859 TIMEDCACHE="-DTIMEDCACHE"
2860 else
2861 echo "$ac_t""no" 1>&6
2862 fi
2863 else
2864 echo "$ac_t""yes" 1>&6
2865 TIMEDCACHE="-DTIMEDCACHE"
2866
2867 fi
2868
2869
2870
2871 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2872 echo "configure:2873: checking return type of signal handlers" >&5
2873 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2874 echo $ac_n "(cached) $ac_c" 1>&6
2875 else
2876 cat > conftest.$ac_ext <<EOF
2877 #line 2878 "configure"
2878 #include "confdefs.h"
2879 #include <sys/types.h>
2880 #include <signal.h>
2881 #ifdef signal
2882 #undef signal
2883 #endif
2884 #ifdef __cplusplus
2885 extern "C" void (*signal (int, void (*)(int)))(int);
2886 #else
2887 void (*signal ()) ();
2888 #endif
2889
2890 int main() {
2891 int i;
2892 ; return 0; }
2893 EOF
2894 if { (eval echo configure:2895: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2895 rm -rf conftest*
2896 ac_cv_type_signal=void
2897 else
2898 echo "configure: failed program was:" >&5
2899 cat conftest.$ac_ext >&5
2900 rm -rf conftest*
2901 ac_cv_type_signal=int
2902 fi
2903 rm -f conftest*
2904 fi
2905
2906 echo "$ac_t""$ac_cv_type_signal" 1>&6
2907 cat >> confdefs.h <<EOF
2908 #define RETSIGTYPE $ac_cv_type_signal
2909 EOF
2910
2911
2912
2913 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
2914 echo "configure:2915: checking whether to enable maintainer-specific portions of Makefiles" >&5
2915 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2916 if test "${enable_maintainer_mode+set}" = set; then
2917 enableval="$enable_maintainer_mode"
2918 USE_MAINTAINER_MODE=$enableval
2919 else
2920 USE_MAINTAINER_MODE=no
2921 fi
2922
2923 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
2924
2925
2926 if test $USE_MAINTAINER_MODE = yes; then
2927 MAINTAINER_MODE_TRUE=
2928 MAINTAINER_MODE_FALSE='#'
2929 else
2930 MAINTAINER_MODE_TRUE='#'
2931 MAINTAINER_MODE_FALSE=
2932 fi
2933 MAINT=$MAINTAINER_MODE_TRUE
2934
2935
2936
2937 echo "$ac_t""" 1>&6
2938 echo "$ac_t"" $PACKAGE version $VERSION configured successfully." 1>&6
2939 echo "$ac_t""" 1>&6
2940 echo "$ac_t""Using '$prefix' for installation." 1>&6
2941 echo "$ac_t""Using '$CXX' for C++ compiler." 1>&6
2942 echo "$ac_t""Building with '$CXXFLAGS' for C++ compiler flags." 1>&6
2943 echo "$ac_t""Building with '$LIBS' for linker flags." 1>&6
2944 echo "$ac_t""" 1>&6
2945
2946
2947
2948
2949 trap '' 1 2 15
2950 cat > confcache <<\EOF
2951 # This file is a shell script that caches the results of configure
2952 # tests run on this system so they can be shared between configure
2953 # scripts and configure runs. It is not useful on other systems.
2954 # If it contains results you don't want to keep, you may remove or edit it.
2955 #
2956 # By default, configure uses ./config.cache as the cache file,
2957 # creating it if it does not exist already. You can give configure
2958 # the --cache-file=FILE option to use a different cache file; that is
2959 # what configure does when it calls configure scripts in
2960 # subdirectories, so they share the cache.
2961 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2962 # config.status only pays attention to the cache file if you give it the
2963 # --recheck option to rerun configure.
2964 #
2965 EOF
2966 # The following way of writing the cache mishandles newlines in values,
2967 # but we know of no workaround that is simple, portable, and efficient.
2968 # So, don't put newlines in cache variables' values.
2969 # Ultrix sh set writes to stderr and can't be redirected directly,
2970 # and sets the high bit in the cache file unless we assign to the vars.
2971 (set) 2>&1 |
2972 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2973 *ac_space=\ *)
2974 # `set' does not quote correctly, so add quotes (double-quote substitution
2975 # turns \\\\ into \\, and sed turns \\ into \).
2976 sed -n \
2977 -e "s/'/'\\\\''/g" \
2978 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2979 ;;
2980 *)
2981 # `set' quotes correctly as required by POSIX, so do not add quotes.
2982 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2983 ;;
2984 esac >> confcache
2985 if cmp -s $cache_file confcache; then
2986 :
2987 else
2988 if test -w $cache_file; then
2989 echo "updating cache $cache_file"
2990 cat confcache > $cache_file
2991 else
2992 echo "not updating unwritable cache $cache_file"
2993 fi
2994 fi
2995 rm -f confcache
2996
2997 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2998
2999 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3000 # Let make expand exec_prefix.
3001 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3002
3003 # Any assignment to VPATH causes Sun make to only execute
3004 # the first set of double-colon rules, so remove it if not needed.
3005 # If there is a colon in the path, we need to keep it.
3006 if test "x$srcdir" = x.; then
3007 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3008 fi
3009
3010 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3011
3012 DEFS=-DHAVE_CONFIG_H
3013
3014 # Without the "./", some shells look in PATH for config.status.
3015 : ${CONFIG_STATUS=./config.status}
3016
3017 echo creating $CONFIG_STATUS
3018 rm -f $CONFIG_STATUS
3019 cat > $CONFIG_STATUS <<EOF
3020 #! /bin/sh
3021 # Generated automatically by configure.
3022 # Run this file to recreate the current configuration.
3023 # This directory was configured as follows,
3024 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3025 #
3026 # $0 $ac_configure_args
3027 #
3028 # Compiler output produced by configure, useful for debugging
3029 # configure, is in ./config.log if it exists.
3030
3031 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3032 for ac_option
3033 do
3034 case "\$ac_option" in
3035 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3036 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3037 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3038 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3039 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3040 exit 0 ;;
3041 -help | --help | --hel | --he | --h)
3042 echo "\$ac_cs_usage"; exit 0 ;;
3043 *) echo "\$ac_cs_usage"; exit 1 ;;
3044 esac
3045 done
3046
3047 ac_given_srcdir=$srcdir
3048 ac_given_INSTALL="$INSTALL"
3049
3050 trap 'rm -fr `echo "Makefile
3051 src/Makefile
3052 util/Makefile
3053 data/Makefile
3054 data/styles/Makefile
3055 doc/Makefile
3056 nls/Makefile
3057 nls/C/Makefile
3058 nls/da_DK/Makefile
3059 nls/de_DE/Makefile
3060 nls/es_ES/Makefile
3061 nls/et_EE/Makefile
3062 nls/fr_FR/Makefile
3063 nls/it_IT/Makefile
3064 nls/ja_JP/Makefile
3065 nls/nl_NL/Makefile
3066 nls/pt_BR/Makefile
3067 nls/ru_RU/Makefile
3068 nls/sl_SI/Makefile
3069 nls/sv_SE/Makefile
3070 nls/tr_TR/Makefile
3071 nls/zh_CN/Makefile
3072 version.h config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3073 EOF
3074 cat >> $CONFIG_STATUS <<EOF
3075
3076 # Protect against being on the right side of a sed subst in config.status.
3077 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3078 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3079 $ac_vpsub
3080 $extrasub
3081 s%@SHELL@%$SHELL%g
3082 s%@CFLAGS@%$CFLAGS%g
3083 s%@CPPFLAGS@%$CPPFLAGS%g
3084 s%@CXXFLAGS@%$CXXFLAGS%g
3085 s%@FFLAGS@%$FFLAGS%g
3086 s%@DEFS@%$DEFS%g
3087 s%@LDFLAGS@%$LDFLAGS%g
3088 s%@LIBS@%$LIBS%g
3089 s%@exec_prefix@%$exec_prefix%g
3090 s%@prefix@%$prefix%g
3091 s%@program_transform_name@%$program_transform_name%g
3092 s%@bindir@%$bindir%g
3093 s%@sbindir@%$sbindir%g
3094 s%@libexecdir@%$libexecdir%g
3095 s%@datadir@%$datadir%g
3096 s%@sysconfdir@%$sysconfdir%g
3097 s%@sharedstatedir@%$sharedstatedir%g
3098 s%@localstatedir@%$localstatedir%g
3099 s%@libdir@%$libdir%g
3100 s%@includedir@%$includedir%g
3101 s%@oldincludedir@%$oldincludedir%g
3102 s%@infodir@%$infodir%g
3103 s%@mandir@%$mandir%g
3104 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3105 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3106 s%@INSTALL_DATA@%$INSTALL_DATA%g
3107 s%@PACKAGE@%$PACKAGE%g
3108 s%@VERSION@%$VERSION%g
3109 s%@ACLOCAL@%$ACLOCAL%g
3110 s%@AUTOCONF@%$AUTOCONF%g
3111 s%@AUTOMAKE@%$AUTOMAKE%g
3112 s%@AUTOHEADER@%$AUTOHEADER%g
3113 s%@MAKEINFO@%$MAKEINFO%g
3114 s%@SET_MAKE@%$SET_MAKE%g
3115 s%@CC@%$CC%g
3116 s%@CXX@%$CXX%g
3117 s%@regex_cmd@%$regex_cmd%g
3118 s%@CPP@%$CPP%g
3119 s%@X_CFLAGS@%$X_CFLAGS%g
3120 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
3121 s%@X_LIBS@%$X_LIBS%g
3122 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
3123 s%@SHAPE@%$SHAPE%g
3124 s%@SLIT@%$SLIT%g
3125 s%@NEWWMSPEC@%$NEWWMSPEC%g
3126 s%@INTERLACE@%$INTERLACE%g
3127 s%@ORDEREDPSEUDO@%$ORDEREDPSEUDO%g
3128 s%@CLOBBER@%$CLOBBER%g
3129 s%@DEBUG@%$DEBUG%g
3130 s%@NLS@%$NLS%g
3131 s%@gencat_cmd@%$gencat_cmd%g
3132 s%@TIMEDCACHE@%$TIMEDCACHE%g
3133 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
3134 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
3135 s%@MAINT@%$MAINT%g
3136
3137 CEOF
3138 EOF
3139
3140 cat >> $CONFIG_STATUS <<\EOF
3141
3142 # Split the substitutions into bite-sized pieces for seds with
3143 # small command number limits, like on Digital OSF/1 and HP-UX.
3144 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3145 ac_file=1 # Number of current file.
3146 ac_beg=1 # First line for current file.
3147 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3148 ac_more_lines=:
3149 ac_sed_cmds=""
3150 while $ac_more_lines; do
3151 if test $ac_beg -gt 1; then
3152 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3153 else
3154 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3155 fi
3156 if test ! -s conftest.s$ac_file; then
3157 ac_more_lines=false
3158 rm -f conftest.s$ac_file
3159 else
3160 if test -z "$ac_sed_cmds"; then
3161 ac_sed_cmds="sed -f conftest.s$ac_file"
3162 else
3163 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3164 fi
3165 ac_file=`expr $ac_file + 1`
3166 ac_beg=$ac_end
3167 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3168 fi
3169 done
3170 if test -z "$ac_sed_cmds"; then
3171 ac_sed_cmds=cat
3172 fi
3173 EOF
3174
3175 cat >> $CONFIG_STATUS <<EOF
3176
3177 CONFIG_FILES=\${CONFIG_FILES-"Makefile
3178 src/Makefile
3179 util/Makefile
3180 data/Makefile
3181 data/styles/Makefile
3182 doc/Makefile
3183 nls/Makefile
3184 nls/C/Makefile
3185 nls/da_DK/Makefile
3186 nls/de_DE/Makefile
3187 nls/es_ES/Makefile
3188 nls/et_EE/Makefile
3189 nls/fr_FR/Makefile
3190 nls/it_IT/Makefile
3191 nls/ja_JP/Makefile
3192 nls/nl_NL/Makefile
3193 nls/pt_BR/Makefile
3194 nls/ru_RU/Makefile
3195 nls/sl_SI/Makefile
3196 nls/sv_SE/Makefile
3197 nls/tr_TR/Makefile
3198 nls/zh_CN/Makefile
3199 version.h"}
3200 EOF
3201 cat >> $CONFIG_STATUS <<\EOF
3202 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3203 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3204 case "$ac_file" in
3205 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3206 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3207 *) ac_file_in="${ac_file}.in" ;;
3208 esac
3209
3210 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3211
3212 # Remove last slash and all that follows it. Not all systems have dirname.
3213 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3214 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3215 # The file is in a subdirectory.
3216 test ! -d "$ac_dir" && mkdir "$ac_dir"
3217 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3218 # A "../" for each directory in $ac_dir_suffix.
3219 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3220 else
3221 ac_dir_suffix= ac_dots=
3222 fi
3223
3224 case "$ac_given_srcdir" in
3225 .) srcdir=.
3226 if test -z "$ac_dots"; then top_srcdir=.
3227 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3228 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3229 *) # Relative path.
3230 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3231 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3232 esac
3233
3234 case "$ac_given_INSTALL" in
3235 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3236 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3237 esac
3238
3239 echo creating "$ac_file"
3240 rm -f "$ac_file"
3241 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3242 case "$ac_file" in
3243 *Makefile*) ac_comsub="1i\\
3244 # $configure_input" ;;
3245 *) ac_comsub= ;;
3246 esac
3247
3248 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3249 sed -e "$ac_comsub
3250 s%@configure_input@%$configure_input%g
3251 s%@srcdir@%$srcdir%g
3252 s%@top_srcdir@%$top_srcdir%g
3253 s%@INSTALL@%$INSTALL%g
3254 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3255 fi; done
3256 rm -f conftest.s*
3257
3258 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3259 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3260 #
3261 # ac_d sets the value in "#define NAME VALUE" lines.
3262 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3263 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3264 ac_dC='\3'
3265 ac_dD='%g'
3266 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3267 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3268 ac_uB='\([ ]\)%\1#\2define\3'
3269 ac_uC=' '
3270 ac_uD='\4%g'
3271 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3272 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3273 ac_eB='$%\1#\2define\3'
3274 ac_eC=' '
3275 ac_eD='%g'
3276
3277 if test "${CONFIG_HEADERS+set}" != set; then
3278 EOF
3279 cat >> $CONFIG_STATUS <<EOF
3280 CONFIG_HEADERS="config.h"
3281 EOF
3282 cat >> $CONFIG_STATUS <<\EOF
3283 fi
3284 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3285 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3286 case "$ac_file" in
3287 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3288 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3289 *) ac_file_in="${ac_file}.in" ;;
3290 esac
3291
3292 echo creating $ac_file
3293
3294 rm -f conftest.frag conftest.in conftest.out
3295 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3296 cat $ac_file_inputs > conftest.in
3297
3298 EOF
3299
3300 # Transform confdefs.h into a sed script conftest.vals that substitutes
3301 # the proper values into config.h.in to produce config.h. And first:
3302 # Protect against being on the right side of a sed subst in config.status.
3303 # Protect against being in an unquoted here document in config.status.
3304 rm -f conftest.vals
3305 cat > conftest.hdr <<\EOF
3306 s/[\\&%]/\\&/g
3307 s%[\\$`]%\\&%g
3308 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3309 s%ac_d%ac_u%gp
3310 s%ac_u%ac_e%gp
3311 EOF
3312 sed -n -f conftest.hdr confdefs.h > conftest.vals
3313 rm -f conftest.hdr
3314
3315 # This sed command replaces #undef with comments. This is necessary, for
3316 # example, in the case of _POSIX_SOURCE, which is predefined and required
3317 # on some systems where configure will not decide to define it.
3318 cat >> conftest.vals <<\EOF
3319 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3320 EOF
3321
3322 # Break up conftest.vals because some shells have a limit on
3323 # the size of here documents, and old seds have small limits too.
3324
3325 rm -f conftest.tail
3326 while :
3327 do
3328 ac_lines=`grep -c . conftest.vals`
3329 # grep -c gives empty output for an empty file on some AIX systems.
3330 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3331 # Write a limited-size here document to conftest.frag.
3332 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3333 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3334 echo 'CEOF
3335 sed -f conftest.frag conftest.in > conftest.out
3336 rm -f conftest.in
3337 mv conftest.out conftest.in
3338 ' >> $CONFIG_STATUS
3339 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3340 rm -f conftest.vals
3341 mv conftest.tail conftest.vals
3342 done
3343 rm -f conftest.vals
3344
3345 cat >> $CONFIG_STATUS <<\EOF
3346 rm -f conftest.frag conftest.h
3347 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3348 cat conftest.in >> conftest.h
3349 rm -f conftest.in
3350 if cmp -s $ac_file conftest.h 2>/dev/null; then
3351 echo "$ac_file is unchanged"
3352 rm -f conftest.h
3353 else
3354 # Remove last slash and all that follows it. Not all systems have dirname.
3355 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3356 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3357 # The file is in a subdirectory.
3358 test ! -d "$ac_dir" && mkdir "$ac_dir"
3359 fi
3360 rm -f $ac_file
3361 mv conftest.h $ac_file
3362 fi
3363 fi; done
3364
3365 EOF
3366 cat >> $CONFIG_STATUS <<EOF
3367
3368
3369 EOF
3370 cat >> $CONFIG_STATUS <<\EOF
3371 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
3372
3373 exit 0
3374 EOF
3375 chmod +x $CONFIG_STATUS
3376 rm -fr confdefs* $ac_clean_files
3377 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3378
This page took 0.202789 seconds and 3 git commands to generate.