Fixed a bug with icon position calculation when redocking in clip,
[wmaker-crm.git] / configure
blobbf86056797d4e3e77324d64d5b8e25b4169768d1
1 #! /bin/sh
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.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --enable-shared build shared libraries [default=yes]
16 --enable-shared=PKGS only build shared libraries if the current package
17 appears as an element in the PKGS list"
18 ac_help="$ac_help
19 --enable-static build static libraries [default=yes]
20 --enable-static=PKGS only build shared libraries if the current package
21 appears as an element in the PKGS list"
22 ac_help="$ac_help
23 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
24 ac_help="$ac_help
25 --with-libs-from pass compiler flags to look for libraries"
26 ac_help="$ac_help
27 --with-incs-from pass compiler flags to look for header files"
28 ac_help="$ac_help
29 --enable-kanji multibyte character support (kanji, Korean etc.)"
30 ac_help="$ac_help
31 --with-nlsdir=PATH specify where the locale stuff should go "
32 ac_help="$ac_help
33 --enable-gnome enable stuff needed for GNOME "
34 ac_help="$ac_help
35 --enable-kde enable support for KDE window manager (kwm) hints "
36 ac_help="$ac_help
37 --enable-openlook enable support for OPEN LOOK(tm) (olwm) hints "
38 ac_help="$ac_help
39 --enable-lite disable stuff duplicated in KDE/GNOME "
40 ac_help="$ac_help
41 --with-x use the X Window System"
42 ac_help="$ac_help
43 --disable-locale disable use of X locale support"
44 ac_help="$ac_help
45 --enable-modelock XKB keyboard language status support"
46 ac_help="$ac_help
47 --disable-shape disable shaped window extension support"
48 ac_help="$ac_help
49 --disable-shm disable usage of MIT-SHM extension"
50 ac_help="$ac_help
51 --disable-xpm disable use of XPM pixmaps through libXpm"
52 ac_help="$ac_help
53 --disable-png disable PNG support through libpng"
54 ac_help="$ac_help
55 --disable-jpeg disable JPEG support through libjpeg"
56 ac_help="$ac_help
57 --disable-gif disable GIF support through libgif or libungif"
58 ac_help="$ac_help
59 --disable-tiff disable use of TIFF images through libtiff"
60 ac_help="$ac_help
61 --enable-debug enable debugging "
62 ac_help="$ac_help
63 --disable-sound disable sound support "
64 ac_help="$ac_help
65 --with-pixmapdir=PATH specify where pixmaps are located [DATADIR/pixmaps]"
66 ac_help="$ac_help
67 --with-appspath=PATH specify the directory for GNUstep applications"
68 ac_help="$ac_help
69 --enable-single-icon use single application icon per WM_INSTANCE+WM_CLASS
72 # Initialize some variables set by options.
73 # The variables have the same names as the options, with
74 # dashes changed to underlines.
75 build=NONE
76 cache_file=./config.cache
77 exec_prefix=NONE
78 host=NONE
79 no_create=
80 nonopt=NONE
81 no_recursion=
82 prefix=NONE
83 program_prefix=NONE
84 program_suffix=NONE
85 program_transform_name=s,x,x,
86 silent=
87 site=
88 srcdir=
89 target=NONE
90 verbose=
91 x_includes=NONE
92 x_libraries=NONE
93 bindir='${exec_prefix}/bin'
94 sbindir='${exec_prefix}/sbin'
95 libexecdir='${exec_prefix}/libexec'
96 datadir='${prefix}/share'
97 sysconfdir='${prefix}/etc'
98 sharedstatedir='${prefix}/com'
99 localstatedir='${prefix}/var'
100 libdir='${exec_prefix}/lib'
101 includedir='${prefix}/include'
102 oldincludedir='/usr/include'
103 infodir='${prefix}/info'
104 mandir='${prefix}/man'
106 # Initialize some other variables.
107 subdirs=
108 MFLAGS= MAKEFLAGS=
109 SHELL=${CONFIG_SHELL-/bin/sh}
110 # Maximum number of lines to put in a shell here document.
111 ac_max_here_lines=12
113 ac_prev=
114 for ac_option
117 # If the previous option needs an argument, assign it.
118 if test -n "$ac_prev"; then
119 eval "$ac_prev=\$ac_option"
120 ac_prev=
121 continue
124 case "$ac_option" in
125 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
126 *) ac_optarg= ;;
127 esac
129 # Accept the important Cygnus configure options, so we can diagnose typos.
131 case "$ac_option" in
133 -bindir | --bindir | --bindi | --bind | --bin | --bi)
134 ac_prev=bindir ;;
135 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
136 bindir="$ac_optarg" ;;
138 -build | --build | --buil | --bui | --bu)
139 ac_prev=build ;;
140 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
141 build="$ac_optarg" ;;
143 -cache-file | --cache-file | --cache-fil | --cache-fi \
144 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
145 ac_prev=cache_file ;;
146 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
147 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
148 cache_file="$ac_optarg" ;;
150 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
151 ac_prev=datadir ;;
152 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
153 | --da=*)
154 datadir="$ac_optarg" ;;
156 -disable-* | --disable-*)
157 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
158 # Reject names that are not valid shell variable names.
159 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
160 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
162 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
163 eval "enable_${ac_feature}=no" ;;
165 -enable-* | --enable-*)
166 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
167 # Reject names that are not valid shell variable names.
168 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
169 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
171 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
172 case "$ac_option" in
173 *=*) ;;
174 *) ac_optarg=yes ;;
175 esac
176 eval "enable_${ac_feature}='$ac_optarg'" ;;
178 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
179 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
180 | --exec | --exe | --ex)
181 ac_prev=exec_prefix ;;
182 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
183 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
184 | --exec=* | --exe=* | --ex=*)
185 exec_prefix="$ac_optarg" ;;
187 -gas | --gas | --ga | --g)
188 # Obsolete; use --with-gas.
189 with_gas=yes ;;
191 -help | --help | --hel | --he)
192 # Omit some internal or obsolete options to make the list less imposing.
193 # This message is too long to be a string in the A/UX 3.1 sh.
194 cat << EOF
195 Usage: configure [options] [host]
196 Options: [defaults in brackets after descriptions]
197 Configuration:
198 --cache-file=FILE cache test results in FILE
199 --help print this message
200 --no-create do not create output files
201 --quiet, --silent do not print \`checking...' messages
202 --version print the version of autoconf that created configure
203 Directory and file names:
204 --prefix=PREFIX install architecture-independent files in PREFIX
205 [$ac_default_prefix]
206 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
207 [same as prefix]
208 --bindir=DIR user executables in DIR [EPREFIX/bin]
209 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
210 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
211 --datadir=DIR read-only architecture-independent data in DIR
212 [PREFIX/share]
213 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
214 --sharedstatedir=DIR modifiable architecture-independent data in DIR
215 [PREFIX/com]
216 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
217 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
218 --includedir=DIR C header files in DIR [PREFIX/include]
219 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
220 --infodir=DIR info documentation in DIR [PREFIX/info]
221 --mandir=DIR man documentation in DIR [PREFIX/man]
222 --srcdir=DIR find the sources in DIR [configure dir or ..]
223 --program-prefix=PREFIX prepend PREFIX to installed program names
224 --program-suffix=SUFFIX append SUFFIX to installed program names
225 --program-transform-name=PROGRAM
226 run sed PROGRAM on installed program names
228 cat << EOF
229 Host type:
230 --build=BUILD configure for building on BUILD [BUILD=HOST]
231 --host=HOST configure for HOST [guessed]
232 --target=TARGET configure for TARGET [TARGET=HOST]
233 Features and packages:
234 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
235 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
236 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
237 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
238 --x-includes=DIR X include files are in DIR
239 --x-libraries=DIR X library files are in DIR
241 if test -n "$ac_help"; then
242 echo "--enable and --with options recognized:$ac_help"
244 exit 0 ;;
246 -host | --host | --hos | --ho)
247 ac_prev=host ;;
248 -host=* | --host=* | --hos=* | --ho=*)
249 host="$ac_optarg" ;;
251 -includedir | --includedir | --includedi | --included | --include \
252 | --includ | --inclu | --incl | --inc)
253 ac_prev=includedir ;;
254 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
255 | --includ=* | --inclu=* | --incl=* | --inc=*)
256 includedir="$ac_optarg" ;;
258 -infodir | --infodir | --infodi | --infod | --info | --inf)
259 ac_prev=infodir ;;
260 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
261 infodir="$ac_optarg" ;;
263 -libdir | --libdir | --libdi | --libd)
264 ac_prev=libdir ;;
265 -libdir=* | --libdir=* | --libdi=* | --libd=*)
266 libdir="$ac_optarg" ;;
268 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
269 | --libexe | --libex | --libe)
270 ac_prev=libexecdir ;;
271 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
272 | --libexe=* | --libex=* | --libe=*)
273 libexecdir="$ac_optarg" ;;
275 -localstatedir | --localstatedir | --localstatedi | --localstated \
276 | --localstate | --localstat | --localsta | --localst \
277 | --locals | --local | --loca | --loc | --lo)
278 ac_prev=localstatedir ;;
279 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
280 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
281 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
282 localstatedir="$ac_optarg" ;;
284 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
285 ac_prev=mandir ;;
286 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
287 mandir="$ac_optarg" ;;
289 -nfp | --nfp | --nf)
290 # Obsolete; use --without-fp.
291 with_fp=no ;;
293 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
294 | --no-cr | --no-c)
295 no_create=yes ;;
297 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
298 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
299 no_recursion=yes ;;
301 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
302 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
303 | --oldin | --oldi | --old | --ol | --o)
304 ac_prev=oldincludedir ;;
305 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
306 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
307 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
308 oldincludedir="$ac_optarg" ;;
310 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
311 ac_prev=prefix ;;
312 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
313 prefix="$ac_optarg" ;;
315 -program-prefix | --program-prefix | --program-prefi | --program-pref \
316 | --program-pre | --program-pr | --program-p)
317 ac_prev=program_prefix ;;
318 -program-prefix=* | --program-prefix=* | --program-prefi=* \
319 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
320 program_prefix="$ac_optarg" ;;
322 -program-suffix | --program-suffix | --program-suffi | --program-suff \
323 | --program-suf | --program-su | --program-s)
324 ac_prev=program_suffix ;;
325 -program-suffix=* | --program-suffix=* | --program-suffi=* \
326 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
327 program_suffix="$ac_optarg" ;;
329 -program-transform-name | --program-transform-name \
330 | --program-transform-nam | --program-transform-na \
331 | --program-transform-n | --program-transform- \
332 | --program-transform | --program-transfor \
333 | --program-transfo | --program-transf \
334 | --program-trans | --program-tran \
335 | --progr-tra | --program-tr | --program-t)
336 ac_prev=program_transform_name ;;
337 -program-transform-name=* | --program-transform-name=* \
338 | --program-transform-nam=* | --program-transform-na=* \
339 | --program-transform-n=* | --program-transform-=* \
340 | --program-transform=* | --program-transfor=* \
341 | --program-transfo=* | --program-transf=* \
342 | --program-trans=* | --program-tran=* \
343 | --progr-tra=* | --program-tr=* | --program-t=*)
344 program_transform_name="$ac_optarg" ;;
346 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
347 | -silent | --silent | --silen | --sile | --sil)
348 silent=yes ;;
350 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
351 ac_prev=sbindir ;;
352 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
353 | --sbi=* | --sb=*)
354 sbindir="$ac_optarg" ;;
356 -sharedstatedir | --sharedstatedir | --sharedstatedi \
357 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
358 | --sharedst | --shareds | --shared | --share | --shar \
359 | --sha | --sh)
360 ac_prev=sharedstatedir ;;
361 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
362 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
363 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
364 | --sha=* | --sh=*)
365 sharedstatedir="$ac_optarg" ;;
367 -site | --site | --sit)
368 ac_prev=site ;;
369 -site=* | --site=* | --sit=*)
370 site="$ac_optarg" ;;
372 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
373 ac_prev=srcdir ;;
374 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
375 srcdir="$ac_optarg" ;;
377 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
378 | --syscon | --sysco | --sysc | --sys | --sy)
379 ac_prev=sysconfdir ;;
380 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
381 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
382 sysconfdir="$ac_optarg" ;;
384 -target | --target | --targe | --targ | --tar | --ta | --t)
385 ac_prev=target ;;
386 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
387 target="$ac_optarg" ;;
389 -v | -verbose | --verbose | --verbos | --verbo | --verb)
390 verbose=yes ;;
392 -version | --version | --versio | --versi | --vers)
393 echo "configure generated by autoconf version 2.13"
394 exit 0 ;;
396 -with-* | --with-*)
397 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
398 # Reject names that are not valid shell variable names.
399 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
400 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
402 ac_package=`echo $ac_package| sed 's/-/_/g'`
403 case "$ac_option" in
404 *=*) ;;
405 *) ac_optarg=yes ;;
406 esac
407 eval "with_${ac_package}='$ac_optarg'" ;;
409 -without-* | --without-*)
410 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
411 # Reject names that are not valid shell variable names.
412 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
413 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
415 ac_package=`echo $ac_package| sed 's/-/_/g'`
416 eval "with_${ac_package}=no" ;;
418 --x)
419 # Obsolete; use --with-x.
420 with_x=yes ;;
422 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
423 | --x-incl | --x-inc | --x-in | --x-i)
424 ac_prev=x_includes ;;
425 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
426 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
427 x_includes="$ac_optarg" ;;
429 -x-libraries | --x-libraries | --x-librarie | --x-librari \
430 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
431 ac_prev=x_libraries ;;
432 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
433 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
434 x_libraries="$ac_optarg" ;;
436 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
440 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
441 echo "configure: warning: $ac_option: invalid host type" 1>&2
443 if test "x$nonopt" != xNONE; then
444 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
446 nonopt="$ac_option"
449 esac
450 done
452 if test -n "$ac_prev"; then
453 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
456 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
458 # File descriptor usage:
459 # 0 standard input
460 # 1 file creation
461 # 2 errors and warnings
462 # 3 some systems may open it to /dev/tty
463 # 4 used on the Kubota Titan
464 # 6 checking for... messages and results
465 # 5 compiler messages saved in config.log
466 if test "$silent" = yes; then
467 exec 6>/dev/null
468 else
469 exec 6>&1
471 exec 5>./config.log
473 echo "\
474 This file contains any messages produced by compilers while
475 running configure, to aid debugging if configure makes a mistake.
476 " 1>&5
478 # Strip out --no-create and --no-recursion so they do not pile up.
479 # Also quote any args containing shell metacharacters.
480 ac_configure_args=
481 for ac_arg
483 case "$ac_arg" in
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c) ;;
486 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
487 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
488 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
489 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
490 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
491 esac
492 done
494 # NLS nuisances.
495 # Only set these to C if already set. These must not be set unconditionally
496 # because not all systems understand e.g. LANG=C (notably SCO).
497 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
498 # Non-C LC_CTYPE values break the ctype check.
499 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
500 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
501 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
502 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
504 # confdefs.h avoids OS command line length limits that DEFS can exceed.
505 rm -rf conftest* confdefs.h
506 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
507 echo > confdefs.h
509 # A filename unique to this package, relative to the directory that
510 # configure is in, which we can look for to find out if srcdir is correct.
511 ac_unique_file=src/WindowMaker.h
513 # Find the source files, if location was not specified.
514 if test -z "$srcdir"; then
515 ac_srcdir_defaulted=yes
516 # Try the directory containing this script, then its parent.
517 ac_prog=$0
518 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
519 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
520 srcdir=$ac_confdir
521 if test ! -r $srcdir/$ac_unique_file; then
522 srcdir=..
524 else
525 ac_srcdir_defaulted=no
527 if test ! -r $srcdir/$ac_unique_file; then
528 if test "$ac_srcdir_defaulted" = yes; then
529 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
530 else
531 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
534 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
536 # Prefer explicitly selected file to automatically selected ones.
537 if test -z "$CONFIG_SITE"; then
538 if test "x$prefix" != xNONE; then
539 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
540 else
541 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
544 for ac_site_file in $CONFIG_SITE; do
545 if test -r "$ac_site_file"; then
546 echo "loading site script $ac_site_file"
547 . "$ac_site_file"
549 done
551 if test -r "$cache_file"; then
552 echo "loading cache $cache_file"
553 . $cache_file
554 else
555 echo "creating cache $cache_file"
556 > $cache_file
559 ac_ext=c
560 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
561 ac_cpp='$CPP $CPPFLAGS'
562 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
563 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
564 cross_compiling=$ac_cv_prog_cc_cross
566 ac_exeext=
567 ac_objext=o
568 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
569 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
570 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
571 ac_n= ac_c='
572 ' ac_t=' '
573 else
574 ac_n=-n ac_c= ac_t=
576 else
577 ac_n= ac_c='\c' ac_t=
584 ac_aux_dir=
585 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
586 if test -f $ac_dir/install-sh; then
587 ac_aux_dir=$ac_dir
588 ac_install_sh="$ac_aux_dir/install-sh -c"
589 break
590 elif test -f $ac_dir/install.sh; then
591 ac_aux_dir=$ac_dir
592 ac_install_sh="$ac_aux_dir/install.sh -c"
593 break
595 done
596 if test -z "$ac_aux_dir"; then
597 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
599 ac_config_guess=$ac_aux_dir/config.guess
600 ac_config_sub=$ac_aux_dir/config.sub
601 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
603 # Find a good install program. We prefer a C program (faster),
604 # so one script is as good as another. But avoid the broken or
605 # incompatible versions:
606 # SysV /etc/install, /usr/sbin/install
607 # SunOS /usr/etc/install
608 # IRIX /sbin/install
609 # AIX /bin/install
610 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
611 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
612 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
613 # ./install, which can be erroneously created by make from ./install.sh.
614 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
615 echo "configure:616: checking for a BSD compatible install" >&5
616 if test -z "$INSTALL"; then
617 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
618 echo $ac_n "(cached) $ac_c" 1>&6
619 else
620 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
621 for ac_dir in $PATH; do
622 # Account for people who put trailing slashes in PATH elements.
623 case "$ac_dir/" in
624 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
626 # OSF1 and SCO ODT 3.0 have their own names for install.
627 # Don't use installbsd from OSF since it installs stuff as root
628 # by default.
629 for ac_prog in ginstall scoinst install; do
630 if test -f $ac_dir/$ac_prog; then
631 if test $ac_prog = install &&
632 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
633 # AIX install. It has an incompatible calling convention.
635 else
636 ac_cv_path_install="$ac_dir/$ac_prog -c"
637 break 2
640 done
642 esac
643 done
644 IFS="$ac_save_IFS"
647 if test "${ac_cv_path_install+set}" = set; then
648 INSTALL="$ac_cv_path_install"
649 else
650 # As a last resort, use the slow shell script. We don't cache a
651 # path for INSTALL within a source directory, because that will
652 # break other packages using the cache if that directory is
653 # removed, or if the path is relative.
654 INSTALL="$ac_install_sh"
657 echo "$ac_t""$INSTALL" 1>&6
659 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
660 # It thinks the first close brace ends the variable substitution.
661 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
663 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
665 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
667 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
668 echo "configure:669: checking whether build environment is sane" >&5
669 # Just in case
670 sleep 1
671 echo timestamp > conftestfile
672 # Do `set' in a subshell so we don't clobber the current shell's
673 # arguments. Must try -L first in case configure is actually a
674 # symlink; some systems play weird games with the mod time of symlinks
675 # (eg FreeBSD returns the mod time of the symlink's containing
676 # directory).
677 if (
678 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
679 if test "$*" = "X"; then
680 # -L didn't work.
681 set X `ls -t $srcdir/configure conftestfile`
683 if test "$*" != "X $srcdir/configure conftestfile" \
684 && test "$*" != "X conftestfile $srcdir/configure"; then
686 # If neither matched, then we have a broken ls. This can happen
687 # if, for instance, CONFIG_SHELL is bash and it inherits a
688 # broken ls alias from the environment. This has actually
689 # happened. Such a system could not be considered "sane".
690 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
691 alias in your environment" 1>&2; exit 1; }
694 test "$2" = conftestfile
696 then
697 # Ok.
699 else
700 { echo "configure: error: newly created file is older than distributed files!
701 Check your system clock" 1>&2; exit 1; }
703 rm -f conftest*
704 echo "$ac_t""yes" 1>&6
705 if test "$program_transform_name" = s,x,x,; then
706 program_transform_name=
707 else
708 # Double any \ or $. echo might interpret backslashes.
709 cat <<\EOF_SED > conftestsed
710 s,\\,\\\\,g; s,\$,$$,g
711 EOF_SED
712 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
713 rm -f conftestsed
715 test "$program_prefix" != NONE &&
716 program_transform_name="s,^,${program_prefix},; $program_transform_name"
717 # Use a double $ so make ignores it.
718 test "$program_suffix" != NONE &&
719 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
721 # sed with no file args requires a program.
722 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
724 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
725 echo "configure:726: checking whether ${MAKE-make} sets \${MAKE}" >&5
726 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
727 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
728 echo $ac_n "(cached) $ac_c" 1>&6
729 else
730 cat > conftestmake <<\EOF
731 all:
732 @echo 'ac_maketemp="${MAKE}"'
734 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
735 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
736 if test -n "$ac_maketemp"; then
737 eval ac_cv_prog_make_${ac_make}_set=yes
738 else
739 eval ac_cv_prog_make_${ac_make}_set=no
741 rm -f conftestmake
743 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
744 echo "$ac_t""yes" 1>&6
745 SET_MAKE=
746 else
747 echo "$ac_t""no" 1>&6
748 SET_MAKE="MAKE=${MAKE-make}"
752 PACKAGE=WindowMaker
754 VERSION=0.53.0
756 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
757 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
759 cat >> confdefs.h <<EOF
760 #define PACKAGE "$PACKAGE"
763 cat >> confdefs.h <<EOF
764 #define VERSION "$VERSION"
769 missing_dir=`cd $ac_aux_dir && pwd`
770 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
771 echo "configure:772: checking for working aclocal" >&5
772 # Run test in a subshell; some versions of sh will print an error if
773 # an executable is not found, even if stderr is redirected.
774 # Redirect stdin to placate older versions of autoconf. Sigh.
775 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
776 ACLOCAL=aclocal
777 echo "$ac_t""found" 1>&6
778 else
779 ACLOCAL="$missing_dir/missing aclocal"
780 echo "$ac_t""missing" 1>&6
783 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
784 echo "configure:785: checking for working autoconf" >&5
785 # Run test in a subshell; some versions of sh will print an error if
786 # an executable is not found, even if stderr is redirected.
787 # Redirect stdin to placate older versions of autoconf. Sigh.
788 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
789 AUTOCONF=autoconf
790 echo "$ac_t""found" 1>&6
791 else
792 AUTOCONF="$missing_dir/missing autoconf"
793 echo "$ac_t""missing" 1>&6
796 echo $ac_n "checking for working automake""... $ac_c" 1>&6
797 echo "configure:798: checking for working automake" >&5
798 # Run test in a subshell; some versions of sh will print an error if
799 # an executable is not found, even if stderr is redirected.
800 # Redirect stdin to placate older versions of autoconf. Sigh.
801 if (automake --version) < /dev/null > /dev/null 2>&1; then
802 AUTOMAKE=automake
803 echo "$ac_t""found" 1>&6
804 else
805 AUTOMAKE="$missing_dir/missing automake"
806 echo "$ac_t""missing" 1>&6
809 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
810 echo "configure:811: checking for working autoheader" >&5
811 # Run test in a subshell; some versions of sh will print an error if
812 # an executable is not found, even if stderr is redirected.
813 # Redirect stdin to placate older versions of autoconf. Sigh.
814 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
815 AUTOHEADER=autoheader
816 echo "$ac_t""found" 1>&6
817 else
818 AUTOHEADER="$missing_dir/missing autoheader"
819 echo "$ac_t""missing" 1>&6
822 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
823 echo "configure:824: checking for working makeinfo" >&5
824 # Run test in a subshell; some versions of sh will print an error if
825 # an executable is not found, even if stderr is redirected.
826 # Redirect stdin to placate older versions of autoconf. Sigh.
827 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
828 MAKEINFO=makeinfo
829 echo "$ac_t""found" 1>&6
830 else
831 MAKEINFO="$missing_dir/missing makeinfo"
832 echo "$ac_t""missing" 1>&6
837 # Check whether --enable-shared or --disable-shared was given.
838 if test "${enable_shared+set}" = set; then
839 enableval="$enable_shared"
840 p=${PACKAGE-default}
841 case "$enableval" in
842 yes) enable_shared=yes ;;
843 no) enable_shared=no ;;
845 enable_shared=no
846 # Look at the argument we got. We use all the common list separators.
847 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
848 for pkg in $enableval; do
849 if test "X$pkg" = "X$p"; then
850 enable_shared=yes
852 done
853 IFS="$ac_save_ifs"
855 esac
856 else
857 enable_shared=yes
860 # Check whether --enable-static or --disable-static was given.
861 if test "${enable_static+set}" = set; then
862 enableval="$enable_static"
863 p=${PACKAGE-default}
864 case "$enableval" in
865 yes) enable_static=yes ;;
866 no) enable_static=no ;;
868 enable_static=no
869 # Look at the argument we got. We use all the common list separators.
870 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
871 for pkg in $enableval; do
872 if test "X$pkg" = "X$p"; then
873 enable_static=yes
875 done
876 IFS="$ac_save_ifs"
878 esac
879 else
880 enable_static=yes
884 # Make sure we can run config.sub.
885 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
886 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
889 echo $ac_n "checking host system type""... $ac_c" 1>&6
890 echo "configure:891: checking host system type" >&5
892 host_alias=$host
893 case "$host_alias" in
894 NONE)
895 case $nonopt in
896 NONE)
897 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
898 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
899 fi ;;
900 *) host_alias=$nonopt ;;
901 esac ;;
902 esac
904 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
905 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
906 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
907 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
908 echo "$ac_t""$host" 1>&6
910 # Extract the first word of "ranlib", so it can be a program name with args.
911 set dummy ranlib; ac_word=$2
912 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
913 echo "configure:914: checking for $ac_word" >&5
914 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
915 echo $ac_n "(cached) $ac_c" 1>&6
916 else
917 if test -n "$RANLIB"; then
918 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
919 else
920 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
921 ac_dummy="$PATH"
922 for ac_dir in $ac_dummy; do
923 test -z "$ac_dir" && ac_dir=.
924 if test -f $ac_dir/$ac_word; then
925 ac_cv_prog_RANLIB="ranlib"
926 break
928 done
929 IFS="$ac_save_ifs"
930 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
933 RANLIB="$ac_cv_prog_RANLIB"
934 if test -n "$RANLIB"; then
935 echo "$ac_t""$RANLIB" 1>&6
936 else
937 echo "$ac_t""no" 1>&6
940 # Extract the first word of "gcc", so it can be a program name with args.
941 set dummy gcc; ac_word=$2
942 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
943 echo "configure:944: checking for $ac_word" >&5
944 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
945 echo $ac_n "(cached) $ac_c" 1>&6
946 else
947 if test -n "$CC"; then
948 ac_cv_prog_CC="$CC" # Let the user override the test.
949 else
950 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
951 ac_dummy="$PATH"
952 for ac_dir in $ac_dummy; do
953 test -z "$ac_dir" && ac_dir=.
954 if test -f $ac_dir/$ac_word; then
955 ac_cv_prog_CC="gcc"
956 break
958 done
959 IFS="$ac_save_ifs"
962 CC="$ac_cv_prog_CC"
963 if test -n "$CC"; then
964 echo "$ac_t""$CC" 1>&6
965 else
966 echo "$ac_t""no" 1>&6
969 if test -z "$CC"; then
970 # Extract the first word of "cc", so it can be a program name with args.
971 set dummy cc; ac_word=$2
972 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
973 echo "configure:974: checking for $ac_word" >&5
974 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
975 echo $ac_n "(cached) $ac_c" 1>&6
976 else
977 if test -n "$CC"; then
978 ac_cv_prog_CC="$CC" # Let the user override the test.
979 else
980 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
981 ac_prog_rejected=no
982 ac_dummy="$PATH"
983 for ac_dir in $ac_dummy; do
984 test -z "$ac_dir" && ac_dir=.
985 if test -f $ac_dir/$ac_word; then
986 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
987 ac_prog_rejected=yes
988 continue
990 ac_cv_prog_CC="cc"
991 break
993 done
994 IFS="$ac_save_ifs"
995 if test $ac_prog_rejected = yes; then
996 # We found a bogon in the path, so make sure we never use it.
997 set dummy $ac_cv_prog_CC
998 shift
999 if test $# -gt 0; then
1000 # We chose a different compiler from the bogus one.
1001 # However, it has the same basename, so the bogon will be chosen
1002 # first if we set CC to just the basename; use the full file name.
1003 shift
1004 set dummy "$ac_dir/$ac_word" "$@"
1005 shift
1006 ac_cv_prog_CC="$@"
1011 CC="$ac_cv_prog_CC"
1012 if test -n "$CC"; then
1013 echo "$ac_t""$CC" 1>&6
1014 else
1015 echo "$ac_t""no" 1>&6
1018 if test -z "$CC"; then
1019 case "`uname -s`" in
1020 *win32* | *WIN32*)
1021 # Extract the first word of "cl", so it can be a program name with args.
1022 set dummy cl; ac_word=$2
1023 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1024 echo "configure:1025: checking for $ac_word" >&5
1025 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1026 echo $ac_n "(cached) $ac_c" 1>&6
1027 else
1028 if test -n "$CC"; then
1029 ac_cv_prog_CC="$CC" # Let the user override the test.
1030 else
1031 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1032 ac_dummy="$PATH"
1033 for ac_dir in $ac_dummy; do
1034 test -z "$ac_dir" && ac_dir=.
1035 if test -f $ac_dir/$ac_word; then
1036 ac_cv_prog_CC="cl"
1037 break
1039 done
1040 IFS="$ac_save_ifs"
1043 CC="$ac_cv_prog_CC"
1044 if test -n "$CC"; then
1045 echo "$ac_t""$CC" 1>&6
1046 else
1047 echo "$ac_t""no" 1>&6
1050 esac
1052 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1055 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1056 echo "configure:1057: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1058 ac_ext=c
1059 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1060 ac_cpp='$CPP $CPPFLAGS'
1061 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1062 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1063 cross_compiling=$ac_cv_prog_cc_cross
1065 cat > conftest.$ac_ext << EOF
1067 #line 1068 "configure"
1068 #include "confdefs.h"
1070 main(){return(0);}
1072 if { (eval echo configure:1073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1073 ac_cv_prog_cc_works=yes
1074 # If we can't run a trivial program, we are probably using a cross compiler.
1075 if (./conftest; exit) 2>/dev/null; then
1076 ac_cv_prog_cc_cross=no
1077 else
1078 ac_cv_prog_cc_cross=yes
1080 else
1081 echo "configure: failed program was:" >&5
1082 cat conftest.$ac_ext >&5
1083 ac_cv_prog_cc_works=no
1085 rm -fr conftest*
1086 ac_ext=c
1087 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1088 ac_cpp='$CPP $CPPFLAGS'
1089 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1090 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1091 cross_compiling=$ac_cv_prog_cc_cross
1093 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1094 if test $ac_cv_prog_cc_works = no; then
1095 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1097 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1098 echo "configure:1099: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1099 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1100 cross_compiling=$ac_cv_prog_cc_cross
1102 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1103 echo "configure:1104: checking whether we are using GNU C" >&5
1104 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1105 echo $ac_n "(cached) $ac_c" 1>&6
1106 else
1107 cat > conftest.c <<EOF
1108 #ifdef __GNUC__
1109 yes;
1110 #endif
1112 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1113: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1113 ac_cv_prog_gcc=yes
1114 else
1115 ac_cv_prog_gcc=no
1119 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1121 if test $ac_cv_prog_gcc = yes; then
1122 GCC=yes
1123 else
1124 GCC=
1127 ac_test_CFLAGS="${CFLAGS+set}"
1128 ac_save_CFLAGS="$CFLAGS"
1129 CFLAGS=
1130 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1131 echo "configure:1132: checking whether ${CC-cc} accepts -g" >&5
1132 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1133 echo $ac_n "(cached) $ac_c" 1>&6
1134 else
1135 echo 'void f(){}' > conftest.c
1136 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1137 ac_cv_prog_cc_g=yes
1138 else
1139 ac_cv_prog_cc_g=no
1141 rm -f conftest*
1145 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1146 if test "$ac_test_CFLAGS" = set; then
1147 CFLAGS="$ac_save_CFLAGS"
1148 elif test $ac_cv_prog_cc_g = yes; then
1149 if test "$GCC" = yes; then
1150 CFLAGS="-g -O2"
1151 else
1152 CFLAGS="-g"
1154 else
1155 if test "$GCC" = yes; then
1156 CFLAGS="-O2"
1157 else
1158 CFLAGS=
1162 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1163 if test "${with_gnu_ld+set}" = set; then
1164 withval="$with_gnu_ld"
1165 test "$withval" = no || with_gnu_ld=yes
1166 else
1167 with_gnu_ld=no
1171 ac_prog=ld
1172 if test "$ac_cv_prog_gcc" = yes; then
1173 # Check if gcc -print-prog-name=ld gives a path.
1174 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1175 echo "configure:1176: checking for ld used by GCC" >&5
1176 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1177 case "$ac_prog" in
1178 # Accept absolute paths.
1179 /* | A-Za-z:\\*)
1180 test -z "$LD" && LD="$ac_prog"
1183 # If it fails, then pretend we aren't using GCC.
1184 ac_prog=ld
1187 # If it is relative, then search for the first ld in PATH.
1188 with_gnu_ld=unknown
1190 esac
1191 elif test "$with_gnu_ld" = yes; then
1192 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1193 echo "configure:1194: checking for GNU ld" >&5
1194 else
1195 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1196 echo "configure:1197: checking for non-GNU ld" >&5
1198 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1199 echo $ac_n "(cached) $ac_c" 1>&6
1200 else
1201 if test -z "$LD"; then
1202 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1203 for ac_dir in $PATH; do
1204 test -z "$ac_dir" && ac_dir=.
1205 if test -f "$ac_dir/$ac_prog"; then
1206 ac_cv_path_LD="$ac_dir/$ac_prog"
1207 # Check to see if the program is GNU ld. I'd rather use --version,
1208 # but apparently some GNU ld's only accept -v.
1209 # Break only if it was the GNU/non-GNU ld that we prefer.
1210 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1211 test "$with_gnu_ld" != no && break
1212 else
1213 test "$with_gnu_ld" != yes && break
1216 done
1217 IFS="$ac_save_ifs"
1218 else
1219 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1223 LD="$ac_cv_path_LD"
1224 if test -n "$LD"; then
1225 echo "$ac_t""$LD" 1>&6
1226 else
1227 echo "$ac_t""no" 1>&6
1229 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1231 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1232 echo "configure:1233: checking if the linker ($LD) is GNU ld" >&5
1233 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1234 echo $ac_n "(cached) $ac_c" 1>&6
1235 else
1236 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1237 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1238 ac_cv_prog_gnu_ld=yes
1239 else
1240 ac_cv_prog_gnu_ld=no
1244 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1247 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1248 echo "configure:1249: checking for BSD-compatible nm" >&5
1249 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1250 echo $ac_n "(cached) $ac_c" 1>&6
1251 else
1252 case "$NM" in
1253 /* | A-Za-z:\\*)
1254 ac_cv_path_NM="$NM" # Let the user override the test with a path.
1257 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1258 for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
1259 test -z "$ac_dir" && ac_dir=.
1260 if test -f $ac_dir/nm; then
1261 # Check to see if the nm accepts a BSD-compat flag.
1262 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1263 # nm: unknown option "B" ignored
1264 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1265 ac_cv_path_NM="$ac_dir/nm -B"
1266 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1267 ac_cv_path_NM="$ac_dir/nm -p"
1268 else
1269 ac_cv_path_NM="$ac_dir/nm"
1271 break
1273 done
1274 IFS="$ac_save_ifs"
1275 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1277 esac
1280 NM="$ac_cv_path_NM"
1281 echo "$ac_t""$NM" 1>&6
1284 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1285 echo "configure:1286: checking whether ln -s works" >&5
1286 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1287 echo $ac_n "(cached) $ac_c" 1>&6
1288 else
1289 rm -f conftestdata
1290 if ln -s X conftestdata 2>/dev/null
1291 then
1292 rm -f conftestdata
1293 ac_cv_prog_LN_S="ln -s"
1294 else
1295 ac_cv_prog_LN_S=ln
1298 LN_S="$ac_cv_prog_LN_S"
1299 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1300 echo "$ac_t""yes" 1>&6
1301 else
1302 echo "$ac_t""no" 1>&6
1305 # Always use our own libtool.
1306 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1308 # Check for any special flags to pass to ltconfig.
1309 libtool_flags=
1310 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1311 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1312 test "$silent" = yes && libtool_flags="$libtool_flags --silent"
1313 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1314 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1316 # Some flags need to be propagated to the compiler or linker for good
1317 # libtool support.
1318 case "$host" in
1319 *-*-irix6*)
1320 # Find out which ABI we are using.
1321 echo '#line 1322 "configure"' > conftest.$ac_ext
1322 if { (eval echo configure:1323: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1323 case "`/usr/bin/file conftest.o`" in
1324 *32-bit*)
1325 LD="${LD-ld} -32"
1327 *N32*)
1328 LD="${LD-ld} -n32"
1330 *64-bit*)
1331 LD="${LD-ld} -64"
1333 esac
1335 rm -rf conftest*
1338 *-*-sco3.2v5*)
1339 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1340 CFLAGS="$CFLAGS -belf"
1342 esac
1344 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1345 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1346 LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
1347 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
1348 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
1349 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1352 # by Marcelo Magallon <mmagallo@efis.ucr.ac.cr>
1353 # Turn around -rpath problem with libtool 1.0c
1354 # This define should be improbable enough to not conflict with anything
1355 case ${host} in
1356 *-pc-linux-gnu)
1357 echo "$ac_t""Fixing libtool for -rpath problems." 1>&6
1358 sed < libtool > libtool-2 \
1359 's/^hardcode_libdir_flag_spec.*$/hardcode_libdir_flag_spec=" -D__LIBTOOL_IS_A_FOOL__ "/'
1360 mv libtool-2 libtool
1361 chmod 755 libtool
1363 esac
1373 # Make sure we can run config.sub.
1374 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1375 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1378 echo $ac_n "checking host system type""... $ac_c" 1>&6
1379 echo "configure:1380: checking host system type" >&5
1381 host_alias=$host
1382 case "$host_alias" in
1383 NONE)
1384 case $nonopt in
1385 NONE)
1386 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1387 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1388 fi ;;
1389 *) host_alias=$nonopt ;;
1390 esac ;;
1391 esac
1393 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1394 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1395 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1396 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1397 echo "$ac_t""$host" 1>&6
1401 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1402 echo "configure:1403: checking for POSIXized ISC" >&5
1403 if test -d /etc/conf/kconfig.d &&
1404 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1405 then
1406 echo "$ac_t""yes" 1>&6
1407 ISC=yes # If later tests want to check for ISC.
1408 cat >> confdefs.h <<\EOF
1409 #define _POSIX_SOURCE 1
1412 if test "$GCC" = yes; then
1413 CC="$CC -posix"
1414 else
1415 CC="$CC -Xp"
1417 else
1418 echo "$ac_t""no" 1>&6
1419 ISC=
1422 # Extract the first word of "gcc", so it can be a program name with args.
1423 set dummy gcc; ac_word=$2
1424 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1425 echo "configure:1426: checking for $ac_word" >&5
1426 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1427 echo $ac_n "(cached) $ac_c" 1>&6
1428 else
1429 if test -n "$CC"; then
1430 ac_cv_prog_CC="$CC" # Let the user override the test.
1431 else
1432 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1433 ac_dummy="$PATH"
1434 for ac_dir in $ac_dummy; do
1435 test -z "$ac_dir" && ac_dir=.
1436 if test -f $ac_dir/$ac_word; then
1437 ac_cv_prog_CC="gcc"
1438 break
1440 done
1441 IFS="$ac_save_ifs"
1444 CC="$ac_cv_prog_CC"
1445 if test -n "$CC"; then
1446 echo "$ac_t""$CC" 1>&6
1447 else
1448 echo "$ac_t""no" 1>&6
1451 if test -z "$CC"; then
1452 # Extract the first word of "cc", so it can be a program name with args.
1453 set dummy cc; ac_word=$2
1454 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1455 echo "configure:1456: checking for $ac_word" >&5
1456 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1457 echo $ac_n "(cached) $ac_c" 1>&6
1458 else
1459 if test -n "$CC"; then
1460 ac_cv_prog_CC="$CC" # Let the user override the test.
1461 else
1462 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1463 ac_prog_rejected=no
1464 ac_dummy="$PATH"
1465 for ac_dir in $ac_dummy; do
1466 test -z "$ac_dir" && ac_dir=.
1467 if test -f $ac_dir/$ac_word; then
1468 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1469 ac_prog_rejected=yes
1470 continue
1472 ac_cv_prog_CC="cc"
1473 break
1475 done
1476 IFS="$ac_save_ifs"
1477 if test $ac_prog_rejected = yes; then
1478 # We found a bogon in the path, so make sure we never use it.
1479 set dummy $ac_cv_prog_CC
1480 shift
1481 if test $# -gt 0; then
1482 # We chose a different compiler from the bogus one.
1483 # However, it has the same basename, so the bogon will be chosen
1484 # first if we set CC to just the basename; use the full file name.
1485 shift
1486 set dummy "$ac_dir/$ac_word" "$@"
1487 shift
1488 ac_cv_prog_CC="$@"
1493 CC="$ac_cv_prog_CC"
1494 if test -n "$CC"; then
1495 echo "$ac_t""$CC" 1>&6
1496 else
1497 echo "$ac_t""no" 1>&6
1500 if test -z "$CC"; then
1501 case "`uname -s`" in
1502 *win32* | *WIN32*)
1503 # Extract the first word of "cl", so it can be a program name with args.
1504 set dummy cl; ac_word=$2
1505 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1506 echo "configure:1507: checking for $ac_word" >&5
1507 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1508 echo $ac_n "(cached) $ac_c" 1>&6
1509 else
1510 if test -n "$CC"; then
1511 ac_cv_prog_CC="$CC" # Let the user override the test.
1512 else
1513 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1514 ac_dummy="$PATH"
1515 for ac_dir in $ac_dummy; do
1516 test -z "$ac_dir" && ac_dir=.
1517 if test -f $ac_dir/$ac_word; then
1518 ac_cv_prog_CC="cl"
1519 break
1521 done
1522 IFS="$ac_save_ifs"
1525 CC="$ac_cv_prog_CC"
1526 if test -n "$CC"; then
1527 echo "$ac_t""$CC" 1>&6
1528 else
1529 echo "$ac_t""no" 1>&6
1532 esac
1534 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1537 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1538 echo "configure:1539: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1540 ac_ext=c
1541 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1542 ac_cpp='$CPP $CPPFLAGS'
1543 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1544 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1545 cross_compiling=$ac_cv_prog_cc_cross
1547 cat > conftest.$ac_ext << EOF
1549 #line 1550 "configure"
1550 #include "confdefs.h"
1552 main(){return(0);}
1554 if { (eval echo configure:1555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1555 ac_cv_prog_cc_works=yes
1556 # If we can't run a trivial program, we are probably using a cross compiler.
1557 if (./conftest; exit) 2>/dev/null; then
1558 ac_cv_prog_cc_cross=no
1559 else
1560 ac_cv_prog_cc_cross=yes
1562 else
1563 echo "configure: failed program was:" >&5
1564 cat conftest.$ac_ext >&5
1565 ac_cv_prog_cc_works=no
1567 rm -fr conftest*
1568 ac_ext=c
1569 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1570 ac_cpp='$CPP $CPPFLAGS'
1571 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1572 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1573 cross_compiling=$ac_cv_prog_cc_cross
1575 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1576 if test $ac_cv_prog_cc_works = no; then
1577 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1579 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1580 echo "configure:1581: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1581 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1582 cross_compiling=$ac_cv_prog_cc_cross
1584 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1585 echo "configure:1586: checking whether we are using GNU C" >&5
1586 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1587 echo $ac_n "(cached) $ac_c" 1>&6
1588 else
1589 cat > conftest.c <<EOF
1590 #ifdef __GNUC__
1591 yes;
1592 #endif
1594 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1595: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1595 ac_cv_prog_gcc=yes
1596 else
1597 ac_cv_prog_gcc=no
1601 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1603 if test $ac_cv_prog_gcc = yes; then
1604 GCC=yes
1605 else
1606 GCC=
1609 ac_test_CFLAGS="${CFLAGS+set}"
1610 ac_save_CFLAGS="$CFLAGS"
1611 CFLAGS=
1612 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1613 echo "configure:1614: checking whether ${CC-cc} accepts -g" >&5
1614 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1615 echo $ac_n "(cached) $ac_c" 1>&6
1616 else
1617 echo 'void f(){}' > conftest.c
1618 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1619 ac_cv_prog_cc_g=yes
1620 else
1621 ac_cv_prog_cc_g=no
1623 rm -f conftest*
1627 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1628 if test "$ac_test_CFLAGS" = set; then
1629 CFLAGS="$ac_save_CFLAGS"
1630 elif test $ac_cv_prog_cc_g = yes; then
1631 if test "$GCC" = yes; then
1632 CFLAGS="-g -O2"
1633 else
1634 CFLAGS="-g"
1636 else
1637 if test "$GCC" = yes; then
1638 CFLAGS="-O2"
1639 else
1640 CFLAGS=
1644 #AC_PROG_RANLIB
1645 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1646 echo "configure:1647: checking whether ln -s works" >&5
1647 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1648 echo $ac_n "(cached) $ac_c" 1>&6
1649 else
1650 rm -f conftestdata
1651 if ln -s X conftestdata 2>/dev/null
1652 then
1653 rm -f conftestdata
1654 ac_cv_prog_LN_S="ln -s"
1655 else
1656 ac_cv_prog_LN_S=ln
1659 LN_S="$ac_cv_prog_LN_S"
1660 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1661 echo "$ac_t""yes" 1>&6
1662 else
1663 echo "$ac_t""no" 1>&6
1666 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1667 echo "configure:1668: checking how to run the C preprocessor" >&5
1668 # On Suns, sometimes $CPP names a directory.
1669 if test -n "$CPP" && test -d "$CPP"; then
1670 CPP=
1672 if test -z "$CPP"; then
1673 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1674 echo $ac_n "(cached) $ac_c" 1>&6
1675 else
1676 # This must be in double quotes, not single quotes, because CPP may get
1677 # substituted into the Makefile and "${CC-cc}" will confuse make.
1678 CPP="${CC-cc} -E"
1679 # On the NeXT, cc -E runs the code through the compiler's parser,
1680 # not just through cpp.
1681 cat > conftest.$ac_ext <<EOF
1682 #line 1683 "configure"
1683 #include "confdefs.h"
1684 #include <assert.h>
1685 Syntax Error
1687 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1688 { (eval echo configure:1689: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1689 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1690 if test -z "$ac_err"; then
1692 else
1693 echo "$ac_err" >&5
1694 echo "configure: failed program was:" >&5
1695 cat conftest.$ac_ext >&5
1696 rm -rf conftest*
1697 CPP="${CC-cc} -E -traditional-cpp"
1698 cat > conftest.$ac_ext <<EOF
1699 #line 1700 "configure"
1700 #include "confdefs.h"
1701 #include <assert.h>
1702 Syntax Error
1704 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1705 { (eval echo configure:1706: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1706 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1707 if test -z "$ac_err"; then
1709 else
1710 echo "$ac_err" >&5
1711 echo "configure: failed program was:" >&5
1712 cat conftest.$ac_ext >&5
1713 rm -rf conftest*
1714 CPP="${CC-cc} -nologo -E"
1715 cat > conftest.$ac_ext <<EOF
1716 #line 1717 "configure"
1717 #include "confdefs.h"
1718 #include <assert.h>
1719 Syntax Error
1721 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1722 { (eval echo configure:1723: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1723 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1724 if test -z "$ac_err"; then
1726 else
1727 echo "$ac_err" >&5
1728 echo "configure: failed program was:" >&5
1729 cat conftest.$ac_ext >&5
1730 rm -rf conftest*
1731 CPP=/lib/cpp
1733 rm -f conftest*
1735 rm -f conftest*
1737 rm -f conftest*
1738 ac_cv_prog_CPP="$CPP"
1740 CPP="$ac_cv_prog_CPP"
1741 else
1742 ac_cv_prog_CPP="$CPP"
1744 echo "$ac_t""$CPP" 1>&6
1746 if test $ac_cv_prog_gcc = yes; then
1747 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1748 echo "configure:1749: checking whether ${CC-cc} needs -traditional" >&5
1749 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1750 echo $ac_n "(cached) $ac_c" 1>&6
1751 else
1752 ac_pattern="Autoconf.*'x'"
1753 cat > conftest.$ac_ext <<EOF
1754 #line 1755 "configure"
1755 #include "confdefs.h"
1756 #include <sgtty.h>
1757 Autoconf TIOCGETP
1759 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1760 egrep "$ac_pattern" >/dev/null 2>&1; then
1761 rm -rf conftest*
1762 ac_cv_prog_gcc_traditional=yes
1763 else
1764 rm -rf conftest*
1765 ac_cv_prog_gcc_traditional=no
1767 rm -f conftest*
1770 if test $ac_cv_prog_gcc_traditional = no; then
1771 cat > conftest.$ac_ext <<EOF
1772 #line 1773 "configure"
1773 #include "confdefs.h"
1774 #include <termio.h>
1775 Autoconf TCGETA
1777 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1778 egrep "$ac_pattern" >/dev/null 2>&1; then
1779 rm -rf conftest*
1780 ac_cv_prog_gcc_traditional=yes
1782 rm -f conftest*
1787 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1788 if test $ac_cv_prog_gcc_traditional = yes; then
1789 CC="$CC -traditional"
1796 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1797 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1800 _bindir=`eval echo $bindir`
1801 _bindir=`eval echo $_bindir`
1803 _libdir=`eval echo $libdir`
1804 _libdir=`eval echo $_libdir`
1805 lib_search_path="-L$_libdir"
1807 inc_search_path=`eval echo $includedir`
1808 inc_search_path="-I`eval echo $inc_search_path`"
1813 echo $ac_n "checking for RedHat system""... $ac_c" 1>&6
1814 echo "configure:1815: checking for RedHat system" >&5
1815 wm_check_flag='no :)'
1816 rh_is_redhat=no
1817 if test -f /etc/redhat-release; then
1818 wm_check_flag=yes
1819 rh_is_redhat=yes
1821 echo "$ac_t""$wm_check_flag" 1>&6
1823 mins_found=no
1824 bugs_found=no
1825 if test "$wm_check_flag" = yes; then
1826 echo
1827 echo "configure: warning: Red Hat system; checking for Red-Hat-specific bugs." 1>&2
1828 echo
1830 # Check old wmaker from RedHat
1832 if test "$prefix" != "/usr/X11R6" -a "$prefix" != "/usr/X11"; then
1833 echo $ac_n "checking for multiple installed wmaker versions""... $ac_c" 1>&6
1834 echo "configure:1835: checking for multiple installed wmaker versions" >&5
1835 if test -f /usr/X11R6/bin/wmaker; then
1836 echo "$ac_t""uh oh" 1>&6
1837 mins_found=yes
1838 rh_old_wmaker=yes
1839 else
1840 rh_old_wmaker=no
1841 echo "$ac_t""no apparent problems" 1>&6
1845 # Check for infamous en_RN bug
1846 # Wont work because autoconf will change LANG in the beginning of the
1847 # script.
1850 #AC_MSG_CHECKING(for silly en_RN joke that only causes headaches)
1851 #echo $LANG
1852 #if test "x$LANG" = xen_RN; then
1853 #AC_MSG_RESULT(uh oh)
1854 #AC_MSG_WARN([the LANG environment variable is set to the en_RN
1855 #locale. Please unset it or you will have mysterious problems when
1856 #using various software packages.])
1857 #bugs_found=yes
1858 #else
1859 #AC_MSG_RESULT(no problem)
1862 # If binary installation path is /usr/local/bin, check if it's in PATH
1864 if test "$_bindir" = "/usr/local/bin"; then
1865 echo $ac_n "checking if /usr/local/bin is in the search PATH""... $ac_c" 1>&6
1866 echo "configure:1867: checking if /usr/local/bin is in the search PATH" >&5
1867 wm_check_flag=no
1868 rh_missing_usr_local_bin=yes
1869 old_IFS="$IFS"
1870 IFS=":"
1871 for i in $PATH; do
1872 if test "x$i" = "x/usr/local/bin"; then
1873 wm_check_flag=yes
1874 rh_missing_usr_local_bin=no
1875 break;
1877 done
1878 IFS="$old_IFS"
1879 if test "$wm_check_flag" = no; then
1880 echo "$ac_t""uh oh" 1>&6
1881 bugs_found=yes
1882 else
1883 echo "$ac_t""no problem" 1>&6
1887 # If library installation path is /usr/local/lib,
1888 # check if it's in /etc/ld.so.conf
1890 if test "$_libdir" = "/usr/local/lib"; then
1891 wm_check_flag=yes
1892 rh_missing_usr_local_lib=no
1893 echo $ac_n "checking if /usr/local/lib is in /etc/ld.so.conf""... $ac_c" 1>&6
1894 echo "configure:1895: checking if /usr/local/lib is in /etc/ld.so.conf" >&5
1895 test -z "`grep /usr/local/lib /etc/ld.so.conf`"
1896 test "$?" -eq 0 && wm_check_flag=no
1897 if test "$wm_check_flag" = no; then
1898 echo "$ac_t""uh oh" 1>&6
1899 rh_missing_usr_local_lib=yes
1900 bugs_found=yes
1901 else
1902 echo "$ac_t""no problem" 1>&6
1906 # Check for symbolic links
1908 echo $ac_n "checking for /usr/include/X11 symbolic link""... $ac_c" 1>&6
1909 echo "configure:1910: checking for /usr/include/X11 symbolic link" >&5
1910 rh_missing_usr_include_x11=no
1911 if test -d "/usr/include/X11"; then
1912 echo "$ac_t""found" 1>&6
1913 else
1914 echo "$ac_t""uh oh" 1>&6
1915 rh_missing_usr_include_x11=yes
1916 mins_found=yes
1920 # Check for /lib/cpp
1922 echo $ac_n "checking for /lib/cpp""... $ac_c" 1>&6
1923 echo "configure:1924: checking for /lib/cpp" >&5
1924 rh_missing_lib_cpp=no
1925 if test -f "/lib/cpp"; then
1926 echo "$ac_t""found" 1>&6
1927 else
1928 echo "$ac_t""uh oh" 1>&6
1929 rh_missing_lib_cpp=yes
1930 bugs_found=yes
1933 echo
1938 # Check whether --with-libs-from or --without-libs-from was given.
1939 if test "${with_libs_from+set}" = set; then
1940 withval="$with_libs_from"
1941 lib_search_path="$withval $lib_search_path"
1945 # Check whether --with-incs-from or --without-incs-from was given.
1946 if test "${with_incs_from+set}" = set; then
1947 withval="$with_incs_from"
1948 inc_search_path="$withval $inc_search_path"
1954 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
1955 echo "configure:1956: checking for vprintf" >&5
1956 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
1957 echo $ac_n "(cached) $ac_c" 1>&6
1958 else
1959 cat > conftest.$ac_ext <<EOF
1960 #line 1961 "configure"
1961 #include "confdefs.h"
1962 /* System header to define __stub macros and hopefully few prototypes,
1963 which can conflict with char vprintf(); below. */
1964 #include <assert.h>
1965 /* Override any gcc2 internal prototype to avoid an error. */
1966 /* We use char because int might match the return type of a gcc2
1967 builtin and then its argument prototype would still apply. */
1968 char vprintf();
1970 int main() {
1972 /* The GNU C library defines this for functions which it implements
1973 to always fail with ENOSYS. Some functions are actually named
1974 something starting with __ and the normal name is an alias. */
1975 #if defined (__stub_vprintf) || defined (__stub___vprintf)
1976 choke me
1977 #else
1978 vprintf();
1979 #endif
1981 ; return 0; }
1983 if { (eval echo configure:1984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1984 rm -rf conftest*
1985 eval "ac_cv_func_vprintf=yes"
1986 else
1987 echo "configure: failed program was:" >&5
1988 cat conftest.$ac_ext >&5
1989 rm -rf conftest*
1990 eval "ac_cv_func_vprintf=no"
1992 rm -f conftest*
1995 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
1996 echo "$ac_t""yes" 1>&6
1997 cat >> confdefs.h <<\EOF
1998 #define HAVE_VPRINTF 1
2001 else
2002 echo "$ac_t""no" 1>&6
2005 if test "$ac_cv_func_vprintf" != yes; then
2006 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2007 echo "configure:2008: checking for _doprnt" >&5
2008 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2009 echo $ac_n "(cached) $ac_c" 1>&6
2010 else
2011 cat > conftest.$ac_ext <<EOF
2012 #line 2013 "configure"
2013 #include "confdefs.h"
2014 /* System header to define __stub macros and hopefully few prototypes,
2015 which can conflict with char _doprnt(); below. */
2016 #include <assert.h>
2017 /* Override any gcc2 internal prototype to avoid an error. */
2018 /* We use char because int might match the return type of a gcc2
2019 builtin and then its argument prototype would still apply. */
2020 char _doprnt();
2022 int main() {
2024 /* The GNU C library defines this for functions which it implements
2025 to always fail with ENOSYS. Some functions are actually named
2026 something starting with __ and the normal name is an alias. */
2027 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2028 choke me
2029 #else
2030 _doprnt();
2031 #endif
2033 ; return 0; }
2035 if { (eval echo configure:2036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2036 rm -rf conftest*
2037 eval "ac_cv_func__doprnt=yes"
2038 else
2039 echo "configure: failed program was:" >&5
2040 cat conftest.$ac_ext >&5
2041 rm -rf conftest*
2042 eval "ac_cv_func__doprnt=no"
2044 rm -f conftest*
2047 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2048 echo "$ac_t""yes" 1>&6
2049 cat >> confdefs.h <<\EOF
2050 #define HAVE_DOPRNT 1
2053 else
2054 echo "$ac_t""no" 1>&6
2059 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2060 # for constant arguments. Useless!
2061 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2062 echo "configure:2063: checking for working alloca.h" >&5
2063 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2064 echo $ac_n "(cached) $ac_c" 1>&6
2065 else
2066 cat > conftest.$ac_ext <<EOF
2067 #line 2068 "configure"
2068 #include "confdefs.h"
2069 #include <alloca.h>
2070 int main() {
2071 char *p = alloca(2 * sizeof(int));
2072 ; return 0; }
2074 if { (eval echo configure:2075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2075 rm -rf conftest*
2076 ac_cv_header_alloca_h=yes
2077 else
2078 echo "configure: failed program was:" >&5
2079 cat conftest.$ac_ext >&5
2080 rm -rf conftest*
2081 ac_cv_header_alloca_h=no
2083 rm -f conftest*
2086 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2087 if test $ac_cv_header_alloca_h = yes; then
2088 cat >> confdefs.h <<\EOF
2089 #define HAVE_ALLOCA_H 1
2094 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2095 echo "configure:2096: checking for alloca" >&5
2096 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2097 echo $ac_n "(cached) $ac_c" 1>&6
2098 else
2099 cat > conftest.$ac_ext <<EOF
2100 #line 2101 "configure"
2101 #include "confdefs.h"
2103 #ifdef __GNUC__
2104 # define alloca __builtin_alloca
2105 #else
2106 # ifdef _MSC_VER
2107 # include <malloc.h>
2108 # define alloca _alloca
2109 # else
2110 # if HAVE_ALLOCA_H
2111 # include <alloca.h>
2112 # else
2113 # ifdef _AIX
2114 #pragma alloca
2115 # else
2116 # ifndef alloca /* predefined by HP cc +Olibcalls */
2117 char *alloca ();
2118 # endif
2119 # endif
2120 # endif
2121 # endif
2122 #endif
2124 int main() {
2125 char *p = (char *) alloca(1);
2126 ; return 0; }
2128 if { (eval echo configure:2129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2129 rm -rf conftest*
2130 ac_cv_func_alloca_works=yes
2131 else
2132 echo "configure: failed program was:" >&5
2133 cat conftest.$ac_ext >&5
2134 rm -rf conftest*
2135 ac_cv_func_alloca_works=no
2137 rm -f conftest*
2140 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2141 if test $ac_cv_func_alloca_works = yes; then
2142 cat >> confdefs.h <<\EOF
2143 #define HAVE_ALLOCA 1
2148 if test $ac_cv_func_alloca_works = no; then
2149 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2150 # that cause trouble. Some versions do not even contain alloca or
2151 # contain a buggy version. If you still want to use their alloca,
2152 # use ar to extract alloca.o from them instead of compiling alloca.c.
2153 ALLOCA=alloca.${ac_objext}
2154 cat >> confdefs.h <<\EOF
2155 #define C_ALLOCA 1
2159 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2160 echo "configure:2161: checking whether alloca needs Cray hooks" >&5
2161 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2162 echo $ac_n "(cached) $ac_c" 1>&6
2163 else
2164 cat > conftest.$ac_ext <<EOF
2165 #line 2166 "configure"
2166 #include "confdefs.h"
2167 #if defined(CRAY) && ! defined(CRAY2)
2168 webecray
2169 #else
2170 wenotbecray
2171 #endif
2174 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2175 egrep "webecray" >/dev/null 2>&1; then
2176 rm -rf conftest*
2177 ac_cv_os_cray=yes
2178 else
2179 rm -rf conftest*
2180 ac_cv_os_cray=no
2182 rm -f conftest*
2186 echo "$ac_t""$ac_cv_os_cray" 1>&6
2187 if test $ac_cv_os_cray = yes; then
2188 for ac_func in _getb67 GETB67 getb67; do
2189 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2190 echo "configure:2191: checking for $ac_func" >&5
2191 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2192 echo $ac_n "(cached) $ac_c" 1>&6
2193 else
2194 cat > conftest.$ac_ext <<EOF
2195 #line 2196 "configure"
2196 #include "confdefs.h"
2197 /* System header to define __stub macros and hopefully few prototypes,
2198 which can conflict with char $ac_func(); below. */
2199 #include <assert.h>
2200 /* Override any gcc2 internal prototype to avoid an error. */
2201 /* We use char because int might match the return type of a gcc2
2202 builtin and then its argument prototype would still apply. */
2203 char $ac_func();
2205 int main() {
2207 /* The GNU C library defines this for functions which it implements
2208 to always fail with ENOSYS. Some functions are actually named
2209 something starting with __ and the normal name is an alias. */
2210 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2211 choke me
2212 #else
2213 $ac_func();
2214 #endif
2216 ; return 0; }
2218 if { (eval echo configure:2219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2219 rm -rf conftest*
2220 eval "ac_cv_func_$ac_func=yes"
2221 else
2222 echo "configure: failed program was:" >&5
2223 cat conftest.$ac_ext >&5
2224 rm -rf conftest*
2225 eval "ac_cv_func_$ac_func=no"
2227 rm -f conftest*
2230 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2231 echo "$ac_t""yes" 1>&6
2232 cat >> confdefs.h <<EOF
2233 #define CRAY_STACKSEG_END $ac_func
2236 break
2237 else
2238 echo "$ac_t""no" 1>&6
2241 done
2244 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2245 echo "configure:2246: checking stack direction for C alloca" >&5
2246 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2247 echo $ac_n "(cached) $ac_c" 1>&6
2248 else
2249 if test "$cross_compiling" = yes; then
2250 ac_cv_c_stack_direction=0
2251 else
2252 cat > conftest.$ac_ext <<EOF
2253 #line 2254 "configure"
2254 #include "confdefs.h"
2255 find_stack_direction ()
2257 static char *addr = 0;
2258 auto char dummy;
2259 if (addr == 0)
2261 addr = &dummy;
2262 return find_stack_direction ();
2264 else
2265 return (&dummy > addr) ? 1 : -1;
2267 main ()
2269 exit (find_stack_direction() < 0);
2272 if { (eval echo configure:2273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2273 then
2274 ac_cv_c_stack_direction=1
2275 else
2276 echo "configure: failed program was:" >&5
2277 cat conftest.$ac_ext >&5
2278 rm -fr conftest*
2279 ac_cv_c_stack_direction=-1
2281 rm -fr conftest*
2286 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2287 cat >> confdefs.h <<EOF
2288 #define STACK_DIRECTION $ac_cv_c_stack_direction
2293 for ac_func in gethostname select poll strerror strncasecmp setpgid atexit
2295 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2296 echo "configure:2297: checking for $ac_func" >&5
2297 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2298 echo $ac_n "(cached) $ac_c" 1>&6
2299 else
2300 cat > conftest.$ac_ext <<EOF
2301 #line 2302 "configure"
2302 #include "confdefs.h"
2303 /* System header to define __stub macros and hopefully few prototypes,
2304 which can conflict with char $ac_func(); below. */
2305 #include <assert.h>
2306 /* Override any gcc2 internal prototype to avoid an error. */
2307 /* We use char because int might match the return type of a gcc2
2308 builtin and then its argument prototype would still apply. */
2309 char $ac_func();
2311 int main() {
2313 /* The GNU C library defines this for functions which it implements
2314 to always fail with ENOSYS. Some functions are actually named
2315 something starting with __ and the normal name is an alias. */
2316 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2317 choke me
2318 #else
2319 $ac_func();
2320 #endif
2322 ; return 0; }
2324 if { (eval echo configure:2325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2325 rm -rf conftest*
2326 eval "ac_cv_func_$ac_func=yes"
2327 else
2328 echo "configure: failed program was:" >&5
2329 cat conftest.$ac_ext >&5
2330 rm -rf conftest*
2331 eval "ac_cv_func_$ac_func=no"
2333 rm -f conftest*
2336 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2337 echo "$ac_t""yes" 1>&6
2338 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2339 cat >> confdefs.h <<EOF
2340 #define $ac_tr_func 1
2343 else
2344 echo "$ac_t""no" 1>&6
2346 done
2351 DLLIBS=""
2353 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
2354 echo "configure:2355: checking for dlopen" >&5
2355 if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
2356 echo $ac_n "(cached) $ac_c" 1>&6
2357 else
2358 cat > conftest.$ac_ext <<EOF
2359 #line 2360 "configure"
2360 #include "confdefs.h"
2361 /* System header to define __stub macros and hopefully few prototypes,
2362 which can conflict with char dlopen(); below. */
2363 #include <assert.h>
2364 /* Override any gcc2 internal prototype to avoid an error. */
2365 /* We use char because int might match the return type of a gcc2
2366 builtin and then its argument prototype would still apply. */
2367 char dlopen();
2369 int main() {
2371 /* The GNU C library defines this for functions which it implements
2372 to always fail with ENOSYS. Some functions are actually named
2373 something starting with __ and the normal name is an alias. */
2374 #if defined (__stub_dlopen) || defined (__stub___dlopen)
2375 choke me
2376 #else
2377 dlopen();
2378 #endif
2380 ; return 0; }
2382 if { (eval echo configure:2383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2383 rm -rf conftest*
2384 eval "ac_cv_func_dlopen=yes"
2385 else
2386 echo "configure: failed program was:" >&5
2387 cat conftest.$ac_ext >&5
2388 rm -rf conftest*
2389 eval "ac_cv_func_dlopen=no"
2391 rm -f conftest*
2394 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
2395 echo "$ac_t""yes" 1>&6
2396 HAVEDL="yes"
2397 else
2398 echo "$ac_t""no" 1>&6
2399 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2400 echo "configure:2401: checking for dlopen in -ldl" >&5
2401 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2402 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2403 echo $ac_n "(cached) $ac_c" 1>&6
2404 else
2405 ac_save_LIBS="$LIBS"
2406 LIBS="-ldl $LIBS"
2407 cat > conftest.$ac_ext <<EOF
2408 #line 2409 "configure"
2409 #include "confdefs.h"
2410 /* Override any gcc2 internal prototype to avoid an error. */
2411 /* We use char because int might match the return type of a gcc2
2412 builtin and then its argument prototype would still apply. */
2413 char dlopen();
2415 int main() {
2416 dlopen()
2417 ; return 0; }
2419 if { (eval echo configure:2420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2420 rm -rf conftest*
2421 eval "ac_cv_lib_$ac_lib_var=yes"
2422 else
2423 echo "configure: failed program was:" >&5
2424 cat conftest.$ac_ext >&5
2425 rm -rf conftest*
2426 eval "ac_cv_lib_$ac_lib_var=no"
2428 rm -f conftest*
2429 LIBS="$ac_save_LIBS"
2432 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2433 echo "$ac_t""yes" 1>&6
2434 DLLIBS="-ldl" HAVEDL="yes"
2435 else
2436 echo "$ac_t""no" 1>&6
2437 DLLIBS=""
2443 if test "x$HAVEDL" = xyes; then
2444 for ac_hdr in dlfcn.h
2446 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2447 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2448 echo "configure:2449: checking for $ac_hdr" >&5
2449 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2450 echo $ac_n "(cached) $ac_c" 1>&6
2451 else
2452 cat > conftest.$ac_ext <<EOF
2453 #line 2454 "configure"
2454 #include "confdefs.h"
2455 #include <$ac_hdr>
2457 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2458 { (eval echo configure:2459: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2459 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2460 if test -z "$ac_err"; then
2461 rm -rf conftest*
2462 eval "ac_cv_header_$ac_safe=yes"
2463 else
2464 echo "$ac_err" >&5
2465 echo "configure: failed program was:" >&5
2466 cat conftest.$ac_ext >&5
2467 rm -rf conftest*
2468 eval "ac_cv_header_$ac_safe=no"
2470 rm -f conftest*
2472 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2473 echo "$ac_t""yes" 1>&6
2474 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2475 cat >> confdefs.h <<EOF
2476 #define $ac_tr_hdr 1
2479 else
2480 echo "$ac_t""no" 1>&6
2482 done
2488 if test "x$CPP_PATH" = x; then
2489 # Extract the first word of "cpp", so it can be a program name with args.
2490 set dummy cpp; ac_word=$2
2491 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2492 echo "configure:2493: checking for $ac_word" >&5
2493 if eval "test \"`echo '$''{'ac_cv_path_CPP_PATH'+set}'`\" = set"; then
2494 echo $ac_n "(cached) $ac_c" 1>&6
2495 else
2496 case "$CPP_PATH" in
2498 ac_cv_path_CPP_PATH="$CPP_PATH" # Let the user override the test with a path.
2500 ?:/*)
2501 ac_cv_path_CPP_PATH="$CPP_PATH" # Let the user override the test with a dos path.
2504 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2505 ac_dummy="$PATH:/lib:/usr/bin:/bin:/usr/lib:/usr/ccs/lib"
2506 for ac_dir in $ac_dummy; do
2507 test -z "$ac_dir" && ac_dir=.
2508 if test -f $ac_dir/$ac_word; then
2509 ac_cv_path_CPP_PATH="$ac_dir/$ac_word"
2510 break
2512 done
2513 IFS="$ac_save_ifs"
2514 test -z "$ac_cv_path_CPP_PATH" && ac_cv_path_CPP_PATH="notfound"
2516 esac
2518 CPP_PATH="$ac_cv_path_CPP_PATH"
2519 if test -n "$CPP_PATH"; then
2520 echo "$ac_t""$CPP_PATH" 1>&6
2521 else
2522 echo "$ac_t""no" 1>&6
2527 if test "$CPP_PATH" = "/usr/ccs/lib/cpp" -o "$CPP_PATH" = "notfound" ; then
2528 if test "$GCC" = "yes"; then
2529 CPP_PATH="gcc -E -x c"
2530 else
2531 if test "$CPP_PATH" = "/usr/ccs/lib/cpp"; then
2532 CPP_PATH="$CPP_PATH -B"
2533 else
2534 echo "cpp, the C preprocessor was not found in your system."
2535 echo "Create a symbolic link from it to /lib/cpp and rerun configure"
2536 exit
2540 cat >> confdefs.h <<EOF
2541 #define CPP_PATH "$CPP_PATH"
2547 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2548 echo "configure:2549: checking for sys/wait.h that is POSIX.1 compatible" >&5
2549 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2550 echo $ac_n "(cached) $ac_c" 1>&6
2551 else
2552 cat > conftest.$ac_ext <<EOF
2553 #line 2554 "configure"
2554 #include "confdefs.h"
2555 #include <sys/types.h>
2556 #include <sys/wait.h>
2557 #ifndef WEXITSTATUS
2558 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2559 #endif
2560 #ifndef WIFEXITED
2561 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2562 #endif
2563 int main() {
2564 int s;
2565 wait (&s);
2566 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2567 ; return 0; }
2569 if { (eval echo configure:2570: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2570 rm -rf conftest*
2571 ac_cv_header_sys_wait_h=yes
2572 else
2573 echo "configure: failed program was:" >&5
2574 cat conftest.$ac_ext >&5
2575 rm -rf conftest*
2576 ac_cv_header_sys_wait_h=no
2578 rm -f conftest*
2581 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2582 if test $ac_cv_header_sys_wait_h = yes; then
2583 cat >> confdefs.h <<\EOF
2584 #define HAVE_SYS_WAIT_H 1
2589 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2590 echo "configure:2591: checking whether time.h and sys/time.h may both be included" >&5
2591 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2592 echo $ac_n "(cached) $ac_c" 1>&6
2593 else
2594 cat > conftest.$ac_ext <<EOF
2595 #line 2596 "configure"
2596 #include "confdefs.h"
2597 #include <sys/types.h>
2598 #include <sys/time.h>
2599 #include <time.h>
2600 int main() {
2601 struct tm *tp;
2602 ; return 0; }
2604 if { (eval echo configure:2605: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2605 rm -rf conftest*
2606 ac_cv_header_time=yes
2607 else
2608 echo "configure: failed program was:" >&5
2609 cat conftest.$ac_ext >&5
2610 rm -rf conftest*
2611 ac_cv_header_time=no
2613 rm -f conftest*
2616 echo "$ac_t""$ac_cv_header_time" 1>&6
2617 if test $ac_cv_header_time = yes; then
2618 cat >> confdefs.h <<\EOF
2619 #define TIME_WITH_SYS_TIME 1
2624 for ac_hdr in fcntl.h limits.h sys/ioctl.h sys/time.h sys/types.h\
2625 libintl.h sys/select.h poll.h
2627 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2628 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2629 echo "configure:2630: checking for $ac_hdr" >&5
2630 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2631 echo $ac_n "(cached) $ac_c" 1>&6
2632 else
2633 cat > conftest.$ac_ext <<EOF
2634 #line 2635 "configure"
2635 #include "confdefs.h"
2636 #include <$ac_hdr>
2638 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2639 { (eval echo configure:2640: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2640 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2641 if test -z "$ac_err"; then
2642 rm -rf conftest*
2643 eval "ac_cv_header_$ac_safe=yes"
2644 else
2645 echo "$ac_err" >&5
2646 echo "configure: failed program was:" >&5
2647 cat conftest.$ac_ext >&5
2648 rm -rf conftest*
2649 eval "ac_cv_header_$ac_safe=no"
2651 rm -f conftest*
2653 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2654 echo "$ac_t""yes" 1>&6
2655 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2656 cat >> confdefs.h <<EOF
2657 #define $ac_tr_hdr 1
2660 else
2661 echo "$ac_t""no" 1>&6
2663 done
2668 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2669 echo "configure:2670: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2670 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
2671 echo $ac_n "(cached) $ac_c" 1>&6
2672 else
2673 cat > conftest.$ac_ext <<EOF
2674 #line 2675 "configure"
2675 #include "confdefs.h"
2676 #include <sys/types.h>
2677 #include <signal.h>
2678 /* NetBSD declares sys_siglist in unistd.h. */
2679 #ifdef HAVE_UNISTD_H
2680 #include <unistd.h>
2681 #endif
2682 int main() {
2683 char *msg = *(sys_siglist + 1);
2684 ; return 0; }
2686 if { (eval echo configure:2687: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2687 rm -rf conftest*
2688 ac_cv_decl_sys_siglist=yes
2689 else
2690 echo "configure: failed program was:" >&5
2691 cat conftest.$ac_ext >&5
2692 rm -rf conftest*
2693 ac_cv_decl_sys_siglist=no
2695 rm -f conftest*
2698 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
2699 if test $ac_cv_decl_sys_siglist = yes; then
2700 cat >> confdefs.h <<\EOF
2701 #define SYS_SIGLIST_DECLARED 1
2706 echo $ac_n "checking for working const""... $ac_c" 1>&6
2707 echo "configure:2708: checking for working const" >&5
2708 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2709 echo $ac_n "(cached) $ac_c" 1>&6
2710 else
2711 cat > conftest.$ac_ext <<EOF
2712 #line 2713 "configure"
2713 #include "confdefs.h"
2715 int main() {
2717 /* Ultrix mips cc rejects this. */
2718 typedef int charset[2]; const charset x;
2719 /* SunOS 4.1.1 cc rejects this. */
2720 char const *const *ccp;
2721 char **p;
2722 /* NEC SVR4.0.2 mips cc rejects this. */
2723 struct point {int x, y;};
2724 static struct point const zero = {0,0};
2725 /* AIX XL C 1.02.0.0 rejects this.
2726 It does not let you subtract one const X* pointer from another in an arm
2727 of an if-expression whose if-part is not a constant expression */
2728 const char *g = "string";
2729 ccp = &g + (g ? g-g : 0);
2730 /* HPUX 7.0 cc rejects these. */
2731 ++ccp;
2732 p = (char**) ccp;
2733 ccp = (char const *const *) p;
2734 { /* SCO 3.2v4 cc rejects this. */
2735 char *t;
2736 char const *s = 0 ? (char *) 0 : (char const *) 0;
2738 *t++ = 0;
2740 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2741 int x[] = {25, 17};
2742 const int *foo = &x[0];
2743 ++foo;
2745 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2746 typedef const int *iptr;
2747 iptr p = 0;
2748 ++p;
2750 { /* AIX XL C 1.02.0.0 rejects this saying
2751 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2752 struct s { int j; const int *ap[3]; };
2753 struct s *b; b->j = 5;
2755 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2756 const int foo = 10;
2759 ; return 0; }
2761 if { (eval echo configure:2762: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2762 rm -rf conftest*
2763 ac_cv_c_const=yes
2764 else
2765 echo "configure: failed program was:" >&5
2766 cat conftest.$ac_ext >&5
2767 rm -rf conftest*
2768 ac_cv_c_const=no
2770 rm -f conftest*
2773 echo "$ac_t""$ac_cv_c_const" 1>&6
2774 if test $ac_cv_c_const = no; then
2775 cat >> confdefs.h <<\EOF
2776 #define const
2781 #AC_TYPE_SIZE_T
2782 #AC_TYPE_PID_T
2783 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2784 echo "configure:2785: checking return type of signal handlers" >&5
2785 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2786 echo $ac_n "(cached) $ac_c" 1>&6
2787 else
2788 cat > conftest.$ac_ext <<EOF
2789 #line 2790 "configure"
2790 #include "confdefs.h"
2791 #include <sys/types.h>
2792 #include <signal.h>
2793 #ifdef signal
2794 #undef signal
2795 #endif
2796 #ifdef __cplusplus
2797 extern "C" void (*signal (int, void (*)(int)))(int);
2798 #else
2799 void (*signal ()) ();
2800 #endif
2802 int main() {
2803 int i;
2804 ; return 0; }
2806 if { (eval echo configure:2807: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2807 rm -rf conftest*
2808 ac_cv_type_signal=void
2809 else
2810 echo "configure: failed program was:" >&5
2811 cat conftest.$ac_ext >&5
2812 rm -rf conftest*
2813 ac_cv_type_signal=int
2815 rm -f conftest*
2818 echo "$ac_t""$ac_cv_type_signal" 1>&6
2819 cat >> confdefs.h <<EOF
2820 #define RETSIGTYPE $ac_cv_type_signal
2831 INTLIBS=""
2833 echo $ac_n "checking for gettext""... $ac_c" 1>&6
2834 echo "configure:2835: checking for gettext" >&5
2835 if eval "test \"`echo '$''{'ac_cv_func_gettext'+set}'`\" = set"; then
2836 echo $ac_n "(cached) $ac_c" 1>&6
2837 else
2838 cat > conftest.$ac_ext <<EOF
2839 #line 2840 "configure"
2840 #include "confdefs.h"
2841 /* System header to define __stub macros and hopefully few prototypes,
2842 which can conflict with char gettext(); below. */
2843 #include <assert.h>
2844 /* Override any gcc2 internal prototype to avoid an error. */
2845 /* We use char because int might match the return type of a gcc2
2846 builtin and then its argument prototype would still apply. */
2847 char gettext();
2849 int main() {
2851 /* The GNU C library defines this for functions which it implements
2852 to always fail with ENOSYS. Some functions are actually named
2853 something starting with __ and the normal name is an alias. */
2854 #if defined (__stub_gettext) || defined (__stub___gettext)
2855 choke me
2856 #else
2857 gettext();
2858 #endif
2860 ; return 0; }
2862 if { (eval echo configure:2863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2863 rm -rf conftest*
2864 eval "ac_cv_func_gettext=yes"
2865 else
2866 echo "configure: failed program was:" >&5
2867 cat conftest.$ac_ext >&5
2868 rm -rf conftest*
2869 eval "ac_cv_func_gettext=no"
2871 rm -f conftest*
2874 if eval "test \"`echo '$ac_cv_func_'gettext`\" = yes"; then
2875 echo "$ac_t""yes" 1>&6
2876 HAVEGETTEXT="yes"
2877 else
2878 echo "$ac_t""no" 1>&6
2879 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
2880 echo "configure:2881: checking for gettext in -lintl" >&5
2881 ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
2882 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2883 echo $ac_n "(cached) $ac_c" 1>&6
2884 else
2885 ac_save_LIBS="$LIBS"
2886 LIBS="-lintl $LIBS"
2887 cat > conftest.$ac_ext <<EOF
2888 #line 2889 "configure"
2889 #include "confdefs.h"
2890 /* Override any gcc2 internal prototype to avoid an error. */
2891 /* We use char because int might match the return type of a gcc2
2892 builtin and then its argument prototype would still apply. */
2893 char gettext();
2895 int main() {
2896 gettext()
2897 ; return 0; }
2899 if { (eval echo configure:2900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2900 rm -rf conftest*
2901 eval "ac_cv_lib_$ac_lib_var=yes"
2902 else
2903 echo "configure: failed program was:" >&5
2904 cat conftest.$ac_ext >&5
2905 rm -rf conftest*
2906 eval "ac_cv_lib_$ac_lib_var=no"
2908 rm -f conftest*
2909 LIBS="$ac_save_LIBS"
2912 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2913 echo "$ac_t""yes" 1>&6
2914 INTLIBS="-lintl" HAVEGETTEXT="yes"
2915 else
2916 echo "$ac_t""no" 1>&6
2917 INTLIBS=""
2923 # Extract the first word of "xgettext", so it can be a program name with args.
2924 set dummy xgettext; ac_word=$2
2925 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2926 echo "configure:2927: checking for $ac_word" >&5
2927 if eval "test \"`echo '$''{'ac_cv_prog_XGETTEXT'+set}'`\" = set"; then
2928 echo $ac_n "(cached) $ac_c" 1>&6
2929 else
2930 if test -n "$XGETTEXT"; then
2931 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
2932 else
2933 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2934 ac_dummy="$PATH"
2935 for ac_dir in $ac_dummy; do
2936 test -z "$ac_dir" && ac_dir=.
2937 if test -f $ac_dir/$ac_word; then
2938 ac_cv_prog_XGETTEXT="xgettext"
2939 break
2941 done
2942 IFS="$ac_save_ifs"
2945 XGETTEXT="$ac_cv_prog_XGETTEXT"
2946 if test -n "$XGETTEXT"; then
2947 echo "$ac_t""$XGETTEXT" 1>&6
2948 else
2949 echo "$ac_t""no" 1>&6
2953 if test "$XGETTEXT" != ""; then
2954 if $XGETTEXT --help 2>&1 | grep illegal >/dev/null ; then
2955 echo "xgettext isn't GNU version"
2956 XGETTEXT=""
2960 if test "$LINGUAS" != ""; then
2961 if test "$XGETTEXT" != "" -a "$HAVEGETTEXT" != ""; then
2962 cat >> confdefs.h <<\EOF
2963 #define I18N 1
2966 PO=""
2967 # if test "$LINGUAS" = ""; then
2968 # ling=` (cd src/po; /bin/ls *.po) `
2969 # for l in $ling; do
2970 # lcode=`basename $l .po`
2971 # LINGUAS="$LINGUAS $lcode"
2972 # done
2973 # fi
2974 echo "xgettext and gettext() exist; will build i18n support for $LINGUAS"
2975 else
2976 LINGUAS=""
2977 PO=""
2978 echo "xgettext and libintl.a don't both exist; will not build i18n support"
2980 else
2981 INTLIBS=""
2982 MOFILES=""
2983 WPMOFILES=""
2984 PO=""
2989 supported_locales="cs de es fr gl it ja ko nl no pt ru se tr fi hr el pl ro da zh_TW.Big5 zh_CN sk"
2990 supported_wprefs_locales="pt hr fr ko ja cs zh_TW.Big5 es zh_CN"
2992 for lang in $LINGUAS; do
2993 ok=0
2994 for l in $supported_locales; do
2995 if test "$l" = "$lang"; then
2996 ok=1
2997 break
2999 done
3000 if test "$ok" = 1; then
3001 MOFILES="$MOFILES $lang.mo"
3002 else
3003 echo "Locale $lang is not supported."
3005 ok=0
3006 for l in $supported_wprefs_locales; do
3007 if test "$l" = "$lang"; then
3008 ok=1
3009 break
3011 done
3012 if test "$ok" = 1; then
3013 WPMOFILES="$WPMOFILES $lang.mo"
3015 done
3018 I18n=no
3019 # Check whether --enable-kanji or --disable-kanji was given.
3020 if test "${enable_kanji+set}" = set; then
3021 enableval="$enable_kanji"
3023 else
3024 enable_kanji=no
3028 if test "$enable_kanji" = yes; then
3029 case $host_os in
3030 freebsd*)
3031 echo $ac_n "checking for setlocale in -lxpg4""... $ac_c" 1>&6
3032 echo "configure:3033: checking for setlocale in -lxpg4" >&5
3033 ac_lib_var=`echo xpg4'_'setlocale | sed 'y%./+-%__p_%'`
3034 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3035 echo $ac_n "(cached) $ac_c" 1>&6
3036 else
3037 ac_save_LIBS="$LIBS"
3038 LIBS="-lxpg4 $LIBS"
3039 cat > conftest.$ac_ext <<EOF
3040 #line 3041 "configure"
3041 #include "confdefs.h"
3042 /* Override any gcc2 internal prototype to avoid an error. */
3043 /* We use char because int might match the return type of a gcc2
3044 builtin and then its argument prototype would still apply. */
3045 char setlocale();
3047 int main() {
3048 setlocale()
3049 ; return 0; }
3051 if { (eval echo configure:3052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3052 rm -rf conftest*
3053 eval "ac_cv_lib_$ac_lib_var=yes"
3054 else
3055 echo "configure: failed program was:" >&5
3056 cat conftest.$ac_ext >&5
3057 rm -rf conftest*
3058 eval "ac_cv_lib_$ac_lib_var=no"
3060 rm -f conftest*
3061 LIBS="$ac_save_LIBS"
3064 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3065 echo "$ac_t""yes" 1>&6
3066 LIBS="$LIBS -lxpg4"
3067 else
3068 echo "$ac_t""no" 1>&6
3073 esac
3074 cat >> confdefs.h <<\EOF
3075 #define I18N_MB 1
3082 # Check whether --with-nlsdir or --without-nlsdir was given.
3083 if test "${with_nlsdir+set}" = set; then
3084 withval="$with_nlsdir"
3090 if test "x$NLSDIR" = "x"; then
3091 if test "x$with_nlsdir" != "x"; then
3092 NLSDIR=$with_nlsdir
3093 else
3094 NLSDIR='$(prefix)/lib/locale'
3110 # Check whether --enable-gnome or --disable-gnome was given.
3111 if test "${enable_gnome+set}" = set; then
3112 enableval="$enable_gnome"
3113 if test x$enableval = xyes; then
3114 cat >> confdefs.h <<\EOF
3115 #define GNOME_STUFF 1
3118 gnome_on=yes
3124 # Check whether --enable-kde or --disable-kde was given.
3125 if test "${enable_kde+set}" = set; then
3126 enableval="$enable_kde"
3127 if test x$enableval = xyes; then
3128 cat >> confdefs.h <<\EOF
3129 #define KWM_HINTS 1
3132 kde_on=yes
3138 # Check whether --enable-openlook or --disable-openlook was given.
3139 if test "${enable_openlook+set}" = set; then
3140 enableval="$enable_openlook"
3141 if test x$enableval = xyes; then
3142 cat >> confdefs.h <<\EOF
3143 #define OLWM_HINTS 1
3146 openlook_on=yes
3152 # Check whether --enable-lite or --disable-lite was given.
3153 if test "${enable_lite+set}" = set; then
3154 enableval="$enable_lite"
3155 if test x$enableval = xyes; then
3156 LITE=yes
3157 cat >> confdefs.h <<\EOF
3158 #define LITE 1
3169 # If we find X, set shell vars x_includes and x_libraries to the
3170 # paths, otherwise set no_x=yes.
3171 # Uses ac_ vars as temps to allow command line to override cache and checks.
3172 # --without-x overrides everything else, but does not touch the cache.
3173 echo $ac_n "checking for X""... $ac_c" 1>&6
3174 echo "configure:3175: checking for X" >&5
3176 # Check whether --with-x or --without-x was given.
3177 if test "${with_x+set}" = set; then
3178 withval="$with_x"
3182 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3183 if test "x$with_x" = xno; then
3184 # The user explicitly disabled X.
3185 have_x=disabled
3186 else
3187 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
3188 # Both variables are already set.
3189 have_x=yes
3190 else
3191 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
3192 echo $ac_n "(cached) $ac_c" 1>&6
3193 else
3194 # One or both of the vars are not set, and there is no cached value.
3195 ac_x_includes=NO ac_x_libraries=NO
3196 rm -fr conftestdir
3197 if mkdir conftestdir; then
3198 cd conftestdir
3199 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3200 cat > Imakefile <<'EOF'
3201 acfindx:
3202 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3204 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
3205 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3206 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3207 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3208 for ac_extension in a so sl; do
3209 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
3210 test -f $ac_im_libdir/libX11.$ac_extension; then
3211 ac_im_usrlibdir=$ac_im_libdir; break
3213 done
3214 # Screen out bogus values from the imake configuration. They are
3215 # bogus both because they are the default anyway, and because
3216 # using them would break gcc on systems where it needs fixed includes.
3217 case "$ac_im_incroot" in
3218 /usr/include) ;;
3219 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
3220 esac
3221 case "$ac_im_usrlibdir" in
3222 /usr/lib | /lib) ;;
3223 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
3224 esac
3226 cd ..
3227 rm -fr conftestdir
3230 if test "$ac_x_includes" = NO; then
3231 # Guess where to find include files, by looking for this one X11 .h file.
3232 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
3234 # First, try using that file with no special directory specified.
3235 cat > conftest.$ac_ext <<EOF
3236 #line 3237 "configure"
3237 #include "confdefs.h"
3238 #include <$x_direct_test_include>
3240 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3241 { (eval echo configure:3242: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3242 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3243 if test -z "$ac_err"; then
3244 rm -rf conftest*
3245 # We can compile using X headers with no special include directory.
3246 ac_x_includes=
3247 else
3248 echo "$ac_err" >&5
3249 echo "configure: failed program was:" >&5
3250 cat conftest.$ac_ext >&5
3251 rm -rf conftest*
3252 # Look for the header file in a standard set of common directories.
3253 # Check X11 before X11Rn because it is often a symlink to the current release.
3254 for ac_dir in \
3255 /usr/X11/include \
3256 /usr/X11R6/include \
3257 /usr/X11R5/include \
3258 /usr/X11R4/include \
3260 /usr/include/X11 \
3261 /usr/include/X11R6 \
3262 /usr/include/X11R5 \
3263 /usr/include/X11R4 \
3265 /usr/local/X11/include \
3266 /usr/local/X11R6/include \
3267 /usr/local/X11R5/include \
3268 /usr/local/X11R4/include \
3270 /usr/local/include/X11 \
3271 /usr/local/include/X11R6 \
3272 /usr/local/include/X11R5 \
3273 /usr/local/include/X11R4 \
3275 /usr/X386/include \
3276 /usr/x386/include \
3277 /usr/XFree86/include/X11 \
3279 /usr/include \
3280 /usr/local/include \
3281 /usr/unsupported/include \
3282 /usr/athena/include \
3283 /usr/local/x11r5/include \
3284 /usr/lpp/Xamples/include \
3286 /usr/openwin/include \
3287 /usr/openwin/share/include \
3290 if test -r "$ac_dir/$x_direct_test_include"; then
3291 ac_x_includes=$ac_dir
3292 break
3294 done
3296 rm -f conftest*
3297 fi # $ac_x_includes = NO
3299 if test "$ac_x_libraries" = NO; then
3300 # Check for the libraries.
3302 test -z "$x_direct_test_library" && x_direct_test_library=Xt
3303 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
3305 # See if we find them without any special options.
3306 # Don't add to $LIBS permanently.
3307 ac_save_LIBS="$LIBS"
3308 LIBS="-l$x_direct_test_library $LIBS"
3309 cat > conftest.$ac_ext <<EOF
3310 #line 3311 "configure"
3311 #include "confdefs.h"
3313 int main() {
3314 ${x_direct_test_function}()
3315 ; return 0; }
3317 if { (eval echo configure:3318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3318 rm -rf conftest*
3319 LIBS="$ac_save_LIBS"
3320 # We can link X programs with no special library path.
3321 ac_x_libraries=
3322 else
3323 echo "configure: failed program was:" >&5
3324 cat conftest.$ac_ext >&5
3325 rm -rf conftest*
3326 LIBS="$ac_save_LIBS"
3327 # First see if replacing the include by lib works.
3328 # Check X11 before X11Rn because it is often a symlink to the current release.
3329 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
3330 /usr/X11/lib \
3331 /usr/X11R6/lib \
3332 /usr/X11R5/lib \
3333 /usr/X11R4/lib \
3335 /usr/lib/X11 \
3336 /usr/lib/X11R6 \
3337 /usr/lib/X11R5 \
3338 /usr/lib/X11R4 \
3340 /usr/local/X11/lib \
3341 /usr/local/X11R6/lib \
3342 /usr/local/X11R5/lib \
3343 /usr/local/X11R4/lib \
3345 /usr/local/lib/X11 \
3346 /usr/local/lib/X11R6 \
3347 /usr/local/lib/X11R5 \
3348 /usr/local/lib/X11R4 \
3350 /usr/X386/lib \
3351 /usr/x386/lib \
3352 /usr/XFree86/lib/X11 \
3354 /usr/lib \
3355 /usr/local/lib \
3356 /usr/unsupported/lib \
3357 /usr/athena/lib \
3358 /usr/local/x11r5/lib \
3359 /usr/lpp/Xamples/lib \
3360 /lib/usr/lib/X11 \
3362 /usr/openwin/lib \
3363 /usr/openwin/share/lib \
3366 for ac_extension in a so sl; do
3367 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
3368 ac_x_libraries=$ac_dir
3369 break 2
3371 done
3372 done
3374 rm -f conftest*
3375 fi # $ac_x_libraries = NO
3377 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
3378 # Didn't find X anywhere. Cache the known absence of X.
3379 ac_cv_have_x="have_x=no"
3380 else
3381 # Record where we found X for the cache.
3382 ac_cv_have_x="have_x=yes \
3383 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3387 eval "$ac_cv_have_x"
3388 fi # $with_x != no
3390 if test "$have_x" != yes; then
3391 echo "$ac_t""$have_x" 1>&6
3392 no_x=yes
3393 else
3394 # If each of the values was on the command line, it overrides each guess.
3395 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3396 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3397 # Update the cache value to reflect the command line values.
3398 ac_cv_have_x="have_x=yes \
3399 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3400 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
3403 if test "$no_x" = yes; then
3404 # Not all programs may use this symbol, but it does not hurt to define it.
3405 cat >> confdefs.h <<\EOF
3406 #define X_DISPLAY_MISSING 1
3409 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3410 else
3411 if test -n "$x_includes"; then
3412 X_CFLAGS="$X_CFLAGS -I$x_includes"
3415 # It would also be nice to do this for all -L options, not just this one.
3416 if test -n "$x_libraries"; then
3417 X_LIBS="$X_LIBS -L$x_libraries"
3418 # For Solaris; some versions of Sun CC require a space after -R and
3419 # others require no space. Words are not sufficient . . . .
3420 case "`(uname -sr) 2>/dev/null`" in
3421 "SunOS 5"*)
3422 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
3423 echo "configure:3424: checking whether -R must be followed by a space" >&5
3424 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
3425 cat > conftest.$ac_ext <<EOF
3426 #line 3427 "configure"
3427 #include "confdefs.h"
3429 int main() {
3431 ; return 0; }
3433 if { (eval echo configure:3434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3434 rm -rf conftest*
3435 ac_R_nospace=yes
3436 else
3437 echo "configure: failed program was:" >&5
3438 cat conftest.$ac_ext >&5
3439 rm -rf conftest*
3440 ac_R_nospace=no
3442 rm -f conftest*
3443 if test $ac_R_nospace = yes; then
3444 echo "$ac_t""no" 1>&6
3445 X_LIBS="$X_LIBS -R$x_libraries"
3446 else
3447 LIBS="$ac_xsave_LIBS -R $x_libraries"
3448 cat > conftest.$ac_ext <<EOF
3449 #line 3450 "configure"
3450 #include "confdefs.h"
3452 int main() {
3454 ; return 0; }
3456 if { (eval echo configure:3457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3457 rm -rf conftest*
3458 ac_R_space=yes
3459 else
3460 echo "configure: failed program was:" >&5
3461 cat conftest.$ac_ext >&5
3462 rm -rf conftest*
3463 ac_R_space=no
3465 rm -f conftest*
3466 if test $ac_R_space = yes; then
3467 echo "$ac_t""yes" 1>&6
3468 X_LIBS="$X_LIBS -R $x_libraries"
3469 else
3470 echo "$ac_t""neither works" 1>&6
3473 LIBS="$ac_xsave_LIBS"
3474 esac
3477 # Check for system-dependent libraries X programs must link with.
3478 # Do this before checking for the system-independent R6 libraries
3479 # (-lICE), since we may need -lsocket or whatever for X linking.
3481 if test "$ISC" = yes; then
3482 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3483 else
3484 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
3485 # libraries were built with DECnet support. And karl@cs.umb.edu says
3486 # the Alpha needs dnet_stub (dnet does not exist).
3487 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
3488 echo "configure:3489: checking for dnet_ntoa in -ldnet" >&5
3489 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3490 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3491 echo $ac_n "(cached) $ac_c" 1>&6
3492 else
3493 ac_save_LIBS="$LIBS"
3494 LIBS="-ldnet $LIBS"
3495 cat > conftest.$ac_ext <<EOF
3496 #line 3497 "configure"
3497 #include "confdefs.h"
3498 /* Override any gcc2 internal prototype to avoid an error. */
3499 /* We use char because int might match the return type of a gcc2
3500 builtin and then its argument prototype would still apply. */
3501 char dnet_ntoa();
3503 int main() {
3504 dnet_ntoa()
3505 ; return 0; }
3507 if { (eval echo configure:3508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3508 rm -rf conftest*
3509 eval "ac_cv_lib_$ac_lib_var=yes"
3510 else
3511 echo "configure: failed program was:" >&5
3512 cat conftest.$ac_ext >&5
3513 rm -rf conftest*
3514 eval "ac_cv_lib_$ac_lib_var=no"
3516 rm -f conftest*
3517 LIBS="$ac_save_LIBS"
3520 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3521 echo "$ac_t""yes" 1>&6
3522 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3523 else
3524 echo "$ac_t""no" 1>&6
3527 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3528 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
3529 echo "configure:3530: checking for dnet_ntoa in -ldnet_stub" >&5
3530 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3531 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3532 echo $ac_n "(cached) $ac_c" 1>&6
3533 else
3534 ac_save_LIBS="$LIBS"
3535 LIBS="-ldnet_stub $LIBS"
3536 cat > conftest.$ac_ext <<EOF
3537 #line 3538 "configure"
3538 #include "confdefs.h"
3539 /* Override any gcc2 internal prototype to avoid an error. */
3540 /* We use char because int might match the return type of a gcc2
3541 builtin and then its argument prototype would still apply. */
3542 char dnet_ntoa();
3544 int main() {
3545 dnet_ntoa()
3546 ; return 0; }
3548 if { (eval echo configure:3549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3549 rm -rf conftest*
3550 eval "ac_cv_lib_$ac_lib_var=yes"
3551 else
3552 echo "configure: failed program was:" >&5
3553 cat conftest.$ac_ext >&5
3554 rm -rf conftest*
3555 eval "ac_cv_lib_$ac_lib_var=no"
3557 rm -f conftest*
3558 LIBS="$ac_save_LIBS"
3561 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3562 echo "$ac_t""yes" 1>&6
3563 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3564 else
3565 echo "$ac_t""no" 1>&6
3570 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3571 # to get the SysV transport functions.
3572 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
3573 # needs -lnsl.
3574 # The nsl library prevents programs from opening the X display
3575 # on Irix 5.2, according to dickey@clark.net.
3576 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3577 echo "configure:3578: checking for gethostbyname" >&5
3578 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3579 echo $ac_n "(cached) $ac_c" 1>&6
3580 else
3581 cat > conftest.$ac_ext <<EOF
3582 #line 3583 "configure"
3583 #include "confdefs.h"
3584 /* System header to define __stub macros and hopefully few prototypes,
3585 which can conflict with char gethostbyname(); below. */
3586 #include <assert.h>
3587 /* Override any gcc2 internal prototype to avoid an error. */
3588 /* We use char because int might match the return type of a gcc2
3589 builtin and then its argument prototype would still apply. */
3590 char gethostbyname();
3592 int main() {
3594 /* The GNU C library defines this for functions which it implements
3595 to always fail with ENOSYS. Some functions are actually named
3596 something starting with __ and the normal name is an alias. */
3597 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3598 choke me
3599 #else
3600 gethostbyname();
3601 #endif
3603 ; return 0; }
3605 if { (eval echo configure:3606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3606 rm -rf conftest*
3607 eval "ac_cv_func_gethostbyname=yes"
3608 else
3609 echo "configure: failed program was:" >&5
3610 cat conftest.$ac_ext >&5
3611 rm -rf conftest*
3612 eval "ac_cv_func_gethostbyname=no"
3614 rm -f conftest*
3617 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3618 echo "$ac_t""yes" 1>&6
3620 else
3621 echo "$ac_t""no" 1>&6
3624 if test $ac_cv_func_gethostbyname = no; then
3625 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3626 echo "configure:3627: checking for gethostbyname in -lnsl" >&5
3627 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3628 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3629 echo $ac_n "(cached) $ac_c" 1>&6
3630 else
3631 ac_save_LIBS="$LIBS"
3632 LIBS="-lnsl $LIBS"
3633 cat > conftest.$ac_ext <<EOF
3634 #line 3635 "configure"
3635 #include "confdefs.h"
3636 /* Override any gcc2 internal prototype to avoid an error. */
3637 /* We use char because int might match the return type of a gcc2
3638 builtin and then its argument prototype would still apply. */
3639 char gethostbyname();
3641 int main() {
3642 gethostbyname()
3643 ; return 0; }
3645 if { (eval echo configure:3646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3646 rm -rf conftest*
3647 eval "ac_cv_lib_$ac_lib_var=yes"
3648 else
3649 echo "configure: failed program was:" >&5
3650 cat conftest.$ac_ext >&5
3651 rm -rf conftest*
3652 eval "ac_cv_lib_$ac_lib_var=no"
3654 rm -f conftest*
3655 LIBS="$ac_save_LIBS"
3658 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3659 echo "$ac_t""yes" 1>&6
3660 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3661 else
3662 echo "$ac_t""no" 1>&6
3667 # lieder@skyler.mavd.honeywell.com says without -lsocket,
3668 # socket/setsockopt and other routines are undefined under SCO ODT
3669 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
3670 # on later versions), says simon@lia.di.epfl.ch: it contains
3671 # gethostby* variants that don't use the nameserver (or something).
3672 # -lsocket must be given before -lnsl if both are needed.
3673 # We assume that if connect needs -lnsl, so does gethostbyname.
3674 echo $ac_n "checking for connect""... $ac_c" 1>&6
3675 echo "configure:3676: checking for connect" >&5
3676 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3677 echo $ac_n "(cached) $ac_c" 1>&6
3678 else
3679 cat > conftest.$ac_ext <<EOF
3680 #line 3681 "configure"
3681 #include "confdefs.h"
3682 /* System header to define __stub macros and hopefully few prototypes,
3683 which can conflict with char connect(); below. */
3684 #include <assert.h>
3685 /* Override any gcc2 internal prototype to avoid an error. */
3686 /* We use char because int might match the return type of a gcc2
3687 builtin and then its argument prototype would still apply. */
3688 char connect();
3690 int main() {
3692 /* The GNU C library defines this for functions which it implements
3693 to always fail with ENOSYS. Some functions are actually named
3694 something starting with __ and the normal name is an alias. */
3695 #if defined (__stub_connect) || defined (__stub___connect)
3696 choke me
3697 #else
3698 connect();
3699 #endif
3701 ; return 0; }
3703 if { (eval echo configure:3704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3704 rm -rf conftest*
3705 eval "ac_cv_func_connect=yes"
3706 else
3707 echo "configure: failed program was:" >&5
3708 cat conftest.$ac_ext >&5
3709 rm -rf conftest*
3710 eval "ac_cv_func_connect=no"
3712 rm -f conftest*
3715 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3716 echo "$ac_t""yes" 1>&6
3718 else
3719 echo "$ac_t""no" 1>&6
3722 if test $ac_cv_func_connect = no; then
3723 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3724 echo "configure:3725: checking for connect in -lsocket" >&5
3725 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3726 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3727 echo $ac_n "(cached) $ac_c" 1>&6
3728 else
3729 ac_save_LIBS="$LIBS"
3730 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3731 cat > conftest.$ac_ext <<EOF
3732 #line 3733 "configure"
3733 #include "confdefs.h"
3734 /* Override any gcc2 internal prototype to avoid an error. */
3735 /* We use char because int might match the return type of a gcc2
3736 builtin and then its argument prototype would still apply. */
3737 char connect();
3739 int main() {
3740 connect()
3741 ; return 0; }
3743 if { (eval echo configure:3744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3744 rm -rf conftest*
3745 eval "ac_cv_lib_$ac_lib_var=yes"
3746 else
3747 echo "configure: failed program was:" >&5
3748 cat conftest.$ac_ext >&5
3749 rm -rf conftest*
3750 eval "ac_cv_lib_$ac_lib_var=no"
3752 rm -f conftest*
3753 LIBS="$ac_save_LIBS"
3756 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3757 echo "$ac_t""yes" 1>&6
3758 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3759 else
3760 echo "$ac_t""no" 1>&6
3765 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
3766 echo $ac_n "checking for remove""... $ac_c" 1>&6
3767 echo "configure:3768: checking for remove" >&5
3768 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
3769 echo $ac_n "(cached) $ac_c" 1>&6
3770 else
3771 cat > conftest.$ac_ext <<EOF
3772 #line 3773 "configure"
3773 #include "confdefs.h"
3774 /* System header to define __stub macros and hopefully few prototypes,
3775 which can conflict with char remove(); below. */
3776 #include <assert.h>
3777 /* Override any gcc2 internal prototype to avoid an error. */
3778 /* We use char because int might match the return type of a gcc2
3779 builtin and then its argument prototype would still apply. */
3780 char remove();
3782 int main() {
3784 /* The GNU C library defines this for functions which it implements
3785 to always fail with ENOSYS. Some functions are actually named
3786 something starting with __ and the normal name is an alias. */
3787 #if defined (__stub_remove) || defined (__stub___remove)
3788 choke me
3789 #else
3790 remove();
3791 #endif
3793 ; return 0; }
3795 if { (eval echo configure:3796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3796 rm -rf conftest*
3797 eval "ac_cv_func_remove=yes"
3798 else
3799 echo "configure: failed program was:" >&5
3800 cat conftest.$ac_ext >&5
3801 rm -rf conftest*
3802 eval "ac_cv_func_remove=no"
3804 rm -f conftest*
3807 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
3808 echo "$ac_t""yes" 1>&6
3810 else
3811 echo "$ac_t""no" 1>&6
3814 if test $ac_cv_func_remove = no; then
3815 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
3816 echo "configure:3817: checking for remove in -lposix" >&5
3817 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
3818 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3819 echo $ac_n "(cached) $ac_c" 1>&6
3820 else
3821 ac_save_LIBS="$LIBS"
3822 LIBS="-lposix $LIBS"
3823 cat > conftest.$ac_ext <<EOF
3824 #line 3825 "configure"
3825 #include "confdefs.h"
3826 /* Override any gcc2 internal prototype to avoid an error. */
3827 /* We use char because int might match the return type of a gcc2
3828 builtin and then its argument prototype would still apply. */
3829 char remove();
3831 int main() {
3832 remove()
3833 ; return 0; }
3835 if { (eval echo configure:3836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3836 rm -rf conftest*
3837 eval "ac_cv_lib_$ac_lib_var=yes"
3838 else
3839 echo "configure: failed program was:" >&5
3840 cat conftest.$ac_ext >&5
3841 rm -rf conftest*
3842 eval "ac_cv_lib_$ac_lib_var=no"
3844 rm -f conftest*
3845 LIBS="$ac_save_LIBS"
3848 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3849 echo "$ac_t""yes" 1>&6
3850 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
3851 else
3852 echo "$ac_t""no" 1>&6
3857 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
3858 echo $ac_n "checking for shmat""... $ac_c" 1>&6
3859 echo "configure:3860: checking for shmat" >&5
3860 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
3861 echo $ac_n "(cached) $ac_c" 1>&6
3862 else
3863 cat > conftest.$ac_ext <<EOF
3864 #line 3865 "configure"
3865 #include "confdefs.h"
3866 /* System header to define __stub macros and hopefully few prototypes,
3867 which can conflict with char shmat(); below. */
3868 #include <assert.h>
3869 /* Override any gcc2 internal prototype to avoid an error. */
3870 /* We use char because int might match the return type of a gcc2
3871 builtin and then its argument prototype would still apply. */
3872 char shmat();
3874 int main() {
3876 /* The GNU C library defines this for functions which it implements
3877 to always fail with ENOSYS. Some functions are actually named
3878 something starting with __ and the normal name is an alias. */
3879 #if defined (__stub_shmat) || defined (__stub___shmat)
3880 choke me
3881 #else
3882 shmat();
3883 #endif
3885 ; return 0; }
3887 if { (eval echo configure:3888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3888 rm -rf conftest*
3889 eval "ac_cv_func_shmat=yes"
3890 else
3891 echo "configure: failed program was:" >&5
3892 cat conftest.$ac_ext >&5
3893 rm -rf conftest*
3894 eval "ac_cv_func_shmat=no"
3896 rm -f conftest*
3899 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
3900 echo "$ac_t""yes" 1>&6
3902 else
3903 echo "$ac_t""no" 1>&6
3906 if test $ac_cv_func_shmat = no; then
3907 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
3908 echo "configure:3909: checking for shmat in -lipc" >&5
3909 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
3910 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3911 echo $ac_n "(cached) $ac_c" 1>&6
3912 else
3913 ac_save_LIBS="$LIBS"
3914 LIBS="-lipc $LIBS"
3915 cat > conftest.$ac_ext <<EOF
3916 #line 3917 "configure"
3917 #include "confdefs.h"
3918 /* Override any gcc2 internal prototype to avoid an error. */
3919 /* We use char because int might match the return type of a gcc2
3920 builtin and then its argument prototype would still apply. */
3921 char shmat();
3923 int main() {
3924 shmat()
3925 ; return 0; }
3927 if { (eval echo configure:3928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3928 rm -rf conftest*
3929 eval "ac_cv_lib_$ac_lib_var=yes"
3930 else
3931 echo "configure: failed program was:" >&5
3932 cat conftest.$ac_ext >&5
3933 rm -rf conftest*
3934 eval "ac_cv_lib_$ac_lib_var=no"
3936 rm -f conftest*
3937 LIBS="$ac_save_LIBS"
3940 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3941 echo "$ac_t""yes" 1>&6
3942 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
3943 else
3944 echo "$ac_t""no" 1>&6
3950 # Check for libraries that X11R6 Xt/Xaw programs need.
3951 ac_save_LDFLAGS="$LDFLAGS"
3952 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
3953 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
3954 # check for ICE first), but we must link in the order -lSM -lICE or
3955 # we get undefined symbols. So assume we have SM if we have ICE.
3956 # These have to be linked with before -lX11, unlike the other
3957 # libraries we check for below, so use a different variable.
3958 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
3959 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
3960 echo "configure:3961: checking for IceConnectionNumber in -lICE" >&5
3961 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
3962 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3963 echo $ac_n "(cached) $ac_c" 1>&6
3964 else
3965 ac_save_LIBS="$LIBS"
3966 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
3967 cat > conftest.$ac_ext <<EOF
3968 #line 3969 "configure"
3969 #include "confdefs.h"
3970 /* Override any gcc2 internal prototype to avoid an error. */
3971 /* We use char because int might match the return type of a gcc2
3972 builtin and then its argument prototype would still apply. */
3973 char IceConnectionNumber();
3975 int main() {
3976 IceConnectionNumber()
3977 ; return 0; }
3979 if { (eval echo configure:3980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3980 rm -rf conftest*
3981 eval "ac_cv_lib_$ac_lib_var=yes"
3982 else
3983 echo "configure: failed program was:" >&5
3984 cat conftest.$ac_ext >&5
3985 rm -rf conftest*
3986 eval "ac_cv_lib_$ac_lib_var=no"
3988 rm -f conftest*
3989 LIBS="$ac_save_LIBS"
3992 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3993 echo "$ac_t""yes" 1>&6
3994 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
3995 else
3996 echo "$ac_t""no" 1>&6
3999 LDFLAGS="$ac_save_LDFLAGS"
4004 XCFLAGS="$X_CFLAGS"
4006 XLFLAGS="$X_LIBS"
4008 XLIBS="-lX11 $X_EXTRA_LIBS"
4011 lib_search_path="$lib_search_path $XLFLAGS"
4012 inc_search_path="$inc_search_path $XCFLAGS"
4015 use_locale=yes
4016 # Check whether --enable-locale or --disable-locale was given.
4017 if test "${enable_locale+set}" = set; then
4018 enableval="$enable_locale"
4019 use_locale=no
4023 if test "$use_locale" = yes; then
4024 echo $ac_n "checking for _Xsetlocale in -lX11""... $ac_c" 1>&6
4025 echo "configure:4026: checking for _Xsetlocale in -lX11" >&5
4026 ac_lib_var=`echo X11'_'_Xsetlocale | sed 'y%./+-%__p_%'`
4027 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4028 echo $ac_n "(cached) $ac_c" 1>&6
4029 else
4030 ac_save_LIBS="$LIBS"
4031 LIBS="-lX11 $XLFLAGS $XLIBS $LIBS"
4032 cat > conftest.$ac_ext <<EOF
4033 #line 4034 "configure"
4034 #include "confdefs.h"
4035 /* Override any gcc2 internal prototype to avoid an error. */
4036 /* We use char because int might match the return type of a gcc2
4037 builtin and then its argument prototype would still apply. */
4038 char _Xsetlocale();
4040 int main() {
4041 _Xsetlocale()
4042 ; return 0; }
4044 if { (eval echo configure:4045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4045 rm -rf conftest*
4046 eval "ac_cv_lib_$ac_lib_var=yes"
4047 else
4048 echo "configure: failed program was:" >&5
4049 cat conftest.$ac_ext >&5
4050 rm -rf conftest*
4051 eval "ac_cv_lib_$ac_lib_var=no"
4053 rm -f conftest*
4054 LIBS="$ac_save_LIBS"
4057 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4058 echo "$ac_t""yes" 1>&6
4059 cat >> confdefs.h <<\EOF
4060 #define X_LOCALE 1
4063 else
4064 echo "$ac_t""no" 1>&6
4070 # Check whether --enable-modelock or --disable-modelock was given.
4071 if test "${enable_modelock+set}" = set; then
4072 enableval="$enable_modelock"
4073 cat >> confdefs.h <<\EOF
4074 #define XKB_MODELOCK 1
4082 shape=yes
4083 # Check whether --enable-shape or --disable-shape was given.
4084 if test "${enable_shape+set}" = set; then
4085 enableval="$enable_shape"
4086 shape=$enableval
4087 else
4088 shape=yes
4092 added_xext=no
4094 if test "$shape" = yes; then
4095 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
4096 echo "configure:4097: checking for XShapeSelectInput in -lXext" >&5
4097 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
4098 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4099 echo $ac_n "(cached) $ac_c" 1>&6
4100 else
4101 ac_save_LIBS="$LIBS"
4102 LIBS="-lXext $XLFLAGS $XLIBS $LIBS"
4103 cat > conftest.$ac_ext <<EOF
4104 #line 4105 "configure"
4105 #include "confdefs.h"
4106 /* Override any gcc2 internal prototype to avoid an error. */
4107 /* We use char because int might match the return type of a gcc2
4108 builtin and then its argument prototype would still apply. */
4109 char XShapeSelectInput();
4111 int main() {
4112 XShapeSelectInput()
4113 ; return 0; }
4115 if { (eval echo configure:4116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4116 rm -rf conftest*
4117 eval "ac_cv_lib_$ac_lib_var=yes"
4118 else
4119 echo "configure: failed program was:" >&5
4120 cat conftest.$ac_ext >&5
4121 rm -rf conftest*
4122 eval "ac_cv_lib_$ac_lib_var=no"
4124 rm -f conftest*
4125 LIBS="$ac_save_LIBS"
4128 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4129 echo "$ac_t""yes" 1>&6
4130 XLIBS="-lXext $XLIBS"
4131 added_xext=yes
4132 cat >> confdefs.h <<\EOF
4133 #define SHAPE 1
4136 else
4137 echo "$ac_t""no" 1>&6
4138 shape=no
4144 shm=yes
4145 # Check whether --enable-shm or --disable-shm was given.
4146 if test "${enable_shm+set}" = set; then
4147 enableval="$enable_shm"
4148 shm=$enableval
4149 else
4150 shm=yes
4154 if test "$shm" = yes; then
4155 echo $ac_n "checking for XShmAttach in -lXext""... $ac_c" 1>&6
4156 echo "configure:4157: checking for XShmAttach in -lXext" >&5
4157 ac_lib_var=`echo Xext'_'XShmAttach | sed 'y%./+-%__p_%'`
4158 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4159 echo $ac_n "(cached) $ac_c" 1>&6
4160 else
4161 ac_save_LIBS="$LIBS"
4162 LIBS="-lXext $XLFLAGS $XLIBS $LIBS"
4163 cat > conftest.$ac_ext <<EOF
4164 #line 4165 "configure"
4165 #include "confdefs.h"
4166 /* Override any gcc2 internal prototype to avoid an error. */
4167 /* We use char because int might match the return type of a gcc2
4168 builtin and then its argument prototype would still apply. */
4169 char XShmAttach();
4171 int main() {
4172 XShmAttach()
4173 ; return 0; }
4175 if { (eval echo configure:4176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4176 rm -rf conftest*
4177 eval "ac_cv_lib_$ac_lib_var=yes"
4178 else
4179 echo "configure: failed program was:" >&5
4180 cat conftest.$ac_ext >&5
4181 rm -rf conftest*
4182 eval "ac_cv_lib_$ac_lib_var=no"
4184 rm -f conftest*
4185 LIBS="$ac_save_LIBS"
4188 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4189 echo "$ac_t""yes" 1>&6
4190 ok=yes
4191 else
4192 echo "$ac_t""no" 1>&6
4193 ok=no
4197 if test "$ok" = yes; then
4198 echo $ac_n "checking for shmget""... $ac_c" 1>&6
4199 echo "configure:4200: checking for shmget" >&5
4200 if eval "test \"`echo '$''{'ac_cv_func_shmget'+set}'`\" = set"; then
4201 echo $ac_n "(cached) $ac_c" 1>&6
4202 else
4203 cat > conftest.$ac_ext <<EOF
4204 #line 4205 "configure"
4205 #include "confdefs.h"
4206 /* System header to define __stub macros and hopefully few prototypes,
4207 which can conflict with char shmget(); below. */
4208 #include <assert.h>
4209 /* Override any gcc2 internal prototype to avoid an error. */
4210 /* We use char because int might match the return type of a gcc2
4211 builtin and then its argument prototype would still apply. */
4212 char shmget();
4214 int main() {
4216 /* The GNU C library defines this for functions which it implements
4217 to always fail with ENOSYS. Some functions are actually named
4218 something starting with __ and the normal name is an alias. */
4219 #if defined (__stub_shmget) || defined (__stub___shmget)
4220 choke me
4221 #else
4222 shmget();
4223 #endif
4225 ; return 0; }
4227 if { (eval echo configure:4228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4228 rm -rf conftest*
4229 eval "ac_cv_func_shmget=yes"
4230 else
4231 echo "configure: failed program was:" >&5
4232 cat conftest.$ac_ext >&5
4233 rm -rf conftest*
4234 eval "ac_cv_func_shmget=no"
4236 rm -f conftest*
4239 if eval "test \"`echo '$ac_cv_func_'shmget`\" = yes"; then
4240 echo "$ac_t""yes" 1>&6
4241 ok=yes
4242 else
4243 echo "$ac_t""no" 1>&6
4244 ok=no
4249 if test "$ok" = yes; then
4250 if test "$added_xext" = no; then
4251 XLIBS="-lXext $XLIBS"
4253 cat >> confdefs.h <<\EOF
4254 #define XSHM 1
4264 #AC_DEFINE(R6SM)
4265 #AC_SUBST(XSMPLIBS)
4270 LIBPL=""
4273 LDFLAGS_old="$LDFLAGS"
4274 LDFLAGS="$LDFLAGS $lib_search_path"
4275 echo $ac_n "checking for PLGetString in -lPropList""... $ac_c" 1>&6
4276 echo "configure:4277: checking for PLGetString in -lPropList" >&5
4277 ac_lib_var=`echo PropList'_'PLGetString | sed 'y%./+-%__p_%'`
4278 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4279 echo $ac_n "(cached) $ac_c" 1>&6
4280 else
4281 ac_save_LIBS="$LIBS"
4282 LIBS="-lPropList $X_EXTRA_LIBS $LIBS"
4283 cat > conftest.$ac_ext <<EOF
4284 #line 4285 "configure"
4285 #include "confdefs.h"
4286 /* Override any gcc2 internal prototype to avoid an error. */
4287 /* We use char because int might match the return type of a gcc2
4288 builtin and then its argument prototype would still apply. */
4289 char PLGetString();
4291 int main() {
4292 PLGetString()
4293 ; return 0; }
4295 if { (eval echo configure:4296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4296 rm -rf conftest*
4297 eval "ac_cv_lib_$ac_lib_var=yes"
4298 else
4299 echo "configure: failed program was:" >&5
4300 cat conftest.$ac_ext >&5
4301 rm -rf conftest*
4302 eval "ac_cv_lib_$ac_lib_var=no"
4304 rm -f conftest*
4305 LIBS="$ac_save_LIBS"
4308 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4309 echo "$ac_t""yes" 1>&6
4310 yes=yes
4311 else
4312 echo "$ac_t""no" 1>&6
4313 no=no
4316 LDFLAGS="$LDFLAGS_old"
4318 if test "x$ac_cv_lib_PropList_PLGetString" = xyes; then
4320 CPPFLAGS_old="$CPPFLAGS"
4321 CPPFLAGS="$CPPFLAGS $inc_search_path"
4322 ac_safe=`echo "proplist.h" | sed 'y%./+-%__p_%'`
4323 echo $ac_n "checking for proplist.h""... $ac_c" 1>&6
4324 echo "configure:4325: checking for proplist.h" >&5
4325 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4326 echo $ac_n "(cached) $ac_c" 1>&6
4327 else
4328 cat > conftest.$ac_ext <<EOF
4329 #line 4330 "configure"
4330 #include "confdefs.h"
4331 #include <proplist.h>
4333 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4334 { (eval echo configure:4335: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4335 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4336 if test -z "$ac_err"; then
4337 rm -rf conftest*
4338 eval "ac_cv_header_$ac_safe=yes"
4339 else
4340 echo "$ac_err" >&5
4341 echo "configure: failed program was:" >&5
4342 cat conftest.$ac_ext >&5
4343 rm -rf conftest*
4344 eval "ac_cv_header_$ac_safe=no"
4346 rm -f conftest*
4348 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4349 echo "$ac_t""yes" 1>&6
4351 else
4352 echo "$ac_t""no" 1>&6
4355 CPPFLAGS="$CPPFLAGS_old"
4357 if test "x$ac_cv_header_proplist_h" = xyes; then
4358 LIBPL="-lPropList"
4362 if test "x$LIBPL" = "x"; then
4363 echo
4364 echo "ERROR!!! libPropList is not installed, or could not be found."
4365 echo " Window Maker requires libPropList to build."
4366 echo " Please read INSTALL to find where you can find libPropList,"
4367 echo " and install it first."
4368 echo " If you already have it installed, try using the"
4369 if test "x$ac_cv_lib_PropList_PLGetString" != xyes; then
4370 echo " --with-libs-from flag to tell configure where the library"
4371 echo " is installed and"
4373 echo " --with-incs-from flag to tell configure where the header"
4374 echo " files are installed"
4375 exit 1
4387 xpm=yes
4388 # Check whether --enable-xpm or --disable-xpm was given.
4389 if test "${enable_xpm+set}" = set; then
4390 enableval="$enable_xpm"
4391 xpm=$enableval
4392 else
4393 xpm=yes
4397 if test "$xpm" = yes; then
4399 LDFLAGS_old="$LDFLAGS"
4400 LDFLAGS="$LDFLAGS $lib_search_path"
4401 echo $ac_n "checking for XpmCreatePixmapFromData in -lXpm""... $ac_c" 1>&6
4402 echo "configure:4403: checking for XpmCreatePixmapFromData in -lXpm" >&5
4403 ac_lib_var=`echo Xpm'_'XpmCreatePixmapFromData | sed 'y%./+-%__p_%'`
4404 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4405 echo $ac_n "(cached) $ac_c" 1>&6
4406 else
4407 ac_save_LIBS="$LIBS"
4408 LIBS="-lXpm $XLFLAGS $XLIBS $LIBS"
4409 cat > conftest.$ac_ext <<EOF
4410 #line 4411 "configure"
4411 #include "confdefs.h"
4412 /* Override any gcc2 internal prototype to avoid an error. */
4413 /* We use char because int might match the return type of a gcc2
4414 builtin and then its argument prototype would still apply. */
4415 char XpmCreatePixmapFromData();
4417 int main() {
4418 XpmCreatePixmapFromData()
4419 ; return 0; }
4421 if { (eval echo configure:4422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4422 rm -rf conftest*
4423 eval "ac_cv_lib_$ac_lib_var=yes"
4424 else
4425 echo "configure: failed program was:" >&5
4426 cat conftest.$ac_ext >&5
4427 rm -rf conftest*
4428 eval "ac_cv_lib_$ac_lib_var=no"
4430 rm -f conftest*
4431 LIBS="$ac_save_LIBS"
4434 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4435 echo "$ac_t""yes" 1>&6
4436 yes=yes
4437 else
4438 echo "$ac_t""no" 1>&6
4439 no=no
4442 LDFLAGS="$LDFLAGS_old"
4445 if test "x$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = xyes; then
4447 CPPFLAGS_old="$CPPFLAGS"
4448 CPPFLAGS="$CPPFLAGS $inc_search_path"
4449 ac_safe=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'`
4450 echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6
4451 echo "configure:4452: checking for X11/xpm.h" >&5
4452 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4453 echo $ac_n "(cached) $ac_c" 1>&6
4454 else
4455 cat > conftest.$ac_ext <<EOF
4456 #line 4457 "configure"
4457 #include "confdefs.h"
4458 #include <X11/xpm.h>
4460 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4461 { (eval echo configure:4462: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4462 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4463 if test -z "$ac_err"; then
4464 rm -rf conftest*
4465 eval "ac_cv_header_$ac_safe=yes"
4466 else
4467 echo "$ac_err" >&5
4468 echo "configure: failed program was:" >&5
4469 cat conftest.$ac_ext >&5
4470 rm -rf conftest*
4471 eval "ac_cv_header_$ac_safe=no"
4473 rm -f conftest*
4475 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4476 echo "$ac_t""yes" 1>&6
4478 else
4479 echo "$ac_t""no" 1>&6
4482 CPPFLAGS="$CPPFLAGS_old"
4484 if test "x$ac_cv_header_X11_xpm_h" = xyes; then
4485 GFXLIBS="$GFXLIBS -lXpm"
4486 supported_gfx="XPM"
4487 cat >> confdefs.h <<\EOF
4488 #define USE_XPM 1
4491 else
4492 supported_gfx="builtin-XPM"
4497 # for wmlib
4499 # for test
4507 png=yes
4508 # Check whether --enable-png or --disable-png was given.
4509 if test "${enable_png+set}" = set; then
4510 enableval="$enable_png"
4511 png=$enableval
4512 else
4513 png=yes
4518 if test "$png" = yes ; then
4520 LDFLAGS_old="$LDFLAGS"
4521 LDFLAGS="$LDFLAGS $lib_search_path"
4522 echo $ac_n "checking for png_get_valid in -lpng""... $ac_c" 1>&6
4523 echo "configure:4524: checking for png_get_valid in -lpng" >&5
4524 ac_lib_var=`echo png'_'png_get_valid | sed 'y%./+-%__p_%'`
4525 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4526 echo $ac_n "(cached) $ac_c" 1>&6
4527 else
4528 ac_save_LIBS="$LIBS"
4529 LIBS="-lpng -lz -lm $LIBS"
4530 cat > conftest.$ac_ext <<EOF
4531 #line 4532 "configure"
4532 #include "confdefs.h"
4533 /* Override any gcc2 internal prototype to avoid an error. */
4534 /* We use char because int might match the return type of a gcc2
4535 builtin and then its argument prototype would still apply. */
4536 char png_get_valid();
4538 int main() {
4539 png_get_valid()
4540 ; return 0; }
4542 if { (eval echo configure:4543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4543 rm -rf conftest*
4544 eval "ac_cv_lib_$ac_lib_var=yes"
4545 else
4546 echo "configure: failed program was:" >&5
4547 cat conftest.$ac_ext >&5
4548 rm -rf conftest*
4549 eval "ac_cv_lib_$ac_lib_var=no"
4551 rm -f conftest*
4552 LIBS="$ac_save_LIBS"
4555 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4556 echo "$ac_t""yes" 1>&6
4557 yes=yes
4558 else
4559 echo "$ac_t""no" 1>&6
4560 no=no
4563 LDFLAGS="$LDFLAGS_old"
4566 if test "x$ac_cv_lib_png_png_get_valid" = xyes; then
4568 CPPFLAGS_old="$CPPFLAGS"
4569 CPPFLAGS="$CPPFLAGS $inc_search_path"
4570 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
4571 echo $ac_n "checking for png.h""... $ac_c" 1>&6
4572 echo "configure:4573: checking for png.h" >&5
4573 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4574 echo $ac_n "(cached) $ac_c" 1>&6
4575 else
4576 cat > conftest.$ac_ext <<EOF
4577 #line 4578 "configure"
4578 #include "confdefs.h"
4579 #include <png.h>
4581 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4582 { (eval echo configure:4583: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4583 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4584 if test -z "$ac_err"; then
4585 rm -rf conftest*
4586 eval "ac_cv_header_$ac_safe=yes"
4587 else
4588 echo "$ac_err" >&5
4589 echo "configure: failed program was:" >&5
4590 cat conftest.$ac_ext >&5
4591 rm -rf conftest*
4592 eval "ac_cv_header_$ac_safe=no"
4594 rm -f conftest*
4596 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4597 echo "$ac_t""yes" 1>&6
4599 else
4600 echo "$ac_t""no" 1>&6
4603 CPPFLAGS="$CPPFLAGS_old"
4605 if test "x$ac_cv_header_png_h" = xyes; then
4606 GFXLIBS="$GFXLIBS -lpng -lz"
4607 supported_gfx="$supported_gfx PNG"
4608 cat >> confdefs.h <<\EOF
4609 #define USE_PNG 1
4617 jpeg=yes
4618 ljpeg=""
4619 # Check whether --enable-jpeg or --disable-jpeg was given.
4620 if test "${enable_jpeg+set}" = set; then
4621 enableval="$enable_jpeg"
4622 jpeg=$enableval
4623 else
4624 jpeg=yes
4628 if test "$jpeg" = yes; then
4630 LDFLAGS_old="$LDFLAGS"
4631 LDFLAGS="$LDFLAGS $lib_search_path"
4632 echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6
4633 echo "configure:4634: checking for jpeg_destroy_compress in -ljpeg" >&5
4634 ac_lib_var=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'`
4635 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4636 echo $ac_n "(cached) $ac_c" 1>&6
4637 else
4638 ac_save_LIBS="$LIBS"
4639 LIBS="-ljpeg $LIBS"
4640 cat > conftest.$ac_ext <<EOF
4641 #line 4642 "configure"
4642 #include "confdefs.h"
4643 /* Override any gcc2 internal prototype to avoid an error. */
4644 /* We use char because int might match the return type of a gcc2
4645 builtin and then its argument prototype would still apply. */
4646 char jpeg_destroy_compress();
4648 int main() {
4649 jpeg_destroy_compress()
4650 ; return 0; }
4652 if { (eval echo configure:4653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4653 rm -rf conftest*
4654 eval "ac_cv_lib_$ac_lib_var=yes"
4655 else
4656 echo "configure: failed program was:" >&5
4657 cat conftest.$ac_ext >&5
4658 rm -rf conftest*
4659 eval "ac_cv_lib_$ac_lib_var=no"
4661 rm -f conftest*
4662 LIBS="$ac_save_LIBS"
4665 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4666 echo "$ac_t""yes" 1>&6
4667 yes=yes
4668 else
4669 echo "$ac_t""no" 1>&6
4670 no=no
4673 LDFLAGS="$LDFLAGS_old"
4676 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = xyes; then
4678 ljpeg="-ljpeg"
4681 CPPFLAGS_old="$CPPFLAGS"
4682 CPPFLAGS="$CPPFLAGS $inc_search_path"
4683 ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
4684 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
4685 echo "configure:4686: checking for jpeglib.h" >&5
4686 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4687 echo $ac_n "(cached) $ac_c" 1>&6
4688 else
4689 cat > conftest.$ac_ext <<EOF
4690 #line 4691 "configure"
4691 #include "confdefs.h"
4692 #include <jpeglib.h>
4694 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4695 { (eval echo configure:4696: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4696 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4697 if test -z "$ac_err"; then
4698 rm -rf conftest*
4699 eval "ac_cv_header_$ac_safe=yes"
4700 else
4701 echo "$ac_err" >&5
4702 echo "configure: failed program was:" >&5
4703 cat conftest.$ac_ext >&5
4704 rm -rf conftest*
4705 eval "ac_cv_header_$ac_safe=no"
4707 rm -f conftest*
4709 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4710 echo "$ac_t""yes" 1>&6
4712 else
4713 echo "$ac_t""no" 1>&6
4716 CPPFLAGS="$CPPFLAGS_old"
4718 if test "x$ac_cv_header_jpeglib_h" = xyes; then
4719 GFXLIBS="$GFXLIBS -ljpeg"
4720 supported_gfx="$supported_gfx JPEG"
4721 cat >> confdefs.h <<\EOF
4722 #define USE_JPEG 1
4730 gif=yes
4731 # Check whether --enable-gif or --disable-gif was given.
4732 if test "${enable_gif+set}" = set; then
4733 enableval="$enable_gif"
4734 gif=$enableval
4735 else
4736 gif=yes
4740 if test "$gif" = yes; then
4741 my_libname=""
4743 LDFLAGS_old="$LDFLAGS"
4744 LDFLAGS="$LDFLAGS $lib_search_path"
4745 echo $ac_n "checking for DGifOpenFileName in -lungif""... $ac_c" 1>&6
4746 echo "configure:4747: checking for DGifOpenFileName in -lungif" >&5
4747 ac_lib_var=`echo ungif'_'DGifOpenFileName | sed 'y%./+-%__p_%'`
4748 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4749 echo $ac_n "(cached) $ac_c" 1>&6
4750 else
4751 ac_save_LIBS="$LIBS"
4752 LIBS="-lungif $XLFLAGS $XLIBS $LIBS"
4753 cat > conftest.$ac_ext <<EOF
4754 #line 4755 "configure"
4755 #include "confdefs.h"
4756 /* Override any gcc2 internal prototype to avoid an error. */
4757 /* We use char because int might match the return type of a gcc2
4758 builtin and then its argument prototype would still apply. */
4759 char DGifOpenFileName();
4761 int main() {
4762 DGifOpenFileName()
4763 ; return 0; }
4765 if { (eval echo configure:4766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4766 rm -rf conftest*
4767 eval "ac_cv_lib_$ac_lib_var=yes"
4768 else
4769 echo "configure: failed program was:" >&5
4770 cat conftest.$ac_ext >&5
4771 rm -rf conftest*
4772 eval "ac_cv_lib_$ac_lib_var=no"
4774 rm -f conftest*
4775 LIBS="$ac_save_LIBS"
4778 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4779 echo "$ac_t""yes" 1>&6
4780 yes=yes
4781 else
4782 echo "$ac_t""no" 1>&6
4783 no=no
4786 LDFLAGS="$LDFLAGS_old"
4788 if test "x$ac_cv_lib_ungif_DGifOpenFileName" = xyes; then
4789 my_libname=-lungif
4791 if test "x$my_libname" = x; then
4793 LDFLAGS_old="$LDFLAGS"
4794 LDFLAGS="$LDFLAGS $lib_search_path"
4795 echo $ac_n "checking for DGifOpenFileName in -lgif""... $ac_c" 1>&6
4796 echo "configure:4797: checking for DGifOpenFileName in -lgif" >&5
4797 ac_lib_var=`echo gif'_'DGifOpenFileName | sed 'y%./+-%__p_%'`
4798 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4799 echo $ac_n "(cached) $ac_c" 1>&6
4800 else
4801 ac_save_LIBS="$LIBS"
4802 LIBS="-lgif $XLFLAGS $XLIBS $LIBS"
4803 cat > conftest.$ac_ext <<EOF
4804 #line 4805 "configure"
4805 #include "confdefs.h"
4806 /* Override any gcc2 internal prototype to avoid an error. */
4807 /* We use char because int might match the return type of a gcc2
4808 builtin and then its argument prototype would still apply. */
4809 char DGifOpenFileName();
4811 int main() {
4812 DGifOpenFileName()
4813 ; return 0; }
4815 if { (eval echo configure:4816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4816 rm -rf conftest*
4817 eval "ac_cv_lib_$ac_lib_var=yes"
4818 else
4819 echo "configure: failed program was:" >&5
4820 cat conftest.$ac_ext >&5
4821 rm -rf conftest*
4822 eval "ac_cv_lib_$ac_lib_var=no"
4824 rm -f conftest*
4825 LIBS="$ac_save_LIBS"
4828 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4829 echo "$ac_t""yes" 1>&6
4830 yes=yes
4831 else
4832 echo "$ac_t""no" 1>&6
4833 no=no
4836 LDFLAGS="$LDFLAGS_old"
4838 if test "x$ac_cv_lib_gif_DGifOpenFileName" = xyes; then
4839 my_libname=-lgif
4843 if test "$my_libname" != x; then
4845 CPPFLAGS_old="$CPPFLAGS"
4846 CPPFLAGS="$CPPFLAGS $inc_search_path"
4847 ac_safe=`echo "gif_lib.h" | sed 'y%./+-%__p_%'`
4848 echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6
4849 echo "configure:4850: checking for gif_lib.h" >&5
4850 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4851 echo $ac_n "(cached) $ac_c" 1>&6
4852 else
4853 cat > conftest.$ac_ext <<EOF
4854 #line 4855 "configure"
4855 #include "confdefs.h"
4856 #include <gif_lib.h>
4858 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4859 { (eval echo configure:4860: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4860 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4861 if test -z "$ac_err"; then
4862 rm -rf conftest*
4863 eval "ac_cv_header_$ac_safe=yes"
4864 else
4865 echo "$ac_err" >&5
4866 echo "configure: failed program was:" >&5
4867 cat conftest.$ac_ext >&5
4868 rm -rf conftest*
4869 eval "ac_cv_header_$ac_safe=no"
4871 rm -f conftest*
4873 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4874 echo "$ac_t""yes" 1>&6
4876 else
4877 echo "$ac_t""no" 1>&6
4880 CPPFLAGS="$CPPFLAGS_old"
4882 if test "x$ac_cv_header_gif_lib_h" = xyes; then
4883 GFXLIBS="$GFXLIBS $my_libname"
4884 supported_gfx="$supported_gfx GIF"
4885 cat >> confdefs.h <<\EOF
4886 #define USE_GIF 1
4895 # Check whether --enable-tiff or --disable-tiff was given.
4896 if test "${enable_tiff+set}" = set; then
4897 enableval="$enable_tiff"
4898 tif=$enableval
4899 else
4900 tif=yes
4905 # TIFF can optionally have JPEG and/or zlib support. Must find out
4906 # when they are supported so that correct library flags are passed during
4907 # detection and linkage
4910 # By default use xpm icons if tiff is not found.
4911 ICONEXT="xpm"
4914 if test "$tif" = yes; then
4915 my_libname=""
4917 LDFLAGS_old="$LDFLAGS"
4918 LDFLAGS="$LDFLAGS $lib_search_path"
4919 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6
4920 echo "configure:4921: checking for TIFFGetVersion in -ltiff" >&5
4921 ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
4922 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4923 echo $ac_n "(cached) $ac_c" 1>&6
4924 else
4925 ac_save_LIBS="$LIBS"
4926 LIBS="-ltiff -lm $LIBS"
4927 cat > conftest.$ac_ext <<EOF
4928 #line 4929 "configure"
4929 #include "confdefs.h"
4930 /* Override any gcc2 internal prototype to avoid an error. */
4931 /* We use char because int might match the return type of a gcc2
4932 builtin and then its argument prototype would still apply. */
4933 char TIFFGetVersion();
4935 int main() {
4936 TIFFGetVersion()
4937 ; return 0; }
4939 if { (eval echo configure:4940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4940 rm -rf conftest*
4941 eval "ac_cv_lib_$ac_lib_var=yes"
4942 else
4943 echo "configure: failed program was:" >&5
4944 cat conftest.$ac_ext >&5
4945 rm -rf conftest*
4946 eval "ac_cv_lib_$ac_lib_var=no"
4948 rm -f conftest*
4949 LIBS="$ac_save_LIBS"
4952 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4953 echo "$ac_t""yes" 1>&6
4954 yes=yes
4955 else
4956 echo "$ac_t""no" 1>&6
4957 no=no
4960 LDFLAGS="$LDFLAGS_old"
4962 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = xyes; then
4963 my_libname="-ltiff"
4965 unset ac_cv_lib_tiff_TIFFGetVersion
4966 if test "x$my_libname" = x; then
4968 LDFLAGS_old="$LDFLAGS"
4969 LDFLAGS="$LDFLAGS $lib_search_path"
4970 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6
4971 echo "configure:4972: checking for TIFFGetVersion in -ltiff" >&5
4972 ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
4973 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4974 echo $ac_n "(cached) $ac_c" 1>&6
4975 else
4976 ac_save_LIBS="$LIBS"
4977 LIBS="-ltiff $ljpeg -lz -lm $LIBS"
4978 cat > conftest.$ac_ext <<EOF
4979 #line 4980 "configure"
4980 #include "confdefs.h"
4981 /* Override any gcc2 internal prototype to avoid an error. */
4982 /* We use char because int might match the return type of a gcc2
4983 builtin and then its argument prototype would still apply. */
4984 char TIFFGetVersion();
4986 int main() {
4987 TIFFGetVersion()
4988 ; return 0; }
4990 if { (eval echo configure:4991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4991 rm -rf conftest*
4992 eval "ac_cv_lib_$ac_lib_var=yes"
4993 else
4994 echo "configure: failed program was:" >&5
4995 cat conftest.$ac_ext >&5
4996 rm -rf conftest*
4997 eval "ac_cv_lib_$ac_lib_var=no"
4999 rm -f conftest*
5000 LIBS="$ac_save_LIBS"
5003 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5004 echo "$ac_t""yes" 1>&6
5005 yes=yes
5006 else
5007 echo "$ac_t""no" 1>&6
5008 no=no
5011 LDFLAGS="$LDFLAGS_old"
5013 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = xyes; then
5014 my_libname="-ltiff -lz"
5018 if test "x$my_libname" = x; then
5020 LDFLAGS_old="$LDFLAGS"
5021 LDFLAGS="$LDFLAGS $lib_search_path"
5022 echo $ac_n "checking for TIFFGetVersion in -ltiff34""... $ac_c" 1>&6
5023 echo "configure:5024: checking for TIFFGetVersion in -ltiff34" >&5
5024 ac_lib_var=`echo tiff34'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
5025 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5026 echo $ac_n "(cached) $ac_c" 1>&6
5027 else
5028 ac_save_LIBS="$LIBS"
5029 LIBS="-ltiff34 $ljpeg -lm $LIBS"
5030 cat > conftest.$ac_ext <<EOF
5031 #line 5032 "configure"
5032 #include "confdefs.h"
5033 /* Override any gcc2 internal prototype to avoid an error. */
5034 /* We use char because int might match the return type of a gcc2
5035 builtin and then its argument prototype would still apply. */
5036 char TIFFGetVersion();
5038 int main() {
5039 TIFFGetVersion()
5040 ; return 0; }
5042 if { (eval echo configure:5043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5043 rm -rf conftest*
5044 eval "ac_cv_lib_$ac_lib_var=yes"
5045 else
5046 echo "configure: failed program was:" >&5
5047 cat conftest.$ac_ext >&5
5048 rm -rf conftest*
5049 eval "ac_cv_lib_$ac_lib_var=no"
5051 rm -f conftest*
5052 LIBS="$ac_save_LIBS"
5055 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5056 echo "$ac_t""yes" 1>&6
5057 yes=yes
5058 else
5059 echo "$ac_t""no" 1>&6
5060 no=no
5063 LDFLAGS="$LDFLAGS_old"
5065 if test "x$ac_cv_lib_tiff34_TIFFGetVersion" = xyes; then
5066 my_libname="-ltiff34"
5071 if test "x$my_libname" != x; then
5073 CPPFLAGS_old="$CPPFLAGS"
5074 CPPFLAGS="$CPPFLAGS $inc_search_path"
5075 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
5076 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
5077 echo "configure:5078: checking for tiffio.h" >&5
5078 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5079 echo $ac_n "(cached) $ac_c" 1>&6
5080 else
5081 cat > conftest.$ac_ext <<EOF
5082 #line 5083 "configure"
5083 #include "confdefs.h"
5084 #include <tiffio.h>
5086 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5087 { (eval echo configure:5088: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5088 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5089 if test -z "$ac_err"; then
5090 rm -rf conftest*
5091 eval "ac_cv_header_$ac_safe=yes"
5092 else
5093 echo "$ac_err" >&5
5094 echo "configure: failed program was:" >&5
5095 cat conftest.$ac_ext >&5
5096 rm -rf conftest*
5097 eval "ac_cv_header_$ac_safe=no"
5099 rm -f conftest*
5101 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5102 echo "$ac_t""yes" 1>&6
5104 else
5105 echo "$ac_t""no" 1>&6
5108 CPPFLAGS="$CPPFLAGS_old"
5110 if test "x$ac_cv_header_tiffio_h" = xyes; then
5111 GFXLIBS="$my_libname $GFXLIBS"
5112 ICONEXT="tiff"
5113 supported_gfx="$supported_gfx TIFF"
5114 cat >> confdefs.h <<\EOF
5115 #define USE_TIFF 1
5122 LIBRARY_SEARCH_PATH="$lib_search_path"
5123 HEADER_SEARCH_PATH="$inc_search_path"
5135 # Check whether --enable-debug or --disable-debug was given.
5136 if test "${enable_debug+set}" = set; then
5137 enableval="$enable_debug"
5139 else
5140 enable_debug=no
5144 if test "$enable_debug" = yes; then
5145 DFLAGS="-g -DDEBUG"
5146 # Efence makes things too slow. Add it by hand in the Makefiles
5147 # if it is really needed.
5148 # AC_CHECK_LIB(efence, malloc, LIBS="$LIBS -lefence")
5153 sound=yes
5154 # Check whether --enable-sound or --disable-sound was given.
5155 if test "${enable_sound+set}" = set; then
5156 enableval="$enable_sound"
5157 sound=$enableval
5158 else
5159 sound=yes
5162 if test "$sound" = yes; then
5163 cat >> confdefs.h <<\EOF
5164 #define WMSOUND 1
5170 # AC_PREFIX_PROGRAM(wmaker)
5172 # Check whether --with-pixmapdir or --without-pixmapdir was given.
5173 if test "${with_pixmapdir+set}" = set; then
5174 withval="$with_pixmapdir"
5179 if test "x$with_pixmapdir" != "x"; then
5180 pixmapdir=$with_pixmapdir
5181 else
5182 pixmapdir=`eval echo ${datadir}/pixmaps`
5185 cat >> confdefs.h <<EOF
5186 #define PIXMAPDIR "$pixmapdir"
5190 pkgdatadir=`eval echo $datadir`
5191 cat >> confdefs.h <<EOF
5192 #define PKGDATADIR "$pkgdatadir/WindowMaker"
5196 _sysconfdir=`eval echo $sysconfdir`
5197 cat >> confdefs.h <<EOF
5198 #define SYSCONFDIR "$_sysconfdir/WindowMaker"
5204 appspath=""
5206 # Check whether --with-appspath or --without-appspath was given.
5207 if test "${with_appspath+set}" = set; then
5208 withval="$with_appspath"
5209 appspath=$withval
5213 if test "x$appspath" = "x"; then
5214 gnustepdir='$(prefix)/GNUstep'
5216 if test "x$GNUSTEP_LOCAL_ROOT" != "x" ; then
5217 gnustepdir=`echo "$GNUSTEP_LOCAL_ROOT" | sed -e "s|^${prefix}|prefix|"`
5218 gnustepdir=`echo $gnustepdir | sed -e 's|^prefix|${prefix}|'`
5221 with_appspath=$gnustepdir/Apps
5224 wprefsdir=$with_appspath/WPrefs.app
5230 # Check whether --enable-single-icon or --disable-single-icon was given.
5231 if test "${enable_single_icon+set}" = set; then
5232 enableval="$enable_single_icon"
5233 if test "$enableval" = yes; then
5234 cat >> confdefs.h <<\EOF
5235 #define REDUCE_APPICONS 1
5246 trap '' 1 2 15
5247 cat > confcache <<\EOF
5248 # This file is a shell script that caches the results of configure
5249 # tests run on this system so they can be shared between configure
5250 # scripts and configure runs. It is not useful on other systems.
5251 # If it contains results you don't want to keep, you may remove or edit it.
5253 # By default, configure uses ./config.cache as the cache file,
5254 # creating it if it does not exist already. You can give configure
5255 # the --cache-file=FILE option to use a different cache file; that is
5256 # what configure does when it calls configure scripts in
5257 # subdirectories, so they share the cache.
5258 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5259 # config.status only pays attention to the cache file if you give it the
5260 # --recheck option to rerun configure.
5263 # The following way of writing the cache mishandles newlines in values,
5264 # but we know of no workaround that is simple, portable, and efficient.
5265 # So, don't put newlines in cache variables' values.
5266 # Ultrix sh set writes to stderr and can't be redirected directly,
5267 # and sets the high bit in the cache file unless we assign to the vars.
5268 (set) 2>&1 |
5269 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5270 *ac_space=\ *)
5271 # `set' does not quote correctly, so add quotes (double-quote substitution
5272 # turns \\\\ into \\, and sed turns \\ into \).
5273 sed -n \
5274 -e "s/'/'\\\\''/g" \
5275 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5278 # `set' quotes correctly as required by POSIX, so do not add quotes.
5279 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5281 esac >> confcache
5282 if cmp -s $cache_file confcache; then
5284 else
5285 if test -w $cache_file; then
5286 echo "updating cache $cache_file"
5287 cat confcache > $cache_file
5288 else
5289 echo "not updating unwritable cache $cache_file"
5292 rm -f confcache
5294 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5296 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5297 # Let make expand exec_prefix.
5298 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5300 # Any assignment to VPATH causes Sun make to only execute
5301 # the first set of double-colon rules, so remove it if not needed.
5302 # If there is a colon in the path, we need to keep it.
5303 if test "x$srcdir" = x.; then
5304 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
5307 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5309 DEFS=-DHAVE_CONFIG_H
5311 # Without the "./", some shells look in PATH for config.status.
5312 : ${CONFIG_STATUS=./config.status}
5314 echo creating $CONFIG_STATUS
5315 rm -f $CONFIG_STATUS
5316 cat > $CONFIG_STATUS <<EOF
5317 #! /bin/sh
5318 # Generated automatically by configure.
5319 # Run this file to recreate the current configuration.
5320 # This directory was configured as follows,
5321 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5323 # $0 $ac_configure_args
5325 # Compiler output produced by configure, useful for debugging
5326 # configure, is in ./config.log if it exists.
5328 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5329 for ac_option
5331 case "\$ac_option" in
5332 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5333 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5334 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5335 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5336 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5337 exit 0 ;;
5338 -help | --help | --hel | --he | --h)
5339 echo "\$ac_cs_usage"; exit 0 ;;
5340 *) echo "\$ac_cs_usage"; exit 1 ;;
5341 esac
5342 done
5344 ac_given_srcdir=$srcdir
5345 ac_given_INSTALL="$INSTALL"
5347 trap 'rm -fr `echo "Makefile po/Makefile util/Makefile test/Makefile wmlib/Makefile \
5348 WINGs/Makefile WINGs/Resources/Makefile src/Makefile src/wconfig.h \
5349 wrlib/Makefile doc/Makefile WindowMaker/Makefile \
5350 WindowMaker/Backgrounds/Makefile WindowMaker/Defaults/Makefile \
5351 WindowMaker/IconSets/Makefile WindowMaker/Icons/Makefile \
5352 WindowMaker/Pixmaps/Makefile WindowMaker/Styles/Makefile \
5353 WindowMaker/Themes/Makefile \
5354 WPrefs.app/Makefile WPrefs.app/tiff/Makefile WPrefs.app/xpm/Makefile \
5355 WPrefs.app/po/Makefile src/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5357 cat >> $CONFIG_STATUS <<EOF
5359 # Protect against being on the right side of a sed subst in config.status.
5360 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5361 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5362 $ac_vpsub
5363 $extrasub
5364 s%@SHELL@%$SHELL%g
5365 s%@CFLAGS@%$CFLAGS%g
5366 s%@CPPFLAGS@%$CPPFLAGS%g
5367 s%@CXXFLAGS@%$CXXFLAGS%g
5368 s%@FFLAGS@%$FFLAGS%g
5369 s%@DEFS@%$DEFS%g
5370 s%@LDFLAGS@%$LDFLAGS%g
5371 s%@LIBS@%$LIBS%g
5372 s%@exec_prefix@%$exec_prefix%g
5373 s%@prefix@%$prefix%g
5374 s%@program_transform_name@%$program_transform_name%g
5375 s%@bindir@%$bindir%g
5376 s%@sbindir@%$sbindir%g
5377 s%@libexecdir@%$libexecdir%g
5378 s%@datadir@%$datadir%g
5379 s%@sysconfdir@%$sysconfdir%g
5380 s%@sharedstatedir@%$sharedstatedir%g
5381 s%@localstatedir@%$localstatedir%g
5382 s%@libdir@%$libdir%g
5383 s%@includedir@%$includedir%g
5384 s%@oldincludedir@%$oldincludedir%g
5385 s%@infodir@%$infodir%g
5386 s%@mandir@%$mandir%g
5387 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5388 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5389 s%@INSTALL_DATA@%$INSTALL_DATA%g
5390 s%@PACKAGE@%$PACKAGE%g
5391 s%@VERSION@%$VERSION%g
5392 s%@ACLOCAL@%$ACLOCAL%g
5393 s%@AUTOCONF@%$AUTOCONF%g
5394 s%@AUTOMAKE@%$AUTOMAKE%g
5395 s%@AUTOHEADER@%$AUTOHEADER%g
5396 s%@MAKEINFO@%$MAKEINFO%g
5397 s%@SET_MAKE@%$SET_MAKE%g
5398 s%@host@%$host%g
5399 s%@host_alias@%$host_alias%g
5400 s%@host_cpu@%$host_cpu%g
5401 s%@host_vendor@%$host_vendor%g
5402 s%@host_os@%$host_os%g
5403 s%@RANLIB@%$RANLIB%g
5404 s%@CC@%$CC%g
5405 s%@LD@%$LD%g
5406 s%@NM@%$NM%g
5407 s%@LN_S@%$LN_S%g
5408 s%@LIBTOOL@%$LIBTOOL%g
5409 s%@CPP@%$CPP%g
5410 s%@ALLOCA@%$ALLOCA%g
5411 s%@CPP_PATH@%$CPP_PATH%g
5412 s%@XGETTEXT@%$XGETTEXT%g
5413 s%@DLLIBS@%$DLLIBS%g
5414 s%@INTLIBS@%$INTLIBS%g
5415 s%@NLSDIR@%$NLSDIR%g
5416 s%@MOFILES@%$MOFILES%g
5417 s%@WPMOFILES@%$WPMOFILES%g
5418 s%@LITE@%$LITE%g
5419 s%@X_CFLAGS@%$X_CFLAGS%g
5420 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
5421 s%@X_LIBS@%$X_LIBS%g
5422 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
5423 s%@LIBPL@%$LIBPL%g
5424 s%@XCFLAGS@%$XCFLAGS%g
5425 s%@XLFLAGS@%$XLFLAGS%g
5426 s%@XLIBS@%$XLIBS%g
5427 s%@LIBRARY_SEARCH_PATH@%$LIBRARY_SEARCH_PATH%g
5428 s%@HEADER_SEARCH_PATH@%$HEADER_SEARCH_PATH%g
5429 s%@GFXLIBS@%$GFXLIBS%g
5430 s%@ICONEXT@%$ICONEXT%g
5431 s%@DFLAGS@%$DFLAGS%g
5432 s%@wprefsdir@%$wprefsdir%g
5434 CEOF
5437 cat >> $CONFIG_STATUS <<\EOF
5439 # Split the substitutions into bite-sized pieces for seds with
5440 # small command number limits, like on Digital OSF/1 and HP-UX.
5441 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5442 ac_file=1 # Number of current file.
5443 ac_beg=1 # First line for current file.
5444 ac_end=$ac_max_sed_cmds # Line after last line for current file.
5445 ac_more_lines=:
5446 ac_sed_cmds=""
5447 while $ac_more_lines; do
5448 if test $ac_beg -gt 1; then
5449 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5450 else
5451 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5453 if test ! -s conftest.s$ac_file; then
5454 ac_more_lines=false
5455 rm -f conftest.s$ac_file
5456 else
5457 if test -z "$ac_sed_cmds"; then
5458 ac_sed_cmds="sed -f conftest.s$ac_file"
5459 else
5460 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5462 ac_file=`expr $ac_file + 1`
5463 ac_beg=$ac_end
5464 ac_end=`expr $ac_end + $ac_max_sed_cmds`
5466 done
5467 if test -z "$ac_sed_cmds"; then
5468 ac_sed_cmds=cat
5472 cat >> $CONFIG_STATUS <<EOF
5474 CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile util/Makefile test/Makefile wmlib/Makefile \
5475 WINGs/Makefile WINGs/Resources/Makefile src/Makefile src/wconfig.h \
5476 wrlib/Makefile doc/Makefile WindowMaker/Makefile \
5477 WindowMaker/Backgrounds/Makefile WindowMaker/Defaults/Makefile \
5478 WindowMaker/IconSets/Makefile WindowMaker/Icons/Makefile \
5479 WindowMaker/Pixmaps/Makefile WindowMaker/Styles/Makefile \
5480 WindowMaker/Themes/Makefile \
5481 WPrefs.app/Makefile WPrefs.app/tiff/Makefile WPrefs.app/xpm/Makefile \
5482 WPrefs.app/po/Makefile "}
5484 cat >> $CONFIG_STATUS <<\EOF
5485 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5486 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5487 case "$ac_file" in
5488 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5489 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5490 *) ac_file_in="${ac_file}.in" ;;
5491 esac
5493 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5495 # Remove last slash and all that follows it. Not all systems have dirname.
5496 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5497 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5498 # The file is in a subdirectory.
5499 test ! -d "$ac_dir" && mkdir "$ac_dir"
5500 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5501 # A "../" for each directory in $ac_dir_suffix.
5502 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5503 else
5504 ac_dir_suffix= ac_dots=
5507 case "$ac_given_srcdir" in
5508 .) srcdir=.
5509 if test -z "$ac_dots"; then top_srcdir=.
5510 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5511 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5512 *) # Relative path.
5513 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5514 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5515 esac
5517 case "$ac_given_INSTALL" in
5518 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5519 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5520 esac
5522 echo creating "$ac_file"
5523 rm -f "$ac_file"
5524 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5525 case "$ac_file" in
5526 *Makefile*) ac_comsub="1i\\
5527 # $configure_input" ;;
5528 *) ac_comsub= ;;
5529 esac
5531 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5532 sed -e "$ac_comsub
5533 s%@configure_input@%$configure_input%g
5534 s%@srcdir@%$srcdir%g
5535 s%@top_srcdir@%$top_srcdir%g
5536 s%@INSTALL@%$INSTALL%g
5537 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5538 fi; done
5539 rm -f conftest.s*
5541 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5542 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5544 # ac_d sets the value in "#define NAME VALUE" lines.
5545 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5546 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
5547 ac_dC='\3'
5548 ac_dD='%g'
5549 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5550 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5551 ac_uB='\([ ]\)%\1#\2define\3'
5552 ac_uC=' '
5553 ac_uD='\4%g'
5554 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5555 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5556 ac_eB='$%\1#\2define\3'
5557 ac_eC=' '
5558 ac_eD='%g'
5560 if test "${CONFIG_HEADERS+set}" != set; then
5562 cat >> $CONFIG_STATUS <<EOF
5563 CONFIG_HEADERS="src/config.h"
5565 cat >> $CONFIG_STATUS <<\EOF
5567 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
5568 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5569 case "$ac_file" in
5570 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5571 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5572 *) ac_file_in="${ac_file}.in" ;;
5573 esac
5575 echo creating $ac_file
5577 rm -f conftest.frag conftest.in conftest.out
5578 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5579 cat $ac_file_inputs > conftest.in
5583 # Transform confdefs.h into a sed script conftest.vals that substitutes
5584 # the proper values into config.h.in to produce config.h. And first:
5585 # Protect against being on the right side of a sed subst in config.status.
5586 # Protect against being in an unquoted here document in config.status.
5587 rm -f conftest.vals
5588 cat > conftest.hdr <<\EOF
5589 s/[\\&%]/\\&/g
5590 s%[\\$`]%\\&%g
5591 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5592 s%ac_d%ac_u%gp
5593 s%ac_u%ac_e%gp
5595 sed -n -f conftest.hdr confdefs.h > conftest.vals
5596 rm -f conftest.hdr
5598 # This sed command replaces #undef with comments. This is necessary, for
5599 # example, in the case of _POSIX_SOURCE, which is predefined and required
5600 # on some systems where configure will not decide to define it.
5601 cat >> conftest.vals <<\EOF
5602 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5605 # Break up conftest.vals because some shells have a limit on
5606 # the size of here documents, and old seds have small limits too.
5608 rm -f conftest.tail
5609 while :
5611 ac_lines=`grep -c . conftest.vals`
5612 # grep -c gives empty output for an empty file on some AIX systems.
5613 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5614 # Write a limited-size here document to conftest.frag.
5615 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5616 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5617 echo 'CEOF
5618 sed -f conftest.frag conftest.in > conftest.out
5619 rm -f conftest.in
5620 mv conftest.out conftest.in
5621 ' >> $CONFIG_STATUS
5622 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5623 rm -f conftest.vals
5624 mv conftest.tail conftest.vals
5625 done
5626 rm -f conftest.vals
5628 cat >> $CONFIG_STATUS <<\EOF
5629 rm -f conftest.frag conftest.h
5630 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5631 cat conftest.in >> conftest.h
5632 rm -f conftest.in
5633 if cmp -s $ac_file conftest.h 2>/dev/null; then
5634 echo "$ac_file is unchanged"
5635 rm -f conftest.h
5636 else
5637 # Remove last slash and all that follows it. Not all systems have dirname.
5638 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5639 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5640 # The file is in a subdirectory.
5641 test ! -d "$ac_dir" && mkdir "$ac_dir"
5643 rm -f $ac_file
5644 mv conftest.h $ac_file
5646 fi; done
5649 cat >> $CONFIG_STATUS <<EOF
5653 cat >> $CONFIG_STATUS <<\EOF
5654 test -z "$CONFIG_HEADERS" || echo timestamp > src/stamp-h
5656 exit 0
5658 chmod +x $CONFIG_STATUS
5659 rm -fr confdefs* $ac_clean_files
5660 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
5668 cat <<EOF >get-wraster-flags
5669 #!/bin/sh
5671 prefix="$prefix"
5672 exec_prefix=\$prefix
5674 WCFLAGS="-I\$prefix/include $inc_search_path"
5675 WLFLAGS="-L\$exec_prefix/lib $lib_search_path"
5676 WLIBS="-lwraster $GFXLIBS $XLIBS -lm"
5678 usage="Usage: get-wraster-flags #lp#--cflags#rp# #lp#--ldflags#rp# #lp#--libs#rp#"
5680 if test \$# -eq 0; then
5681 echo "\${usage}" 1>&2
5682 exit 1
5685 while test \$# -gt 0; do
5686 case \$1 in
5687 --cflags)
5688 echo \$WCFLAGS
5690 --ldflags|--lflags)
5691 echo \$WLFLAGS
5693 --libs)
5694 echo \$WLIBS
5697 echo "\${usage}" 1>&2
5698 exit 1
5700 esac
5701 shift
5702 done
5707 sed 's/#lp#/[/g' get-wraster-flags | sed 's/#rp#/]/g' > wrlib/get-wraster-flags
5709 chmod 755 wrlib/get-wraster-flags
5710 rm -f get-wraster-flags
5714 supported_gfx="$supported_gfx builtin-PPM"
5716 if test "x$MOFILES" = "x"; then
5717 mof=none
5718 else
5719 mof=$MOFILES
5723 echo
5724 echo "Window Maker was configured as follows:"
5725 echo
5726 echo "Installation path prefix: $prefix"
5727 echo "Installation path prefix for binaries: $_bindir"
5728 echo "Installation path for WPrefs.app: $wprefsdir" | sed -e 's|\$(prefix)|'"$prefix|"
5729 echo "Graphic format libraries: $supported_gfx"
5730 echo "Sound support: $sound"
5731 echo "Translated message files to install: $mof"
5732 if test "x$MOFILES" != "x"; then
5733 echo "Installation path of translated messages: $NLSDIR" | sed -e 's|\$(prefix)|'"$prefix|"
5737 if test "$rh_is_redhat" = yes; then
5738 if test "$mins_found" = yes -o "$bugs_found" = yes; then
5739 echo
5740 echo "configure: warning: It seems you are using a system packaged by Red Hat.
5741 I have done some checks for Red-Hat-specific bugs, and I found some
5742 problems. Please read the INSTALL file regarding Red Hat, resolve
5743 the problems, and try to run configure again.
5745 Here are the problems I found:
5746 " 1>&2
5747 if test "x$rh_old_wmaker" = xyes; then
5748 echo "Problem: Old version of Window Maker in /usr/X11R6/bin."
5749 echo "Description: You seem to have an old version of Window Maker"
5750 echo " installed in /usr/X11R6/bin. It is recommended"
5751 echo " that you uninstall any previously installed"
5752 echo " packages of WindowMaker before installing a new one."
5753 echo
5755 if test "x$rh_missing_usr_local_bin" = xyes; then
5756 echo "Problem: PATH is missing /usr/local/bin."
5757 echo "Description: Your PATH environment variable does not appear to"
5758 echo " contain the directory /usr/local/bin. Please add it."
5759 echo
5761 if test "x$rh_missing_usr_local_lib" = xyes; then
5762 echo "Problem: /etc/ld.so.conf missing /usr/local/lib"
5763 echo "Description: Your /etc/ld.so.conf file does not appear to contain"
5764 echo " the directory /usr/local/lib. Please add it."
5765 echo
5767 if test "x$rh_missing_usr_x11" = xyes; then
5768 echo "Problem: Missing /usr/X11 symbolic link."
5769 echo "Description: Your system is missing a symbolic link from"
5770 echo " /usr/X11R6 to /usr/X11. Please create one."
5771 echo
5773 if test "x$rh_missing_usr_include_x11" = xyes; then
5774 echo "Problem: Missing /usr/include/X11 symbolic link."
5775 echo "Description: Your system is missing a symbolic link from"
5776 echo " /usr/X11R6/include/X11 to /usr/include/X11."
5777 echo " Please create one."
5778 echo
5780 if test "x$rh_missing_lib_cpp" = xyes; then
5781 echo "Problem: Missing /lib/cpp symbolic link."
5782 echo "Description: Your system is missing a symbolic link from the"
5783 echo " cpp (C preprocessor) program to /lib/cpp."
5784 echo " Please create one."
5785 echo
5787 if test "x$bugs_found" = xyes; then
5788 { echo "configure: error: One or more of the problems above can potentially
5789 cause Window Maker not to install or run properly. Please resolve
5790 the problems and try to run configure again." 1>&2; exit 1; }
5791 exit 1
5792 elif test "x$mins_found" = xyes; then
5793 echo "configure: warning: The problems above may or may not cause Window Maker
5794 not to install or run properly. If you have any problems during
5795 installation or execution, please resolve the problems and try to
5796 install Window Maker again." 1>&2
5797 echo
5799 else
5800 echo
5801 echo "You appear to have a system packaged by Red Hat, but I could"
5802 echo "not find any Red-Hat-specific problems that I know about."
5803 echo
5808 if test "x$ac_cv_header_jpeglib_h" != xyes; then
5809 echo "WARNING WARNING WARNING WARNING WARNING WARNING WARNING"
5810 echo
5811 echo "JPEG support will not be included because the JPEG library is"
5812 echo "not installed correctly or was not found. Background images"
5813 echo "from themes will not display as they usually are JPEG files."
5814 echo
5815 echo "To fix, download and install the jpeg library and/or make sure you"
5816 echo "installed all jpeg related packages, like jpeg-devel."
5817 echo
5818 echo "WARNING WARNING WARNING WARNING WARNING WARNING WARNING"