This update includes the 0.20.3pre3 code
[wmaker-crm.git] / configure
blob4907b57b5231fafc064eab828d1098f7ad78a650
1 #! /bin/sh
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12
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-kanji multibyte character support (kanji, Korean etc.)"
16 ac_help="$ac_help
17 --enable-modelock XKB keyboard language status support"
18 ac_help="$ac_help
19 --with-nlsdir=PATH specify where the locale stuff should go "
20 ac_help="$ac_help
21 --with-x use the X Window System"
22 ac_help="$ac_help
23 --disable-shape disable shaped window extension support"
24 ac_help="$ac_help
25 --disable-shm disable usage of MIT-SHM extension"
26 ac_help="$ac_help
27 --with-gfx-libs pass compiler flags to look for gfx libraries"
28 ac_help="$ac_help
29 --with-gfx-incs pass compiler flags to look for gfx header files"
30 ac_help="$ac_help
31 --disable-xpm disable use of XPM pixmaps through libXpm"
32 ac_help="$ac_help
33 --disable-png disable PNG support through libpng"
34 ac_help="$ac_help
35 --disable-jpeg disable JPEG support through libjpeg"
36 ac_help="$ac_help
37 --disable-gif disable GIF support through libgif or libungif"
38 ac_help="$ac_help
39 --disable-tiff disable use of TIFF images through libtiff"
40 ac_help="$ac_help
41 --enable-debug enable debugging "
42 ac_help="$ac_help
43 --disable-sound disable sound support "
44 ac_help="$ac_help
45 --with-pixmapdir=PATH specify where pixmaps are located [DATADIR/pixmaps]"
46 ac_help="$ac_help
47 --with-appspath=PATH specify the path of the GNUstep applications
48 directory"
49 ac_help="$ac_help
50 --enable-single-icon use single application icon per WM_INSTANCE+WM_CLASS
53 # Initialize some variables set by options.
54 # The variables have the same names as the options, with
55 # dashes changed to underlines.
56 build=NONE
57 cache_file=./config.cache
58 exec_prefix=NONE
59 host=NONE
60 no_create=
61 nonopt=NONE
62 no_recursion=
63 prefix=NONE
64 program_prefix=NONE
65 program_suffix=NONE
66 program_transform_name=s,x,x,
67 silent=
68 site=
69 srcdir=
70 target=NONE
71 verbose=
72 x_includes=NONE
73 x_libraries=NONE
74 bindir='${exec_prefix}/bin'
75 sbindir='${exec_prefix}/sbin'
76 libexecdir='${exec_prefix}/libexec'
77 datadir='${prefix}/share'
78 sysconfdir='${prefix}/etc'
79 sharedstatedir='${prefix}/com'
80 localstatedir='${prefix}/var'
81 libdir='${exec_prefix}/lib'
82 includedir='${prefix}/include'
83 oldincludedir='/usr/include'
84 infodir='${prefix}/info'
85 mandir='${prefix}/man'
87 # Initialize some other variables.
88 subdirs=
89 MFLAGS= MAKEFLAGS=
90 # Maximum number of lines to put in a shell here document.
91 ac_max_here_lines=12
93 ac_prev=
94 for ac_option
97 # If the previous option needs an argument, assign it.
98 if test -n "$ac_prev"; then
99 eval "$ac_prev=\$ac_option"
100 ac_prev=
101 continue
104 case "$ac_option" in
105 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
106 *) ac_optarg= ;;
107 esac
109 # Accept the important Cygnus configure options, so we can diagnose typos.
111 case "$ac_option" in
113 -bindir | --bindir | --bindi | --bind | --bin | --bi)
114 ac_prev=bindir ;;
115 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
116 bindir="$ac_optarg" ;;
118 -build | --build | --buil | --bui | --bu)
119 ac_prev=build ;;
120 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
121 build="$ac_optarg" ;;
123 -cache-file | --cache-file | --cache-fil | --cache-fi \
124 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
125 ac_prev=cache_file ;;
126 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
127 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
128 cache_file="$ac_optarg" ;;
130 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
131 ac_prev=datadir ;;
132 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
133 | --da=*)
134 datadir="$ac_optarg" ;;
136 -disable-* | --disable-*)
137 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
138 # Reject names that are not valid shell variable names.
139 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
140 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
142 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
143 eval "enable_${ac_feature}=no" ;;
145 -enable-* | --enable-*)
146 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
147 # Reject names that are not valid shell variable names.
148 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
149 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
151 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
152 case "$ac_option" in
153 *=*) ;;
154 *) ac_optarg=yes ;;
155 esac
156 eval "enable_${ac_feature}='$ac_optarg'" ;;
158 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
159 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
160 | --exec | --exe | --ex)
161 ac_prev=exec_prefix ;;
162 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
163 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
164 | --exec=* | --exe=* | --ex=*)
165 exec_prefix="$ac_optarg" ;;
167 -gas | --gas | --ga | --g)
168 # Obsolete; use --with-gas.
169 with_gas=yes ;;
171 -help | --help | --hel | --he)
172 # Omit some internal or obsolete options to make the list less imposing.
173 # This message is too long to be a string in the A/UX 3.1 sh.
174 cat << EOF
175 Usage: configure [options] [host]
176 Options: [defaults in brackets after descriptions]
177 Configuration:
178 --cache-file=FILE cache test results in FILE
179 --help print this message
180 --no-create do not create output files
181 --quiet, --silent do not print \`checking...' messages
182 --version print the version of autoconf that created configure
183 Directory and file names:
184 --prefix=PREFIX install architecture-independent files in PREFIX
185 [$ac_default_prefix]
186 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
187 [same as prefix]
188 --bindir=DIR user executables in DIR [EPREFIX/bin]
189 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
190 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
191 --datadir=DIR read-only architecture-independent data in DIR
192 [PREFIX/share]
193 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
194 --sharedstatedir=DIR modifiable architecture-independent data in DIR
195 [PREFIX/com]
196 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
197 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
198 --includedir=DIR C header files in DIR [PREFIX/include]
199 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
200 --infodir=DIR info documentation in DIR [PREFIX/info]
201 --mandir=DIR man documentation in DIR [PREFIX/man]
202 --srcdir=DIR find the sources in DIR [configure dir or ..]
203 --program-prefix=PREFIX prepend PREFIX to installed program names
204 --program-suffix=SUFFIX append SUFFIX to installed program names
205 --program-transform-name=PROGRAM
206 run sed PROGRAM on installed program names
208 cat << EOF
209 Host type:
210 --build=BUILD configure for building on BUILD [BUILD=HOST]
211 --host=HOST configure for HOST [guessed]
212 --target=TARGET configure for TARGET [TARGET=HOST]
213 Features and packages:
214 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
215 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
216 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
217 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
218 --x-includes=DIR X include files are in DIR
219 --x-libraries=DIR X library files are in DIR
221 if test -n "$ac_help"; then
222 echo "--enable and --with options recognized:$ac_help"
224 exit 0 ;;
226 -host | --host | --hos | --ho)
227 ac_prev=host ;;
228 -host=* | --host=* | --hos=* | --ho=*)
229 host="$ac_optarg" ;;
231 -includedir | --includedir | --includedi | --included | --include \
232 | --includ | --inclu | --incl | --inc)
233 ac_prev=includedir ;;
234 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
235 | --includ=* | --inclu=* | --incl=* | --inc=*)
236 includedir="$ac_optarg" ;;
238 -infodir | --infodir | --infodi | --infod | --info | --inf)
239 ac_prev=infodir ;;
240 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
241 infodir="$ac_optarg" ;;
243 -libdir | --libdir | --libdi | --libd)
244 ac_prev=libdir ;;
245 -libdir=* | --libdir=* | --libdi=* | --libd=*)
246 libdir="$ac_optarg" ;;
248 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
249 | --libexe | --libex | --libe)
250 ac_prev=libexecdir ;;
251 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
252 | --libexe=* | --libex=* | --libe=*)
253 libexecdir="$ac_optarg" ;;
255 -localstatedir | --localstatedir | --localstatedi | --localstated \
256 | --localstate | --localstat | --localsta | --localst \
257 | --locals | --local | --loca | --loc | --lo)
258 ac_prev=localstatedir ;;
259 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
260 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
261 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
262 localstatedir="$ac_optarg" ;;
264 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
265 ac_prev=mandir ;;
266 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
267 mandir="$ac_optarg" ;;
269 -nfp | --nfp | --nf)
270 # Obsolete; use --without-fp.
271 with_fp=no ;;
273 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
274 | --no-cr | --no-c)
275 no_create=yes ;;
277 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
278 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
279 no_recursion=yes ;;
281 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
282 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
283 | --oldin | --oldi | --old | --ol | --o)
284 ac_prev=oldincludedir ;;
285 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
286 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
287 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
288 oldincludedir="$ac_optarg" ;;
290 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
291 ac_prev=prefix ;;
292 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
293 prefix="$ac_optarg" ;;
295 -program-prefix | --program-prefix | --program-prefi | --program-pref \
296 | --program-pre | --program-pr | --program-p)
297 ac_prev=program_prefix ;;
298 -program-prefix=* | --program-prefix=* | --program-prefi=* \
299 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
300 program_prefix="$ac_optarg" ;;
302 -program-suffix | --program-suffix | --program-suffi | --program-suff \
303 | --program-suf | --program-su | --program-s)
304 ac_prev=program_suffix ;;
305 -program-suffix=* | --program-suffix=* | --program-suffi=* \
306 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
307 program_suffix="$ac_optarg" ;;
309 -program-transform-name | --program-transform-name \
310 | --program-transform-nam | --program-transform-na \
311 | --program-transform-n | --program-transform- \
312 | --program-transform | --program-transfor \
313 | --program-transfo | --program-transf \
314 | --program-trans | --program-tran \
315 | --progr-tra | --program-tr | --program-t)
316 ac_prev=program_transform_name ;;
317 -program-transform-name=* | --program-transform-name=* \
318 | --program-transform-nam=* | --program-transform-na=* \
319 | --program-transform-n=* | --program-transform-=* \
320 | --program-transform=* | --program-transfor=* \
321 | --program-transfo=* | --program-transf=* \
322 | --program-trans=* | --program-tran=* \
323 | --progr-tra=* | --program-tr=* | --program-t=*)
324 program_transform_name="$ac_optarg" ;;
326 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
327 | -silent | --silent | --silen | --sile | --sil)
328 silent=yes ;;
330 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
331 ac_prev=sbindir ;;
332 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
333 | --sbi=* | --sb=*)
334 sbindir="$ac_optarg" ;;
336 -sharedstatedir | --sharedstatedir | --sharedstatedi \
337 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
338 | --sharedst | --shareds | --shared | --share | --shar \
339 | --sha | --sh)
340 ac_prev=sharedstatedir ;;
341 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
342 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
343 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
344 | --sha=* | --sh=*)
345 sharedstatedir="$ac_optarg" ;;
347 -site | --site | --sit)
348 ac_prev=site ;;
349 -site=* | --site=* | --sit=*)
350 site="$ac_optarg" ;;
352 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
353 ac_prev=srcdir ;;
354 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
355 srcdir="$ac_optarg" ;;
357 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
358 | --syscon | --sysco | --sysc | --sys | --sy)
359 ac_prev=sysconfdir ;;
360 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
361 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
362 sysconfdir="$ac_optarg" ;;
364 -target | --target | --targe | --targ | --tar | --ta | --t)
365 ac_prev=target ;;
366 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
367 target="$ac_optarg" ;;
369 -v | -verbose | --verbose | --verbos | --verbo | --verb)
370 verbose=yes ;;
372 -version | --version | --versio | --versi | --vers)
373 echo "configure generated by autoconf version 2.12"
374 exit 0 ;;
376 -with-* | --with-*)
377 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
378 # Reject names that are not valid shell variable names.
379 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
380 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
382 ac_package=`echo $ac_package| sed 's/-/_/g'`
383 case "$ac_option" in
384 *=*) ;;
385 *) ac_optarg=yes ;;
386 esac
387 eval "with_${ac_package}='$ac_optarg'" ;;
389 -without-* | --without-*)
390 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
391 # Reject names that are not valid shell variable names.
392 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
393 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
395 ac_package=`echo $ac_package| sed 's/-/_/g'`
396 eval "with_${ac_package}=no" ;;
398 --x)
399 # Obsolete; use --with-x.
400 with_x=yes ;;
402 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
403 | --x-incl | --x-inc | --x-in | --x-i)
404 ac_prev=x_includes ;;
405 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
406 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
407 x_includes="$ac_optarg" ;;
409 -x-libraries | --x-libraries | --x-librarie | --x-librari \
410 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
411 ac_prev=x_libraries ;;
412 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
413 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
414 x_libraries="$ac_optarg" ;;
416 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
420 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
421 echo "configure: warning: $ac_option: invalid host type" 1>&2
423 if test "x$nonopt" != xNONE; then
424 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
426 nonopt="$ac_option"
429 esac
430 done
432 if test -n "$ac_prev"; then
433 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
436 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
438 # File descriptor usage:
439 # 0 standard input
440 # 1 file creation
441 # 2 errors and warnings
442 # 3 some systems may open it to /dev/tty
443 # 4 used on the Kubota Titan
444 # 6 checking for... messages and results
445 # 5 compiler messages saved in config.log
446 if test "$silent" = yes; then
447 exec 6>/dev/null
448 else
449 exec 6>&1
451 exec 5>./config.log
453 echo "\
454 This file contains any messages produced by compilers while
455 running configure, to aid debugging if configure makes a mistake.
456 " 1>&5
458 # Strip out --no-create and --no-recursion so they do not pile up.
459 # Also quote any args containing shell metacharacters.
460 ac_configure_args=
461 for ac_arg
463 case "$ac_arg" in
464 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
465 | --no-cr | --no-c) ;;
466 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
467 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
468 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
469 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
470 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
471 esac
472 done
474 # NLS nuisances.
475 # Only set these to C if already set. These must not be set unconditionally
476 # because not all systems understand e.g. LANG=C (notably SCO).
477 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
478 # Non-C LC_CTYPE values break the ctype check.
479 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
480 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
481 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
482 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
484 # confdefs.h avoids OS command line length limits that DEFS can exceed.
485 rm -rf conftest* confdefs.h
486 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
487 echo > confdefs.h
489 # A filename unique to this package, relative to the directory that
490 # configure is in, which we can look for to find out if srcdir is correct.
491 ac_unique_file=src/WindowMaker.h
493 # Find the source files, if location was not specified.
494 if test -z "$srcdir"; then
495 ac_srcdir_defaulted=yes
496 # Try the directory containing this script, then its parent.
497 ac_prog=$0
498 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
499 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
500 srcdir=$ac_confdir
501 if test ! -r $srcdir/$ac_unique_file; then
502 srcdir=..
504 else
505 ac_srcdir_defaulted=no
507 if test ! -r $srcdir/$ac_unique_file; then
508 if test "$ac_srcdir_defaulted" = yes; then
509 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
510 else
511 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
514 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
516 # Prefer explicitly selected file to automatically selected ones.
517 if test -z "$CONFIG_SITE"; then
518 if test "x$prefix" != xNONE; then
519 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
520 else
521 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
524 for ac_site_file in $CONFIG_SITE; do
525 if test -r "$ac_site_file"; then
526 echo "loading site script $ac_site_file"
527 . "$ac_site_file"
529 done
531 if test -r "$cache_file"; then
532 echo "loading cache $cache_file"
533 . $cache_file
534 else
535 echo "creating cache $cache_file"
536 > $cache_file
539 ac_ext=c
540 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
541 ac_cpp='$CPP $CPPFLAGS'
542 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
543 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
544 cross_compiling=$ac_cv_prog_cc_cross
546 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
547 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
548 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
549 ac_n= ac_c='
550 ' ac_t=' '
551 else
552 ac_n=-n ac_c= ac_t=
554 else
555 ac_n= ac_c='\c' ac_t=
560 ac_aux_dir=
561 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
562 if test -f $ac_dir/install-sh; then
563 ac_aux_dir=$ac_dir
564 ac_install_sh="$ac_aux_dir/install-sh -c"
565 break
566 elif test -f $ac_dir/install.sh; then
567 ac_aux_dir=$ac_dir
568 ac_install_sh="$ac_aux_dir/install.sh -c"
569 break
571 done
572 if test -z "$ac_aux_dir"; then
573 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
575 ac_config_guess=$ac_aux_dir/config.guess
576 ac_config_sub=$ac_aux_dir/config.sub
577 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
579 # Find a good install program. We prefer a C program (faster),
580 # so one script is as good as another. But avoid the broken or
581 # incompatible versions:
582 # SysV /etc/install, /usr/sbin/install
583 # SunOS /usr/etc/install
584 # IRIX /sbin/install
585 # AIX /bin/install
586 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
587 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
588 # ./install, which can be erroneously created by make from ./install.sh.
589 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
590 echo "configure:591: checking for a BSD compatible install" >&5
591 if test -z "$INSTALL"; then
592 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
593 echo $ac_n "(cached) $ac_c" 1>&6
594 else
595 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
596 for ac_dir in $PATH; do
597 # Account for people who put trailing slashes in PATH elements.
598 case "$ac_dir/" in
599 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
601 # OSF1 and SCO ODT 3.0 have their own names for install.
602 for ac_prog in ginstall installbsd scoinst install; do
603 if test -f $ac_dir/$ac_prog; then
604 if test $ac_prog = install &&
605 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
606 # AIX install. It has an incompatible calling convention.
607 # OSF/1 installbsd also uses dspmsg, but is usable.
609 else
610 ac_cv_path_install="$ac_dir/$ac_prog -c"
611 break 2
614 done
616 esac
617 done
618 IFS="$ac_save_IFS"
621 if test "${ac_cv_path_install+set}" = set; then
622 INSTALL="$ac_cv_path_install"
623 else
624 # As a last resort, use the slow shell script. We don't cache a
625 # path for INSTALL within a source directory, because that will
626 # break other packages using the cache if that directory is
627 # removed, or if the path is relative.
628 INSTALL="$ac_install_sh"
631 echo "$ac_t""$INSTALL" 1>&6
633 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
634 # It thinks the first close brace ends the variable substitution.
635 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
637 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
640 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
642 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
643 echo "configure:644: checking whether build environment is sane" >&5
644 # Just in case
645 sleep 1
646 echo timestamp > conftestfile
647 # Do `set' in a subshell so we don't clobber the current shell's
648 # arguments. Must try -L first in case configure is actually a
649 # symlink; some systems play weird games with the mod time of symlinks
650 # (eg FreeBSD returns the mod time of the symlink's containing
651 # directory).
652 if (
653 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
654 if test "$*" = "X"; then
655 # -L didn't work.
656 set X `ls -t $srcdir/configure conftestfile`
658 if test "$*" != "X $srcdir/configure conftestfile" \
659 && test "$*" != "X conftestfile $srcdir/configure"; then
661 # If neither matched, then we have a broken ls. This can happen
662 # if, for instance, CONFIG_SHELL is bash and it inherits a
663 # broken ls alias from the environment. This has actually
664 # happened. Such a system could not be considered "sane".
665 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
666 alias in your environment" 1>&2; exit 1; }
669 test "$2" = conftestfile
671 then
672 # Ok.
674 else
675 { echo "configure: error: newly created file is older than distributed files!
676 Check your system clock" 1>&2; exit 1; }
678 rm -f conftest*
679 echo "$ac_t""yes" 1>&6
680 if test "$program_transform_name" = s,x,x,; then
681 program_transform_name=
682 else
683 # Double any \ or $. echo might interpret backslashes.
684 cat <<\EOF_SED > conftestsed
685 s,\\,\\\\,g; s,\$,$$,g
686 EOF_SED
687 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
688 rm -f conftestsed
690 test "$program_prefix" != NONE &&
691 program_transform_name="s,^,${program_prefix},; $program_transform_name"
692 # Use a double $ so make ignores it.
693 test "$program_suffix" != NONE &&
694 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
696 # sed with no file args requires a program.
697 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
699 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
700 echo "configure:701: checking whether ${MAKE-make} sets \${MAKE}" >&5
701 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
702 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
703 echo $ac_n "(cached) $ac_c" 1>&6
704 else
705 cat > conftestmake <<\EOF
706 all:
707 @echo 'ac_maketemp="${MAKE}"'
709 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
710 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
711 if test -n "$ac_maketemp"; then
712 eval ac_cv_prog_make_${ac_make}_set=yes
713 else
714 eval ac_cv_prog_make_${ac_make}_set=no
716 rm -f conftestmake
718 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
719 echo "$ac_t""yes" 1>&6
720 SET_MAKE=
721 else
722 echo "$ac_t""no" 1>&6
723 SET_MAKE="MAKE=${MAKE-make}"
727 PACKAGE=WindowMaker
729 VERSION=0.20.3
731 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
732 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
734 cat >> confdefs.h <<EOF
735 #define PACKAGE "$PACKAGE"
738 cat >> confdefs.h <<EOF
739 #define VERSION "$VERSION"
744 missing_dir=`cd $ac_aux_dir && pwd`
745 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
746 echo "configure:747: checking for working aclocal" >&5
747 # Run test in a subshell; some versions of sh will print an error if
748 # an executable is not found, even if stderr is redirected.
749 # Redirect stdin to placate older versions of autoconf. Sigh.
750 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
751 ACLOCAL=aclocal
752 echo "$ac_t""found" 1>&6
753 else
754 ACLOCAL="$missing_dir/missing aclocal"
755 echo "$ac_t""missing" 1>&6
758 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
759 echo "configure:760: checking for working autoconf" >&5
760 # Run test in a subshell; some versions of sh will print an error if
761 # an executable is not found, even if stderr is redirected.
762 # Redirect stdin to placate older versions of autoconf. Sigh.
763 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
764 AUTOCONF=autoconf
765 echo "$ac_t""found" 1>&6
766 else
767 AUTOCONF="$missing_dir/missing autoconf"
768 echo "$ac_t""missing" 1>&6
771 echo $ac_n "checking for working automake""... $ac_c" 1>&6
772 echo "configure:773: checking for working automake" >&5
773 # Run test in a subshell; some versions of sh will print an error if
774 # an executable is not found, even if stderr is redirected.
775 # Redirect stdin to placate older versions of autoconf. Sigh.
776 if (automake --version) < /dev/null > /dev/null 2>&1; then
777 AUTOMAKE=automake
778 echo "$ac_t""found" 1>&6
779 else
780 AUTOMAKE="$missing_dir/missing automake"
781 echo "$ac_t""missing" 1>&6
784 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
785 echo "configure:786: checking for working autoheader" >&5
786 # Run test in a subshell; some versions of sh will print an error if
787 # an executable is not found, even if stderr is redirected.
788 # Redirect stdin to placate older versions of autoconf. Sigh.
789 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
790 AUTOHEADER=autoheader
791 echo "$ac_t""found" 1>&6
792 else
793 AUTOHEADER="$missing_dir/missing autoheader"
794 echo "$ac_t""missing" 1>&6
797 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
798 echo "configure:799: checking for working makeinfo" >&5
799 # Run test in a subshell; some versions of sh will print an error if
800 # an executable is not found, even if stderr is redirected.
801 # Redirect stdin to placate older versions of autoconf. Sigh.
802 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
803 MAKEINFO=makeinfo
804 echo "$ac_t""found" 1>&6
805 else
806 MAKEINFO="$missing_dir/missing makeinfo"
807 echo "$ac_t""missing" 1>&6
814 #WINGS_VER=0.0.1
815 #WRASTER_VER=0.0.1
818 subdirs="libPropList"
828 # Make sure we can run config.sub.
829 if $ac_config_sub sun4 >/dev/null 2>&1; then :
830 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
833 echo $ac_n "checking host system type""... $ac_c" 1>&6
834 echo "configure:835: checking host system type" >&5
836 host_alias=$host
837 case "$host_alias" in
838 NONE)
839 case $nonopt in
840 NONE)
841 if host_alias=`$ac_config_guess`; then :
842 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
843 fi ;;
844 *) host_alias=$nonopt ;;
845 esac ;;
846 esac
848 host=`$ac_config_sub $host_alias`
849 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
850 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
851 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
852 echo "$ac_t""$host" 1>&6
856 # Extract the first word of "gcc", so it can be a program name with args.
857 set dummy gcc; ac_word=$2
858 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
859 echo "configure:860: checking for $ac_word" >&5
860 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
861 echo $ac_n "(cached) $ac_c" 1>&6
862 else
863 if test -n "$CC"; then
864 ac_cv_prog_CC="$CC" # Let the user override the test.
865 else
866 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
867 for ac_dir in $PATH; do
868 test -z "$ac_dir" && ac_dir=.
869 if test -f $ac_dir/$ac_word; then
870 ac_cv_prog_CC="gcc"
871 break
873 done
874 IFS="$ac_save_ifs"
877 CC="$ac_cv_prog_CC"
878 if test -n "$CC"; then
879 echo "$ac_t""$CC" 1>&6
880 else
881 echo "$ac_t""no" 1>&6
884 if test -z "$CC"; then
885 # Extract the first word of "cc", so it can be a program name with args.
886 set dummy cc; ac_word=$2
887 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
888 echo "configure:889: checking for $ac_word" >&5
889 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
890 echo $ac_n "(cached) $ac_c" 1>&6
891 else
892 if test -n "$CC"; then
893 ac_cv_prog_CC="$CC" # Let the user override the test.
894 else
895 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
896 ac_prog_rejected=no
897 for ac_dir in $PATH; do
898 test -z "$ac_dir" && ac_dir=.
899 if test -f $ac_dir/$ac_word; then
900 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
901 ac_prog_rejected=yes
902 continue
904 ac_cv_prog_CC="cc"
905 break
907 done
908 IFS="$ac_save_ifs"
909 if test $ac_prog_rejected = yes; then
910 # We found a bogon in the path, so make sure we never use it.
911 set dummy $ac_cv_prog_CC
912 shift
913 if test $# -gt 0; then
914 # We chose a different compiler from the bogus one.
915 # However, it has the same basename, so the bogon will be chosen
916 # first if we set CC to just the basename; use the full file name.
917 shift
918 set dummy "$ac_dir/$ac_word" "$@"
919 shift
920 ac_cv_prog_CC="$@"
925 CC="$ac_cv_prog_CC"
926 if test -n "$CC"; then
927 echo "$ac_t""$CC" 1>&6
928 else
929 echo "$ac_t""no" 1>&6
932 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
935 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
936 echo "configure:937: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
938 ac_ext=c
939 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
940 ac_cpp='$CPP $CPPFLAGS'
941 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
942 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
943 cross_compiling=$ac_cv_prog_cc_cross
945 cat > conftest.$ac_ext <<EOF
946 #line 947 "configure"
947 #include "confdefs.h"
948 main(){return(0);}
950 if { (eval echo configure:951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
951 ac_cv_prog_cc_works=yes
952 # If we can't run a trivial program, we are probably using a cross compiler.
953 if (./conftest; exit) 2>/dev/null; then
954 ac_cv_prog_cc_cross=no
955 else
956 ac_cv_prog_cc_cross=yes
958 else
959 echo "configure: failed program was:" >&5
960 cat conftest.$ac_ext >&5
961 ac_cv_prog_cc_works=no
963 rm -fr conftest*
965 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
966 if test $ac_cv_prog_cc_works = no; then
967 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
969 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
970 echo "configure:971: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
971 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
972 cross_compiling=$ac_cv_prog_cc_cross
974 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
975 echo "configure:976: checking whether we are using GNU C" >&5
976 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
977 echo $ac_n "(cached) $ac_c" 1>&6
978 else
979 cat > conftest.c <<EOF
980 #ifdef __GNUC__
981 yes;
982 #endif
984 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:985: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
985 ac_cv_prog_gcc=yes
986 else
987 ac_cv_prog_gcc=no
991 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
993 if test $ac_cv_prog_gcc = yes; then
994 GCC=yes
995 ac_test_CFLAGS="${CFLAGS+set}"
996 ac_save_CFLAGS="$CFLAGS"
997 CFLAGS=
998 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
999 echo "configure:1000: checking whether ${CC-cc} accepts -g" >&5
1000 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1001 echo $ac_n "(cached) $ac_c" 1>&6
1002 else
1003 echo 'void f(){}' > conftest.c
1004 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1005 ac_cv_prog_cc_g=yes
1006 else
1007 ac_cv_prog_cc_g=no
1009 rm -f conftest*
1013 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1014 if test "$ac_test_CFLAGS" = set; then
1015 CFLAGS="$ac_save_CFLAGS"
1016 elif test $ac_cv_prog_cc_g = yes; then
1017 CFLAGS="-g -O2"
1018 else
1019 CFLAGS="-O2"
1021 else
1022 GCC=
1023 test "${CFLAGS+set}" = set || CFLAGS="-g"
1026 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1027 echo "configure:1028: checking for POSIXized ISC" >&5
1028 if test -d /etc/conf/kconfig.d &&
1029 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1030 then
1031 echo "$ac_t""yes" 1>&6
1032 ISC=yes # If later tests want to check for ISC.
1033 cat >> confdefs.h <<\EOF
1034 #define _POSIX_SOURCE 1
1037 if test "$GCC" = yes; then
1038 CC="$CC -posix"
1039 else
1040 CC="$CC -Xp"
1042 else
1043 echo "$ac_t""no" 1>&6
1044 ISC=
1047 # Extract the first word of "gcc", so it can be a program name with args.
1048 set dummy gcc; ac_word=$2
1049 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1050 echo "configure:1051: checking for $ac_word" >&5
1051 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1052 echo $ac_n "(cached) $ac_c" 1>&6
1053 else
1054 if test -n "$CC"; then
1055 ac_cv_prog_CC="$CC" # Let the user override the test.
1056 else
1057 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1058 for ac_dir in $PATH; do
1059 test -z "$ac_dir" && ac_dir=.
1060 if test -f $ac_dir/$ac_word; then
1061 ac_cv_prog_CC="gcc"
1062 break
1064 done
1065 IFS="$ac_save_ifs"
1068 CC="$ac_cv_prog_CC"
1069 if test -n "$CC"; then
1070 echo "$ac_t""$CC" 1>&6
1071 else
1072 echo "$ac_t""no" 1>&6
1075 if test -z "$CC"; then
1076 # Extract the first word of "cc", so it can be a program name with args.
1077 set dummy cc; ac_word=$2
1078 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1079 echo "configure:1080: checking for $ac_word" >&5
1080 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1081 echo $ac_n "(cached) $ac_c" 1>&6
1082 else
1083 if test -n "$CC"; then
1084 ac_cv_prog_CC="$CC" # Let the user override the test.
1085 else
1086 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1087 ac_prog_rejected=no
1088 for ac_dir in $PATH; do
1089 test -z "$ac_dir" && ac_dir=.
1090 if test -f $ac_dir/$ac_word; then
1091 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1092 ac_prog_rejected=yes
1093 continue
1095 ac_cv_prog_CC="cc"
1096 break
1098 done
1099 IFS="$ac_save_ifs"
1100 if test $ac_prog_rejected = yes; then
1101 # We found a bogon in the path, so make sure we never use it.
1102 set dummy $ac_cv_prog_CC
1103 shift
1104 if test $# -gt 0; then
1105 # We chose a different compiler from the bogus one.
1106 # However, it has the same basename, so the bogon will be chosen
1107 # first if we set CC to just the basename; use the full file name.
1108 shift
1109 set dummy "$ac_dir/$ac_word" "$@"
1110 shift
1111 ac_cv_prog_CC="$@"
1116 CC="$ac_cv_prog_CC"
1117 if test -n "$CC"; then
1118 echo "$ac_t""$CC" 1>&6
1119 else
1120 echo "$ac_t""no" 1>&6
1123 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1126 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1127 echo "configure:1128: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1129 ac_ext=c
1130 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1131 ac_cpp='$CPP $CPPFLAGS'
1132 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1133 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1134 cross_compiling=$ac_cv_prog_cc_cross
1136 cat > conftest.$ac_ext <<EOF
1137 #line 1138 "configure"
1138 #include "confdefs.h"
1139 main(){return(0);}
1141 if { (eval echo configure:1142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1142 ac_cv_prog_cc_works=yes
1143 # If we can't run a trivial program, we are probably using a cross compiler.
1144 if (./conftest; exit) 2>/dev/null; then
1145 ac_cv_prog_cc_cross=no
1146 else
1147 ac_cv_prog_cc_cross=yes
1149 else
1150 echo "configure: failed program was:" >&5
1151 cat conftest.$ac_ext >&5
1152 ac_cv_prog_cc_works=no
1154 rm -fr conftest*
1156 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1157 if test $ac_cv_prog_cc_works = no; then
1158 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1160 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1161 echo "configure:1162: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1162 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1163 cross_compiling=$ac_cv_prog_cc_cross
1165 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1166 echo "configure:1167: checking whether we are using GNU C" >&5
1167 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1168 echo $ac_n "(cached) $ac_c" 1>&6
1169 else
1170 cat > conftest.c <<EOF
1171 #ifdef __GNUC__
1172 yes;
1173 #endif
1175 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1176: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1176 ac_cv_prog_gcc=yes
1177 else
1178 ac_cv_prog_gcc=no
1182 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1184 if test $ac_cv_prog_gcc = yes; then
1185 GCC=yes
1186 ac_test_CFLAGS="${CFLAGS+set}"
1187 ac_save_CFLAGS="$CFLAGS"
1188 CFLAGS=
1189 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1190 echo "configure:1191: checking whether ${CC-cc} accepts -g" >&5
1191 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1192 echo $ac_n "(cached) $ac_c" 1>&6
1193 else
1194 echo 'void f(){}' > conftest.c
1195 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1196 ac_cv_prog_cc_g=yes
1197 else
1198 ac_cv_prog_cc_g=no
1200 rm -f conftest*
1204 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1205 if test "$ac_test_CFLAGS" = set; then
1206 CFLAGS="$ac_save_CFLAGS"
1207 elif test $ac_cv_prog_cc_g = yes; then
1208 CFLAGS="-g -O2"
1209 else
1210 CFLAGS="-O2"
1212 else
1213 GCC=
1214 test "${CFLAGS+set}" = set || CFLAGS="-g"
1217 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1218 echo "configure:1219: checking whether ${MAKE-make} sets \${MAKE}" >&5
1219 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1220 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1221 echo $ac_n "(cached) $ac_c" 1>&6
1222 else
1223 cat > conftestmake <<\EOF
1224 all:
1225 @echo 'ac_maketemp="${MAKE}"'
1227 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1228 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1229 if test -n "$ac_maketemp"; then
1230 eval ac_cv_prog_make_${ac_make}_set=yes
1231 else
1232 eval ac_cv_prog_make_${ac_make}_set=no
1234 rm -f conftestmake
1236 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1237 echo "$ac_t""yes" 1>&6
1238 SET_MAKE=
1239 else
1240 echo "$ac_t""no" 1>&6
1241 SET_MAKE="MAKE=${MAKE-make}"
1244 # Extract the first word of "ranlib", so it can be a program name with args.
1245 set dummy ranlib; ac_word=$2
1246 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1247 echo "configure:1248: checking for $ac_word" >&5
1248 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1249 echo $ac_n "(cached) $ac_c" 1>&6
1250 else
1251 if test -n "$RANLIB"; then
1252 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1253 else
1254 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1255 for ac_dir in $PATH; do
1256 test -z "$ac_dir" && ac_dir=.
1257 if test -f $ac_dir/$ac_word; then
1258 ac_cv_prog_RANLIB="ranlib"
1259 break
1261 done
1262 IFS="$ac_save_ifs"
1263 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1266 RANLIB="$ac_cv_prog_RANLIB"
1267 if test -n "$RANLIB"; then
1268 echo "$ac_t""$RANLIB" 1>&6
1269 else
1270 echo "$ac_t""no" 1>&6
1273 # Find a good install program. We prefer a C program (faster),
1274 # so one script is as good as another. But avoid the broken or
1275 # incompatible versions:
1276 # SysV /etc/install, /usr/sbin/install
1277 # SunOS /usr/etc/install
1278 # IRIX /sbin/install
1279 # AIX /bin/install
1280 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1281 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1282 # ./install, which can be erroneously created by make from ./install.sh.
1283 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1284 echo "configure:1285: checking for a BSD compatible install" >&5
1285 if test -z "$INSTALL"; then
1286 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1287 echo $ac_n "(cached) $ac_c" 1>&6
1288 else
1289 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1290 for ac_dir in $PATH; do
1291 # Account for people who put trailing slashes in PATH elements.
1292 case "$ac_dir/" in
1293 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1295 # OSF1 and SCO ODT 3.0 have their own names for install.
1296 for ac_prog in ginstall installbsd scoinst install; do
1297 if test -f $ac_dir/$ac_prog; then
1298 if test $ac_prog = install &&
1299 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1300 # AIX install. It has an incompatible calling convention.
1301 # OSF/1 installbsd also uses dspmsg, but is usable.
1303 else
1304 ac_cv_path_install="$ac_dir/$ac_prog -c"
1305 break 2
1308 done
1310 esac
1311 done
1312 IFS="$ac_save_IFS"
1315 if test "${ac_cv_path_install+set}" = set; then
1316 INSTALL="$ac_cv_path_install"
1317 else
1318 # As a last resort, use the slow shell script. We don't cache a
1319 # path for INSTALL within a source directory, because that will
1320 # break other packages using the cache if that directory is
1321 # removed, or if the path is relative.
1322 INSTALL="$ac_install_sh"
1325 echo "$ac_t""$INSTALL" 1>&6
1327 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1328 # It thinks the first close brace ends the variable substitution.
1329 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1331 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1333 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1334 echo "configure:1335: checking whether ln -s works" >&5
1335 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1336 echo $ac_n "(cached) $ac_c" 1>&6
1337 else
1338 rm -f conftestdata
1339 if ln -s X conftestdata 2>/dev/null
1340 then
1341 rm -f conftestdata
1342 ac_cv_prog_LN_S="ln -s"
1343 else
1344 ac_cv_prog_LN_S=ln
1347 LN_S="$ac_cv_prog_LN_S"
1348 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1349 echo "$ac_t""yes" 1>&6
1350 else
1351 echo "$ac_t""no" 1>&6
1354 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1355 echo "configure:1356: checking how to run the C preprocessor" >&5
1356 # On Suns, sometimes $CPP names a directory.
1357 if test -n "$CPP" && test -d "$CPP"; then
1358 CPP=
1360 if test -z "$CPP"; then
1361 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1362 echo $ac_n "(cached) $ac_c" 1>&6
1363 else
1364 # This must be in double quotes, not single quotes, because CPP may get
1365 # substituted into the Makefile and "${CC-cc}" will confuse make.
1366 CPP="${CC-cc} -E"
1367 # On the NeXT, cc -E runs the code through the compiler's parser,
1368 # not just through cpp.
1369 cat > conftest.$ac_ext <<EOF
1370 #line 1371 "configure"
1371 #include "confdefs.h"
1372 #include <assert.h>
1373 Syntax Error
1375 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1376 { (eval echo configure:1377: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1377 ac_err=`grep -v '^ *+' conftest.out`
1378 if test -z "$ac_err"; then
1380 else
1381 echo "$ac_err" >&5
1382 echo "configure: failed program was:" >&5
1383 cat conftest.$ac_ext >&5
1384 rm -rf conftest*
1385 CPP="${CC-cc} -E -traditional-cpp"
1386 cat > conftest.$ac_ext <<EOF
1387 #line 1388 "configure"
1388 #include "confdefs.h"
1389 #include <assert.h>
1390 Syntax Error
1392 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1393 { (eval echo configure:1394: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1394 ac_err=`grep -v '^ *+' conftest.out`
1395 if test -z "$ac_err"; then
1397 else
1398 echo "$ac_err" >&5
1399 echo "configure: failed program was:" >&5
1400 cat conftest.$ac_ext >&5
1401 rm -rf conftest*
1402 CPP=/lib/cpp
1404 rm -f conftest*
1406 rm -f conftest*
1407 ac_cv_prog_CPP="$CPP"
1409 CPP="$ac_cv_prog_CPP"
1410 else
1411 ac_cv_prog_CPP="$CPP"
1413 echo "$ac_t""$CPP" 1>&6
1415 if test $ac_cv_prog_gcc = yes; then
1416 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1417 echo "configure:1418: checking whether ${CC-cc} needs -traditional" >&5
1418 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1419 echo $ac_n "(cached) $ac_c" 1>&6
1420 else
1421 ac_pattern="Autoconf.*'x'"
1422 cat > conftest.$ac_ext <<EOF
1423 #line 1424 "configure"
1424 #include "confdefs.h"
1425 #include <sgtty.h>
1426 Autoconf TIOCGETP
1428 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1429 egrep "$ac_pattern" >/dev/null 2>&1; then
1430 rm -rf conftest*
1431 ac_cv_prog_gcc_traditional=yes
1432 else
1433 rm -rf conftest*
1434 ac_cv_prog_gcc_traditional=no
1436 rm -f conftest*
1439 if test $ac_cv_prog_gcc_traditional = no; then
1440 cat > conftest.$ac_ext <<EOF
1441 #line 1442 "configure"
1442 #include "confdefs.h"
1443 #include <termio.h>
1444 Autoconf TCGETA
1446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1447 egrep "$ac_pattern" >/dev/null 2>&1; then
1448 rm -rf conftest*
1449 ac_cv_prog_gcc_traditional=yes
1451 rm -f conftest*
1456 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1457 if test $ac_cv_prog_gcc_traditional = yes; then
1458 CC="$CC -traditional"
1464 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1465 echo "configure:1466: checking return type of signal handlers" >&5
1466 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1467 echo $ac_n "(cached) $ac_c" 1>&6
1468 else
1469 cat > conftest.$ac_ext <<EOF
1470 #line 1471 "configure"
1471 #include "confdefs.h"
1472 #include <sys/types.h>
1473 #include <signal.h>
1474 #ifdef signal
1475 #undef signal
1476 #endif
1477 #ifdef __cplusplus
1478 extern "C" void (*signal (int, void (*)(int)))(int);
1479 #else
1480 void (*signal ()) ();
1481 #endif
1483 int main() {
1484 int i;
1485 ; return 0; }
1487 if { (eval echo configure:1488: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1488 rm -rf conftest*
1489 ac_cv_type_signal=void
1490 else
1491 echo "configure: failed program was:" >&5
1492 cat conftest.$ac_ext >&5
1493 rm -rf conftest*
1494 ac_cv_type_signal=int
1496 rm -f conftest*
1499 echo "$ac_t""$ac_cv_type_signal" 1>&6
1500 cat >> confdefs.h <<EOF
1501 #define RETSIGTYPE $ac_cv_type_signal
1505 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
1506 echo "configure:1507: checking for vprintf" >&5
1507 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
1508 echo $ac_n "(cached) $ac_c" 1>&6
1509 else
1510 cat > conftest.$ac_ext <<EOF
1511 #line 1512 "configure"
1512 #include "confdefs.h"
1513 /* System header to define __stub macros and hopefully few prototypes,
1514 which can conflict with char vprintf(); below. */
1515 #include <assert.h>
1516 /* Override any gcc2 internal prototype to avoid an error. */
1517 /* We use char because int might match the return type of a gcc2
1518 builtin and then its argument prototype would still apply. */
1519 char vprintf();
1521 int main() {
1523 /* The GNU C library defines this for functions which it implements
1524 to always fail with ENOSYS. Some functions are actually named
1525 something starting with __ and the normal name is an alias. */
1526 #if defined (__stub_vprintf) || defined (__stub___vprintf)
1527 choke me
1528 #else
1529 vprintf();
1530 #endif
1532 ; return 0; }
1534 if { (eval echo configure:1535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1535 rm -rf conftest*
1536 eval "ac_cv_func_vprintf=yes"
1537 else
1538 echo "configure: failed program was:" >&5
1539 cat conftest.$ac_ext >&5
1540 rm -rf conftest*
1541 eval "ac_cv_func_vprintf=no"
1543 rm -f conftest*
1546 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
1547 echo "$ac_t""yes" 1>&6
1548 cat >> confdefs.h <<\EOF
1549 #define HAVE_VPRINTF 1
1552 else
1553 echo "$ac_t""no" 1>&6
1556 if test "$ac_cv_func_vprintf" != yes; then
1557 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
1558 echo "configure:1559: checking for _doprnt" >&5
1559 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
1560 echo $ac_n "(cached) $ac_c" 1>&6
1561 else
1562 cat > conftest.$ac_ext <<EOF
1563 #line 1564 "configure"
1564 #include "confdefs.h"
1565 /* System header to define __stub macros and hopefully few prototypes,
1566 which can conflict with char _doprnt(); below. */
1567 #include <assert.h>
1568 /* Override any gcc2 internal prototype to avoid an error. */
1569 /* We use char because int might match the return type of a gcc2
1570 builtin and then its argument prototype would still apply. */
1571 char _doprnt();
1573 int main() {
1575 /* The GNU C library defines this for functions which it implements
1576 to always fail with ENOSYS. Some functions are actually named
1577 something starting with __ and the normal name is an alias. */
1578 #if defined (__stub__doprnt) || defined (__stub____doprnt)
1579 choke me
1580 #else
1581 _doprnt();
1582 #endif
1584 ; return 0; }
1586 if { (eval echo configure:1587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1587 rm -rf conftest*
1588 eval "ac_cv_func__doprnt=yes"
1589 else
1590 echo "configure: failed program was:" >&5
1591 cat conftest.$ac_ext >&5
1592 rm -rf conftest*
1593 eval "ac_cv_func__doprnt=no"
1595 rm -f conftest*
1598 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
1599 echo "$ac_t""yes" 1>&6
1600 cat >> confdefs.h <<\EOF
1601 #define HAVE_DOPRNT 1
1604 else
1605 echo "$ac_t""no" 1>&6
1610 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1611 # for constant arguments. Useless!
1612 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1613 echo "configure:1614: checking for working alloca.h" >&5
1614 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1615 echo $ac_n "(cached) $ac_c" 1>&6
1616 else
1617 cat > conftest.$ac_ext <<EOF
1618 #line 1619 "configure"
1619 #include "confdefs.h"
1620 #include <alloca.h>
1621 int main() {
1622 char *p = alloca(2 * sizeof(int));
1623 ; return 0; }
1625 if { (eval echo configure:1626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1626 rm -rf conftest*
1627 ac_cv_header_alloca_h=yes
1628 else
1629 echo "configure: failed program was:" >&5
1630 cat conftest.$ac_ext >&5
1631 rm -rf conftest*
1632 ac_cv_header_alloca_h=no
1634 rm -f conftest*
1637 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1638 if test $ac_cv_header_alloca_h = yes; then
1639 cat >> confdefs.h <<\EOF
1640 #define HAVE_ALLOCA_H 1
1645 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1646 echo "configure:1647: checking for alloca" >&5
1647 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1648 echo $ac_n "(cached) $ac_c" 1>&6
1649 else
1650 cat > conftest.$ac_ext <<EOF
1651 #line 1652 "configure"
1652 #include "confdefs.h"
1654 #ifdef __GNUC__
1655 # define alloca __builtin_alloca
1656 #else
1657 # if HAVE_ALLOCA_H
1658 # include <alloca.h>
1659 # else
1660 # ifdef _AIX
1661 #pragma alloca
1662 # else
1663 # ifndef alloca /* predefined by HP cc +Olibcalls */
1664 char *alloca ();
1665 # endif
1666 # endif
1667 # endif
1668 #endif
1670 int main() {
1671 char *p = (char *) alloca(1);
1672 ; return 0; }
1674 if { (eval echo configure:1675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1675 rm -rf conftest*
1676 ac_cv_func_alloca_works=yes
1677 else
1678 echo "configure: failed program was:" >&5
1679 cat conftest.$ac_ext >&5
1680 rm -rf conftest*
1681 ac_cv_func_alloca_works=no
1683 rm -f conftest*
1686 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1687 if test $ac_cv_func_alloca_works = yes; then
1688 cat >> confdefs.h <<\EOF
1689 #define HAVE_ALLOCA 1
1694 if test $ac_cv_func_alloca_works = no; then
1695 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1696 # that cause trouble. Some versions do not even contain alloca or
1697 # contain a buggy version. If you still want to use their alloca,
1698 # use ar to extract alloca.o from them instead of compiling alloca.c.
1699 ALLOCA=alloca.o
1700 cat >> confdefs.h <<\EOF
1701 #define C_ALLOCA 1
1705 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1706 echo "configure:1707: checking whether alloca needs Cray hooks" >&5
1707 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1708 echo $ac_n "(cached) $ac_c" 1>&6
1709 else
1710 cat > conftest.$ac_ext <<EOF
1711 #line 1712 "configure"
1712 #include "confdefs.h"
1713 #if defined(CRAY) && ! defined(CRAY2)
1714 webecray
1715 #else
1716 wenotbecray
1717 #endif
1720 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1721 egrep "webecray" >/dev/null 2>&1; then
1722 rm -rf conftest*
1723 ac_cv_os_cray=yes
1724 else
1725 rm -rf conftest*
1726 ac_cv_os_cray=no
1728 rm -f conftest*
1732 echo "$ac_t""$ac_cv_os_cray" 1>&6
1733 if test $ac_cv_os_cray = yes; then
1734 for ac_func in _getb67 GETB67 getb67; do
1735 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1736 echo "configure:1737: checking for $ac_func" >&5
1737 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1738 echo $ac_n "(cached) $ac_c" 1>&6
1739 else
1740 cat > conftest.$ac_ext <<EOF
1741 #line 1742 "configure"
1742 #include "confdefs.h"
1743 /* System header to define __stub macros and hopefully few prototypes,
1744 which can conflict with char $ac_func(); below. */
1745 #include <assert.h>
1746 /* Override any gcc2 internal prototype to avoid an error. */
1747 /* We use char because int might match the return type of a gcc2
1748 builtin and then its argument prototype would still apply. */
1749 char $ac_func();
1751 int main() {
1753 /* The GNU C library defines this for functions which it implements
1754 to always fail with ENOSYS. Some functions are actually named
1755 something starting with __ and the normal name is an alias. */
1756 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1757 choke me
1758 #else
1759 $ac_func();
1760 #endif
1762 ; return 0; }
1764 if { (eval echo configure:1765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1765 rm -rf conftest*
1766 eval "ac_cv_func_$ac_func=yes"
1767 else
1768 echo "configure: failed program was:" >&5
1769 cat conftest.$ac_ext >&5
1770 rm -rf conftest*
1771 eval "ac_cv_func_$ac_func=no"
1773 rm -f conftest*
1776 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1777 echo "$ac_t""yes" 1>&6
1778 cat >> confdefs.h <<EOF
1779 #define CRAY_STACKSEG_END $ac_func
1782 break
1783 else
1784 echo "$ac_t""no" 1>&6
1787 done
1790 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1791 echo "configure:1792: checking stack direction for C alloca" >&5
1792 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1793 echo $ac_n "(cached) $ac_c" 1>&6
1794 else
1795 if test "$cross_compiling" = yes; then
1796 ac_cv_c_stack_direction=0
1797 else
1798 cat > conftest.$ac_ext <<EOF
1799 #line 1800 "configure"
1800 #include "confdefs.h"
1801 find_stack_direction ()
1803 static char *addr = 0;
1804 auto char dummy;
1805 if (addr == 0)
1807 addr = &dummy;
1808 return find_stack_direction ();
1810 else
1811 return (&dummy > addr) ? 1 : -1;
1813 main ()
1815 exit (find_stack_direction() < 0);
1818 if { (eval echo configure:1819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1819 then
1820 ac_cv_c_stack_direction=1
1821 else
1822 echo "configure: failed program was:" >&5
1823 cat conftest.$ac_ext >&5
1824 rm -fr conftest*
1825 ac_cv_c_stack_direction=-1
1827 rm -fr conftest*
1832 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1833 cat >> confdefs.h <<EOF
1834 #define STACK_DIRECTION $ac_cv_c_stack_direction
1839 for ac_func in gethostname gettimeofday select poll strerror strncasecmp setpgid
1841 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1842 echo "configure:1843: checking for $ac_func" >&5
1843 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1844 echo $ac_n "(cached) $ac_c" 1>&6
1845 else
1846 cat > conftest.$ac_ext <<EOF
1847 #line 1848 "configure"
1848 #include "confdefs.h"
1849 /* System header to define __stub macros and hopefully few prototypes,
1850 which can conflict with char $ac_func(); below. */
1851 #include <assert.h>
1852 /* Override any gcc2 internal prototype to avoid an error. */
1853 /* We use char because int might match the return type of a gcc2
1854 builtin and then its argument prototype would still apply. */
1855 char $ac_func();
1857 int main() {
1859 /* The GNU C library defines this for functions which it implements
1860 to always fail with ENOSYS. Some functions are actually named
1861 something starting with __ and the normal name is an alias. */
1862 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1863 choke me
1864 #else
1865 $ac_func();
1866 #endif
1868 ; return 0; }
1870 if { (eval echo configure:1871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1871 rm -rf conftest*
1872 eval "ac_cv_func_$ac_func=yes"
1873 else
1874 echo "configure: failed program was:" >&5
1875 cat conftest.$ac_ext >&5
1876 rm -rf conftest*
1877 eval "ac_cv_func_$ac_func=no"
1879 rm -f conftest*
1882 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1883 echo "$ac_t""yes" 1>&6
1884 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1885 cat >> confdefs.h <<EOF
1886 #define $ac_tr_func 1
1889 else
1890 echo "$ac_t""no" 1>&6
1892 done
1895 if test "$ac_cv_func_gettimeofday" != yes; then
1896 echo "The gettimeofday() system call is not available in your system"
1897 echo "but it is required by Window Maker. Sorry."
1898 exit 1
1901 if test "x$CPP_PATH" = x; then
1902 # Extract the first word of "cpp", so it can be a program name with args.
1903 set dummy cpp; ac_word=$2
1904 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1905 echo "configure:1906: checking for $ac_word" >&5
1906 if eval "test \"`echo '$''{'ac_cv_path_CPP_PATH'+set}'`\" = set"; then
1907 echo $ac_n "(cached) $ac_c" 1>&6
1908 else
1909 case "$CPP_PATH" in
1911 ac_cv_path_CPP_PATH="$CPP_PATH" # Let the user override the test with a path.
1914 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1915 for ac_dir in /lib:/usr/bin:/bin:/usr/lib:/usr/ccs/lib:$PATH$ac_dummy; do
1916 test -z "$ac_dir" && ac_dir=.
1917 if test -f $ac_dir/$ac_word; then
1918 ac_cv_path_CPP_PATH="$ac_dir/$ac_word"
1919 break
1921 done
1922 IFS="$ac_save_ifs"
1923 test -z "$ac_cv_path_CPP_PATH" && ac_cv_path_CPP_PATH="notfound"
1925 esac
1927 CPP_PATH="$ac_cv_path_CPP_PATH"
1928 if test -n "$CPP_PATH"; then
1929 echo "$ac_t""$CPP_PATH" 1>&6
1930 else
1931 echo "$ac_t""no" 1>&6
1936 if test "$CPP_PATH" = "/usr/ccs/lib/cpp" -o "$CPP_PATH" = "notfound" ; then
1937 if test "$GCC" = "yes"; then
1938 CPP_PATH="gcc -E -x c"
1939 else
1940 if test "$CPP_PATH" = "/usr/ccs/lib/cpp"; then
1941 CPP_PATH="$CPP_PATH -B"
1942 else
1943 echo "cpp, the C preprocessor was not found in your system."
1944 echo "Create a symbolic link from it to /lib/cpp and rerun configure"
1945 exit
1949 cat >> confdefs.h <<EOF
1950 #define CPP_PATH "$CPP_PATH"
1959 INTLIBS=""
1962 echo $ac_n "checking for gettext""... $ac_c" 1>&6
1963 echo "configure:1964: checking for gettext" >&5
1964 if eval "test \"`echo '$''{'ac_cv_func_gettext'+set}'`\" = set"; then
1965 echo $ac_n "(cached) $ac_c" 1>&6
1966 else
1967 cat > conftest.$ac_ext <<EOF
1968 #line 1969 "configure"
1969 #include "confdefs.h"
1970 /* System header to define __stub macros and hopefully few prototypes,
1971 which can conflict with char gettext(); below. */
1972 #include <assert.h>
1973 /* Override any gcc2 internal prototype to avoid an error. */
1974 /* We use char because int might match the return type of a gcc2
1975 builtin and then its argument prototype would still apply. */
1976 char gettext();
1978 int main() {
1980 /* The GNU C library defines this for functions which it implements
1981 to always fail with ENOSYS. Some functions are actually named
1982 something starting with __ and the normal name is an alias. */
1983 #if defined (__stub_gettext) || defined (__stub___gettext)
1984 choke me
1985 #else
1986 gettext();
1987 #endif
1989 ; return 0; }
1991 if { (eval echo configure:1992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1992 rm -rf conftest*
1993 eval "ac_cv_func_gettext=yes"
1994 else
1995 echo "configure: failed program was:" >&5
1996 cat conftest.$ac_ext >&5
1997 rm -rf conftest*
1998 eval "ac_cv_func_gettext=no"
2000 rm -f conftest*
2003 if eval "test \"`echo '$ac_cv_func_'gettext`\" = yes"; then
2004 echo "$ac_t""yes" 1>&6
2005 HAVEGETTEXT="yes"
2006 else
2007 echo "$ac_t""no" 1>&6
2008 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
2009 echo "configure:2010: checking for gettext in -lintl" >&5
2010 ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
2011 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2012 echo $ac_n "(cached) $ac_c" 1>&6
2013 else
2014 ac_save_LIBS="$LIBS"
2015 LIBS="-lintl $LIBS"
2016 cat > conftest.$ac_ext <<EOF
2017 #line 2018 "configure"
2018 #include "confdefs.h"
2019 /* Override any gcc2 internal prototype to avoid an error. */
2020 /* We use char because int might match the return type of a gcc2
2021 builtin and then its argument prototype would still apply. */
2022 char gettext();
2024 int main() {
2025 gettext()
2026 ; return 0; }
2028 if { (eval echo configure:2029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2029 rm -rf conftest*
2030 eval "ac_cv_lib_$ac_lib_var=yes"
2031 else
2032 echo "configure: failed program was:" >&5
2033 cat conftest.$ac_ext >&5
2034 rm -rf conftest*
2035 eval "ac_cv_lib_$ac_lib_var=no"
2037 rm -f conftest*
2038 LIBS="$ac_save_LIBS"
2041 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2042 echo "$ac_t""yes" 1>&6
2043 INTLIBS="-lintl" HAVEGETTEXT="yes"
2044 else
2045 echo "$ac_t""no" 1>&6
2046 INTLIBS=""
2052 # Extract the first word of "xgettext", so it can be a program name with args.
2053 set dummy xgettext; ac_word=$2
2054 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2055 echo "configure:2056: checking for $ac_word" >&5
2056 if eval "test \"`echo '$''{'ac_cv_prog_XGETTEXT'+set}'`\" = set"; then
2057 echo $ac_n "(cached) $ac_c" 1>&6
2058 else
2059 if test -n "$XGETTEXT"; then
2060 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
2061 else
2062 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2063 for ac_dir in $PATH; do
2064 test -z "$ac_dir" && ac_dir=.
2065 if test -f $ac_dir/$ac_word; then
2066 ac_cv_prog_XGETTEXT="xgettext"
2067 break
2069 done
2070 IFS="$ac_save_ifs"
2073 XGETTEXT="$ac_cv_prog_XGETTEXT"
2074 if test -n "$XGETTEXT"; then
2075 echo "$ac_t""$XGETTEXT" 1>&6
2076 else
2077 echo "$ac_t""no" 1>&6
2081 if test "$XGETTEXT" != ""; then
2082 if $XGETTEXT --help 2>&1 | grep illegal >/dev/null ; then
2083 echo "xgettext isn't GNU version"
2084 XGETTEXT=""
2088 if test "$LINGUAS" != ""; then
2089 if test "$XGETTEXT" != "" -a "$HAVEGETTEXT" != ""; then
2090 I18N="-DI18N"
2091 PO=""
2092 # if test "$LINGUAS" = ""; then
2093 # ling=` (cd src/po; /bin/ls *.po) `
2094 # for l in $ling; do
2095 # lcode=`basename $l .po`
2096 # LINGUAS="$LINGUAS $lcode"
2097 # done
2098 # fi
2099 echo "xgettext and gettext() exist; will build i18n support for $LINGUAS"
2100 else
2101 I18N=""
2102 LINGUAS=""
2103 PO=""
2104 echo "xgettext and libintl.a don't both exist; will not build i18n support"
2106 else
2107 INTLIBS=""
2108 MOFILES=""
2109 WPMOFILES=""
2110 PO=""
2115 supported_locales="cs de es fr gl it ja ko nl no pt ru se tr fi hr el pl ro"
2116 supported_wprefs_locales="pt hr fr ko ja"
2118 for lang in $LINGUAS; do
2119 ok=0
2120 for l in $supported_locales; do
2121 if test "$l" = "$lang"; then
2122 ok=1
2123 break
2125 done
2126 if test "$ok" = 1; then
2127 MOFILES="$MOFILES $lang.mo"
2128 else
2129 echo "Locale $lang is not supported."
2131 ok=0
2132 for l in $supported_wprefs_locales; do
2133 if test "$l" = "$lang"; then
2134 ok=1
2135 break
2137 done
2138 if test "$ok" = 1; then
2139 WPMOFILES="$WPMOFILES $lang.mo"
2141 done
2144 I18n=no
2145 # Check whether --enable-kanji or --disable-kanji was given.
2146 if test "${enable_kanji+set}" = set; then
2147 enableval="$enable_kanji"
2149 else
2150 enable_kanji=no
2154 if test "$enable_kanji" = yes; then
2155 I18N_MB="#define I18N_MB"
2156 case $host_os in
2157 freebsd*)
2158 echo $ac_n "checking for setlocale in -lxpg4""... $ac_c" 1>&6
2159 echo "configure:2160: checking for setlocale in -lxpg4" >&5
2160 ac_lib_var=`echo xpg4'_'setlocale | sed 'y%./+-%__p_%'`
2161 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2162 echo $ac_n "(cached) $ac_c" 1>&6
2163 else
2164 ac_save_LIBS="$LIBS"
2165 LIBS="-lxpg4 $LIBS"
2166 cat > conftest.$ac_ext <<EOF
2167 #line 2168 "configure"
2168 #include "confdefs.h"
2169 /* Override any gcc2 internal prototype to avoid an error. */
2170 /* We use char because int might match the return type of a gcc2
2171 builtin and then its argument prototype would still apply. */
2172 char setlocale();
2174 int main() {
2175 setlocale()
2176 ; return 0; }
2178 if { (eval echo configure:2179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2179 rm -rf conftest*
2180 eval "ac_cv_lib_$ac_lib_var=yes"
2181 else
2182 echo "configure: failed program was:" >&5
2183 cat conftest.$ac_ext >&5
2184 rm -rf conftest*
2185 eval "ac_cv_lib_$ac_lib_var=no"
2187 rm -f conftest*
2188 LIBS="$ac_save_LIBS"
2191 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2192 echo "$ac_t""yes" 1>&6
2193 LIBS="$LIBS -lxpg4"
2194 else
2195 echo "$ac_t""no" 1>&6
2200 esac
2201 else
2202 I18N_MB="#undef I18N_MB"
2207 # Check whether --enable-modelock or --disable-modelock was given.
2208 if test "${enable_modelock+set}" = set; then
2209 enableval="$enable_modelock"
2210 X_CFLAGS="$X_CFLAGS -DXKB_MODELOCK"
2216 # Check whether --with-nlsdir or --without-nlsdir was given.
2217 if test "${with_nlsdir+set}" = set; then
2218 withval="$with_nlsdir"
2223 if test "x$NLSDIR" = "x"; then
2224 if test "x$with_nlsdir" != "x"; then
2225 NLSDIR=$with_nlsdir
2226 else
2227 NLSDIR='$(prefix)/lib/locale'
2240 # If we find X, set shell vars x_includes and x_libraries to the
2241 # paths, otherwise set no_x=yes.
2242 # Uses ac_ vars as temps to allow command line to override cache and checks.
2243 # --without-x overrides everything else, but does not touch the cache.
2244 echo $ac_n "checking for X""... $ac_c" 1>&6
2245 echo "configure:2246: checking for X" >&5
2247 # Check whether --with-x or --without-x was given.
2248 if test "${with_x+set}" = set; then
2249 withval="$with_x"
2253 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
2254 if test "x$with_x" = xno; then
2255 # The user explicitly disabled X.
2256 have_x=disabled
2257 else
2258 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
2259 # Both variables are already set.
2260 have_x=yes
2261 else
2262 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
2263 echo $ac_n "(cached) $ac_c" 1>&6
2264 else
2265 # One or both of the vars are not set, and there is no cached value.
2266 ac_x_includes=NO ac_x_libraries=NO
2267 rm -fr conftestdir
2268 if mkdir conftestdir; then
2269 cd conftestdir
2270 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
2271 cat > Imakefile <<'EOF'
2272 acfindx:
2273 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
2275 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
2276 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2277 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
2278 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2279 for ac_extension in a so sl; do
2280 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
2281 test -f $ac_im_libdir/libX11.$ac_extension; then
2282 ac_im_usrlibdir=$ac_im_libdir; break
2284 done
2285 # Screen out bogus values from the imake configuration. They are
2286 # bogus both because they are the default anyway, and because
2287 # using them would break gcc on systems where it needs fixed includes.
2288 case "$ac_im_incroot" in
2289 /usr/include) ;;
2290 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
2291 esac
2292 case "$ac_im_usrlibdir" in
2293 /usr/lib | /lib) ;;
2294 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
2295 esac
2297 cd ..
2298 rm -fr conftestdir
2301 if test "$ac_x_includes" = NO; then
2302 # Guess where to find include files, by looking for this one X11 .h file.
2303 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
2305 # First, try using that file with no special directory specified.
2306 cat > conftest.$ac_ext <<EOF
2307 #line 2308 "configure"
2308 #include "confdefs.h"
2309 #include <$x_direct_test_include>
2311 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2312 { (eval echo configure:2313: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2313 ac_err=`grep -v '^ *+' conftest.out`
2314 if test -z "$ac_err"; then
2315 rm -rf conftest*
2316 # We can compile using X headers with no special include directory.
2317 ac_x_includes=
2318 else
2319 echo "$ac_err" >&5
2320 echo "configure: failed program was:" >&5
2321 cat conftest.$ac_ext >&5
2322 rm -rf conftest*
2323 # Look for the header file in a standard set of common directories.
2324 # Check X11 before X11Rn because it is often a symlink to the current release.
2325 for ac_dir in \
2326 /usr/X11/include \
2327 /usr/X11R6/include \
2328 /usr/X11R5/include \
2329 /usr/X11R4/include \
2331 /usr/include/X11 \
2332 /usr/include/X11R6 \
2333 /usr/include/X11R5 \
2334 /usr/include/X11R4 \
2336 /usr/local/X11/include \
2337 /usr/local/X11R6/include \
2338 /usr/local/X11R5/include \
2339 /usr/local/X11R4/include \
2341 /usr/local/include/X11 \
2342 /usr/local/include/X11R6 \
2343 /usr/local/include/X11R5 \
2344 /usr/local/include/X11R4 \
2346 /usr/X386/include \
2347 /usr/x386/include \
2348 /usr/XFree86/include/X11 \
2350 /usr/include \
2351 /usr/local/include \
2352 /usr/unsupported/include \
2353 /usr/athena/include \
2354 /usr/local/x11r5/include \
2355 /usr/lpp/Xamples/include \
2357 /usr/openwin/include \
2358 /usr/openwin/share/include \
2361 if test -r "$ac_dir/$x_direct_test_include"; then
2362 ac_x_includes=$ac_dir
2363 break
2365 done
2367 rm -f conftest*
2368 fi # $ac_x_includes = NO
2370 if test "$ac_x_libraries" = NO; then
2371 # Check for the libraries.
2373 test -z "$x_direct_test_library" && x_direct_test_library=Xt
2374 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
2376 # See if we find them without any special options.
2377 # Don't add to $LIBS permanently.
2378 ac_save_LIBS="$LIBS"
2379 LIBS="-l$x_direct_test_library $LIBS"
2380 cat > conftest.$ac_ext <<EOF
2381 #line 2382 "configure"
2382 #include "confdefs.h"
2384 int main() {
2385 ${x_direct_test_function}()
2386 ; return 0; }
2388 if { (eval echo configure:2389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2389 rm -rf conftest*
2390 LIBS="$ac_save_LIBS"
2391 # We can link X programs with no special library path.
2392 ac_x_libraries=
2393 else
2394 echo "configure: failed program was:" >&5
2395 cat conftest.$ac_ext >&5
2396 rm -rf conftest*
2397 LIBS="$ac_save_LIBS"
2398 # First see if replacing the include by lib works.
2399 # Check X11 before X11Rn because it is often a symlink to the current release.
2400 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
2401 /usr/X11/lib \
2402 /usr/X11R6/lib \
2403 /usr/X11R5/lib \
2404 /usr/X11R4/lib \
2406 /usr/lib/X11 \
2407 /usr/lib/X11R6 \
2408 /usr/lib/X11R5 \
2409 /usr/lib/X11R4 \
2411 /usr/local/X11/lib \
2412 /usr/local/X11R6/lib \
2413 /usr/local/X11R5/lib \
2414 /usr/local/X11R4/lib \
2416 /usr/local/lib/X11 \
2417 /usr/local/lib/X11R6 \
2418 /usr/local/lib/X11R5 \
2419 /usr/local/lib/X11R4 \
2421 /usr/X386/lib \
2422 /usr/x386/lib \
2423 /usr/XFree86/lib/X11 \
2425 /usr/lib \
2426 /usr/local/lib \
2427 /usr/unsupported/lib \
2428 /usr/athena/lib \
2429 /usr/local/x11r5/lib \
2430 /usr/lpp/Xamples/lib \
2431 /lib/usr/lib/X11 \
2433 /usr/openwin/lib \
2434 /usr/openwin/share/lib \
2437 for ac_extension in a so sl; do
2438 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
2439 ac_x_libraries=$ac_dir
2440 break 2
2442 done
2443 done
2445 rm -f conftest*
2446 fi # $ac_x_libraries = NO
2448 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
2449 # Didn't find X anywhere. Cache the known absence of X.
2450 ac_cv_have_x="have_x=no"
2451 else
2452 # Record where we found X for the cache.
2453 ac_cv_have_x="have_x=yes \
2454 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
2458 eval "$ac_cv_have_x"
2459 fi # $with_x != no
2461 if test "$have_x" != yes; then
2462 echo "$ac_t""$have_x" 1>&6
2463 no_x=yes
2464 else
2465 # If each of the values was on the command line, it overrides each guess.
2466 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
2467 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
2468 # Update the cache value to reflect the command line values.
2469 ac_cv_have_x="have_x=yes \
2470 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
2471 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
2474 if test "$no_x" = yes; then
2475 # Not all programs may use this symbol, but it does not hurt to define it.
2476 cat >> confdefs.h <<\EOF
2477 #define X_DISPLAY_MISSING 1
2480 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
2481 else
2482 if test -n "$x_includes"; then
2483 X_CFLAGS="$X_CFLAGS -I$x_includes"
2486 # It would also be nice to do this for all -L options, not just this one.
2487 if test -n "$x_libraries"; then
2488 X_LIBS="$X_LIBS -L$x_libraries"
2489 # For Solaris; some versions of Sun CC require a space after -R and
2490 # others require no space. Words are not sufficient . . . .
2491 case "`(uname -sr) 2>/dev/null`" in
2492 "SunOS 5"*)
2493 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
2494 echo "configure:2495: checking whether -R must be followed by a space" >&5
2495 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
2496 cat > conftest.$ac_ext <<EOF
2497 #line 2498 "configure"
2498 #include "confdefs.h"
2500 int main() {
2502 ; return 0; }
2504 if { (eval echo configure:2505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2505 rm -rf conftest*
2506 ac_R_nospace=yes
2507 else
2508 echo "configure: failed program was:" >&5
2509 cat conftest.$ac_ext >&5
2510 rm -rf conftest*
2511 ac_R_nospace=no
2513 rm -f conftest*
2514 if test $ac_R_nospace = yes; then
2515 echo "$ac_t""no" 1>&6
2516 X_LIBS="$X_LIBS -R$x_libraries"
2517 else
2518 LIBS="$ac_xsave_LIBS -R $x_libraries"
2519 cat > conftest.$ac_ext <<EOF
2520 #line 2521 "configure"
2521 #include "confdefs.h"
2523 int main() {
2525 ; return 0; }
2527 if { (eval echo configure:2528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2528 rm -rf conftest*
2529 ac_R_space=yes
2530 else
2531 echo "configure: failed program was:" >&5
2532 cat conftest.$ac_ext >&5
2533 rm -rf conftest*
2534 ac_R_space=no
2536 rm -f conftest*
2537 if test $ac_R_space = yes; then
2538 echo "$ac_t""yes" 1>&6
2539 X_LIBS="$X_LIBS -R $x_libraries"
2540 else
2541 echo "$ac_t""neither works" 1>&6
2544 LIBS="$ac_xsave_LIBS"
2545 esac
2548 # Check for system-dependent libraries X programs must link with.
2549 # Do this before checking for the system-independent R6 libraries
2550 # (-lICE), since we may need -lsocket or whatever for X linking.
2552 if test "$ISC" = yes; then
2553 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
2554 else
2555 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
2556 # libraries were built with DECnet support. And karl@cs.umb.edu says
2557 # the Alpha needs dnet_stub (dnet does not exist).
2558 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
2559 echo "configure:2560: checking for dnet_ntoa in -ldnet" >&5
2560 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
2561 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2562 echo $ac_n "(cached) $ac_c" 1>&6
2563 else
2564 ac_save_LIBS="$LIBS"
2565 LIBS="-ldnet $LIBS"
2566 cat > conftest.$ac_ext <<EOF
2567 #line 2568 "configure"
2568 #include "confdefs.h"
2569 /* Override any gcc2 internal prototype to avoid an error. */
2570 /* We use char because int might match the return type of a gcc2
2571 builtin and then its argument prototype would still apply. */
2572 char dnet_ntoa();
2574 int main() {
2575 dnet_ntoa()
2576 ; return 0; }
2578 if { (eval echo configure:2579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2579 rm -rf conftest*
2580 eval "ac_cv_lib_$ac_lib_var=yes"
2581 else
2582 echo "configure: failed program was:" >&5
2583 cat conftest.$ac_ext >&5
2584 rm -rf conftest*
2585 eval "ac_cv_lib_$ac_lib_var=no"
2587 rm -f conftest*
2588 LIBS="$ac_save_LIBS"
2591 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2592 echo "$ac_t""yes" 1>&6
2593 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
2594 else
2595 echo "$ac_t""no" 1>&6
2598 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
2599 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
2600 echo "configure:2601: checking for dnet_ntoa in -ldnet_stub" >&5
2601 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
2602 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2603 echo $ac_n "(cached) $ac_c" 1>&6
2604 else
2605 ac_save_LIBS="$LIBS"
2606 LIBS="-ldnet_stub $LIBS"
2607 cat > conftest.$ac_ext <<EOF
2608 #line 2609 "configure"
2609 #include "confdefs.h"
2610 /* Override any gcc2 internal prototype to avoid an error. */
2611 /* We use char because int might match the return type of a gcc2
2612 builtin and then its argument prototype would still apply. */
2613 char dnet_ntoa();
2615 int main() {
2616 dnet_ntoa()
2617 ; return 0; }
2619 if { (eval echo configure:2620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2620 rm -rf conftest*
2621 eval "ac_cv_lib_$ac_lib_var=yes"
2622 else
2623 echo "configure: failed program was:" >&5
2624 cat conftest.$ac_ext >&5
2625 rm -rf conftest*
2626 eval "ac_cv_lib_$ac_lib_var=no"
2628 rm -f conftest*
2629 LIBS="$ac_save_LIBS"
2632 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2633 echo "$ac_t""yes" 1>&6
2634 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
2635 else
2636 echo "$ac_t""no" 1>&6
2641 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
2642 # to get the SysV transport functions.
2643 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
2644 # needs -lnsl.
2645 # The nsl library prevents programs from opening the X display
2646 # on Irix 5.2, according to dickey@clark.net.
2647 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
2648 echo "configure:2649: checking for gethostbyname" >&5
2649 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
2650 echo $ac_n "(cached) $ac_c" 1>&6
2651 else
2652 cat > conftest.$ac_ext <<EOF
2653 #line 2654 "configure"
2654 #include "confdefs.h"
2655 /* System header to define __stub macros and hopefully few prototypes,
2656 which can conflict with char gethostbyname(); below. */
2657 #include <assert.h>
2658 /* Override any gcc2 internal prototype to avoid an error. */
2659 /* We use char because int might match the return type of a gcc2
2660 builtin and then its argument prototype would still apply. */
2661 char gethostbyname();
2663 int main() {
2665 /* The GNU C library defines this for functions which it implements
2666 to always fail with ENOSYS. Some functions are actually named
2667 something starting with __ and the normal name is an alias. */
2668 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2669 choke me
2670 #else
2671 gethostbyname();
2672 #endif
2674 ; return 0; }
2676 if { (eval echo configure:2677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2677 rm -rf conftest*
2678 eval "ac_cv_func_gethostbyname=yes"
2679 else
2680 echo "configure: failed program was:" >&5
2681 cat conftest.$ac_ext >&5
2682 rm -rf conftest*
2683 eval "ac_cv_func_gethostbyname=no"
2685 rm -f conftest*
2688 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
2689 echo "$ac_t""yes" 1>&6
2691 else
2692 echo "$ac_t""no" 1>&6
2695 if test $ac_cv_func_gethostbyname = no; then
2696 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2697 echo "configure:2698: checking for gethostbyname in -lnsl" >&5
2698 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2699 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2700 echo $ac_n "(cached) $ac_c" 1>&6
2701 else
2702 ac_save_LIBS="$LIBS"
2703 LIBS="-lnsl $LIBS"
2704 cat > conftest.$ac_ext <<EOF
2705 #line 2706 "configure"
2706 #include "confdefs.h"
2707 /* Override any gcc2 internal prototype to avoid an error. */
2708 /* We use char because int might match the return type of a gcc2
2709 builtin and then its argument prototype would still apply. */
2710 char gethostbyname();
2712 int main() {
2713 gethostbyname()
2714 ; return 0; }
2716 if { (eval echo configure:2717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2717 rm -rf conftest*
2718 eval "ac_cv_lib_$ac_lib_var=yes"
2719 else
2720 echo "configure: failed program was:" >&5
2721 cat conftest.$ac_ext >&5
2722 rm -rf conftest*
2723 eval "ac_cv_lib_$ac_lib_var=no"
2725 rm -f conftest*
2726 LIBS="$ac_save_LIBS"
2729 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2730 echo "$ac_t""yes" 1>&6
2731 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
2732 else
2733 echo "$ac_t""no" 1>&6
2738 # lieder@skyler.mavd.honeywell.com says without -lsocket,
2739 # socket/setsockopt and other routines are undefined under SCO ODT
2740 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
2741 # on later versions), says simon@lia.di.epfl.ch: it contains
2742 # gethostby* variants that don't use the nameserver (or something).
2743 # -lsocket must be given before -lnsl if both are needed.
2744 # We assume that if connect needs -lnsl, so does gethostbyname.
2745 echo $ac_n "checking for connect""... $ac_c" 1>&6
2746 echo "configure:2747: checking for connect" >&5
2747 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
2748 echo $ac_n "(cached) $ac_c" 1>&6
2749 else
2750 cat > conftest.$ac_ext <<EOF
2751 #line 2752 "configure"
2752 #include "confdefs.h"
2753 /* System header to define __stub macros and hopefully few prototypes,
2754 which can conflict with char connect(); below. */
2755 #include <assert.h>
2756 /* Override any gcc2 internal prototype to avoid an error. */
2757 /* We use char because int might match the return type of a gcc2
2758 builtin and then its argument prototype would still apply. */
2759 char connect();
2761 int main() {
2763 /* The GNU C library defines this for functions which it implements
2764 to always fail with ENOSYS. Some functions are actually named
2765 something starting with __ and the normal name is an alias. */
2766 #if defined (__stub_connect) || defined (__stub___connect)
2767 choke me
2768 #else
2769 connect();
2770 #endif
2772 ; return 0; }
2774 if { (eval echo configure:2775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2775 rm -rf conftest*
2776 eval "ac_cv_func_connect=yes"
2777 else
2778 echo "configure: failed program was:" >&5
2779 cat conftest.$ac_ext >&5
2780 rm -rf conftest*
2781 eval "ac_cv_func_connect=no"
2783 rm -f conftest*
2786 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
2787 echo "$ac_t""yes" 1>&6
2789 else
2790 echo "$ac_t""no" 1>&6
2793 if test $ac_cv_func_connect = no; then
2794 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2795 echo "configure:2796: checking for connect in -lsocket" >&5
2796 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2797 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2798 echo $ac_n "(cached) $ac_c" 1>&6
2799 else
2800 ac_save_LIBS="$LIBS"
2801 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
2802 cat > conftest.$ac_ext <<EOF
2803 #line 2804 "configure"
2804 #include "confdefs.h"
2805 /* Override any gcc2 internal prototype to avoid an error. */
2806 /* We use char because int might match the return type of a gcc2
2807 builtin and then its argument prototype would still apply. */
2808 char connect();
2810 int main() {
2811 connect()
2812 ; return 0; }
2814 if { (eval echo configure:2815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2815 rm -rf conftest*
2816 eval "ac_cv_lib_$ac_lib_var=yes"
2817 else
2818 echo "configure: failed program was:" >&5
2819 cat conftest.$ac_ext >&5
2820 rm -rf conftest*
2821 eval "ac_cv_lib_$ac_lib_var=no"
2823 rm -f conftest*
2824 LIBS="$ac_save_LIBS"
2827 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2828 echo "$ac_t""yes" 1>&6
2829 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
2830 else
2831 echo "$ac_t""no" 1>&6
2836 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
2837 echo $ac_n "checking for remove""... $ac_c" 1>&6
2838 echo "configure:2839: checking for remove" >&5
2839 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
2840 echo $ac_n "(cached) $ac_c" 1>&6
2841 else
2842 cat > conftest.$ac_ext <<EOF
2843 #line 2844 "configure"
2844 #include "confdefs.h"
2845 /* System header to define __stub macros and hopefully few prototypes,
2846 which can conflict with char remove(); below. */
2847 #include <assert.h>
2848 /* Override any gcc2 internal prototype to avoid an error. */
2849 /* We use char because int might match the return type of a gcc2
2850 builtin and then its argument prototype would still apply. */
2851 char remove();
2853 int main() {
2855 /* The GNU C library defines this for functions which it implements
2856 to always fail with ENOSYS. Some functions are actually named
2857 something starting with __ and the normal name is an alias. */
2858 #if defined (__stub_remove) || defined (__stub___remove)
2859 choke me
2860 #else
2861 remove();
2862 #endif
2864 ; return 0; }
2866 if { (eval echo configure:2867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2867 rm -rf conftest*
2868 eval "ac_cv_func_remove=yes"
2869 else
2870 echo "configure: failed program was:" >&5
2871 cat conftest.$ac_ext >&5
2872 rm -rf conftest*
2873 eval "ac_cv_func_remove=no"
2875 rm -f conftest*
2878 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
2879 echo "$ac_t""yes" 1>&6
2881 else
2882 echo "$ac_t""no" 1>&6
2885 if test $ac_cv_func_remove = no; then
2886 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
2887 echo "configure:2888: checking for remove in -lposix" >&5
2888 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
2889 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2890 echo $ac_n "(cached) $ac_c" 1>&6
2891 else
2892 ac_save_LIBS="$LIBS"
2893 LIBS="-lposix $LIBS"
2894 cat > conftest.$ac_ext <<EOF
2895 #line 2896 "configure"
2896 #include "confdefs.h"
2897 /* Override any gcc2 internal prototype to avoid an error. */
2898 /* We use char because int might match the return type of a gcc2
2899 builtin and then its argument prototype would still apply. */
2900 char remove();
2902 int main() {
2903 remove()
2904 ; return 0; }
2906 if { (eval echo configure:2907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2907 rm -rf conftest*
2908 eval "ac_cv_lib_$ac_lib_var=yes"
2909 else
2910 echo "configure: failed program was:" >&5
2911 cat conftest.$ac_ext >&5
2912 rm -rf conftest*
2913 eval "ac_cv_lib_$ac_lib_var=no"
2915 rm -f conftest*
2916 LIBS="$ac_save_LIBS"
2919 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2920 echo "$ac_t""yes" 1>&6
2921 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
2922 else
2923 echo "$ac_t""no" 1>&6
2928 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
2929 echo $ac_n "checking for shmat""... $ac_c" 1>&6
2930 echo "configure:2931: checking for shmat" >&5
2931 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
2932 echo $ac_n "(cached) $ac_c" 1>&6
2933 else
2934 cat > conftest.$ac_ext <<EOF
2935 #line 2936 "configure"
2936 #include "confdefs.h"
2937 /* System header to define __stub macros and hopefully few prototypes,
2938 which can conflict with char shmat(); below. */
2939 #include <assert.h>
2940 /* Override any gcc2 internal prototype to avoid an error. */
2941 /* We use char because int might match the return type of a gcc2
2942 builtin and then its argument prototype would still apply. */
2943 char shmat();
2945 int main() {
2947 /* The GNU C library defines this for functions which it implements
2948 to always fail with ENOSYS. Some functions are actually named
2949 something starting with __ and the normal name is an alias. */
2950 #if defined (__stub_shmat) || defined (__stub___shmat)
2951 choke me
2952 #else
2953 shmat();
2954 #endif
2956 ; return 0; }
2958 if { (eval echo configure:2959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2959 rm -rf conftest*
2960 eval "ac_cv_func_shmat=yes"
2961 else
2962 echo "configure: failed program was:" >&5
2963 cat conftest.$ac_ext >&5
2964 rm -rf conftest*
2965 eval "ac_cv_func_shmat=no"
2967 rm -f conftest*
2970 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
2971 echo "$ac_t""yes" 1>&6
2973 else
2974 echo "$ac_t""no" 1>&6
2977 if test $ac_cv_func_shmat = no; then
2978 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
2979 echo "configure:2980: checking for shmat in -lipc" >&5
2980 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
2981 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2982 echo $ac_n "(cached) $ac_c" 1>&6
2983 else
2984 ac_save_LIBS="$LIBS"
2985 LIBS="-lipc $LIBS"
2986 cat > conftest.$ac_ext <<EOF
2987 #line 2988 "configure"
2988 #include "confdefs.h"
2989 /* Override any gcc2 internal prototype to avoid an error. */
2990 /* We use char because int might match the return type of a gcc2
2991 builtin and then its argument prototype would still apply. */
2992 char shmat();
2994 int main() {
2995 shmat()
2996 ; return 0; }
2998 if { (eval echo configure:2999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2999 rm -rf conftest*
3000 eval "ac_cv_lib_$ac_lib_var=yes"
3001 else
3002 echo "configure: failed program was:" >&5
3003 cat conftest.$ac_ext >&5
3004 rm -rf conftest*
3005 eval "ac_cv_lib_$ac_lib_var=no"
3007 rm -f conftest*
3008 LIBS="$ac_save_LIBS"
3011 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3012 echo "$ac_t""yes" 1>&6
3013 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
3014 else
3015 echo "$ac_t""no" 1>&6
3021 # Check for libraries that X11R6 Xt/Xaw programs need.
3022 ac_save_LDFLAGS="$LDFLAGS"
3023 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
3024 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
3025 # check for ICE first), but we must link in the order -lSM -lICE or
3026 # we get undefined symbols. So assume we have SM if we have ICE.
3027 # These have to be linked with before -lX11, unlike the other
3028 # libraries we check for below, so use a different variable.
3029 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
3030 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
3031 echo "configure:3032: checking for IceConnectionNumber in -lICE" >&5
3032 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
3033 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3034 echo $ac_n "(cached) $ac_c" 1>&6
3035 else
3036 ac_save_LIBS="$LIBS"
3037 LIBS="-lICE $LIBS"
3038 cat > conftest.$ac_ext <<EOF
3039 #line 3040 "configure"
3040 #include "confdefs.h"
3041 /* Override any gcc2 internal prototype to avoid an error. */
3042 /* We use char because int might match the return type of a gcc2
3043 builtin and then its argument prototype would still apply. */
3044 char IceConnectionNumber();
3046 int main() {
3047 IceConnectionNumber()
3048 ; return 0; }
3050 if { (eval echo configure:3051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3051 rm -rf conftest*
3052 eval "ac_cv_lib_$ac_lib_var=yes"
3053 else
3054 echo "configure: failed program was:" >&5
3055 cat conftest.$ac_ext >&5
3056 rm -rf conftest*
3057 eval "ac_cv_lib_$ac_lib_var=no"
3059 rm -f conftest*
3060 LIBS="$ac_save_LIBS"
3063 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3064 echo "$ac_t""yes" 1>&6
3065 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
3066 else
3067 echo "$ac_t""no" 1>&6
3070 LDFLAGS="$ac_save_LDFLAGS"
3075 XCFLAGS="$X_CFLAGS"
3077 XLFLAGS="$X_LIBS"
3079 XLIBS="$X_EXTRA_LIBS -lX11"
3081 echo $ac_n "checking for _Xsetlocale in -lX11""... $ac_c" 1>&6
3082 echo "configure:3083: checking for _Xsetlocale in -lX11" >&5
3083 ac_lib_var=`echo X11'_'_Xsetlocale | sed 'y%./+-%__p_%'`
3084 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3085 echo $ac_n "(cached) $ac_c" 1>&6
3086 else
3087 ac_save_LIBS="$LIBS"
3088 LIBS="-lX11 $XLFLAGS $XLIBS $LIBS"
3089 cat > conftest.$ac_ext <<EOF
3090 #line 3091 "configure"
3091 #include "confdefs.h"
3092 /* Override any gcc2 internal prototype to avoid an error. */
3093 /* We use char because int might match the return type of a gcc2
3094 builtin and then its argument prototype would still apply. */
3095 char _Xsetlocale();
3097 int main() {
3098 _Xsetlocale()
3099 ; return 0; }
3101 if { (eval echo configure:3102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3102 rm -rf conftest*
3103 eval "ac_cv_lib_$ac_lib_var=yes"
3104 else
3105 echo "configure: failed program was:" >&5
3106 cat conftest.$ac_ext >&5
3107 rm -rf conftest*
3108 eval "ac_cv_lib_$ac_lib_var=no"
3110 rm -f conftest*
3111 LIBS="$ac_save_LIBS"
3114 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3115 echo "$ac_t""yes" 1>&6
3116 X_LOCALE="-DX_LOCALE"
3117 else
3118 echo "$ac_t""no" 1>&6
3124 shape=yes
3125 # Check whether --enable-shape or --disable-shape was given.
3126 if test "${enable_shape+set}" = set; then
3127 enableval="$enable_shape"
3128 shape=$enableval
3129 else
3130 shape=yes
3134 added_xext=no
3136 if test "$shape" = yes; then
3137 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
3138 echo "configure:3139: checking for XShapeSelectInput in -lXext" >&5
3139 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
3140 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3141 echo $ac_n "(cached) $ac_c" 1>&6
3142 else
3143 ac_save_LIBS="$LIBS"
3144 LIBS="-lXext $XLFLAGS $XLIBS $LIBS"
3145 cat > conftest.$ac_ext <<EOF
3146 #line 3147 "configure"
3147 #include "confdefs.h"
3148 /* Override any gcc2 internal prototype to avoid an error. */
3149 /* We use char because int might match the return type of a gcc2
3150 builtin and then its argument prototype would still apply. */
3151 char XShapeSelectInput();
3153 int main() {
3154 XShapeSelectInput()
3155 ; return 0; }
3157 if { (eval echo configure:3158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3158 rm -rf conftest*
3159 eval "ac_cv_lib_$ac_lib_var=yes"
3160 else
3161 echo "configure: failed program was:" >&5
3162 cat conftest.$ac_ext >&5
3163 rm -rf conftest*
3164 eval "ac_cv_lib_$ac_lib_var=no"
3166 rm -f conftest*
3167 LIBS="$ac_save_LIBS"
3170 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3171 echo "$ac_t""yes" 1>&6
3172 XLIBS="-lXext $XLIBS"
3173 added_xext=yes SHAPE=-DSHAPE
3174 else
3175 echo "$ac_t""no" 1>&6
3176 shape=no
3184 shm=yes
3185 # Check whether --enable-shm or --disable-shm was given.
3186 if test "${enable_shm+set}" = set; then
3187 enableval="$enable_shm"
3188 shm=$enableval
3189 else
3190 shm=yes
3194 if test "$shm" = yes; then
3195 echo $ac_n "checking for XShmAttach in -lXext""... $ac_c" 1>&6
3196 echo "configure:3197: checking for XShmAttach in -lXext" >&5
3197 ac_lib_var=`echo Xext'_'XShmAttach | sed 'y%./+-%__p_%'`
3198 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3199 echo $ac_n "(cached) $ac_c" 1>&6
3200 else
3201 ac_save_LIBS="$LIBS"
3202 LIBS="-lXext $XLFLAGS $XLIBS $LIBS"
3203 cat > conftest.$ac_ext <<EOF
3204 #line 3205 "configure"
3205 #include "confdefs.h"
3206 /* Override any gcc2 internal prototype to avoid an error. */
3207 /* We use char because int might match the return type of a gcc2
3208 builtin and then its argument prototype would still apply. */
3209 char XShmAttach();
3211 int main() {
3212 XShmAttach()
3213 ; return 0; }
3215 if { (eval echo configure:3216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3216 rm -rf conftest*
3217 eval "ac_cv_lib_$ac_lib_var=yes"
3218 else
3219 echo "configure: failed program was:" >&5
3220 cat conftest.$ac_ext >&5
3221 rm -rf conftest*
3222 eval "ac_cv_lib_$ac_lib_var=no"
3224 rm -f conftest*
3225 LIBS="$ac_save_LIBS"
3228 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3229 echo "$ac_t""yes" 1>&6
3230 ok=yes
3231 else
3232 echo "$ac_t""no" 1>&6
3233 ok=no
3237 if test "$ok" = yes; then
3238 echo $ac_n "checking for shmget""... $ac_c" 1>&6
3239 echo "configure:3240: checking for shmget" >&5
3240 if eval "test \"`echo '$''{'ac_cv_func_shmget'+set}'`\" = set"; then
3241 echo $ac_n "(cached) $ac_c" 1>&6
3242 else
3243 cat > conftest.$ac_ext <<EOF
3244 #line 3245 "configure"
3245 #include "confdefs.h"
3246 /* System header to define __stub macros and hopefully few prototypes,
3247 which can conflict with char shmget(); below. */
3248 #include <assert.h>
3249 /* Override any gcc2 internal prototype to avoid an error. */
3250 /* We use char because int might match the return type of a gcc2
3251 builtin and then its argument prototype would still apply. */
3252 char shmget();
3254 int main() {
3256 /* The GNU C library defines this for functions which it implements
3257 to always fail with ENOSYS. Some functions are actually named
3258 something starting with __ and the normal name is an alias. */
3259 #if defined (__stub_shmget) || defined (__stub___shmget)
3260 choke me
3261 #else
3262 shmget();
3263 #endif
3265 ; return 0; }
3267 if { (eval echo configure:3268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3268 rm -rf conftest*
3269 eval "ac_cv_func_shmget=yes"
3270 else
3271 echo "configure: failed program was:" >&5
3272 cat conftest.$ac_ext >&5
3273 rm -rf conftest*
3274 eval "ac_cv_func_shmget=no"
3276 rm -f conftest*
3279 if eval "test \"`echo '$ac_cv_func_'shmget`\" = yes"; then
3280 echo "$ac_t""yes" 1>&6
3281 ok=yes
3282 else
3283 echo "$ac_t""no" 1>&6
3284 ok=no
3289 if test "$ok" = yes; then
3290 if test "$added_xext" = no; then
3291 XLIBS="-lXext $XLIBS"
3293 XSHM=-DXSHM
3303 #AC_DEFINE(R6SM)
3304 #AC_SUBST(XSMPLIBS)
3309 GFXLIBS=""
3310 # Check whether --with-gfx-libs or --without-gfx-libs was given.
3311 if test "${with_gfx_libs+set}" = set; then
3312 withval="$with_gfx_libs"
3313 GFXLFLAGS=$withval
3314 else
3315 GFXLFLAGS=""
3319 # Check whether --with-gfx-incs or --without-gfx-incs was given.
3320 if test "${with_gfx_incs+set}" = set; then
3321 withval="$with_gfx_incs"
3322 GFXFLAGS="$withval" GFX_INC_PATH=$withval
3323 else
3324 GFXFLAGS="" GFX_INC_PATH=""
3331 xpm=yes
3332 # Check whether --enable-xpm or --disable-xpm was given.
3333 if test "${enable_xpm+set}" = set; then
3334 enableval="$enable_xpm"
3335 xpm=$enableval
3336 else
3337 xpm=yes
3341 if test "$xpm" = yes; then
3342 echo $ac_n "checking for XpmCreatePixmapFromData in -lXpm""... $ac_c" 1>&6
3343 echo "configure:3344: checking for XpmCreatePixmapFromData in -lXpm" >&5
3344 ac_lib_var=`echo Xpm'_'XpmCreatePixmapFromData | sed 'y%./+-%__p_%'`
3345 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3346 echo $ac_n "(cached) $ac_c" 1>&6
3347 else
3348 ac_save_LIBS="$LIBS"
3349 LIBS="-lXpm $GFX_INC_PATH $GFXLFLAGS $XLFLAGS $XLIBS $LIBS"
3350 cat > conftest.$ac_ext <<EOF
3351 #line 3352 "configure"
3352 #include "confdefs.h"
3353 /* Override any gcc2 internal prototype to avoid an error. */
3354 /* We use char because int might match the return type of a gcc2
3355 builtin and then its argument prototype would still apply. */
3356 char XpmCreatePixmapFromData();
3358 int main() {
3359 XpmCreatePixmapFromData()
3360 ; return 0; }
3362 if { (eval echo configure:3363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3363 rm -rf conftest*
3364 eval "ac_cv_lib_$ac_lib_var=yes"
3365 else
3366 echo "configure: failed program was:" >&5
3367 cat conftest.$ac_ext >&5
3368 rm -rf conftest*
3369 eval "ac_cv_lib_$ac_lib_var=no"
3371 rm -f conftest*
3372 LIBS="$ac_save_LIBS"
3375 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3376 echo "$ac_t""yes" 1>&6
3377 my_libok=yes
3378 else
3379 echo "$ac_t""no" 1>&6
3380 my_libok=no
3384 if test "$my_libok" = yes; then
3385 my_old_cppflags=$CPPFLAGS
3386 CPPFLAGS="$CPPFLAGS $GFX_INC_PATH $XCFLAGS"
3387 ac_safe=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'`
3388 echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6
3389 echo "configure:3390: checking for X11/xpm.h" >&5
3390 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3391 echo $ac_n "(cached) $ac_c" 1>&6
3392 else
3393 cat > conftest.$ac_ext <<EOF
3394 #line 3395 "configure"
3395 #include "confdefs.h"
3396 #include <X11/xpm.h>
3398 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3399 { (eval echo configure:3400: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3400 ac_err=`grep -v '^ *+' conftest.out`
3401 if test -z "$ac_err"; then
3402 rm -rf conftest*
3403 eval "ac_cv_header_$ac_safe=yes"
3404 else
3405 echo "$ac_err" >&5
3406 echo "configure: failed program was:" >&5
3407 cat conftest.$ac_ext >&5
3408 rm -rf conftest*
3409 eval "ac_cv_header_$ac_safe=no"
3411 rm -f conftest*
3413 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3414 echo "$ac_t""yes" 1>&6
3415 GFXFLAGS="$GFXFLAGS -DUSE_XPM" GFXLIBS="$GFXLIBS -lXpm"
3416 supported_gfx="XPM"
3417 else
3418 echo "$ac_t""no" 1>&6
3419 supported_gfx="XPM (builtin)"
3422 CPPFLAGS=$my_old_cppflags
3436 echo $ac_n "checking for gzread in -lz""... $ac_c" 1>&6
3437 echo "configure:3438: checking for gzread in -lz" >&5
3438 ac_lib_var=`echo z'_'gzread | sed 'y%./+-%__p_%'`
3439 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3440 echo $ac_n "(cached) $ac_c" 1>&6
3441 else
3442 ac_save_LIBS="$LIBS"
3443 LIBS="-lz $GFX_INC_PATH $GFXLFLAGS $XLFLAGS $LIBS"
3444 cat > conftest.$ac_ext <<EOF
3445 #line 3446 "configure"
3446 #include "confdefs.h"
3447 /* Override any gcc2 internal prototype to avoid an error. */
3448 /* We use char because int might match the return type of a gcc2
3449 builtin and then its argument prototype would still apply. */
3450 char gzread();
3452 int main() {
3453 gzread()
3454 ; return 0; }
3456 if { (eval echo configure:3457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3457 rm -rf conftest*
3458 eval "ac_cv_lib_$ac_lib_var=yes"
3459 else
3460 echo "configure: failed program was:" >&5
3461 cat conftest.$ac_ext >&5
3462 rm -rf conftest*
3463 eval "ac_cv_lib_$ac_lib_var=no"
3465 rm -f conftest*
3466 LIBS="$ac_save_LIBS"
3469 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3470 echo "$ac_t""yes" 1>&6
3471 zlib=yes
3472 else
3473 echo "$ac_t""no" 1>&6
3474 zlib=no
3479 png=yes
3480 # Check whether --enable-png or --disable-png was given.
3481 if test "${enable_png+set}" = set; then
3482 enableval="$enable_png"
3483 png=$enableval
3484 else
3485 png=yes
3490 if test "$png" = yes -a "$zlib" = yes ; then
3491 echo $ac_n "checking for png_get_valid in -lpng""... $ac_c" 1>&6
3492 echo "configure:3493: checking for png_get_valid in -lpng" >&5
3493 ac_lib_var=`echo png'_'png_get_valid | sed 'y%./+-%__p_%'`
3494 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3495 echo $ac_n "(cached) $ac_c" 1>&6
3496 else
3497 ac_save_LIBS="$LIBS"
3498 LIBS="-lpng $GFX_INC_PATH $GFXLFLAGS $XLFLAGS -lz -lm $LIBS"
3499 cat > conftest.$ac_ext <<EOF
3500 #line 3501 "configure"
3501 #include "confdefs.h"
3502 /* Override any gcc2 internal prototype to avoid an error. */
3503 /* We use char because int might match the return type of a gcc2
3504 builtin and then its argument prototype would still apply. */
3505 char png_get_valid();
3507 int main() {
3508 png_get_valid()
3509 ; return 0; }
3511 if { (eval echo configure:3512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3512 rm -rf conftest*
3513 eval "ac_cv_lib_$ac_lib_var=yes"
3514 else
3515 echo "configure: failed program was:" >&5
3516 cat conftest.$ac_ext >&5
3517 rm -rf conftest*
3518 eval "ac_cv_lib_$ac_lib_var=no"
3520 rm -f conftest*
3521 LIBS="$ac_save_LIBS"
3524 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3525 echo "$ac_t""yes" 1>&6
3526 my_libok=yes
3527 else
3528 echo "$ac_t""no" 1>&6
3529 my_libok=no
3533 if test "$my_libok" = yes; then
3534 my_old_cppflags=$CPPFLAGS
3535 CPPFLAGS="$CPPFLAGS $GFX_INC_PATH $XCFLAGS"
3536 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
3537 echo $ac_n "checking for png.h""... $ac_c" 1>&6
3538 echo "configure:3539: checking for png.h" >&5
3539 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3540 echo $ac_n "(cached) $ac_c" 1>&6
3541 else
3542 cat > conftest.$ac_ext <<EOF
3543 #line 3544 "configure"
3544 #include "confdefs.h"
3545 #include <png.h>
3547 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3548 { (eval echo configure:3549: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3549 ac_err=`grep -v '^ *+' conftest.out`
3550 if test -z "$ac_err"; then
3551 rm -rf conftest*
3552 eval "ac_cv_header_$ac_safe=yes"
3553 else
3554 echo "$ac_err" >&5
3555 echo "configure: failed program was:" >&5
3556 cat conftest.$ac_ext >&5
3557 rm -rf conftest*
3558 eval "ac_cv_header_$ac_safe=no"
3560 rm -f conftest*
3562 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3563 echo "$ac_t""yes" 1>&6
3564 GFXLIBS="$GFXLIBS -lpng -lz" GFXFLAGS="$GFXFLAGS -DUSE_PNG"
3565 supported_gfx="$supported_gfx PNG"
3566 else
3567 echo "$ac_t""no" 1>&6
3570 CPPFLAGS=$my_old_cppflags
3575 jpeg=yes
3576 # Check whether --enable-jpeg or --disable-jpeg was given.
3577 if test "${enable_jpeg+set}" = set; then
3578 enableval="$enable_jpeg"
3579 jpeg=$enableval
3580 else
3581 jpeg=yes
3585 if test "$jpeg" = yes; then
3586 echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6
3587 echo "configure:3588: checking for jpeg_destroy_compress in -ljpeg" >&5
3588 ac_lib_var=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'`
3589 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3590 echo $ac_n "(cached) $ac_c" 1>&6
3591 else
3592 ac_save_LIBS="$LIBS"
3593 LIBS="-ljpeg $GFX_INC_PATH $GFXLFLAGS $XLFLAGS $LIBS"
3594 cat > conftest.$ac_ext <<EOF
3595 #line 3596 "configure"
3596 #include "confdefs.h"
3597 /* Override any gcc2 internal prototype to avoid an error. */
3598 /* We use char because int might match the return type of a gcc2
3599 builtin and then its argument prototype would still apply. */
3600 char jpeg_destroy_compress();
3602 int main() {
3603 jpeg_destroy_compress()
3604 ; return 0; }
3606 if { (eval echo configure:3607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3607 rm -rf conftest*
3608 eval "ac_cv_lib_$ac_lib_var=yes"
3609 else
3610 echo "configure: failed program was:" >&5
3611 cat conftest.$ac_ext >&5
3612 rm -rf conftest*
3613 eval "ac_cv_lib_$ac_lib_var=no"
3615 rm -f conftest*
3616 LIBS="$ac_save_LIBS"
3619 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3620 echo "$ac_t""yes" 1>&6
3621 my_libok=yes
3622 else
3623 echo "$ac_t""no" 1>&6
3624 my_libok=no
3628 if test "$my_libok" = yes; then
3629 my_old_cppflags=$CPPFLAGS
3630 CPPFLAGS="$CPPFLAGS $GFX_INC_PATH $XCFLAGS"
3631 cat > conftest.$ac_ext <<EOF
3632 #line 3633 "configure"
3633 #include "confdefs.h"
3634 jpeglib.h
3636 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3637 { (eval echo configure:3638: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3638 ac_err=`grep -v '^ *+' conftest.out`
3639 if test -z "$ac_err"; then
3640 rm -rf conftest*
3641 GFXLIBS="$GFXLIBS -ljpeg" GFXFLAGS="$GFXFLAGS -DUSE_JPEG"
3642 supported_gfx="$supported_gfx JPEG"
3643 else
3644 echo "$ac_err" >&5
3645 echo "configure: failed program was:" >&5
3646 cat conftest.$ac_ext >&5
3648 rm -f conftest*
3649 CPPFLAGS=$my_old_cppflags
3654 jpeg=yes
3655 # Check whether --enable-gif or --disable-gif was given.
3656 if test "${enable_gif+set}" = set; then
3657 enableval="$enable_gif"
3658 gif=$enableval
3659 else
3660 gif=yes
3664 if test "$gif" = yes; then
3665 retry=no
3666 echo $ac_n "checking for DGifOpenFileName in -lungif""... $ac_c" 1>&6
3667 echo "configure:3668: checking for DGifOpenFileName in -lungif" >&5
3668 ac_lib_var=`echo ungif'_'DGifOpenFileName | sed 'y%./+-%__p_%'`
3669 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3670 echo $ac_n "(cached) $ac_c" 1>&6
3671 else
3672 ac_save_LIBS="$LIBS"
3673 LIBS="-lungif $GFX_INC_PATH $GFXLFLAGS $XLFLAGS $XLIBS $LIBS"
3674 cat > conftest.$ac_ext <<EOF
3675 #line 3676 "configure"
3676 #include "confdefs.h"
3677 /* Override any gcc2 internal prototype to avoid an error. */
3678 /* We use char because int might match the return type of a gcc2
3679 builtin and then its argument prototype would still apply. */
3680 char DGifOpenFileName();
3682 int main() {
3683 DGifOpenFileName()
3684 ; return 0; }
3686 if { (eval echo configure:3687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3687 rm -rf conftest*
3688 eval "ac_cv_lib_$ac_lib_var=yes"
3689 else
3690 echo "configure: failed program was:" >&5
3691 cat conftest.$ac_ext >&5
3692 rm -rf conftest*
3693 eval "ac_cv_lib_$ac_lib_var=no"
3695 rm -f conftest*
3696 LIBS="$ac_save_LIBS"
3699 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3700 echo "$ac_t""yes" 1>&6
3701 my_libok=yes my_libname=ungif
3702 else
3703 echo "$ac_t""no" 1>&6
3704 retry=yes my_libok=no
3707 if test "$retry" = yes; then
3708 echo $ac_n "checking for DGifOpenFileName in -lgif""... $ac_c" 1>&6
3709 echo "configure:3710: checking for DGifOpenFileName in -lgif" >&5
3710 ac_lib_var=`echo gif'_'DGifOpenFileName | sed 'y%./+-%__p_%'`
3711 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3712 echo $ac_n "(cached) $ac_c" 1>&6
3713 else
3714 ac_save_LIBS="$LIBS"
3715 LIBS="-lgif $GFX_INC_PATH $GFXLFLAGS $XLFLAGS $XLIBS $LIBS"
3716 cat > conftest.$ac_ext <<EOF
3717 #line 3718 "configure"
3718 #include "confdefs.h"
3719 /* Override any gcc2 internal prototype to avoid an error. */
3720 /* We use char because int might match the return type of a gcc2
3721 builtin and then its argument prototype would still apply. */
3722 char DGifOpenFileName();
3724 int main() {
3725 DGifOpenFileName()
3726 ; return 0; }
3728 if { (eval echo configure:3729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3729 rm -rf conftest*
3730 eval "ac_cv_lib_$ac_lib_var=yes"
3731 else
3732 echo "configure: failed program was:" >&5
3733 cat conftest.$ac_ext >&5
3734 rm -rf conftest*
3735 eval "ac_cv_lib_$ac_lib_var=no"
3737 rm -f conftest*
3738 LIBS="$ac_save_LIBS"
3741 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3742 echo "$ac_t""yes" 1>&6
3743 my_libok=yes my_libname=gif
3744 else
3745 echo "$ac_t""no" 1>&6
3746 my_libok=no
3751 if test "$my_libok" = yes; then
3752 my_old_cppflags=$CPPFLAGS
3753 CPPFLAGS="$CPPFLAGS $GFX_INC_PATH $XCFLAGS"
3754 ac_safe=`echo "gif_lib.h" | sed 'y%./+-%__p_%'`
3755 echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6
3756 echo "configure:3757: checking for gif_lib.h" >&5
3757 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3758 echo $ac_n "(cached) $ac_c" 1>&6
3759 else
3760 cat > conftest.$ac_ext <<EOF
3761 #line 3762 "configure"
3762 #include "confdefs.h"
3763 #include <gif_lib.h>
3765 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3766 { (eval echo configure:3767: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3767 ac_err=`grep -v '^ *+' conftest.out`
3768 if test -z "$ac_err"; then
3769 rm -rf conftest*
3770 eval "ac_cv_header_$ac_safe=yes"
3771 else
3772 echo "$ac_err" >&5
3773 echo "configure: failed program was:" >&5
3774 cat conftest.$ac_ext >&5
3775 rm -rf conftest*
3776 eval "ac_cv_header_$ac_safe=no"
3778 rm -f conftest*
3780 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3781 echo "$ac_t""yes" 1>&6
3782 GFXLIBS="$GFXLIBS -l$my_libname" GFXFLAGS="$GFXFLAGS -DUSE_GIF"
3783 supported_gfx="$supported_gfx GIF"
3784 else
3785 echo "$ac_t""no" 1>&6
3788 CPPFLAGS=$my_old_cppflags
3794 # Check whether --enable-tiff or --disable-tiff was given.
3795 if test "${enable_tiff+set}" = set; then
3796 enableval="$enable_tiff"
3797 tif=$enableval
3798 else
3799 tif=yes
3804 # TIFF can optionally have JPEG and/or zlib support. Must find out
3805 # when they are supported so that correct library flags are passed during
3806 # detection and linkage
3809 # By default use xpm icons if tiff is not found.
3810 ICONEXT="xpm"
3813 if test "$tif" = yes; then
3814 my_libname=""
3815 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6
3816 echo "configure:3817: checking for TIFFGetVersion in -ltiff" >&5
3817 ac_lib_var=`echo tiff'_'TIFFGetVersion | 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="-ltiff $GFX_INC_PATH $GFXLFLAGS $XLFLAGS $XLIBS $GFXLIBS -lm $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 TIFFGetVersion();
3831 int main() {
3832 TIFFGetVersion()
3833 ; return 0; }
3835 if { (eval echo configure:3836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; 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 my_libok=yes my_libname="-ltiff"
3851 else
3852 echo "$ac_t""no" 1>&6
3853 my_libok=no
3856 unset ac_cv_lib_tiff_TIFFGetVersion
3857 if test "$my_libok" = no; then
3858 if test "$zlib" = "yes"; then
3859 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6
3860 echo "configure:3861: checking for TIFFGetVersion in -ltiff" >&5
3861 ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
3862 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3863 echo $ac_n "(cached) $ac_c" 1>&6
3864 else
3865 ac_save_LIBS="$LIBS"
3866 LIBS="-ltiff $GFX_INC_PATH $GFXLFLAGS $XLFLAGS $XLIBS $GFXLIBS -lz -lm $LIBS"
3867 cat > conftest.$ac_ext <<EOF
3868 #line 3869 "configure"
3869 #include "confdefs.h"
3870 /* Override any gcc2 internal prototype to avoid an error. */
3871 /* We use char because int might match the return type of a gcc2
3872 builtin and then its argument prototype would still apply. */
3873 char TIFFGetVersion();
3875 int main() {
3876 TIFFGetVersion()
3877 ; return 0; }
3879 if { (eval echo configure:3880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3880 rm -rf conftest*
3881 eval "ac_cv_lib_$ac_lib_var=yes"
3882 else
3883 echo "configure: failed program was:" >&5
3884 cat conftest.$ac_ext >&5
3885 rm -rf conftest*
3886 eval "ac_cv_lib_$ac_lib_var=no"
3888 rm -f conftest*
3889 LIBS="$ac_save_LIBS"
3892 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3893 echo "$ac_t""yes" 1>&6
3894 my_libok=yes my_libname="-ltiff -lz"
3895 else
3896 echo "$ac_t""no" 1>&6
3897 my_libok=no
3903 if test "$my_libok" = no; then
3904 echo $ac_n "checking for TIFFGetVersion in -ltiff34""... $ac_c" 1>&6
3905 echo "configure:3906: checking for TIFFGetVersion in -ltiff34" >&5
3906 ac_lib_var=`echo tiff34'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
3907 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3908 echo $ac_n "(cached) $ac_c" 1>&6
3909 else
3910 ac_save_LIBS="$LIBS"
3911 LIBS="-ltiff34 $GFX_INC_PATH $GFXLFLAGS $XLFLAGS $XLIBS $GFXLIBS -lm $LIBS"
3912 cat > conftest.$ac_ext <<EOF
3913 #line 3914 "configure"
3914 #include "confdefs.h"
3915 /* Override any gcc2 internal prototype to avoid an error. */
3916 /* We use char because int might match the return type of a gcc2
3917 builtin and then its argument prototype would still apply. */
3918 char TIFFGetVersion();
3920 int main() {
3921 TIFFGetVersion()
3922 ; return 0; }
3924 if { (eval echo configure:3925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3925 rm -rf conftest*
3926 eval "ac_cv_lib_$ac_lib_var=yes"
3927 else
3928 echo "configure: failed program was:" >&5
3929 cat conftest.$ac_ext >&5
3930 rm -rf conftest*
3931 eval "ac_cv_lib_$ac_lib_var=no"
3933 rm -f conftest*
3934 LIBS="$ac_save_LIBS"
3937 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3938 echo "$ac_t""yes" 1>&6
3939 my_libok=yes my_libname="-ltiff34"
3940 else
3941 echo "$ac_t""no" 1>&6
3942 my_libok=no
3947 if test "$my_libok" = yes; then
3948 my_old_cppflags=$CPPFLAGS
3949 CPPFLAGS="$CPPFLAGS $GFX_INC_PATH $XCFLAGS"
3950 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
3951 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
3952 echo "configure:3953: checking for tiffio.h" >&5
3953 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3954 echo $ac_n "(cached) $ac_c" 1>&6
3955 else
3956 cat > conftest.$ac_ext <<EOF
3957 #line 3958 "configure"
3958 #include "confdefs.h"
3959 #include <tiffio.h>
3961 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3962 { (eval echo configure:3963: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3963 ac_err=`grep -v '^ *+' conftest.out`
3964 if test -z "$ac_err"; then
3965 rm -rf conftest*
3966 eval "ac_cv_header_$ac_safe=yes"
3967 else
3968 echo "$ac_err" >&5
3969 echo "configure: failed program was:" >&5
3970 cat conftest.$ac_ext >&5
3971 rm -rf conftest*
3972 eval "ac_cv_header_$ac_safe=no"
3974 rm -f conftest*
3976 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3977 echo "$ac_t""yes" 1>&6
3978 GFXFLAGS="$GFXFLAGS -DUSE_TIFF" GFXLIBS="$my_libname $GFXLIBS"
3979 ICONEXT="tiff" supported_gfx="$supported_gfx TIFF"
3980 else
3981 echo "$ac_t""no" 1>&6
3984 CPPFLAGS=$my_old_cppflags
3998 # Check whether --enable-debug or --disable-debug was given.
3999 if test "${enable_debug+set}" = set; then
4000 enableval="$enable_debug"
4002 else
4003 enable_debug=no
4007 if test "$enable_debug" = yes; then
4008 DFLAGS="-g -DDEBUG"
4009 # Efence makes things too slow. Add it by hand in the Makefiles
4010 # if it is really needed.
4011 # AC_CHECK_LIB(efence, malloc, LIBS="$LIBS -lefence")
4016 sound=yes
4017 # Check whether --enable-sound or --disable-sound was given.
4018 if test "${enable_sound+set}" = set; then
4019 enableval="$enable_sound"
4020 sound=$enableval
4021 else
4022 sound=yes
4025 if test "$sound" = yes; then
4026 SOUND="#define WMSOUND"
4027 else
4028 SOUND="#undef WMSOUND"
4033 # AC_PREFIX_PROGRAM(wmaker)
4035 if test "${prefix}" = "NONE"; then
4036 prefix="/usr/local"
4038 if test "${exec_prefix}" = "NONE"; then
4039 exec_prefix='$(prefix)'
4042 # Check whether --with-pixmapdir or --without-pixmapdir was given.
4043 if test "${with_pixmapdir+set}" = set; then
4044 withval="$with_pixmapdir"
4049 if test "x$with_pixmapdir" != "x"; then
4050 pixmapdir=$with_pixmapdir
4051 else
4052 pixmapdir='$(datadir)/pixmaps'
4059 appspath=""
4061 # Check whether --with-appspath or --without-appspath was given.
4062 if test "${with_appspath+set}" = set; then
4063 withval="$with_appspath"
4064 appspath=$withval
4068 if test "x$appspath" = "x"; then
4069 gnustepdir='$(prefix)/GNUstep'
4071 if test "x$GNUSTEP_LOCAL_ROOT" != "x" ; then
4072 gnustepdir=`echo "$GNUSTEP_LOCAL_ROOT" | sed -e "s|^${prefix}|prefix|"`
4073 gnustepdir=`echo $gnustepdir | sed -e 's|^prefix|${prefix}|'`
4076 with_appspath=$gnustepdir/Apps
4079 wprefsdir=$with_appspath/WPrefs.app
4084 # Check whether --enable-single-icon or --disable-single-icon was given.
4085 if test "${enable_single_icon+set}" = set; then
4086 enableval="$enable_single_icon"
4087 if test "$enableval" = yes; then
4088 REDUCE_APPICONS="#define REDUCE_APPICONS"
4089 else
4090 REDUCE_APPICONS="#undef REDUCE_APPICONS"
4092 else
4093 REDUCE_APPICONS="#undef REDUCE_APPICONS"
4099 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
4100 echo "configure:4101: checking for sys/wait.h that is POSIX.1 compatible" >&5
4101 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
4102 echo $ac_n "(cached) $ac_c" 1>&6
4103 else
4104 cat > conftest.$ac_ext <<EOF
4105 #line 4106 "configure"
4106 #include "confdefs.h"
4107 #include <sys/types.h>
4108 #include <sys/wait.h>
4109 #ifndef WEXITSTATUS
4110 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4111 #endif
4112 #ifndef WIFEXITED
4113 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4114 #endif
4115 int main() {
4116 int s;
4117 wait (&s);
4118 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4119 ; return 0; }
4121 if { (eval echo configure:4122: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4122 rm -rf conftest*
4123 ac_cv_header_sys_wait_h=yes
4124 else
4125 echo "configure: failed program was:" >&5
4126 cat conftest.$ac_ext >&5
4127 rm -rf conftest*
4128 ac_cv_header_sys_wait_h=no
4130 rm -f conftest*
4133 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
4134 if test $ac_cv_header_sys_wait_h = yes; then
4135 cat >> confdefs.h <<\EOF
4136 #define HAVE_SYS_WAIT_H 1
4141 for ac_hdr in fcntl.h limits.h sys/ioctl.h sys/time.h sys/types.h libintl.h sys/select.h
4143 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4144 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4145 echo "configure:4146: checking for $ac_hdr" >&5
4146 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4147 echo $ac_n "(cached) $ac_c" 1>&6
4148 else
4149 cat > conftest.$ac_ext <<EOF
4150 #line 4151 "configure"
4151 #include "confdefs.h"
4152 #include <$ac_hdr>
4154 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4155 { (eval echo configure:4156: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4156 ac_err=`grep -v '^ *+' conftest.out`
4157 if test -z "$ac_err"; then
4158 rm -rf conftest*
4159 eval "ac_cv_header_$ac_safe=yes"
4160 else
4161 echo "$ac_err" >&5
4162 echo "configure: failed program was:" >&5
4163 cat conftest.$ac_ext >&5
4164 rm -rf conftest*
4165 eval "ac_cv_header_$ac_safe=no"
4167 rm -f conftest*
4169 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4170 echo "$ac_t""yes" 1>&6
4171 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4172 cat >> confdefs.h <<EOF
4173 #define $ac_tr_hdr 1
4176 else
4177 echo "$ac_t""no" 1>&6
4179 done
4184 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
4185 echo "configure:4186: checking for sys_siglist declaration in signal.h or unistd.h" >&5
4186 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
4187 echo $ac_n "(cached) $ac_c" 1>&6
4188 else
4189 cat > conftest.$ac_ext <<EOF
4190 #line 4191 "configure"
4191 #include "confdefs.h"
4192 #include <sys/types.h>
4193 #include <signal.h>
4194 /* NetBSD declares sys_siglist in unistd.h. */
4195 #ifdef HAVE_UNISTD_H
4196 #include <unistd.h>
4197 #endif
4198 int main() {
4199 char *msg = *(sys_siglist + 1);
4200 ; return 0; }
4202 if { (eval echo configure:4203: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4203 rm -rf conftest*
4204 ac_cv_decl_sys_siglist=yes
4205 else
4206 echo "configure: failed program was:" >&5
4207 cat conftest.$ac_ext >&5
4208 rm -rf conftest*
4209 ac_cv_decl_sys_siglist=no
4211 rm -f conftest*
4214 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
4215 if test $ac_cv_decl_sys_siglist = yes; then
4216 cat >> confdefs.h <<\EOF
4217 #define SYS_SIGLIST_DECLARED 1
4222 echo $ac_n "checking for working const""... $ac_c" 1>&6
4223 echo "configure:4224: checking for working const" >&5
4224 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
4225 echo $ac_n "(cached) $ac_c" 1>&6
4226 else
4227 cat > conftest.$ac_ext <<EOF
4228 #line 4229 "configure"
4229 #include "confdefs.h"
4231 int main() {
4233 /* Ultrix mips cc rejects this. */
4234 typedef int charset[2]; const charset x;
4235 /* SunOS 4.1.1 cc rejects this. */
4236 char const *const *ccp;
4237 char **p;
4238 /* NEC SVR4.0.2 mips cc rejects this. */
4239 struct point {int x, y;};
4240 static struct point const zero = {0,0};
4241 /* AIX XL C 1.02.0.0 rejects this.
4242 It does not let you subtract one const X* pointer from another in an arm
4243 of an if-expression whose if-part is not a constant expression */
4244 const char *g = "string";
4245 ccp = &g + (g ? g-g : 0);
4246 /* HPUX 7.0 cc rejects these. */
4247 ++ccp;
4248 p = (char**) ccp;
4249 ccp = (char const *const *) p;
4250 { /* SCO 3.2v4 cc rejects this. */
4251 char *t;
4252 char const *s = 0 ? (char *) 0 : (char const *) 0;
4254 *t++ = 0;
4256 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4257 int x[] = {25, 17};
4258 const int *foo = &x[0];
4259 ++foo;
4261 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4262 typedef const int *iptr;
4263 iptr p = 0;
4264 ++p;
4266 { /* AIX XL C 1.02.0.0 rejects this saying
4267 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4268 struct s { int j; const int *ap[3]; };
4269 struct s *b; b->j = 5;
4271 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4272 const int foo = 10;
4275 ; return 0; }
4277 if { (eval echo configure:4278: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4278 rm -rf conftest*
4279 ac_cv_c_const=yes
4280 else
4281 echo "configure: failed program was:" >&5
4282 cat conftest.$ac_ext >&5
4283 rm -rf conftest*
4284 ac_cv_c_const=no
4286 rm -f conftest*
4289 echo "$ac_t""$ac_cv_c_const" 1>&6
4290 if test $ac_cv_c_const = no; then
4291 cat >> confdefs.h <<\EOF
4292 #define const
4297 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4298 echo "configure:4299: checking for ANSI C header files" >&5
4299 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
4300 echo $ac_n "(cached) $ac_c" 1>&6
4301 else
4302 cat > conftest.$ac_ext <<EOF
4303 #line 4304 "configure"
4304 #include "confdefs.h"
4305 #include <stdlib.h>
4306 #include <stdarg.h>
4307 #include <string.h>
4308 #include <float.h>
4310 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4311 { (eval echo configure:4312: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4312 ac_err=`grep -v '^ *+' conftest.out`
4313 if test -z "$ac_err"; then
4314 rm -rf conftest*
4315 ac_cv_header_stdc=yes
4316 else
4317 echo "$ac_err" >&5
4318 echo "configure: failed program was:" >&5
4319 cat conftest.$ac_ext >&5
4320 rm -rf conftest*
4321 ac_cv_header_stdc=no
4323 rm -f conftest*
4325 if test $ac_cv_header_stdc = yes; then
4326 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4327 cat > conftest.$ac_ext <<EOF
4328 #line 4329 "configure"
4329 #include "confdefs.h"
4330 #include <string.h>
4332 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4333 egrep "memchr" >/dev/null 2>&1; then
4335 else
4336 rm -rf conftest*
4337 ac_cv_header_stdc=no
4339 rm -f conftest*
4343 if test $ac_cv_header_stdc = yes; then
4344 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4345 cat > conftest.$ac_ext <<EOF
4346 #line 4347 "configure"
4347 #include "confdefs.h"
4348 #include <stdlib.h>
4350 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4351 egrep "free" >/dev/null 2>&1; then
4353 else
4354 rm -rf conftest*
4355 ac_cv_header_stdc=no
4357 rm -f conftest*
4361 if test $ac_cv_header_stdc = yes; then
4362 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4363 if test "$cross_compiling" = yes; then
4365 else
4366 cat > conftest.$ac_ext <<EOF
4367 #line 4368 "configure"
4368 #include "confdefs.h"
4369 #include <ctype.h>
4370 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4371 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4372 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4373 int main () { int i; for (i = 0; i < 256; i++)
4374 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4375 exit (0); }
4378 if { (eval echo configure:4379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4379 then
4381 else
4382 echo "configure: failed program was:" >&5
4383 cat conftest.$ac_ext >&5
4384 rm -fr conftest*
4385 ac_cv_header_stdc=no
4387 rm -fr conftest*
4393 echo "$ac_t""$ac_cv_header_stdc" 1>&6
4394 if test $ac_cv_header_stdc = yes; then
4395 cat >> confdefs.h <<\EOF
4396 #define STDC_HEADERS 1
4401 echo $ac_n "checking for size_t""... $ac_c" 1>&6
4402 echo "configure:4403: checking for size_t" >&5
4403 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
4404 echo $ac_n "(cached) $ac_c" 1>&6
4405 else
4406 cat > conftest.$ac_ext <<EOF
4407 #line 4408 "configure"
4408 #include "confdefs.h"
4409 #include <sys/types.h>
4410 #if STDC_HEADERS
4411 #include <stdlib.h>
4412 #include <stddef.h>
4413 #endif
4415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4416 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4417 rm -rf conftest*
4418 ac_cv_type_size_t=yes
4419 else
4420 rm -rf conftest*
4421 ac_cv_type_size_t=no
4423 rm -f conftest*
4426 echo "$ac_t""$ac_cv_type_size_t" 1>&6
4427 if test $ac_cv_type_size_t = no; then
4428 cat >> confdefs.h <<\EOF
4429 #define size_t unsigned
4434 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
4435 echo "configure:4436: checking for pid_t" >&5
4436 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
4437 echo $ac_n "(cached) $ac_c" 1>&6
4438 else
4439 cat > conftest.$ac_ext <<EOF
4440 #line 4441 "configure"
4441 #include "confdefs.h"
4442 #include <sys/types.h>
4443 #if STDC_HEADERS
4444 #include <stdlib.h>
4445 #include <stddef.h>
4446 #endif
4448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4449 egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4450 rm -rf conftest*
4451 ac_cv_type_pid_t=yes
4452 else
4453 rm -rf conftest*
4454 ac_cv_type_pid_t=no
4456 rm -f conftest*
4459 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
4460 if test $ac_cv_type_pid_t = no; then
4461 cat >> confdefs.h <<\EOF
4462 #define pid_t int
4467 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4468 echo "configure:4469: checking whether time.h and sys/time.h may both be included" >&5
4469 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
4470 echo $ac_n "(cached) $ac_c" 1>&6
4471 else
4472 cat > conftest.$ac_ext <<EOF
4473 #line 4474 "configure"
4474 #include "confdefs.h"
4475 #include <sys/types.h>
4476 #include <sys/time.h>
4477 #include <time.h>
4478 int main() {
4479 struct tm *tp;
4480 ; return 0; }
4482 if { (eval echo configure:4483: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4483 rm -rf conftest*
4484 ac_cv_header_time=yes
4485 else
4486 echo "configure: failed program was:" >&5
4487 cat conftest.$ac_ext >&5
4488 rm -rf conftest*
4489 ac_cv_header_time=no
4491 rm -f conftest*
4494 echo "$ac_t""$ac_cv_header_time" 1>&6
4495 if test $ac_cv_header_time = yes; then
4496 cat >> confdefs.h <<\EOF
4497 #define TIME_WITH_SYS_TIME 1
4506 enable_shared=no
4507 #AC_ARG_ENABLE(shared,
4508 #[ --enable-shared build libraries as shared ], enable_shared=yes,
4509 # enable_shared=no)
4511 if test "$enable_shared" = yes; then
4512 if test "$GCC" = yes; then
4513 _CFLAGS="-fPIC"
4514 LDSHARED='$CC -shared'
4515 else
4516 # find system name and corresponding cc options
4517 case `(uname -sr || echo unknown) 2>/dev/null` in
4518 SunOS\ 5*)
4519 _CFLAGS="-fast -xcg89 -KPIC -R."
4520 LDSHARED='$CC -G';;
4521 SunOS\ 4*)
4522 _CFLAGS="-PIC"
4523 LDSHARED="ld";;
4524 IRIX*)
4525 _CFLAGS="-ansi -rpath ."
4526 LDSHARED='$CC -shared';;
4527 SCO_SV\ 3.2*)
4528 _CFLAGS="-dy -KPIC "
4529 LDSHARED='$CC -dy -KPIC -G';;
4530 HP-UX*)
4531 _CFLAGS="+z"
4532 LDSHARED="ld -b"
4533 SHAREDLIBS='libz.sl';;
4535 _CFLAGS=""
4536 LDSHARED='$CC -shared';;
4537 esac
4540 echo $ac_n "checking for shared library support""... $ac_c" 1>&6
4541 echo "configure:4542: checking for shared library support" >&5
4543 test=tmptest$$
4544 cat > $test.c <<EOF
4545 int hello() { printf("hello\n"); }
4549 # we must test in two steps (cc then ld), required at least on SunOS 4.x
4550 if test "`($CC -c $_CFLAGS $test.c) 2>&1`" = "" &&
4551 test "`($LDSHARED -o $test.so $test.o) 2>&1`" = ""; then
4552 CFLAGS="$CFLAGS $_CFLAGS"
4553 WRASTERLIB='libwraster.so.$(WRASTER_VER)'
4554 WINGSLIB='libWINGs.so.$(WINGS_VER)'
4555 echo "$ac_t""yes, building shared" 1>&6
4556 else
4557 LDSHARED='$CC'
4558 WRASTERLIB='libwraster.a'
4559 WINGSLIB='libWINGs.a'
4560 echo "$ac_t""no, building static" 1>&6
4562 rm -f $test.co $test.so
4565 #AC_SUBST(WRASTER_VER)
4566 #AC_SUBST(WINGS_VER)
4567 #AC_SUBST(WRASTERLIB)
4568 # AC_SUBST(WINGSLIB)
4569 # AC_SUBST(LDSHARED)
4575 trap '' 1 2 15
4576 cat > confcache <<\EOF
4577 # This file is a shell script that caches the results of configure
4578 # tests run on this system so they can be shared between configure
4579 # scripts and configure runs. It is not useful on other systems.
4580 # If it contains results you don't want to keep, you may remove or edit it.
4582 # By default, configure uses ./config.cache as the cache file,
4583 # creating it if it does not exist already. You can give configure
4584 # the --cache-file=FILE option to use a different cache file; that is
4585 # what configure does when it calls configure scripts in
4586 # subdirectories, so they share the cache.
4587 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4588 # config.status only pays attention to the cache file if you give it the
4589 # --recheck option to rerun configure.
4592 # The following way of writing the cache mishandles newlines in values,
4593 # but we know of no workaround that is simple, portable, and efficient.
4594 # So, don't put newlines in cache variables' values.
4595 # Ultrix sh set writes to stderr and can't be redirected directly,
4596 # and sets the high bit in the cache file unless we assign to the vars.
4597 (set) 2>&1 |
4598 case `(ac_space=' '; set) 2>&1` in
4599 *ac_space=\ *)
4600 # `set' does not quote correctly, so add quotes (double-quote substitution
4601 # turns \\\\ into \\, and sed turns \\ into \).
4602 sed -n \
4603 -e "s/'/'\\\\''/g" \
4604 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4607 # `set' quotes correctly as required by POSIX, so do not add quotes.
4608 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4610 esac >> confcache
4611 if cmp -s $cache_file confcache; then
4613 else
4614 if test -w $cache_file; then
4615 echo "updating cache $cache_file"
4616 cat confcache > $cache_file
4617 else
4618 echo "not updating unwritable cache $cache_file"
4621 rm -f confcache
4623 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4625 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4626 # Let make expand exec_prefix.
4627 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4629 # Any assignment to VPATH causes Sun make to only execute
4630 # the first set of double-colon rules, so remove it if not needed.
4631 # If there is a colon in the path, we need to keep it.
4632 if test "x$srcdir" = x.; then
4633 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4636 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4638 DEFS=-DHAVE_CONFIG_H
4640 # Without the "./", some shells look in PATH for config.status.
4641 : ${CONFIG_STATUS=./config.status}
4643 echo creating $CONFIG_STATUS
4644 rm -f $CONFIG_STATUS
4645 cat > $CONFIG_STATUS <<EOF
4646 #! /bin/sh
4647 # Generated automatically by configure.
4648 # Run this file to recreate the current configuration.
4649 # This directory was configured as follows,
4650 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4652 # $0 $ac_configure_args
4654 # Compiler output produced by configure, useful for debugging
4655 # configure, is in ./config.log if it exists.
4657 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4658 for ac_option
4660 case "\$ac_option" in
4661 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4662 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4663 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4664 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4665 echo "$CONFIG_STATUS generated by autoconf version 2.12"
4666 exit 0 ;;
4667 -help | --help | --hel | --he | --h)
4668 echo "\$ac_cs_usage"; exit 0 ;;
4669 *) echo "\$ac_cs_usage"; exit 1 ;;
4670 esac
4671 done
4673 ac_given_srcdir=$srcdir
4674 ac_given_INSTALL="$INSTALL"
4676 trap 'rm -fr `echo "Makefile po/Makefile util/Makefile test/Makefile wmlib/Makefile \
4677 WINGs/Makefile WINGs/Resources/Makefile src/Makefile src/wconfig.h \
4678 wrlib/Makefile doc/Makefile WindowMaker/Makefile \
4679 WindowMaker/Defaults/Makefile WindowMaker/Styles/Makefile \
4680 WindowMaker/Themes/Makefile WindowMaker/Backgrounds/Makefile \
4681 WindowMaker/Pixmaps/Makefile WindowMaker/Icons/Makefile \
4682 WindowMaker/IconSets/Makefile \
4683 WPrefs.app/Makefile WPrefs.app/tiff/Makefile WPrefs.app/xpm/Makefile \
4684 WPrefs.app/po/Makefile src/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4686 cat >> $CONFIG_STATUS <<EOF
4688 # Protect against being on the right side of a sed subst in config.status.
4689 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4690 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4691 $ac_vpsub
4692 $extrasub
4693 s%@CFLAGS@%$CFLAGS%g
4694 s%@CPPFLAGS@%$CPPFLAGS%g
4695 s%@CXXFLAGS@%$CXXFLAGS%g
4696 s%@DEFS@%$DEFS%g
4697 s%@LDFLAGS@%$LDFLAGS%g
4698 s%@LIBS@%$LIBS%g
4699 s%@exec_prefix@%$exec_prefix%g
4700 s%@prefix@%$prefix%g
4701 s%@program_transform_name@%$program_transform_name%g
4702 s%@bindir@%$bindir%g
4703 s%@sbindir@%$sbindir%g
4704 s%@libexecdir@%$libexecdir%g
4705 s%@datadir@%$datadir%g
4706 s%@sysconfdir@%$sysconfdir%g
4707 s%@sharedstatedir@%$sharedstatedir%g
4708 s%@localstatedir@%$localstatedir%g
4709 s%@libdir@%$libdir%g
4710 s%@includedir@%$includedir%g
4711 s%@oldincludedir@%$oldincludedir%g
4712 s%@infodir@%$infodir%g
4713 s%@mandir@%$mandir%g
4714 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4715 s%@INSTALL_DATA@%$INSTALL_DATA%g
4716 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4717 s%@PACKAGE@%$PACKAGE%g
4718 s%@VERSION@%$VERSION%g
4719 s%@ACLOCAL@%$ACLOCAL%g
4720 s%@AUTOCONF@%$AUTOCONF%g
4721 s%@AUTOMAKE@%$AUTOMAKE%g
4722 s%@AUTOHEADER@%$AUTOHEADER%g
4723 s%@MAKEINFO@%$MAKEINFO%g
4724 s%@SET_MAKE@%$SET_MAKE%g
4725 s%@subdirs@%$subdirs%g
4726 s%@host@%$host%g
4727 s%@host_alias@%$host_alias%g
4728 s%@host_cpu@%$host_cpu%g
4729 s%@host_vendor@%$host_vendor%g
4730 s%@host_os@%$host_os%g
4731 s%@CC@%$CC%g
4732 s%@RANLIB@%$RANLIB%g
4733 s%@LN_S@%$LN_S%g
4734 s%@CPP@%$CPP%g
4735 s%@ALLOCA@%$ALLOCA%g
4736 s%@CPP_PATH@%$CPP_PATH%g
4737 s%@XGETTEXT@%$XGETTEXT%g
4738 s%@I18N_MB@%$I18N_MB%g
4739 s%@I18N@%$I18N%g
4740 s%@INTLIBS@%$INTLIBS%g
4741 s%@NLSDIR@%$NLSDIR%g
4742 s%@MOFILES@%$MOFILES%g
4743 s%@WPMOFILES@%$WPMOFILES%g
4744 s%@X_CFLAGS@%$X_CFLAGS%g
4745 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
4746 s%@X_LIBS@%$X_LIBS%g
4747 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
4748 s%@X_LOCALE@%$X_LOCALE%g
4749 s%@SHAPE@%$SHAPE%g
4750 s%@XSHM@%$XSHM%g
4751 s%@XLIBS@%$XLIBS%g
4752 s%@XCFLAGS@%$XCFLAGS%g
4753 s%@XLFLAGS@%$XLFLAGS%g
4754 s%@GFXFLAGS@%$GFXFLAGS%g
4755 s%@GFXLFLAGS@%$GFXLFLAGS%g
4756 s%@GFXLIBS@%$GFXLIBS%g
4757 s%@ICONEXT@%$ICONEXT%g
4758 s%@DFLAGS@%$DFLAGS%g
4759 s%@SOUND@%$SOUND%g
4760 s%@pixmapdir@%$pixmapdir%g
4761 s%@wprefsdir@%$wprefsdir%g
4762 s%@REDUCE_APPICONS@%$REDUCE_APPICONS%g
4764 CEOF
4767 cat >> $CONFIG_STATUS <<\EOF
4769 # Split the substitutions into bite-sized pieces for seds with
4770 # small command number limits, like on Digital OSF/1 and HP-UX.
4771 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4772 ac_file=1 # Number of current file.
4773 ac_beg=1 # First line for current file.
4774 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4775 ac_more_lines=:
4776 ac_sed_cmds=""
4777 while $ac_more_lines; do
4778 if test $ac_beg -gt 1; then
4779 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4780 else
4781 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4783 if test ! -s conftest.s$ac_file; then
4784 ac_more_lines=false
4785 rm -f conftest.s$ac_file
4786 else
4787 if test -z "$ac_sed_cmds"; then
4788 ac_sed_cmds="sed -f conftest.s$ac_file"
4789 else
4790 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4792 ac_file=`expr $ac_file + 1`
4793 ac_beg=$ac_end
4794 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4796 done
4797 if test -z "$ac_sed_cmds"; then
4798 ac_sed_cmds=cat
4802 cat >> $CONFIG_STATUS <<EOF
4804 CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile util/Makefile test/Makefile wmlib/Makefile \
4805 WINGs/Makefile WINGs/Resources/Makefile src/Makefile src/wconfig.h \
4806 wrlib/Makefile doc/Makefile WindowMaker/Makefile \
4807 WindowMaker/Defaults/Makefile WindowMaker/Styles/Makefile \
4808 WindowMaker/Themes/Makefile WindowMaker/Backgrounds/Makefile \
4809 WindowMaker/Pixmaps/Makefile WindowMaker/Icons/Makefile \
4810 WindowMaker/IconSets/Makefile \
4811 WPrefs.app/Makefile WPrefs.app/tiff/Makefile WPrefs.app/xpm/Makefile \
4812 WPrefs.app/po/Makefile "}
4814 cat >> $CONFIG_STATUS <<\EOF
4815 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4816 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4817 case "$ac_file" in
4818 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4819 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4820 *) ac_file_in="${ac_file}.in" ;;
4821 esac
4823 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4825 # Remove last slash and all that follows it. Not all systems have dirname.
4826 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4827 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4828 # The file is in a subdirectory.
4829 test ! -d "$ac_dir" && mkdir "$ac_dir"
4830 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4831 # A "../" for each directory in $ac_dir_suffix.
4832 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4833 else
4834 ac_dir_suffix= ac_dots=
4837 case "$ac_given_srcdir" in
4838 .) srcdir=.
4839 if test -z "$ac_dots"; then top_srcdir=.
4840 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4841 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4842 *) # Relative path.
4843 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4844 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4845 esac
4847 case "$ac_given_INSTALL" in
4848 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4849 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4850 esac
4852 echo creating "$ac_file"
4853 rm -f "$ac_file"
4854 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4855 case "$ac_file" in
4856 *Makefile*) ac_comsub="1i\\
4857 # $configure_input" ;;
4858 *) ac_comsub= ;;
4859 esac
4861 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4862 sed -e "$ac_comsub
4863 s%@configure_input@%$configure_input%g
4864 s%@srcdir@%$srcdir%g
4865 s%@top_srcdir@%$top_srcdir%g
4866 s%@INSTALL@%$INSTALL%g
4867 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4868 fi; done
4869 rm -f conftest.s*
4871 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4872 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4874 # ac_d sets the value in "#define NAME VALUE" lines.
4875 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4876 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4877 ac_dC='\3'
4878 ac_dD='%g'
4879 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4880 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4881 ac_uB='\([ ]\)%\1#\2define\3'
4882 ac_uC=' '
4883 ac_uD='\4%g'
4884 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4885 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4886 ac_eB='$%\1#\2define\3'
4887 ac_eC=' '
4888 ac_eD='%g'
4890 if test "${CONFIG_HEADERS+set}" != set; then
4892 cat >> $CONFIG_STATUS <<EOF
4893 CONFIG_HEADERS="src/config.h"
4895 cat >> $CONFIG_STATUS <<\EOF
4897 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4898 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4899 case "$ac_file" in
4900 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4901 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4902 *) ac_file_in="${ac_file}.in" ;;
4903 esac
4905 echo creating $ac_file
4907 rm -f conftest.frag conftest.in conftest.out
4908 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4909 cat $ac_file_inputs > conftest.in
4913 # Transform confdefs.h into a sed script conftest.vals that substitutes
4914 # the proper values into config.h.in to produce config.h. And first:
4915 # Protect against being on the right side of a sed subst in config.status.
4916 # Protect against being in an unquoted here document in config.status.
4917 rm -f conftest.vals
4918 cat > conftest.hdr <<\EOF
4919 s/[\\&%]/\\&/g
4920 s%[\\$`]%\\&%g
4921 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4922 s%ac_d%ac_u%gp
4923 s%ac_u%ac_e%gp
4925 sed -n -f conftest.hdr confdefs.h > conftest.vals
4926 rm -f conftest.hdr
4928 # This sed command replaces #undef with comments. This is necessary, for
4929 # example, in the case of _POSIX_SOURCE, which is predefined and required
4930 # on some systems where configure will not decide to define it.
4931 cat >> conftest.vals <<\EOF
4932 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4935 # Break up conftest.vals because some shells have a limit on
4936 # the size of here documents, and old seds have small limits too.
4938 rm -f conftest.tail
4939 while :
4941 ac_lines=`grep -c . conftest.vals`
4942 # grep -c gives empty output for an empty file on some AIX systems.
4943 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4944 # Write a limited-size here document to conftest.frag.
4945 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4946 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4947 echo 'CEOF
4948 sed -f conftest.frag conftest.in > conftest.out
4949 rm -f conftest.in
4950 mv conftest.out conftest.in
4951 ' >> $CONFIG_STATUS
4952 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4953 rm -f conftest.vals
4954 mv conftest.tail conftest.vals
4955 done
4956 rm -f conftest.vals
4958 cat >> $CONFIG_STATUS <<\EOF
4959 rm -f conftest.frag conftest.h
4960 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4961 cat conftest.in >> conftest.h
4962 rm -f conftest.in
4963 if cmp -s $ac_file conftest.h 2>/dev/null; then
4964 echo "$ac_file is unchanged"
4965 rm -f conftest.h
4966 else
4967 # Remove last slash and all that follows it. Not all systems have dirname.
4968 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4969 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4970 # The file is in a subdirectory.
4971 test ! -d "$ac_dir" && mkdir "$ac_dir"
4973 rm -f $ac_file
4974 mv conftest.h $ac_file
4976 fi; done
4979 cat >> $CONFIG_STATUS <<EOF
4983 cat >> $CONFIG_STATUS <<\EOF
4984 test -z "$CONFIG_HEADERS" || echo timestamp > src/stamp-h
4986 exit 0
4988 chmod +x $CONFIG_STATUS
4989 rm -fr confdefs* $ac_clean_files
4990 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4992 if test "$no_recursion" != yes; then
4994 # Remove --cache-file and --srcdir arguments so they do not pile up.
4995 ac_sub_configure_args=
4996 ac_prev=
4997 for ac_arg in $ac_configure_args; do
4998 if test -n "$ac_prev"; then
4999 ac_prev=
5000 continue
5002 case "$ac_arg" in
5003 -cache-file | --cache-file | --cache-fil | --cache-fi \
5004 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
5005 ac_prev=cache_file ;;
5006 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
5007 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
5009 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
5010 ac_prev=srcdir ;;
5011 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
5013 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
5014 esac
5015 done
5017 for ac_config_dir in libPropList; do
5019 # Do not complain, so a configure script can configure whichever
5020 # parts of a large source tree are present.
5021 if test ! -d $srcdir/$ac_config_dir; then
5022 continue
5025 echo configuring in $ac_config_dir
5027 case "$srcdir" in
5028 .) ;;
5030 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
5031 else
5032 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
5035 esac
5037 ac_popdir=`pwd`
5038 cd $ac_config_dir
5040 # A "../" for each directory in /$ac_config_dir.
5041 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
5043 case "$srcdir" in
5044 .) # No --srcdir option. We are building in place.
5045 ac_sub_srcdir=$srcdir ;;
5046 /*) # Absolute path.
5047 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
5048 *) # Relative path.
5049 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
5050 esac
5052 # Check for guested configure; otherwise get Cygnus style configure.
5053 if test -f $ac_sub_srcdir/configure; then
5054 ac_sub_configure=$ac_sub_srcdir/configure
5055 elif test -f $ac_sub_srcdir/configure.in; then
5056 ac_sub_configure=$ac_configure
5057 else
5058 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
5059 ac_sub_configure=
5062 # The recursion is here.
5063 if test -n "$ac_sub_configure"; then
5065 # Make the cache file name correct relative to the subdirectory.
5066 case "$cache_file" in
5067 /*) ac_sub_cache_file=$cache_file ;;
5068 *) # Relative path.
5069 ac_sub_cache_file="$ac_dots$cache_file" ;;
5070 esac
5071 case "$ac_given_INSTALL" in
5072 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5073 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5074 esac
5076 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
5077 # The eval makes quoting arguments work.
5078 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
5079 then :
5080 else
5081 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
5085 cd $ac_popdir
5086 done
5093 echo "WFLAGS=\"$LIBPL_INC_PATH -I$prefix/include\"" > WINGs-flags
5094 echo "WLIBS=\"-L$exec_prefix/lib -lWINGs -lwraster $LIBPL_LIBS $GFXLIBS -lm\""\
5095 >> WINGs-flags
5099 supported_gfx="$supported_gfx PPM (built-in)"
5101 if test "x$MOFILES" = "x"; then
5102 mof=none
5103 else
5104 mof=$MOFILES
5107 echo
5108 echo "Window Maker was configured as follows:"
5109 echo
5110 echo "Installation path prefix: $prefix"
5111 echo "Installation path prefix for binaries: $exec_prefix" | sed -e 's|\$(prefix)|'"$prefix|"
5112 echo "Installation path for WPrefs.app: $wprefsdir" | sed -e 's|\$(prefix)|'"$prefix|"
5113 echo "Graphic format libraries: $supported_gfx"
5114 echo "Sound support: $sound"
5115 echo "Translated message files to install: $mof"
5116 if test "x$MOFILES" != "x"; then
5117 echo "Installation path of translated messages: $NLSDIR"