fixed compilation prob
[wmaker-crm.git] / configure
bloba2cab7516bdb8d89076a75127f4bad6a5e5d66b8
1 #! /bin/sh
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --enable-shared[=PKGS] build shared libraries [default=yes]"
16 ac_help="$ac_help
17 --enable-static[=PKGS] build static libraries [default=yes]"
18 ac_help="$ac_help
19 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
20 ac_help="$ac_help
21 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
22 ac_help="$ac_help
23 --disable-libtool-lock avoid locking (might break parallel builds)"
24 ac_help="$ac_help
25 --with-libs-from pass compiler flags to look for libraries"
26 ac_help="$ac_help
27 --with-incs-from pass compiler flags to look for header files"
28 ac_help="$ac_help
29 --enable-kanji multibyte character support (kanji, Korean etc.)"
30 ac_help="$ac_help
31 --with-nlsdir=PATH specify where the locale stuff should go "
32 ac_help="$ac_help
33 --enable-gnome enable stuff needed for GNOME "
34 ac_help="$ac_help
35 --enable-kde enable support for KDE window manager (kwm) hints "
36 ac_help="$ac_help
37 --enable-openlook enable support for OPEN LOOK(tm) (olwm) hints "
38 ac_help="$ac_help
39 --enable-lite disable some stuff (dont use it) "
40 ac_help="$ac_help
41 --with-x use the X Window System"
42 ac_help="$ac_help
43 --disable-locale disable use of X locale support"
44 ac_help="$ac_help
45 --enable-modelock XKB keyboard language status support"
46 ac_help="$ac_help
47 --disable-shape disable shaped window extension support"
48 ac_help="$ac_help
49 --disable-shm disable usage of MIT-SHM extension"
50 ac_help="$ac_help
51 --disable-xpm disable use of XPM pixmaps through libXpm"
52 ac_help="$ac_help
53 --disable-png disable PNG support through libpng"
54 ac_help="$ac_help
55 --disable-jpeg disable JPEG support through libjpeg"
56 ac_help="$ac_help
57 --disable-gif disable GIF support through libgif or libungif"
58 ac_help="$ac_help
59 --disable-tiff disable use of TIFF images through libtiff"
60 ac_help="$ac_help
61 --enable-debug enable debugging "
62 ac_help="$ac_help
63 --disable-sound disable sound support "
64 ac_help="$ac_help
65 --with-pixmapdir=PATH specify where pixmaps are located [DATADIR/pixmaps]"
66 ac_help="$ac_help
67 --with-appspath=PATH specify the directory for GNUstep applications"
68 ac_help="$ac_help
69 --enable-single-icon use single application icon per WM_INSTANCE+WM_CLASS
71 ac_help="$ac_help
72 --enable-usermenu user defined menus for applications
75 # Initialize some variables set by options.
76 # The variables have the same names as the options, with
77 # dashes changed to underlines.
78 build=NONE
79 cache_file=./config.cache
80 exec_prefix=NONE
81 host=NONE
82 no_create=
83 nonopt=NONE
84 no_recursion=
85 prefix=NONE
86 program_prefix=NONE
87 program_suffix=NONE
88 program_transform_name=s,x,x,
89 silent=
90 site=
91 srcdir=
92 target=NONE
93 verbose=
94 x_includes=NONE
95 x_libraries=NONE
96 bindir='${exec_prefix}/bin'
97 sbindir='${exec_prefix}/sbin'
98 libexecdir='${exec_prefix}/libexec'
99 datadir='${prefix}/share'
100 sysconfdir='${prefix}/etc'
101 sharedstatedir='${prefix}/com'
102 localstatedir='${prefix}/var'
103 libdir='${exec_prefix}/lib'
104 includedir='${prefix}/include'
105 oldincludedir='/usr/include'
106 infodir='${prefix}/info'
107 mandir='${prefix}/man'
109 # Initialize some other variables.
110 subdirs=
111 MFLAGS= MAKEFLAGS=
112 SHELL=${CONFIG_SHELL-/bin/sh}
113 # Maximum number of lines to put in a shell here document.
114 ac_max_here_lines=12
116 ac_prev=
117 for ac_option
120 # If the previous option needs an argument, assign it.
121 if test -n "$ac_prev"; then
122 eval "$ac_prev=\$ac_option"
123 ac_prev=
124 continue
127 case "$ac_option" in
128 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
129 *) ac_optarg= ;;
130 esac
132 # Accept the important Cygnus configure options, so we can diagnose typos.
134 case "$ac_option" in
136 -bindir | --bindir | --bindi | --bind | --bin | --bi)
137 ac_prev=bindir ;;
138 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
139 bindir="$ac_optarg" ;;
141 -build | --build | --buil | --bui | --bu)
142 ac_prev=build ;;
143 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
144 build="$ac_optarg" ;;
146 -cache-file | --cache-file | --cache-fil | --cache-fi \
147 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
148 ac_prev=cache_file ;;
149 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
150 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
151 cache_file="$ac_optarg" ;;
153 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
154 ac_prev=datadir ;;
155 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
156 | --da=*)
157 datadir="$ac_optarg" ;;
159 -disable-* | --disable-*)
160 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
161 # Reject names that are not valid shell variable names.
162 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
163 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
165 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
166 eval "enable_${ac_feature}=no" ;;
168 -enable-* | --enable-*)
169 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
170 # Reject names that are not valid shell variable names.
171 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
172 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
174 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
175 case "$ac_option" in
176 *=*) ;;
177 *) ac_optarg=yes ;;
178 esac
179 eval "enable_${ac_feature}='$ac_optarg'" ;;
181 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
182 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
183 | --exec | --exe | --ex)
184 ac_prev=exec_prefix ;;
185 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
186 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
187 | --exec=* | --exe=* | --ex=*)
188 exec_prefix="$ac_optarg" ;;
190 -gas | --gas | --ga | --g)
191 # Obsolete; use --with-gas.
192 with_gas=yes ;;
194 -help | --help | --hel | --he)
195 # Omit some internal or obsolete options to make the list less imposing.
196 # This message is too long to be a string in the A/UX 3.1 sh.
197 cat << EOF
198 Usage: configure [options] [host]
199 Options: [defaults in brackets after descriptions]
200 Configuration:
201 --cache-file=FILE cache test results in FILE
202 --help print this message
203 --no-create do not create output files
204 --quiet, --silent do not print \`checking...' messages
205 --version print the version of autoconf that created configure
206 Directory and file names:
207 --prefix=PREFIX install architecture-independent files in PREFIX
208 [$ac_default_prefix]
209 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
210 [same as prefix]
211 --bindir=DIR user executables in DIR [EPREFIX/bin]
212 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
213 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
214 --datadir=DIR read-only architecture-independent data in DIR
215 [PREFIX/share]
216 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
217 --sharedstatedir=DIR modifiable architecture-independent data in DIR
218 [PREFIX/com]
219 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
220 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
221 --includedir=DIR C header files in DIR [PREFIX/include]
222 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
223 --infodir=DIR info documentation in DIR [PREFIX/info]
224 --mandir=DIR man documentation in DIR [PREFIX/man]
225 --srcdir=DIR find the sources in DIR [configure dir or ..]
226 --program-prefix=PREFIX prepend PREFIX to installed program names
227 --program-suffix=SUFFIX append SUFFIX to installed program names
228 --program-transform-name=PROGRAM
229 run sed PROGRAM on installed program names
231 cat << EOF
232 Host type:
233 --build=BUILD configure for building on BUILD [BUILD=HOST]
234 --host=HOST configure for HOST [guessed]
235 --target=TARGET configure for TARGET [TARGET=HOST]
236 Features and packages:
237 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
238 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
239 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
240 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
241 --x-includes=DIR X include files are in DIR
242 --x-libraries=DIR X library files are in DIR
244 if test -n "$ac_help"; then
245 echo "--enable and --with options recognized:$ac_help"
247 exit 0 ;;
249 -host | --host | --hos | --ho)
250 ac_prev=host ;;
251 -host=* | --host=* | --hos=* | --ho=*)
252 host="$ac_optarg" ;;
254 -includedir | --includedir | --includedi | --included | --include \
255 | --includ | --inclu | --incl | --inc)
256 ac_prev=includedir ;;
257 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
258 | --includ=* | --inclu=* | --incl=* | --inc=*)
259 includedir="$ac_optarg" ;;
261 -infodir | --infodir | --infodi | --infod | --info | --inf)
262 ac_prev=infodir ;;
263 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
264 infodir="$ac_optarg" ;;
266 -libdir | --libdir | --libdi | --libd)
267 ac_prev=libdir ;;
268 -libdir=* | --libdir=* | --libdi=* | --libd=*)
269 libdir="$ac_optarg" ;;
271 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
272 | --libexe | --libex | --libe)
273 ac_prev=libexecdir ;;
274 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
275 | --libexe=* | --libex=* | --libe=*)
276 libexecdir="$ac_optarg" ;;
278 -localstatedir | --localstatedir | --localstatedi | --localstated \
279 | --localstate | --localstat | --localsta | --localst \
280 | --locals | --local | --loca | --loc | --lo)
281 ac_prev=localstatedir ;;
282 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
283 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
284 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
285 localstatedir="$ac_optarg" ;;
287 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
288 ac_prev=mandir ;;
289 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
290 mandir="$ac_optarg" ;;
292 -nfp | --nfp | --nf)
293 # Obsolete; use --without-fp.
294 with_fp=no ;;
296 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
297 | --no-cr | --no-c)
298 no_create=yes ;;
300 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
301 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
302 no_recursion=yes ;;
304 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
305 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
306 | --oldin | --oldi | --old | --ol | --o)
307 ac_prev=oldincludedir ;;
308 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
309 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
310 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
311 oldincludedir="$ac_optarg" ;;
313 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
314 ac_prev=prefix ;;
315 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
316 prefix="$ac_optarg" ;;
318 -program-prefix | --program-prefix | --program-prefi | --program-pref \
319 | --program-pre | --program-pr | --program-p)
320 ac_prev=program_prefix ;;
321 -program-prefix=* | --program-prefix=* | --program-prefi=* \
322 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
323 program_prefix="$ac_optarg" ;;
325 -program-suffix | --program-suffix | --program-suffi | --program-suff \
326 | --program-suf | --program-su | --program-s)
327 ac_prev=program_suffix ;;
328 -program-suffix=* | --program-suffix=* | --program-suffi=* \
329 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
330 program_suffix="$ac_optarg" ;;
332 -program-transform-name | --program-transform-name \
333 | --program-transform-nam | --program-transform-na \
334 | --program-transform-n | --program-transform- \
335 | --program-transform | --program-transfor \
336 | --program-transfo | --program-transf \
337 | --program-trans | --program-tran \
338 | --progr-tra | --program-tr | --program-t)
339 ac_prev=program_transform_name ;;
340 -program-transform-name=* | --program-transform-name=* \
341 | --program-transform-nam=* | --program-transform-na=* \
342 | --program-transform-n=* | --program-transform-=* \
343 | --program-transform=* | --program-transfor=* \
344 | --program-transfo=* | --program-transf=* \
345 | --program-trans=* | --program-tran=* \
346 | --progr-tra=* | --program-tr=* | --program-t=*)
347 program_transform_name="$ac_optarg" ;;
349 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
350 | -silent | --silent | --silen | --sile | --sil)
351 silent=yes ;;
353 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
354 ac_prev=sbindir ;;
355 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
356 | --sbi=* | --sb=*)
357 sbindir="$ac_optarg" ;;
359 -sharedstatedir | --sharedstatedir | --sharedstatedi \
360 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
361 | --sharedst | --shareds | --shared | --share | --shar \
362 | --sha | --sh)
363 ac_prev=sharedstatedir ;;
364 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
365 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
366 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
367 | --sha=* | --sh=*)
368 sharedstatedir="$ac_optarg" ;;
370 -site | --site | --sit)
371 ac_prev=site ;;
372 -site=* | --site=* | --sit=*)
373 site="$ac_optarg" ;;
375 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
376 ac_prev=srcdir ;;
377 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
378 srcdir="$ac_optarg" ;;
380 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
381 | --syscon | --sysco | --sysc | --sys | --sy)
382 ac_prev=sysconfdir ;;
383 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
384 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
385 sysconfdir="$ac_optarg" ;;
387 -target | --target | --targe | --targ | --tar | --ta | --t)
388 ac_prev=target ;;
389 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
390 target="$ac_optarg" ;;
392 -v | -verbose | --verbose | --verbos | --verbo | --verb)
393 verbose=yes ;;
395 -version | --version | --versio | --versi | --vers)
396 echo "configure generated by autoconf version 2.13"
397 exit 0 ;;
399 -with-* | --with-*)
400 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
401 # Reject names that are not valid shell variable names.
402 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
403 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
405 ac_package=`echo $ac_package| sed 's/-/_/g'`
406 case "$ac_option" in
407 *=*) ;;
408 *) ac_optarg=yes ;;
409 esac
410 eval "with_${ac_package}='$ac_optarg'" ;;
412 -without-* | --without-*)
413 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
414 # Reject names that are not valid shell variable names.
415 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
416 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
418 ac_package=`echo $ac_package| sed 's/-/_/g'`
419 eval "with_${ac_package}=no" ;;
421 --x)
422 # Obsolete; use --with-x.
423 with_x=yes ;;
425 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
426 | --x-incl | --x-inc | --x-in | --x-i)
427 ac_prev=x_includes ;;
428 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
429 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
430 x_includes="$ac_optarg" ;;
432 -x-libraries | --x-libraries | --x-librarie | --x-librari \
433 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
434 ac_prev=x_libraries ;;
435 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
436 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
437 x_libraries="$ac_optarg" ;;
439 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
443 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
444 echo "configure: warning: $ac_option: invalid host type" 1>&2
446 if test "x$nonopt" != xNONE; then
447 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
449 nonopt="$ac_option"
452 esac
453 done
455 if test -n "$ac_prev"; then
456 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
459 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
461 # File descriptor usage:
462 # 0 standard input
463 # 1 file creation
464 # 2 errors and warnings
465 # 3 some systems may open it to /dev/tty
466 # 4 used on the Kubota Titan
467 # 6 checking for... messages and results
468 # 5 compiler messages saved in config.log
469 if test "$silent" = yes; then
470 exec 6>/dev/null
471 else
472 exec 6>&1
474 exec 5>./config.log
476 echo "\
477 This file contains any messages produced by compilers while
478 running configure, to aid debugging if configure makes a mistake.
479 " 1>&5
481 # Strip out --no-create and --no-recursion so they do not pile up.
482 # Also quote any args containing shell metacharacters.
483 ac_configure_args=
484 for ac_arg
486 case "$ac_arg" in
487 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
488 | --no-cr | --no-c) ;;
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
491 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
492 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
493 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
494 esac
495 done
497 # NLS nuisances.
498 # Only set these to C if already set. These must not be set unconditionally
499 # because not all systems understand e.g. LANG=C (notably SCO).
500 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
501 # Non-C LC_CTYPE values break the ctype check.
502 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
503 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
504 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
505 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
507 # confdefs.h avoids OS command line length limits that DEFS can exceed.
508 rm -rf conftest* confdefs.h
509 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
510 echo > confdefs.h
512 # A filename unique to this package, relative to the directory that
513 # configure is in, which we can look for to find out if srcdir is correct.
514 ac_unique_file=src/WindowMaker.h
516 # Find the source files, if location was not specified.
517 if test -z "$srcdir"; then
518 ac_srcdir_defaulted=yes
519 # Try the directory containing this script, then its parent.
520 ac_prog=$0
521 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
522 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
523 srcdir=$ac_confdir
524 if test ! -r $srcdir/$ac_unique_file; then
525 srcdir=..
527 else
528 ac_srcdir_defaulted=no
530 if test ! -r $srcdir/$ac_unique_file; then
531 if test "$ac_srcdir_defaulted" = yes; then
532 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
533 else
534 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
537 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
539 # Prefer explicitly selected file to automatically selected ones.
540 if test -z "$CONFIG_SITE"; then
541 if test "x$prefix" != xNONE; then
542 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
543 else
544 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
547 for ac_site_file in $CONFIG_SITE; do
548 if test -r "$ac_site_file"; then
549 echo "loading site script $ac_site_file"
550 . "$ac_site_file"
552 done
554 if test -r "$cache_file"; then
555 echo "loading cache $cache_file"
556 . $cache_file
557 else
558 echo "creating cache $cache_file"
559 > $cache_file
562 ac_ext=c
563 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
564 ac_cpp='$CPP $CPPFLAGS'
565 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
566 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
567 cross_compiling=$ac_cv_prog_cc_cross
569 ac_exeext=
570 ac_objext=o
571 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
572 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
573 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
574 ac_n= ac_c='
575 ' ac_t=' '
576 else
577 ac_n=-n ac_c= ac_t=
579 else
580 ac_n= ac_c='\c' ac_t=
587 ac_aux_dir=
588 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
589 if test -f $ac_dir/install-sh; then
590 ac_aux_dir=$ac_dir
591 ac_install_sh="$ac_aux_dir/install-sh -c"
592 break
593 elif test -f $ac_dir/install.sh; then
594 ac_aux_dir=$ac_dir
595 ac_install_sh="$ac_aux_dir/install.sh -c"
596 break
598 done
599 if test -z "$ac_aux_dir"; then
600 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
602 ac_config_guess=$ac_aux_dir/config.guess
603 ac_config_sub=$ac_aux_dir/config.sub
604 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
606 # Find a good install program. We prefer a C program (faster),
607 # so one script is as good as another. But avoid the broken or
608 # incompatible versions:
609 # SysV /etc/install, /usr/sbin/install
610 # SunOS /usr/etc/install
611 # IRIX /sbin/install
612 # AIX /bin/install
613 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
614 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
615 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
616 # ./install, which can be erroneously created by make from ./install.sh.
617 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
618 echo "configure:619: checking for a BSD compatible install" >&5
619 if test -z "$INSTALL"; then
620 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
621 echo $ac_n "(cached) $ac_c" 1>&6
622 else
623 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
624 for ac_dir in $PATH; do
625 # Account for people who put trailing slashes in PATH elements.
626 case "$ac_dir/" in
627 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
629 # OSF1 and SCO ODT 3.0 have their own names for install.
630 # Don't use installbsd from OSF since it installs stuff as root
631 # by default.
632 for ac_prog in ginstall scoinst install; do
633 if test -f $ac_dir/$ac_prog; then
634 if test $ac_prog = install &&
635 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
636 # AIX install. It has an incompatible calling convention.
638 else
639 ac_cv_path_install="$ac_dir/$ac_prog -c"
640 break 2
643 done
645 esac
646 done
647 IFS="$ac_save_IFS"
650 if test "${ac_cv_path_install+set}" = set; then
651 INSTALL="$ac_cv_path_install"
652 else
653 # As a last resort, use the slow shell script. We don't cache a
654 # path for INSTALL within a source directory, because that will
655 # break other packages using the cache if that directory is
656 # removed, or if the path is relative.
657 INSTALL="$ac_install_sh"
660 echo "$ac_t""$INSTALL" 1>&6
662 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
663 # It thinks the first close brace ends the variable substitution.
664 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
666 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
668 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
670 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
671 echo "configure:672: checking whether build environment is sane" >&5
672 # Just in case
673 sleep 1
674 echo timestamp > conftestfile
675 # Do `set' in a subshell so we don't clobber the current shell's
676 # arguments. Must try -L first in case configure is actually a
677 # symlink; some systems play weird games with the mod time of symlinks
678 # (eg FreeBSD returns the mod time of the symlink's containing
679 # directory).
680 if (
681 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
682 if test "$*" = "X"; then
683 # -L didn't work.
684 set X `ls -t $srcdir/configure conftestfile`
686 if test "$*" != "X $srcdir/configure conftestfile" \
687 && test "$*" != "X conftestfile $srcdir/configure"; then
689 # If neither matched, then we have a broken ls. This can happen
690 # if, for instance, CONFIG_SHELL is bash and it inherits a
691 # broken ls alias from the environment. This has actually
692 # happened. Such a system could not be considered "sane".
693 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
694 alias in your environment" 1>&2; exit 1; }
697 test "$2" = conftestfile
699 then
700 # Ok.
702 else
703 { echo "configure: error: newly created file is older than distributed files!
704 Check your system clock" 1>&2; exit 1; }
706 rm -f conftest*
707 echo "$ac_t""yes" 1>&6
708 if test "$program_transform_name" = s,x,x,; then
709 program_transform_name=
710 else
711 # Double any \ or $. echo might interpret backslashes.
712 cat <<\EOF_SED > conftestsed
713 s,\\,\\\\,g; s,\$,$$,g
714 EOF_SED
715 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
716 rm -f conftestsed
718 test "$program_prefix" != NONE &&
719 program_transform_name="s,^,${program_prefix},; $program_transform_name"
720 # Use a double $ so make ignores it.
721 test "$program_suffix" != NONE &&
722 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
724 # sed with no file args requires a program.
725 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
727 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
728 echo "configure:729: checking whether ${MAKE-make} sets \${MAKE}" >&5
729 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
730 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
731 echo $ac_n "(cached) $ac_c" 1>&6
732 else
733 cat > conftestmake <<\EOF
734 all:
735 @echo 'ac_maketemp="${MAKE}"'
737 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
738 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
739 if test -n "$ac_maketemp"; then
740 eval ac_cv_prog_make_${ac_make}_set=yes
741 else
742 eval ac_cv_prog_make_${ac_make}_set=no
744 rm -f conftestmake
746 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
747 echo "$ac_t""yes" 1>&6
748 SET_MAKE=
749 else
750 echo "$ac_t""no" 1>&6
751 SET_MAKE="MAKE=${MAKE-make}"
755 PACKAGE=WindowMaker
757 VERSION=0.54.0
759 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
760 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
762 cat >> confdefs.h <<EOF
763 #define PACKAGE "$PACKAGE"
766 cat >> confdefs.h <<EOF
767 #define VERSION "$VERSION"
772 missing_dir=`cd $ac_aux_dir && pwd`
773 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
774 echo "configure:775: checking for working aclocal" >&5
775 # Run test in a subshell; some versions of sh will print an error if
776 # an executable is not found, even if stderr is redirected.
777 # Redirect stdin to placate older versions of autoconf. Sigh.
778 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
779 ACLOCAL=aclocal
780 echo "$ac_t""found" 1>&6
781 else
782 ACLOCAL="$missing_dir/missing aclocal"
783 echo "$ac_t""missing" 1>&6
786 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
787 echo "configure:788: checking for working autoconf" >&5
788 # Run test in a subshell; some versions of sh will print an error if
789 # an executable is not found, even if stderr is redirected.
790 # Redirect stdin to placate older versions of autoconf. Sigh.
791 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
792 AUTOCONF=autoconf
793 echo "$ac_t""found" 1>&6
794 else
795 AUTOCONF="$missing_dir/missing autoconf"
796 echo "$ac_t""missing" 1>&6
799 echo $ac_n "checking for working automake""... $ac_c" 1>&6
800 echo "configure:801: checking for working automake" >&5
801 # Run test in a subshell; some versions of sh will print an error if
802 # an executable is not found, even if stderr is redirected.
803 # Redirect stdin to placate older versions of autoconf. Sigh.
804 if (automake --version) < /dev/null > /dev/null 2>&1; then
805 AUTOMAKE=automake
806 echo "$ac_t""found" 1>&6
807 else
808 AUTOMAKE="$missing_dir/missing automake"
809 echo "$ac_t""missing" 1>&6
812 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
813 echo "configure:814: checking for working autoheader" >&5
814 # Run test in a subshell; some versions of sh will print an error if
815 # an executable is not found, even if stderr is redirected.
816 # Redirect stdin to placate older versions of autoconf. Sigh.
817 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
818 AUTOHEADER=autoheader
819 echo "$ac_t""found" 1>&6
820 else
821 AUTOHEADER="$missing_dir/missing autoheader"
822 echo "$ac_t""missing" 1>&6
825 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
826 echo "configure:827: checking for working makeinfo" >&5
827 # Run test in a subshell; some versions of sh will print an error if
828 # an executable is not found, even if stderr is redirected.
829 # Redirect stdin to placate older versions of autoconf. Sigh.
830 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
831 MAKEINFO=makeinfo
832 echo "$ac_t""found" 1>&6
833 else
834 MAKEINFO="$missing_dir/missing makeinfo"
835 echo "$ac_t""missing" 1>&6
840 # Check whether --enable-shared or --disable-shared was given.
841 if test "${enable_shared+set}" = set; then
842 enableval="$enable_shared"
843 p=${PACKAGE-default}
844 case "$enableval" in
845 yes) enable_shared=yes ;;
846 no) enable_shared=no ;;
848 enable_shared=no
849 # Look at the argument we got. We use all the common list separators.
850 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
851 for pkg in $enableval; do
852 if test "X$pkg" = "X$p"; then
853 enable_shared=yes
855 done
856 IFS="$ac_save_ifs"
858 esac
859 else
860 enable_shared=yes
863 # Check whether --enable-static or --disable-static was given.
864 if test "${enable_static+set}" = set; then
865 enableval="$enable_static"
866 p=${PACKAGE-default}
867 case "$enableval" in
868 yes) enable_static=yes ;;
869 no) enable_static=no ;;
871 enable_static=no
872 # Look at the argument we got. We use all the common list separators.
873 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
874 for pkg in $enableval; do
875 if test "X$pkg" = "X$p"; then
876 enable_static=yes
878 done
879 IFS="$ac_save_ifs"
881 esac
882 else
883 enable_static=yes
886 # Check whether --enable-fast-install or --disable-fast-install was given.
887 if test "${enable_fast_install+set}" = set; then
888 enableval="$enable_fast_install"
889 p=${PACKAGE-default}
890 case "$enableval" in
891 yes) enable_fast_install=yes ;;
892 no) enable_fast_install=no ;;
894 enable_fast_install=no
895 # Look at the argument we got. We use all the common list separators.
896 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
897 for pkg in $enableval; do
898 if test "X$pkg" = "X$p"; then
899 enable_fast_install=yes
901 done
902 IFS="$ac_save_ifs"
904 esac
905 else
906 enable_fast_install=yes
910 # Make sure we can run config.sub.
911 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
912 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
915 echo $ac_n "checking host system type""... $ac_c" 1>&6
916 echo "configure:917: checking host system type" >&5
918 host_alias=$host
919 case "$host_alias" in
920 NONE)
921 case $nonopt in
922 NONE)
923 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
924 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
925 fi ;;
926 *) host_alias=$nonopt ;;
927 esac ;;
928 esac
930 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
931 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
932 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
933 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
934 echo "$ac_t""$host" 1>&6
936 echo $ac_n "checking build system type""... $ac_c" 1>&6
937 echo "configure:938: checking build system type" >&5
939 build_alias=$build
940 case "$build_alias" in
941 NONE)
942 case $nonopt in
943 NONE) build_alias=$host_alias ;;
944 *) build_alias=$nonopt ;;
945 esac ;;
946 esac
948 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
949 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
950 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
951 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
952 echo "$ac_t""$build" 1>&6
954 # Extract the first word of "ranlib", so it can be a program name with args.
955 set dummy ranlib; ac_word=$2
956 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
957 echo "configure:958: checking for $ac_word" >&5
958 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
959 echo $ac_n "(cached) $ac_c" 1>&6
960 else
961 if test -n "$RANLIB"; then
962 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
963 else
964 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
965 ac_dummy="$PATH"
966 for ac_dir in $ac_dummy; do
967 test -z "$ac_dir" && ac_dir=.
968 if test -f $ac_dir/$ac_word; then
969 ac_cv_prog_RANLIB="ranlib"
970 break
972 done
973 IFS="$ac_save_ifs"
974 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
977 RANLIB="$ac_cv_prog_RANLIB"
978 if test -n "$RANLIB"; then
979 echo "$ac_t""$RANLIB" 1>&6
980 else
981 echo "$ac_t""no" 1>&6
984 # Extract the first word of "gcc", so it can be a program name with args.
985 set dummy gcc; ac_word=$2
986 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
987 echo "configure:988: checking for $ac_word" >&5
988 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
989 echo $ac_n "(cached) $ac_c" 1>&6
990 else
991 if test -n "$CC"; then
992 ac_cv_prog_CC="$CC" # Let the user override the test.
993 else
994 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
995 ac_dummy="$PATH"
996 for ac_dir in $ac_dummy; do
997 test -z "$ac_dir" && ac_dir=.
998 if test -f $ac_dir/$ac_word; then
999 ac_cv_prog_CC="gcc"
1000 break
1002 done
1003 IFS="$ac_save_ifs"
1006 CC="$ac_cv_prog_CC"
1007 if test -n "$CC"; then
1008 echo "$ac_t""$CC" 1>&6
1009 else
1010 echo "$ac_t""no" 1>&6
1013 if test -z "$CC"; then
1014 # Extract the first word of "cc", so it can be a program name with args.
1015 set dummy cc; ac_word=$2
1016 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1017 echo "configure:1018: checking for $ac_word" >&5
1018 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1019 echo $ac_n "(cached) $ac_c" 1>&6
1020 else
1021 if test -n "$CC"; then
1022 ac_cv_prog_CC="$CC" # Let the user override the test.
1023 else
1024 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1025 ac_prog_rejected=no
1026 ac_dummy="$PATH"
1027 for ac_dir in $ac_dummy; do
1028 test -z "$ac_dir" && ac_dir=.
1029 if test -f $ac_dir/$ac_word; then
1030 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1031 ac_prog_rejected=yes
1032 continue
1034 ac_cv_prog_CC="cc"
1035 break
1037 done
1038 IFS="$ac_save_ifs"
1039 if test $ac_prog_rejected = yes; then
1040 # We found a bogon in the path, so make sure we never use it.
1041 set dummy $ac_cv_prog_CC
1042 shift
1043 if test $# -gt 0; then
1044 # We chose a different compiler from the bogus one.
1045 # However, it has the same basename, so the bogon will be chosen
1046 # first if we set CC to just the basename; use the full file name.
1047 shift
1048 set dummy "$ac_dir/$ac_word" "$@"
1049 shift
1050 ac_cv_prog_CC="$@"
1055 CC="$ac_cv_prog_CC"
1056 if test -n "$CC"; then
1057 echo "$ac_t""$CC" 1>&6
1058 else
1059 echo "$ac_t""no" 1>&6
1062 if test -z "$CC"; then
1063 case "`uname -s`" in
1064 *win32* | *WIN32*)
1065 # Extract the first word of "cl", so it can be a program name with args.
1066 set dummy cl; ac_word=$2
1067 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1068 echo "configure:1069: checking for $ac_word" >&5
1069 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1070 echo $ac_n "(cached) $ac_c" 1>&6
1071 else
1072 if test -n "$CC"; then
1073 ac_cv_prog_CC="$CC" # Let the user override the test.
1074 else
1075 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1076 ac_dummy="$PATH"
1077 for ac_dir in $ac_dummy; do
1078 test -z "$ac_dir" && ac_dir=.
1079 if test -f $ac_dir/$ac_word; then
1080 ac_cv_prog_CC="cl"
1081 break
1083 done
1084 IFS="$ac_save_ifs"
1087 CC="$ac_cv_prog_CC"
1088 if test -n "$CC"; then
1089 echo "$ac_t""$CC" 1>&6
1090 else
1091 echo "$ac_t""no" 1>&6
1094 esac
1096 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1099 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1100 echo "configure:1101: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1102 ac_ext=c
1103 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1104 ac_cpp='$CPP $CPPFLAGS'
1105 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1106 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1107 cross_compiling=$ac_cv_prog_cc_cross
1109 cat > conftest.$ac_ext << EOF
1111 #line 1112 "configure"
1112 #include "confdefs.h"
1114 main(){return(0);}
1116 if { (eval echo configure:1117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1117 ac_cv_prog_cc_works=yes
1118 # If we can't run a trivial program, we are probably using a cross compiler.
1119 if (./conftest; exit) 2>/dev/null; then
1120 ac_cv_prog_cc_cross=no
1121 else
1122 ac_cv_prog_cc_cross=yes
1124 else
1125 echo "configure: failed program was:" >&5
1126 cat conftest.$ac_ext >&5
1127 ac_cv_prog_cc_works=no
1129 rm -fr conftest*
1130 ac_ext=c
1131 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1132 ac_cpp='$CPP $CPPFLAGS'
1133 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1134 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1135 cross_compiling=$ac_cv_prog_cc_cross
1137 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1138 if test $ac_cv_prog_cc_works = no; then
1139 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1141 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1142 echo "configure:1143: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1143 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1144 cross_compiling=$ac_cv_prog_cc_cross
1146 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1147 echo "configure:1148: checking whether we are using GNU C" >&5
1148 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1149 echo $ac_n "(cached) $ac_c" 1>&6
1150 else
1151 cat > conftest.c <<EOF
1152 #ifdef __GNUC__
1153 yes;
1154 #endif
1156 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1157: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1157 ac_cv_prog_gcc=yes
1158 else
1159 ac_cv_prog_gcc=no
1163 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1165 if test $ac_cv_prog_gcc = yes; then
1166 GCC=yes
1167 else
1168 GCC=
1171 ac_test_CFLAGS="${CFLAGS+set}"
1172 ac_save_CFLAGS="$CFLAGS"
1173 CFLAGS=
1174 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1175 echo "configure:1176: checking whether ${CC-cc} accepts -g" >&5
1176 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1177 echo $ac_n "(cached) $ac_c" 1>&6
1178 else
1179 echo 'void f(){}' > conftest.c
1180 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1181 ac_cv_prog_cc_g=yes
1182 else
1183 ac_cv_prog_cc_g=no
1185 rm -f conftest*
1189 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1190 if test "$ac_test_CFLAGS" = set; then
1191 CFLAGS="$ac_save_CFLAGS"
1192 elif test $ac_cv_prog_cc_g = yes; then
1193 if test "$GCC" = yes; then
1194 CFLAGS="-g -O2"
1195 else
1196 CFLAGS="-g"
1198 else
1199 if test "$GCC" = yes; then
1200 CFLAGS="-O2"
1201 else
1202 CFLAGS=
1206 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1207 if test "${with_gnu_ld+set}" = set; then
1208 withval="$with_gnu_ld"
1209 test "$withval" = no || with_gnu_ld=yes
1210 else
1211 with_gnu_ld=no
1214 ac_prog=ld
1215 if test "$ac_cv_prog_gcc" = yes; then
1216 # Check if gcc -print-prog-name=ld gives a path.
1217 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1218 echo "configure:1219: checking for ld used by GCC" >&5
1219 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1220 case "$ac_prog" in
1221 # Accept absolute paths.
1222 [\\/]* | [A-Za-z]:[\\/]*)
1223 re_direlt='/[^/][^/]*/\.\./'
1224 # Canonicalize the path of ld
1225 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1226 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1227 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1228 done
1229 test -z "$LD" && LD="$ac_prog"
1232 # If it fails, then pretend we aren't using GCC.
1233 ac_prog=ld
1236 # If it is relative, then search for the first ld in PATH.
1237 with_gnu_ld=unknown
1239 esac
1240 elif test "$with_gnu_ld" = yes; then
1241 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1242 echo "configure:1243: checking for GNU ld" >&5
1243 else
1244 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1245 echo "configure:1246: checking for non-GNU ld" >&5
1247 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1248 echo $ac_n "(cached) $ac_c" 1>&6
1249 else
1250 if test -z "$LD"; then
1251 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1252 for ac_dir in $PATH; do
1253 test -z "$ac_dir" && ac_dir=.
1254 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1255 ac_cv_path_LD="$ac_dir/$ac_prog"
1256 # Check to see if the program is GNU ld. I'd rather use --version,
1257 # but apparently some GNU ld's only accept -v.
1258 # Break only if it was the GNU/non-GNU ld that we prefer.
1259 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1260 test "$with_gnu_ld" != no && break
1261 else
1262 test "$with_gnu_ld" != yes && break
1265 done
1266 IFS="$ac_save_ifs"
1267 else
1268 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1272 LD="$ac_cv_path_LD"
1273 if test -n "$LD"; then
1274 echo "$ac_t""$LD" 1>&6
1275 else
1276 echo "$ac_t""no" 1>&6
1278 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1280 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1281 echo "configure:1282: checking if the linker ($LD) is GNU ld" >&5
1282 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1283 echo $ac_n "(cached) $ac_c" 1>&6
1284 else
1285 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1286 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1287 ac_cv_prog_gnu_ld=yes
1288 else
1289 ac_cv_prog_gnu_ld=no
1293 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1296 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1297 echo "configure:1298: checking for BSD-compatible nm" >&5
1298 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1299 echo $ac_n "(cached) $ac_c" 1>&6
1300 else
1301 if test -n "$NM"; then
1302 # Let the user override the test.
1303 ac_cv_path_NM="$NM"
1304 else
1305 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1306 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1307 test -z "$ac_dir" && ac_dir=.
1308 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
1309 # Check to see if the nm accepts a BSD-compat flag.
1310 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1311 # nm: unknown option "B" ignored
1312 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1313 ac_cv_path_NM="$ac_dir/nm -B"
1314 break
1315 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1316 ac_cv_path_NM="$ac_dir/nm -p"
1317 break
1318 else
1319 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1320 continue # so that we can try to find one that supports BSD flags
1323 done
1324 IFS="$ac_save_ifs"
1325 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1329 NM="$ac_cv_path_NM"
1330 echo "$ac_t""$NM" 1>&6
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
1355 # Check for any special flags to pass to ltconfig.
1356 libtool_flags="--cache-file=$cache_file"
1357 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1358 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1359 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1360 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1361 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1364 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1365 if test "${enable_libtool_lock+set}" = set; then
1366 enableval="$enable_libtool_lock"
1370 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1371 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1373 # Some flags need to be propagated to the compiler or linker for good
1374 # libtool support.
1375 case "$host" in
1376 *-*-irix6*)
1377 # Find out which ABI we are using.
1378 echo '#line 1379 "configure"' > conftest.$ac_ext
1379 if { (eval echo configure:1380: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1380 case "`/usr/bin/file conftest.o`" in
1381 *32-bit*)
1382 LD="${LD-ld} -32"
1384 *N32*)
1385 LD="${LD-ld} -n32"
1387 *64-bit*)
1388 LD="${LD-ld} -64"
1390 esac
1392 rm -rf conftest*
1395 *-*-sco3.2v5*)
1396 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1397 SAVE_CFLAGS="$CFLAGS"
1398 CFLAGS="$CFLAGS -belf"
1399 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1400 echo "configure:1401: checking whether the C compiler needs -belf" >&5
1401 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1402 echo $ac_n "(cached) $ac_c" 1>&6
1403 else
1404 cat > conftest.$ac_ext <<EOF
1405 #line 1406 "configure"
1406 #include "confdefs.h"
1408 int main() {
1410 ; return 0; }
1412 if { (eval echo configure:1413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1413 rm -rf conftest*
1414 lt_cv_cc_needs_belf=yes
1415 else
1416 echo "configure: failed program was:" >&5
1417 cat conftest.$ac_ext >&5
1418 rm -rf conftest*
1419 lt_cv_cc_needs_belf=no
1421 rm -f conftest*
1424 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1425 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1426 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1427 CFLAGS="$SAVE_CFLAGS"
1432 esac
1435 # Save cache, so that ltconfig can load it
1436 cat > confcache <<\EOF
1437 # This file is a shell script that caches the results of configure
1438 # tests run on this system so they can be shared between configure
1439 # scripts and configure runs. It is not useful on other systems.
1440 # If it contains results you don't want to keep, you may remove or edit it.
1442 # By default, configure uses ./config.cache as the cache file,
1443 # creating it if it does not exist already. You can give configure
1444 # the --cache-file=FILE option to use a different cache file; that is
1445 # what configure does when it calls configure scripts in
1446 # subdirectories, so they share the cache.
1447 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1448 # config.status only pays attention to the cache file if you give it the
1449 # --recheck option to rerun configure.
1452 # The following way of writing the cache mishandles newlines in values,
1453 # but we know of no workaround that is simple, portable, and efficient.
1454 # So, don't put newlines in cache variables' values.
1455 # Ultrix sh set writes to stderr and can't be redirected directly,
1456 # and sets the high bit in the cache file unless we assign to the vars.
1457 (set) 2>&1 |
1458 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1459 *ac_space=\ *)
1460 # `set' does not quote correctly, so add quotes (double-quote substitution
1461 # turns \\\\ into \\, and sed turns \\ into \).
1462 sed -n \
1463 -e "s/'/'\\\\''/g" \
1464 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1467 # `set' quotes correctly as required by POSIX, so do not add quotes.
1468 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1470 esac >> confcache
1471 if cmp -s $cache_file confcache; then
1473 else
1474 if test -w $cache_file; then
1475 echo "updating cache $cache_file"
1476 cat confcache > $cache_file
1477 else
1478 echo "not updating unwritable cache $cache_file"
1481 rm -f confcache
1484 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1485 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1486 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1487 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
1488 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
1489 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1490 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
1491 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1493 # Reload cache, that may have been modified by ltconfig
1494 if test -r "$cache_file"; then
1495 echo "loading cache $cache_file"
1496 . $cache_file
1497 else
1498 echo "creating cache $cache_file"
1499 > $cache_file
1503 # This can be used to rebuild libtool when needed
1504 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1506 # Always use our own libtool.
1507 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1509 # Redirect the config.log output again, so that the ltconfig log is not
1510 # clobbered by the next message.
1511 exec 5>>./config.log
1514 # by Marcelo Magallon <mmagallo@efis.ucr.ac.cr>
1515 # Turn around -rpath problem with libtool 1.0c
1516 # This define should be improbable enough to not conflict with anything
1517 case ${host} in
1518 *-pc-linux-gnu)
1519 echo "$ac_t""Fixing libtool for -rpath problems." 1>&6
1520 sed < libtool > libtool-2 \
1521 's/^hardcode_libdir_flag_spec.*$/hardcode_libdir_flag_spec=" -D__LIBTOOL_IS_A_FOOL__ "/'
1522 mv libtool-2 libtool
1523 chmod 755 libtool
1525 esac
1535 # Make sure we can run config.sub.
1536 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1537 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1540 echo $ac_n "checking host system type""... $ac_c" 1>&6
1541 echo "configure:1542: checking host system type" >&5
1543 host_alias=$host
1544 case "$host_alias" in
1545 NONE)
1546 case $nonopt in
1547 NONE)
1548 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1549 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1550 fi ;;
1551 *) host_alias=$nonopt ;;
1552 esac ;;
1553 esac
1555 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1556 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1557 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1558 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1559 echo "$ac_t""$host" 1>&6
1563 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1564 echo "configure:1565: checking for POSIXized ISC" >&5
1565 if test -d /etc/conf/kconfig.d &&
1566 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1567 then
1568 echo "$ac_t""yes" 1>&6
1569 ISC=yes # If later tests want to check for ISC.
1570 cat >> confdefs.h <<\EOF
1571 #define _POSIX_SOURCE 1
1574 if test "$GCC" = yes; then
1575 CC="$CC -posix"
1576 else
1577 CC="$CC -Xp"
1579 else
1580 echo "$ac_t""no" 1>&6
1581 ISC=
1584 # Extract the first word of "gcc", so it can be a program name with args.
1585 set dummy gcc; ac_word=$2
1586 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1587 echo "configure:1588: checking for $ac_word" >&5
1588 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1589 echo $ac_n "(cached) $ac_c" 1>&6
1590 else
1591 if test -n "$CC"; then
1592 ac_cv_prog_CC="$CC" # Let the user override the test.
1593 else
1594 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1595 ac_dummy="$PATH"
1596 for ac_dir in $ac_dummy; do
1597 test -z "$ac_dir" && ac_dir=.
1598 if test -f $ac_dir/$ac_word; then
1599 ac_cv_prog_CC="gcc"
1600 break
1602 done
1603 IFS="$ac_save_ifs"
1606 CC="$ac_cv_prog_CC"
1607 if test -n "$CC"; then
1608 echo "$ac_t""$CC" 1>&6
1609 else
1610 echo "$ac_t""no" 1>&6
1613 if test -z "$CC"; then
1614 # Extract the first word of "cc", so it can be a program name with args.
1615 set dummy cc; ac_word=$2
1616 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1617 echo "configure:1618: checking for $ac_word" >&5
1618 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1619 echo $ac_n "(cached) $ac_c" 1>&6
1620 else
1621 if test -n "$CC"; then
1622 ac_cv_prog_CC="$CC" # Let the user override the test.
1623 else
1624 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1625 ac_prog_rejected=no
1626 ac_dummy="$PATH"
1627 for ac_dir in $ac_dummy; do
1628 test -z "$ac_dir" && ac_dir=.
1629 if test -f $ac_dir/$ac_word; then
1630 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1631 ac_prog_rejected=yes
1632 continue
1634 ac_cv_prog_CC="cc"
1635 break
1637 done
1638 IFS="$ac_save_ifs"
1639 if test $ac_prog_rejected = yes; then
1640 # We found a bogon in the path, so make sure we never use it.
1641 set dummy $ac_cv_prog_CC
1642 shift
1643 if test $# -gt 0; then
1644 # We chose a different compiler from the bogus one.
1645 # However, it has the same basename, so the bogon will be chosen
1646 # first if we set CC to just the basename; use the full file name.
1647 shift
1648 set dummy "$ac_dir/$ac_word" "$@"
1649 shift
1650 ac_cv_prog_CC="$@"
1655 CC="$ac_cv_prog_CC"
1656 if test -n "$CC"; then
1657 echo "$ac_t""$CC" 1>&6
1658 else
1659 echo "$ac_t""no" 1>&6
1662 if test -z "$CC"; then
1663 case "`uname -s`" in
1664 *win32* | *WIN32*)
1665 # Extract the first word of "cl", so it can be a program name with args.
1666 set dummy cl; ac_word=$2
1667 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1668 echo "configure:1669: checking for $ac_word" >&5
1669 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1670 echo $ac_n "(cached) $ac_c" 1>&6
1671 else
1672 if test -n "$CC"; then
1673 ac_cv_prog_CC="$CC" # Let the user override the test.
1674 else
1675 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1676 ac_dummy="$PATH"
1677 for ac_dir in $ac_dummy; do
1678 test -z "$ac_dir" && ac_dir=.
1679 if test -f $ac_dir/$ac_word; then
1680 ac_cv_prog_CC="cl"
1681 break
1683 done
1684 IFS="$ac_save_ifs"
1687 CC="$ac_cv_prog_CC"
1688 if test -n "$CC"; then
1689 echo "$ac_t""$CC" 1>&6
1690 else
1691 echo "$ac_t""no" 1>&6
1694 esac
1696 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1699 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1700 echo "configure:1701: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1702 ac_ext=c
1703 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1704 ac_cpp='$CPP $CPPFLAGS'
1705 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1706 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1707 cross_compiling=$ac_cv_prog_cc_cross
1709 cat > conftest.$ac_ext << EOF
1711 #line 1712 "configure"
1712 #include "confdefs.h"
1714 main(){return(0);}
1716 if { (eval echo configure:1717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1717 ac_cv_prog_cc_works=yes
1718 # If we can't run a trivial program, we are probably using a cross compiler.
1719 if (./conftest; exit) 2>/dev/null; then
1720 ac_cv_prog_cc_cross=no
1721 else
1722 ac_cv_prog_cc_cross=yes
1724 else
1725 echo "configure: failed program was:" >&5
1726 cat conftest.$ac_ext >&5
1727 ac_cv_prog_cc_works=no
1729 rm -fr conftest*
1730 ac_ext=c
1731 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1732 ac_cpp='$CPP $CPPFLAGS'
1733 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1734 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1735 cross_compiling=$ac_cv_prog_cc_cross
1737 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1738 if test $ac_cv_prog_cc_works = no; then
1739 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1741 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1742 echo "configure:1743: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1743 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1744 cross_compiling=$ac_cv_prog_cc_cross
1746 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1747 echo "configure:1748: checking whether we are using GNU C" >&5
1748 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1749 echo $ac_n "(cached) $ac_c" 1>&6
1750 else
1751 cat > conftest.c <<EOF
1752 #ifdef __GNUC__
1753 yes;
1754 #endif
1756 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1757: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1757 ac_cv_prog_gcc=yes
1758 else
1759 ac_cv_prog_gcc=no
1763 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1765 if test $ac_cv_prog_gcc = yes; then
1766 GCC=yes
1767 else
1768 GCC=
1771 ac_test_CFLAGS="${CFLAGS+set}"
1772 ac_save_CFLAGS="$CFLAGS"
1773 CFLAGS=
1774 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1775 echo "configure:1776: checking whether ${CC-cc} accepts -g" >&5
1776 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1777 echo $ac_n "(cached) $ac_c" 1>&6
1778 else
1779 echo 'void f(){}' > conftest.c
1780 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1781 ac_cv_prog_cc_g=yes
1782 else
1783 ac_cv_prog_cc_g=no
1785 rm -f conftest*
1789 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1790 if test "$ac_test_CFLAGS" = set; then
1791 CFLAGS="$ac_save_CFLAGS"
1792 elif test $ac_cv_prog_cc_g = yes; then
1793 if test "$GCC" = yes; then
1794 CFLAGS="-g -O2"
1795 else
1796 CFLAGS="-g"
1798 else
1799 if test "$GCC" = yes; then
1800 CFLAGS="-O2"
1801 else
1802 CFLAGS=
1806 #AC_PROG_RANLIB
1807 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1808 echo "configure:1809: checking whether ln -s works" >&5
1809 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1810 echo $ac_n "(cached) $ac_c" 1>&6
1811 else
1812 rm -f conftestdata
1813 if ln -s X conftestdata 2>/dev/null
1814 then
1815 rm -f conftestdata
1816 ac_cv_prog_LN_S="ln -s"
1817 else
1818 ac_cv_prog_LN_S=ln
1821 LN_S="$ac_cv_prog_LN_S"
1822 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1823 echo "$ac_t""yes" 1>&6
1824 else
1825 echo "$ac_t""no" 1>&6
1828 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1829 echo "configure:1830: checking how to run the C preprocessor" >&5
1830 # On Suns, sometimes $CPP names a directory.
1831 if test -n "$CPP" && test -d "$CPP"; then
1832 CPP=
1834 if test -z "$CPP"; then
1835 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1836 echo $ac_n "(cached) $ac_c" 1>&6
1837 else
1838 # This must be in double quotes, not single quotes, because CPP may get
1839 # substituted into the Makefile and "${CC-cc}" will confuse make.
1840 CPP="${CC-cc} -E"
1841 # On the NeXT, cc -E runs the code through the compiler's parser,
1842 # not just through cpp.
1843 cat > conftest.$ac_ext <<EOF
1844 #line 1845 "configure"
1845 #include "confdefs.h"
1846 #include <assert.h>
1847 Syntax Error
1849 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1850 { (eval echo configure:1851: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1851 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1852 if test -z "$ac_err"; then
1854 else
1855 echo "$ac_err" >&5
1856 echo "configure: failed program was:" >&5
1857 cat conftest.$ac_ext >&5
1858 rm -rf conftest*
1859 CPP="${CC-cc} -E -traditional-cpp"
1860 cat > conftest.$ac_ext <<EOF
1861 #line 1862 "configure"
1862 #include "confdefs.h"
1863 #include <assert.h>
1864 Syntax Error
1866 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1867 { (eval echo configure:1868: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1868 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1869 if test -z "$ac_err"; then
1871 else
1872 echo "$ac_err" >&5
1873 echo "configure: failed program was:" >&5
1874 cat conftest.$ac_ext >&5
1875 rm -rf conftest*
1876 CPP="${CC-cc} -nologo -E"
1877 cat > conftest.$ac_ext <<EOF
1878 #line 1879 "configure"
1879 #include "confdefs.h"
1880 #include <assert.h>
1881 Syntax Error
1883 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1884 { (eval echo configure:1885: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1885 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1886 if test -z "$ac_err"; then
1888 else
1889 echo "$ac_err" >&5
1890 echo "configure: failed program was:" >&5
1891 cat conftest.$ac_ext >&5
1892 rm -rf conftest*
1893 CPP=/lib/cpp
1895 rm -f conftest*
1897 rm -f conftest*
1899 rm -f conftest*
1900 ac_cv_prog_CPP="$CPP"
1902 CPP="$ac_cv_prog_CPP"
1903 else
1904 ac_cv_prog_CPP="$CPP"
1906 echo "$ac_t""$CPP" 1>&6
1908 if test $ac_cv_prog_gcc = yes; then
1909 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1910 echo "configure:1911: checking whether ${CC-cc} needs -traditional" >&5
1911 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1912 echo $ac_n "(cached) $ac_c" 1>&6
1913 else
1914 ac_pattern="Autoconf.*'x'"
1915 cat > conftest.$ac_ext <<EOF
1916 #line 1917 "configure"
1917 #include "confdefs.h"
1918 #include <sgtty.h>
1919 Autoconf TIOCGETP
1921 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1922 egrep "$ac_pattern" >/dev/null 2>&1; then
1923 rm -rf conftest*
1924 ac_cv_prog_gcc_traditional=yes
1925 else
1926 rm -rf conftest*
1927 ac_cv_prog_gcc_traditional=no
1929 rm -f conftest*
1932 if test $ac_cv_prog_gcc_traditional = no; then
1933 cat > conftest.$ac_ext <<EOF
1934 #line 1935 "configure"
1935 #include "confdefs.h"
1936 #include <termio.h>
1937 Autoconf TCGETA
1939 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1940 egrep "$ac_pattern" >/dev/null 2>&1; then
1941 rm -rf conftest*
1942 ac_cv_prog_gcc_traditional=yes
1944 rm -f conftest*
1949 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1950 if test $ac_cv_prog_gcc_traditional = yes; then
1951 CC="$CC -traditional"
1958 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1959 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1962 _bindir=`eval echo $bindir`
1963 _bindir=`eval echo $_bindir`
1965 _libdir=`eval echo $libdir`
1966 _libdir=`eval echo $_libdir`
1967 lib_search_path="-L$_libdir"
1969 inc_search_path=`eval echo $includedir`
1970 inc_search_path="-I`eval echo $inc_search_path`"
1975 echo $ac_n "checking for RedHat system""... $ac_c" 1>&6
1976 echo "configure:1977: checking for RedHat system" >&5
1977 wm_check_flag='no :)'
1978 rh_is_redhat=no
1979 if test -f /etc/redhat-release; then
1980 wm_check_flag=yes
1981 rh_is_redhat=yes
1983 echo "$ac_t""$wm_check_flag" 1>&6
1985 mins_found=no
1986 bugs_found=no
1987 if test "$wm_check_flag" = yes; then
1988 echo
1989 echo "configure: warning: Red Hat system; checking for Red-Hat-specific bugs." 1>&2
1990 echo
1992 # Check old wmaker from RedHat
1994 if test "$prefix" != "/usr/X11R6" -a "$prefix" != "/usr/X11"; then
1995 echo $ac_n "checking for multiple installed wmaker versions""... $ac_c" 1>&6
1996 echo "configure:1997: checking for multiple installed wmaker versions" >&5
1997 if test -f /usr/X11R6/bin/wmaker; then
1998 echo "$ac_t""uh oh" 1>&6
1999 mins_found=yes
2000 rh_old_wmaker=yes
2001 else
2002 rh_old_wmaker=no
2003 echo "$ac_t""no apparent problems" 1>&6
2007 # Check for infamous en_RN bug
2008 # Wont work because autoconf will change LANG in the beginning of the
2009 # script.
2012 #AC_MSG_CHECKING(for silly en_RN joke that only causes headaches)
2013 #echo $LANG
2014 #if test "x$LANG" = xen_RN; then
2015 #AC_MSG_RESULT(uh oh)
2016 #AC_MSG_WARN([the LANG environment variable is set to the en_RN
2017 #locale. Please unset it or you will have mysterious problems when
2018 #using various software packages.])
2019 #bugs_found=yes
2020 #else
2021 #AC_MSG_RESULT(no problem)
2024 # If binary installation path is /usr/local/bin, check if it's in PATH
2026 if test "$_bindir" = "/usr/local/bin"; then
2027 echo $ac_n "checking if /usr/local/bin is in the search PATH""... $ac_c" 1>&6
2028 echo "configure:2029: checking if /usr/local/bin is in the search PATH" >&5
2029 wm_check_flag=no
2030 rh_missing_usr_local_bin=yes
2031 old_IFS="$IFS"
2032 IFS=":"
2033 for i in $PATH; do
2034 if test "x$i" = "x/usr/local/bin"; then
2035 wm_check_flag=yes
2036 rh_missing_usr_local_bin=no
2037 break;
2039 done
2040 IFS="$old_IFS"
2041 if test "$wm_check_flag" = no; then
2042 echo "$ac_t""uh oh" 1>&6
2043 bugs_found=yes
2044 else
2045 echo "$ac_t""no problem" 1>&6
2049 # If library installation path is /usr/local/lib,
2050 # check if it's in /etc/ld.so.conf
2052 if test "$_libdir" = "/usr/local/lib"; then
2053 wm_check_flag=yes
2054 rh_missing_usr_local_lib=no
2055 echo $ac_n "checking if /usr/local/lib is in /etc/ld.so.conf""... $ac_c" 1>&6
2056 echo "configure:2057: checking if /usr/local/lib is in /etc/ld.so.conf" >&5
2057 test -z "`grep /usr/local/lib /etc/ld.so.conf`"
2058 test "$?" -eq 0 && wm_check_flag=no
2059 if test "$wm_check_flag" = no; then
2060 echo "$ac_t""uh oh" 1>&6
2061 rh_missing_usr_local_lib=yes
2062 bugs_found=yes
2063 else
2064 echo "$ac_t""no problem" 1>&6
2068 # Check for symbolic links
2070 echo $ac_n "checking for /usr/include/X11 symbolic link""... $ac_c" 1>&6
2071 echo "configure:2072: checking for /usr/include/X11 symbolic link" >&5
2072 rh_missing_usr_include_x11=no
2073 if test -d "/usr/include/X11"; then
2074 echo "$ac_t""found" 1>&6
2075 else
2076 echo "$ac_t""uh oh" 1>&6
2077 rh_missing_usr_include_x11=yes
2078 mins_found=yes
2082 # Check for /lib/cpp
2084 echo $ac_n "checking for /lib/cpp""... $ac_c" 1>&6
2085 echo "configure:2086: checking for /lib/cpp" >&5
2086 rh_missing_lib_cpp=no
2087 if test -f "/lib/cpp"; then
2088 echo "$ac_t""found" 1>&6
2089 else
2090 echo "$ac_t""uh oh" 1>&6
2091 rh_missing_lib_cpp=yes
2092 bugs_found=yes
2095 echo
2100 # Check whether --with-libs-from or --without-libs-from was given.
2101 if test "${with_libs_from+set}" = set; then
2102 withval="$with_libs_from"
2103 lib_search_path="$withval $lib_search_path"
2107 # Check whether --with-incs-from or --without-incs-from was given.
2108 if test "${with_incs_from+set}" = set; then
2109 withval="$with_incs_from"
2110 inc_search_path="$withval $inc_search_path"
2116 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2117 echo "configure:2118: checking for vprintf" >&5
2118 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2119 echo $ac_n "(cached) $ac_c" 1>&6
2120 else
2121 cat > conftest.$ac_ext <<EOF
2122 #line 2123 "configure"
2123 #include "confdefs.h"
2124 /* System header to define __stub macros and hopefully few prototypes,
2125 which can conflict with char vprintf(); below. */
2126 #include <assert.h>
2127 /* Override any gcc2 internal prototype to avoid an error. */
2128 /* We use char because int might match the return type of a gcc2
2129 builtin and then its argument prototype would still apply. */
2130 char vprintf();
2132 int main() {
2134 /* The GNU C library defines this for functions which it implements
2135 to always fail with ENOSYS. Some functions are actually named
2136 something starting with __ and the normal name is an alias. */
2137 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2138 choke me
2139 #else
2140 vprintf();
2141 #endif
2143 ; return 0; }
2145 if { (eval echo configure:2146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2146 rm -rf conftest*
2147 eval "ac_cv_func_vprintf=yes"
2148 else
2149 echo "configure: failed program was:" >&5
2150 cat conftest.$ac_ext >&5
2151 rm -rf conftest*
2152 eval "ac_cv_func_vprintf=no"
2154 rm -f conftest*
2157 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2158 echo "$ac_t""yes" 1>&6
2159 cat >> confdefs.h <<\EOF
2160 #define HAVE_VPRINTF 1
2163 else
2164 echo "$ac_t""no" 1>&6
2167 if test "$ac_cv_func_vprintf" != yes; then
2168 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2169 echo "configure:2170: checking for _doprnt" >&5
2170 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2171 echo $ac_n "(cached) $ac_c" 1>&6
2172 else
2173 cat > conftest.$ac_ext <<EOF
2174 #line 2175 "configure"
2175 #include "confdefs.h"
2176 /* System header to define __stub macros and hopefully few prototypes,
2177 which can conflict with char _doprnt(); below. */
2178 #include <assert.h>
2179 /* Override any gcc2 internal prototype to avoid an error. */
2180 /* We use char because int might match the return type of a gcc2
2181 builtin and then its argument prototype would still apply. */
2182 char _doprnt();
2184 int main() {
2186 /* The GNU C library defines this for functions which it implements
2187 to always fail with ENOSYS. Some functions are actually named
2188 something starting with __ and the normal name is an alias. */
2189 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2190 choke me
2191 #else
2192 _doprnt();
2193 #endif
2195 ; return 0; }
2197 if { (eval echo configure:2198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2198 rm -rf conftest*
2199 eval "ac_cv_func__doprnt=yes"
2200 else
2201 echo "configure: failed program was:" >&5
2202 cat conftest.$ac_ext >&5
2203 rm -rf conftest*
2204 eval "ac_cv_func__doprnt=no"
2206 rm -f conftest*
2209 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2210 echo "$ac_t""yes" 1>&6
2211 cat >> confdefs.h <<\EOF
2212 #define HAVE_DOPRNT 1
2215 else
2216 echo "$ac_t""no" 1>&6
2221 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2222 # for constant arguments. Useless!
2223 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2224 echo "configure:2225: checking for working alloca.h" >&5
2225 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2226 echo $ac_n "(cached) $ac_c" 1>&6
2227 else
2228 cat > conftest.$ac_ext <<EOF
2229 #line 2230 "configure"
2230 #include "confdefs.h"
2231 #include <alloca.h>
2232 int main() {
2233 char *p = alloca(2 * sizeof(int));
2234 ; return 0; }
2236 if { (eval echo configure:2237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2237 rm -rf conftest*
2238 ac_cv_header_alloca_h=yes
2239 else
2240 echo "configure: failed program was:" >&5
2241 cat conftest.$ac_ext >&5
2242 rm -rf conftest*
2243 ac_cv_header_alloca_h=no
2245 rm -f conftest*
2248 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2249 if test $ac_cv_header_alloca_h = yes; then
2250 cat >> confdefs.h <<\EOF
2251 #define HAVE_ALLOCA_H 1
2256 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2257 echo "configure:2258: checking for alloca" >&5
2258 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2259 echo $ac_n "(cached) $ac_c" 1>&6
2260 else
2261 cat > conftest.$ac_ext <<EOF
2262 #line 2263 "configure"
2263 #include "confdefs.h"
2265 #ifdef __GNUC__
2266 # define alloca __builtin_alloca
2267 #else
2268 # ifdef _MSC_VER
2269 # include <malloc.h>
2270 # define alloca _alloca
2271 # else
2272 # if HAVE_ALLOCA_H
2273 # include <alloca.h>
2274 # else
2275 # ifdef _AIX
2276 #pragma alloca
2277 # else
2278 # ifndef alloca /* predefined by HP cc +Olibcalls */
2279 char *alloca ();
2280 # endif
2281 # endif
2282 # endif
2283 # endif
2284 #endif
2286 int main() {
2287 char *p = (char *) alloca(1);
2288 ; return 0; }
2290 if { (eval echo configure:2291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2291 rm -rf conftest*
2292 ac_cv_func_alloca_works=yes
2293 else
2294 echo "configure: failed program was:" >&5
2295 cat conftest.$ac_ext >&5
2296 rm -rf conftest*
2297 ac_cv_func_alloca_works=no
2299 rm -f conftest*
2302 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2303 if test $ac_cv_func_alloca_works = yes; then
2304 cat >> confdefs.h <<\EOF
2305 #define HAVE_ALLOCA 1
2310 if test $ac_cv_func_alloca_works = no; then
2311 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2312 # that cause trouble. Some versions do not even contain alloca or
2313 # contain a buggy version. If you still want to use their alloca,
2314 # use ar to extract alloca.o from them instead of compiling alloca.c.
2315 ALLOCA=alloca.${ac_objext}
2316 cat >> confdefs.h <<\EOF
2317 #define C_ALLOCA 1
2321 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2322 echo "configure:2323: checking whether alloca needs Cray hooks" >&5
2323 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2324 echo $ac_n "(cached) $ac_c" 1>&6
2325 else
2326 cat > conftest.$ac_ext <<EOF
2327 #line 2328 "configure"
2328 #include "confdefs.h"
2329 #if defined(CRAY) && ! defined(CRAY2)
2330 webecray
2331 #else
2332 wenotbecray
2333 #endif
2336 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2337 egrep "webecray" >/dev/null 2>&1; then
2338 rm -rf conftest*
2339 ac_cv_os_cray=yes
2340 else
2341 rm -rf conftest*
2342 ac_cv_os_cray=no
2344 rm -f conftest*
2348 echo "$ac_t""$ac_cv_os_cray" 1>&6
2349 if test $ac_cv_os_cray = yes; then
2350 for ac_func in _getb67 GETB67 getb67; do
2351 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2352 echo "configure:2353: checking for $ac_func" >&5
2353 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2354 echo $ac_n "(cached) $ac_c" 1>&6
2355 else
2356 cat > conftest.$ac_ext <<EOF
2357 #line 2358 "configure"
2358 #include "confdefs.h"
2359 /* System header to define __stub macros and hopefully few prototypes,
2360 which can conflict with char $ac_func(); below. */
2361 #include <assert.h>
2362 /* Override any gcc2 internal prototype to avoid an error. */
2363 /* We use char because int might match the return type of a gcc2
2364 builtin and then its argument prototype would still apply. */
2365 char $ac_func();
2367 int main() {
2369 /* The GNU C library defines this for functions which it implements
2370 to always fail with ENOSYS. Some functions are actually named
2371 something starting with __ and the normal name is an alias. */
2372 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2373 choke me
2374 #else
2375 $ac_func();
2376 #endif
2378 ; return 0; }
2380 if { (eval echo configure:2381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2381 rm -rf conftest*
2382 eval "ac_cv_func_$ac_func=yes"
2383 else
2384 echo "configure: failed program was:" >&5
2385 cat conftest.$ac_ext >&5
2386 rm -rf conftest*
2387 eval "ac_cv_func_$ac_func=no"
2389 rm -f conftest*
2392 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2393 echo "$ac_t""yes" 1>&6
2394 cat >> confdefs.h <<EOF
2395 #define CRAY_STACKSEG_END $ac_func
2398 break
2399 else
2400 echo "$ac_t""no" 1>&6
2403 done
2406 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2407 echo "configure:2408: checking stack direction for C alloca" >&5
2408 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2409 echo $ac_n "(cached) $ac_c" 1>&6
2410 else
2411 if test "$cross_compiling" = yes; then
2412 ac_cv_c_stack_direction=0
2413 else
2414 cat > conftest.$ac_ext <<EOF
2415 #line 2416 "configure"
2416 #include "confdefs.h"
2417 find_stack_direction ()
2419 static char *addr = 0;
2420 auto char dummy;
2421 if (addr == 0)
2423 addr = &dummy;
2424 return find_stack_direction ();
2426 else
2427 return (&dummy > addr) ? 1 : -1;
2429 main ()
2431 exit (find_stack_direction() < 0);
2434 if { (eval echo configure:2435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2435 then
2436 ac_cv_c_stack_direction=1
2437 else
2438 echo "configure: failed program was:" >&5
2439 cat conftest.$ac_ext >&5
2440 rm -fr conftest*
2441 ac_cv_c_stack_direction=-1
2443 rm -fr conftest*
2448 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2449 cat >> confdefs.h <<EOF
2450 #define STACK_DIRECTION $ac_cv_c_stack_direction
2455 for ac_func in gethostname select poll strerror strncasecmp setpgid atexit
2457 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2458 echo "configure:2459: checking for $ac_func" >&5
2459 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2460 echo $ac_n "(cached) $ac_c" 1>&6
2461 else
2462 cat > conftest.$ac_ext <<EOF
2463 #line 2464 "configure"
2464 #include "confdefs.h"
2465 /* System header to define __stub macros and hopefully few prototypes,
2466 which can conflict with char $ac_func(); below. */
2467 #include <assert.h>
2468 /* Override any gcc2 internal prototype to avoid an error. */
2469 /* We use char because int might match the return type of a gcc2
2470 builtin and then its argument prototype would still apply. */
2471 char $ac_func();
2473 int main() {
2475 /* The GNU C library defines this for functions which it implements
2476 to always fail with ENOSYS. Some functions are actually named
2477 something starting with __ and the normal name is an alias. */
2478 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2479 choke me
2480 #else
2481 $ac_func();
2482 #endif
2484 ; return 0; }
2486 if { (eval echo configure:2487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2487 rm -rf conftest*
2488 eval "ac_cv_func_$ac_func=yes"
2489 else
2490 echo "configure: failed program was:" >&5
2491 cat conftest.$ac_ext >&5
2492 rm -rf conftest*
2493 eval "ac_cv_func_$ac_func=no"
2495 rm -f conftest*
2498 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2499 echo "$ac_t""yes" 1>&6
2500 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2501 cat >> confdefs.h <<EOF
2502 #define $ac_tr_func 1
2505 else
2506 echo "$ac_t""no" 1>&6
2508 done
2513 DLLIBS=""
2515 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
2516 echo "configure:2517: checking for dlopen" >&5
2517 if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
2518 echo $ac_n "(cached) $ac_c" 1>&6
2519 else
2520 cat > conftest.$ac_ext <<EOF
2521 #line 2522 "configure"
2522 #include "confdefs.h"
2523 /* System header to define __stub macros and hopefully few prototypes,
2524 which can conflict with char dlopen(); below. */
2525 #include <assert.h>
2526 /* Override any gcc2 internal prototype to avoid an error. */
2527 /* We use char because int might match the return type of a gcc2
2528 builtin and then its argument prototype would still apply. */
2529 char dlopen();
2531 int main() {
2533 /* The GNU C library defines this for functions which it implements
2534 to always fail with ENOSYS. Some functions are actually named
2535 something starting with __ and the normal name is an alias. */
2536 #if defined (__stub_dlopen) || defined (__stub___dlopen)
2537 choke me
2538 #else
2539 dlopen();
2540 #endif
2542 ; return 0; }
2544 if { (eval echo configure:2545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2545 rm -rf conftest*
2546 eval "ac_cv_func_dlopen=yes"
2547 else
2548 echo "configure: failed program was:" >&5
2549 cat conftest.$ac_ext >&5
2550 rm -rf conftest*
2551 eval "ac_cv_func_dlopen=no"
2553 rm -f conftest*
2556 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
2557 echo "$ac_t""yes" 1>&6
2558 HAVEDL="yes"
2559 else
2560 echo "$ac_t""no" 1>&6
2561 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2562 echo "configure:2563: checking for dlopen in -ldl" >&5
2563 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2564 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2565 echo $ac_n "(cached) $ac_c" 1>&6
2566 else
2567 ac_save_LIBS="$LIBS"
2568 LIBS="-ldl $LIBS"
2569 cat > conftest.$ac_ext <<EOF
2570 #line 2571 "configure"
2571 #include "confdefs.h"
2572 /* Override any gcc2 internal prototype to avoid an error. */
2573 /* We use char because int might match the return type of a gcc2
2574 builtin and then its argument prototype would still apply. */
2575 char dlopen();
2577 int main() {
2578 dlopen()
2579 ; return 0; }
2581 if { (eval echo configure:2582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2582 rm -rf conftest*
2583 eval "ac_cv_lib_$ac_lib_var=yes"
2584 else
2585 echo "configure: failed program was:" >&5
2586 cat conftest.$ac_ext >&5
2587 rm -rf conftest*
2588 eval "ac_cv_lib_$ac_lib_var=no"
2590 rm -f conftest*
2591 LIBS="$ac_save_LIBS"
2594 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2595 echo "$ac_t""yes" 1>&6
2596 DLLIBS="-ldl" HAVEDL="yes"
2597 else
2598 echo "$ac_t""no" 1>&6
2599 DLLIBS=""
2605 if test "x$HAVEDL" = xyes; then
2606 for ac_hdr in dlfcn.h
2608 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2609 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2610 echo "configure:2611: checking for $ac_hdr" >&5
2611 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2612 echo $ac_n "(cached) $ac_c" 1>&6
2613 else
2614 cat > conftest.$ac_ext <<EOF
2615 #line 2616 "configure"
2616 #include "confdefs.h"
2617 #include <$ac_hdr>
2619 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2620 { (eval echo configure:2621: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2621 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2622 if test -z "$ac_err"; then
2623 rm -rf conftest*
2624 eval "ac_cv_header_$ac_safe=yes"
2625 else
2626 echo "$ac_err" >&5
2627 echo "configure: failed program was:" >&5
2628 cat conftest.$ac_ext >&5
2629 rm -rf conftest*
2630 eval "ac_cv_header_$ac_safe=no"
2632 rm -f conftest*
2634 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2635 echo "$ac_t""yes" 1>&6
2636 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2637 cat >> confdefs.h <<EOF
2638 #define $ac_tr_hdr 1
2641 else
2642 echo "$ac_t""no" 1>&6
2644 done
2650 if test "x$CPP_PATH" = x; then
2651 # Extract the first word of "cpp", so it can be a program name with args.
2652 set dummy cpp; ac_word=$2
2653 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2654 echo "configure:2655: checking for $ac_word" >&5
2655 if eval "test \"`echo '$''{'ac_cv_path_CPP_PATH'+set}'`\" = set"; then
2656 echo $ac_n "(cached) $ac_c" 1>&6
2657 else
2658 case "$CPP_PATH" in
2660 ac_cv_path_CPP_PATH="$CPP_PATH" # Let the user override the test with a path.
2662 ?:/*)
2663 ac_cv_path_CPP_PATH="$CPP_PATH" # Let the user override the test with a dos path.
2666 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2667 ac_dummy="$PATH:/lib:/usr/bin:/bin:/usr/lib:/usr/ccs/lib"
2668 for ac_dir in $ac_dummy; do
2669 test -z "$ac_dir" && ac_dir=.
2670 if test -f $ac_dir/$ac_word; then
2671 ac_cv_path_CPP_PATH="$ac_dir/$ac_word"
2672 break
2674 done
2675 IFS="$ac_save_ifs"
2676 test -z "$ac_cv_path_CPP_PATH" && ac_cv_path_CPP_PATH="notfound"
2678 esac
2680 CPP_PATH="$ac_cv_path_CPP_PATH"
2681 if test -n "$CPP_PATH"; then
2682 echo "$ac_t""$CPP_PATH" 1>&6
2683 else
2684 echo "$ac_t""no" 1>&6
2689 if test "$CPP_PATH" = "/usr/ccs/lib/cpp" -o "$CPP_PATH" = "notfound" ; then
2690 if test "$GCC" = "yes"; then
2691 CPP_PATH="gcc -E -x c"
2692 else
2693 if test "$CPP_PATH" = "/usr/ccs/lib/cpp"; then
2694 CPP_PATH="$CPP_PATH -B"
2695 else
2696 echo "cpp, the C preprocessor was not found in your system."
2697 echo "Create a symbolic link from it to /lib/cpp and rerun configure"
2698 exit
2702 cat >> confdefs.h <<EOF
2703 #define CPP_PATH "$CPP_PATH"
2709 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2710 echo "configure:2711: checking for sys/wait.h that is POSIX.1 compatible" >&5
2711 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2712 echo $ac_n "(cached) $ac_c" 1>&6
2713 else
2714 cat > conftest.$ac_ext <<EOF
2715 #line 2716 "configure"
2716 #include "confdefs.h"
2717 #include <sys/types.h>
2718 #include <sys/wait.h>
2719 #ifndef WEXITSTATUS
2720 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2721 #endif
2722 #ifndef WIFEXITED
2723 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2724 #endif
2725 int main() {
2726 int s;
2727 wait (&s);
2728 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2729 ; return 0; }
2731 if { (eval echo configure:2732: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2732 rm -rf conftest*
2733 ac_cv_header_sys_wait_h=yes
2734 else
2735 echo "configure: failed program was:" >&5
2736 cat conftest.$ac_ext >&5
2737 rm -rf conftest*
2738 ac_cv_header_sys_wait_h=no
2740 rm -f conftest*
2743 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2744 if test $ac_cv_header_sys_wait_h = yes; then
2745 cat >> confdefs.h <<\EOF
2746 #define HAVE_SYS_WAIT_H 1
2751 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2752 echo "configure:2753: checking whether time.h and sys/time.h may both be included" >&5
2753 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2754 echo $ac_n "(cached) $ac_c" 1>&6
2755 else
2756 cat > conftest.$ac_ext <<EOF
2757 #line 2758 "configure"
2758 #include "confdefs.h"
2759 #include <sys/types.h>
2760 #include <sys/time.h>
2761 #include <time.h>
2762 int main() {
2763 struct tm *tp;
2764 ; return 0; }
2766 if { (eval echo configure:2767: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2767 rm -rf conftest*
2768 ac_cv_header_time=yes
2769 else
2770 echo "configure: failed program was:" >&5
2771 cat conftest.$ac_ext >&5
2772 rm -rf conftest*
2773 ac_cv_header_time=no
2775 rm -f conftest*
2778 echo "$ac_t""$ac_cv_header_time" 1>&6
2779 if test $ac_cv_header_time = yes; then
2780 cat >> confdefs.h <<\EOF
2781 #define TIME_WITH_SYS_TIME 1
2786 for ac_hdr in fcntl.h limits.h sys/ioctl.h sys/time.h sys/types.h\
2787 libintl.h sys/select.h poll.h
2789 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2790 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2791 echo "configure:2792: checking for $ac_hdr" >&5
2792 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2793 echo $ac_n "(cached) $ac_c" 1>&6
2794 else
2795 cat > conftest.$ac_ext <<EOF
2796 #line 2797 "configure"
2797 #include "confdefs.h"
2798 #include <$ac_hdr>
2800 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2801 { (eval echo configure:2802: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2802 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2803 if test -z "$ac_err"; then
2804 rm -rf conftest*
2805 eval "ac_cv_header_$ac_safe=yes"
2806 else
2807 echo "$ac_err" >&5
2808 echo "configure: failed program was:" >&5
2809 cat conftest.$ac_ext >&5
2810 rm -rf conftest*
2811 eval "ac_cv_header_$ac_safe=no"
2813 rm -f conftest*
2815 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2816 echo "$ac_t""yes" 1>&6
2817 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2818 cat >> confdefs.h <<EOF
2819 #define $ac_tr_hdr 1
2822 else
2823 echo "$ac_t""no" 1>&6
2825 done
2830 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2831 echo "configure:2832: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2832 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
2833 echo $ac_n "(cached) $ac_c" 1>&6
2834 else
2835 cat > conftest.$ac_ext <<EOF
2836 #line 2837 "configure"
2837 #include "confdefs.h"
2838 #include <sys/types.h>
2839 #include <signal.h>
2840 /* NetBSD declares sys_siglist in unistd.h. */
2841 #ifdef HAVE_UNISTD_H
2842 #include <unistd.h>
2843 #endif
2844 int main() {
2845 char *msg = *(sys_siglist + 1);
2846 ; return 0; }
2848 if { (eval echo configure:2849: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2849 rm -rf conftest*
2850 ac_cv_decl_sys_siglist=yes
2851 else
2852 echo "configure: failed program was:" >&5
2853 cat conftest.$ac_ext >&5
2854 rm -rf conftest*
2855 ac_cv_decl_sys_siglist=no
2857 rm -f conftest*
2860 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
2861 if test $ac_cv_decl_sys_siglist = yes; then
2862 cat >> confdefs.h <<\EOF
2863 #define SYS_SIGLIST_DECLARED 1
2868 echo $ac_n "checking for working const""... $ac_c" 1>&6
2869 echo "configure:2870: checking for working const" >&5
2870 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2871 echo $ac_n "(cached) $ac_c" 1>&6
2872 else
2873 cat > conftest.$ac_ext <<EOF
2874 #line 2875 "configure"
2875 #include "confdefs.h"
2877 int main() {
2879 /* Ultrix mips cc rejects this. */
2880 typedef int charset[2]; const charset x;
2881 /* SunOS 4.1.1 cc rejects this. */
2882 char const *const *ccp;
2883 char **p;
2884 /* NEC SVR4.0.2 mips cc rejects this. */
2885 struct point {int x, y;};
2886 static struct point const zero = {0,0};
2887 /* AIX XL C 1.02.0.0 rejects this.
2888 It does not let you subtract one const X* pointer from another in an arm
2889 of an if-expression whose if-part is not a constant expression */
2890 const char *g = "string";
2891 ccp = &g + (g ? g-g : 0);
2892 /* HPUX 7.0 cc rejects these. */
2893 ++ccp;
2894 p = (char**) ccp;
2895 ccp = (char const *const *) p;
2896 { /* SCO 3.2v4 cc rejects this. */
2897 char *t;
2898 char const *s = 0 ? (char *) 0 : (char const *) 0;
2900 *t++ = 0;
2902 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2903 int x[] = {25, 17};
2904 const int *foo = &x[0];
2905 ++foo;
2907 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2908 typedef const int *iptr;
2909 iptr p = 0;
2910 ++p;
2912 { /* AIX XL C 1.02.0.0 rejects this saying
2913 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2914 struct s { int j; const int *ap[3]; };
2915 struct s *b; b->j = 5;
2917 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2918 const int foo = 10;
2921 ; return 0; }
2923 if { (eval echo configure:2924: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2924 rm -rf conftest*
2925 ac_cv_c_const=yes
2926 else
2927 echo "configure: failed program was:" >&5
2928 cat conftest.$ac_ext >&5
2929 rm -rf conftest*
2930 ac_cv_c_const=no
2932 rm -f conftest*
2935 echo "$ac_t""$ac_cv_c_const" 1>&6
2936 if test $ac_cv_c_const = no; then
2937 cat >> confdefs.h <<\EOF
2938 #define const
2943 #AC_TYPE_SIZE_T
2944 #AC_TYPE_PID_T
2945 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2946 echo "configure:2947: checking return type of signal handlers" >&5
2947 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2948 echo $ac_n "(cached) $ac_c" 1>&6
2949 else
2950 cat > conftest.$ac_ext <<EOF
2951 #line 2952 "configure"
2952 #include "confdefs.h"
2953 #include <sys/types.h>
2954 #include <signal.h>
2955 #ifdef signal
2956 #undef signal
2957 #endif
2958 #ifdef __cplusplus
2959 extern "C" void (*signal (int, void (*)(int)))(int);
2960 #else
2961 void (*signal ()) ();
2962 #endif
2964 int main() {
2965 int i;
2966 ; return 0; }
2968 if { (eval echo configure:2969: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2969 rm -rf conftest*
2970 ac_cv_type_signal=void
2971 else
2972 echo "configure: failed program was:" >&5
2973 cat conftest.$ac_ext >&5
2974 rm -rf conftest*
2975 ac_cv_type_signal=int
2977 rm -f conftest*
2980 echo "$ac_t""$ac_cv_type_signal" 1>&6
2981 cat >> confdefs.h <<EOF
2982 #define RETSIGTYPE $ac_cv_type_signal
2993 INTLIBS=""
2995 echo $ac_n "checking for gettext""... $ac_c" 1>&6
2996 echo "configure:2997: checking for gettext" >&5
2997 if eval "test \"`echo '$''{'ac_cv_func_gettext'+set}'`\" = set"; then
2998 echo $ac_n "(cached) $ac_c" 1>&6
2999 else
3000 cat > conftest.$ac_ext <<EOF
3001 #line 3002 "configure"
3002 #include "confdefs.h"
3003 /* System header to define __stub macros and hopefully few prototypes,
3004 which can conflict with char gettext(); below. */
3005 #include <assert.h>
3006 /* Override any gcc2 internal prototype to avoid an error. */
3007 /* We use char because int might match the return type of a gcc2
3008 builtin and then its argument prototype would still apply. */
3009 char gettext();
3011 int main() {
3013 /* The GNU C library defines this for functions which it implements
3014 to always fail with ENOSYS. Some functions are actually named
3015 something starting with __ and the normal name is an alias. */
3016 #if defined (__stub_gettext) || defined (__stub___gettext)
3017 choke me
3018 #else
3019 gettext();
3020 #endif
3022 ; return 0; }
3024 if { (eval echo configure:3025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3025 rm -rf conftest*
3026 eval "ac_cv_func_gettext=yes"
3027 else
3028 echo "configure: failed program was:" >&5
3029 cat conftest.$ac_ext >&5
3030 rm -rf conftest*
3031 eval "ac_cv_func_gettext=no"
3033 rm -f conftest*
3036 if eval "test \"`echo '$ac_cv_func_'gettext`\" = yes"; then
3037 echo "$ac_t""yes" 1>&6
3038 HAVEGETTEXT="yes"
3039 else
3040 echo "$ac_t""no" 1>&6
3041 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
3042 echo "configure:3043: checking for gettext in -lintl" >&5
3043 ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
3044 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3045 echo $ac_n "(cached) $ac_c" 1>&6
3046 else
3047 ac_save_LIBS="$LIBS"
3048 LIBS="-lintl $LIBS"
3049 cat > conftest.$ac_ext <<EOF
3050 #line 3051 "configure"
3051 #include "confdefs.h"
3052 /* Override any gcc2 internal prototype to avoid an error. */
3053 /* We use char because int might match the return type of a gcc2
3054 builtin and then its argument prototype would still apply. */
3055 char gettext();
3057 int main() {
3058 gettext()
3059 ; return 0; }
3061 if { (eval echo configure:3062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3062 rm -rf conftest*
3063 eval "ac_cv_lib_$ac_lib_var=yes"
3064 else
3065 echo "configure: failed program was:" >&5
3066 cat conftest.$ac_ext >&5
3067 rm -rf conftest*
3068 eval "ac_cv_lib_$ac_lib_var=no"
3070 rm -f conftest*
3071 LIBS="$ac_save_LIBS"
3074 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3075 echo "$ac_t""yes" 1>&6
3076 INTLIBS="-lintl" HAVEGETTEXT="yes"
3077 else
3078 echo "$ac_t""no" 1>&6
3079 INTLIBS=""
3085 # Extract the first word of "xgettext", so it can be a program name with args.
3086 set dummy xgettext; ac_word=$2
3087 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3088 echo "configure:3089: checking for $ac_word" >&5
3089 if eval "test \"`echo '$''{'ac_cv_prog_XGETTEXT'+set}'`\" = set"; then
3090 echo $ac_n "(cached) $ac_c" 1>&6
3091 else
3092 if test -n "$XGETTEXT"; then
3093 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
3094 else
3095 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3096 ac_dummy="$PATH"
3097 for ac_dir in $ac_dummy; do
3098 test -z "$ac_dir" && ac_dir=.
3099 if test -f $ac_dir/$ac_word; then
3100 ac_cv_prog_XGETTEXT="xgettext"
3101 break
3103 done
3104 IFS="$ac_save_ifs"
3107 XGETTEXT="$ac_cv_prog_XGETTEXT"
3108 if test -n "$XGETTEXT"; then
3109 echo "$ac_t""$XGETTEXT" 1>&6
3110 else
3111 echo "$ac_t""no" 1>&6
3115 if test "$XGETTEXT" != ""; then
3116 if $XGETTEXT --help 2>&1 | grep illegal >/dev/null ; then
3117 echo "xgettext isn't GNU version"
3118 XGETTEXT=""
3122 if test "$LINGUAS" != ""; then
3123 if test "$XGETTEXT" != "" -a "$HAVEGETTEXT" != ""; then
3124 cat >> confdefs.h <<\EOF
3125 #define I18N 1
3128 PO=""
3129 # if test "$LINGUAS" = ""; then
3130 # ling=` (cd src/po; /bin/ls *.po) `
3131 # for l in $ling; do
3132 # lcode=`basename $l .po`
3133 # LINGUAS="$LINGUAS $lcode"
3134 # done
3135 # fi
3136 echo "xgettext and gettext() exist; will build i18n support for $LINGUAS"
3137 else
3138 LINGUAS=""
3139 PO=""
3140 echo "xgettext and libintl.a don't both exist; will not build i18n support"
3142 else
3143 INTLIBS=""
3144 MOFILES=""
3145 WPMOFILES=""
3146 PO=""
3151 supported_locales="cs de es fr gl it ja ko nl no pt ru se tr fi hr el pl ro da zh_TW.Big5 zh_CN sk"
3152 supported_wprefs_locales="pt hr fr ko ja cs zh_TW.Big5 es zh_CN fi it"
3154 for lang in $LINGUAS; do
3155 ok=0
3156 for l in $supported_locales; do
3157 if test "$l" = "$lang"; then
3158 ok=1
3159 break
3161 done
3162 if test "$ok" = 1; then
3163 MOFILES="$MOFILES $lang.mo"
3164 else
3165 echo "Locale $lang is not supported."
3167 ok=0
3168 for l in $supported_wprefs_locales; do
3169 if test "$l" = "$lang"; then
3170 ok=1
3171 break
3173 done
3174 if test "$ok" = 1; then
3175 WPMOFILES="$WPMOFILES $lang.mo"
3177 done
3180 I18n=no
3181 # Check whether --enable-kanji or --disable-kanji was given.
3182 if test "${enable_kanji+set}" = set; then
3183 enableval="$enable_kanji"
3185 else
3186 enable_kanji=no
3190 if test "$enable_kanji" = yes; then
3191 case $host_os in
3192 freebsd*)
3193 echo $ac_n "checking for setlocale in -lxpg4""... $ac_c" 1>&6
3194 echo "configure:3195: checking for setlocale in -lxpg4" >&5
3195 ac_lib_var=`echo xpg4'_'setlocale | sed 'y%./+-%__p_%'`
3196 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3197 echo $ac_n "(cached) $ac_c" 1>&6
3198 else
3199 ac_save_LIBS="$LIBS"
3200 LIBS="-lxpg4 $LIBS"
3201 cat > conftest.$ac_ext <<EOF
3202 #line 3203 "configure"
3203 #include "confdefs.h"
3204 /* Override any gcc2 internal prototype to avoid an error. */
3205 /* We use char because int might match the return type of a gcc2
3206 builtin and then its argument prototype would still apply. */
3207 char setlocale();
3209 int main() {
3210 setlocale()
3211 ; return 0; }
3213 if { (eval echo configure:3214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3214 rm -rf conftest*
3215 eval "ac_cv_lib_$ac_lib_var=yes"
3216 else
3217 echo "configure: failed program was:" >&5
3218 cat conftest.$ac_ext >&5
3219 rm -rf conftest*
3220 eval "ac_cv_lib_$ac_lib_var=no"
3222 rm -f conftest*
3223 LIBS="$ac_save_LIBS"
3226 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3227 echo "$ac_t""yes" 1>&6
3228 LIBS="$LIBS -lxpg4"
3229 else
3230 echo "$ac_t""no" 1>&6
3235 esac
3236 cat >> confdefs.h <<\EOF
3237 #define I18N_MB 1
3244 # Check whether --with-nlsdir or --without-nlsdir was given.
3245 if test "${with_nlsdir+set}" = set; then
3246 withval="$with_nlsdir"
3252 if test "x$NLSDIR" = "x"; then
3253 if test "x$with_nlsdir" != "x"; then
3254 NLSDIR=$with_nlsdir
3255 else
3256 NLSDIR='$(prefix)/lib/locale'
3272 # Check whether --enable-gnome or --disable-gnome was given.
3273 if test "${enable_gnome+set}" = set; then
3274 enableval="$enable_gnome"
3275 if test x$enableval = xyes; then
3276 cat >> confdefs.h <<\EOF
3277 #define GNOME_STUFF 1
3280 gnome_on=yes
3286 # Check whether --enable-kde or --disable-kde was given.
3287 if test "${enable_kde+set}" = set; then
3288 enableval="$enable_kde"
3289 if test x$enableval = xyes; then
3290 cat >> confdefs.h <<\EOF
3291 #define KWM_HINTS 1
3294 kde_on=yes
3300 # Check whether --enable-openlook or --disable-openlook was given.
3301 if test "${enable_openlook+set}" = set; then
3302 enableval="$enable_openlook"
3303 if test x$enableval = xyes; then
3304 cat >> confdefs.h <<\EOF
3305 #define OLWM_HINTS 1
3308 openlook_on=yes
3314 # Check whether --enable-lite or --disable-lite was given.
3315 if test "${enable_lite+set}" = set; then
3316 enableval="$enable_lite"
3317 if test x$enableval = xyes; then
3318 LITE=yes
3319 cat >> confdefs.h <<\EOF
3320 #define LITE 1
3331 # If we find X, set shell vars x_includes and x_libraries to the
3332 # paths, otherwise set no_x=yes.
3333 # Uses ac_ vars as temps to allow command line to override cache and checks.
3334 # --without-x overrides everything else, but does not touch the cache.
3335 echo $ac_n "checking for X""... $ac_c" 1>&6
3336 echo "configure:3337: checking for X" >&5
3338 # Check whether --with-x or --without-x was given.
3339 if test "${with_x+set}" = set; then
3340 withval="$with_x"
3344 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3345 if test "x$with_x" = xno; then
3346 # The user explicitly disabled X.
3347 have_x=disabled
3348 else
3349 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
3350 # Both variables are already set.
3351 have_x=yes
3352 else
3353 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
3354 echo $ac_n "(cached) $ac_c" 1>&6
3355 else
3356 # One or both of the vars are not set, and there is no cached value.
3357 ac_x_includes=NO ac_x_libraries=NO
3358 rm -fr conftestdir
3359 if mkdir conftestdir; then
3360 cd conftestdir
3361 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3362 cat > Imakefile <<'EOF'
3363 acfindx:
3364 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3366 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
3367 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3368 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3369 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3370 for ac_extension in a so sl; do
3371 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
3372 test -f $ac_im_libdir/libX11.$ac_extension; then
3373 ac_im_usrlibdir=$ac_im_libdir; break
3375 done
3376 # Screen out bogus values from the imake configuration. They are
3377 # bogus both because they are the default anyway, and because
3378 # using them would break gcc on systems where it needs fixed includes.
3379 case "$ac_im_incroot" in
3380 /usr/include) ;;
3381 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
3382 esac
3383 case "$ac_im_usrlibdir" in
3384 /usr/lib | /lib) ;;
3385 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
3386 esac
3388 cd ..
3389 rm -fr conftestdir
3392 if test "$ac_x_includes" = NO; then
3393 # Guess where to find include files, by looking for this one X11 .h file.
3394 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
3396 # First, try using that file with no special directory specified.
3397 cat > conftest.$ac_ext <<EOF
3398 #line 3399 "configure"
3399 #include "confdefs.h"
3400 #include <$x_direct_test_include>
3402 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3403 { (eval echo configure:3404: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3404 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3405 if test -z "$ac_err"; then
3406 rm -rf conftest*
3407 # We can compile using X headers with no special include directory.
3408 ac_x_includes=
3409 else
3410 echo "$ac_err" >&5
3411 echo "configure: failed program was:" >&5
3412 cat conftest.$ac_ext >&5
3413 rm -rf conftest*
3414 # Look for the header file in a standard set of common directories.
3415 # Check X11 before X11Rn because it is often a symlink to the current release.
3416 for ac_dir in \
3417 /usr/X11/include \
3418 /usr/X11R6/include \
3419 /usr/X11R5/include \
3420 /usr/X11R4/include \
3422 /usr/include/X11 \
3423 /usr/include/X11R6 \
3424 /usr/include/X11R5 \
3425 /usr/include/X11R4 \
3427 /usr/local/X11/include \
3428 /usr/local/X11R6/include \
3429 /usr/local/X11R5/include \
3430 /usr/local/X11R4/include \
3432 /usr/local/include/X11 \
3433 /usr/local/include/X11R6 \
3434 /usr/local/include/X11R5 \
3435 /usr/local/include/X11R4 \
3437 /usr/X386/include \
3438 /usr/x386/include \
3439 /usr/XFree86/include/X11 \
3441 /usr/include \
3442 /usr/local/include \
3443 /usr/unsupported/include \
3444 /usr/athena/include \
3445 /usr/local/x11r5/include \
3446 /usr/lpp/Xamples/include \
3448 /usr/openwin/include \
3449 /usr/openwin/share/include \
3452 if test -r "$ac_dir/$x_direct_test_include"; then
3453 ac_x_includes=$ac_dir
3454 break
3456 done
3458 rm -f conftest*
3459 fi # $ac_x_includes = NO
3461 if test "$ac_x_libraries" = NO; then
3462 # Check for the libraries.
3464 test -z "$x_direct_test_library" && x_direct_test_library=Xt
3465 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
3467 # See if we find them without any special options.
3468 # Don't add to $LIBS permanently.
3469 ac_save_LIBS="$LIBS"
3470 LIBS="-l$x_direct_test_library $LIBS"
3471 cat > conftest.$ac_ext <<EOF
3472 #line 3473 "configure"
3473 #include "confdefs.h"
3475 int main() {
3476 ${x_direct_test_function}()
3477 ; return 0; }
3479 if { (eval echo configure:3480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3480 rm -rf conftest*
3481 LIBS="$ac_save_LIBS"
3482 # We can link X programs with no special library path.
3483 ac_x_libraries=
3484 else
3485 echo "configure: failed program was:" >&5
3486 cat conftest.$ac_ext >&5
3487 rm -rf conftest*
3488 LIBS="$ac_save_LIBS"
3489 # First see if replacing the include by lib works.
3490 # Check X11 before X11Rn because it is often a symlink to the current release.
3491 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
3492 /usr/X11/lib \
3493 /usr/X11R6/lib \
3494 /usr/X11R5/lib \
3495 /usr/X11R4/lib \
3497 /usr/lib/X11 \
3498 /usr/lib/X11R6 \
3499 /usr/lib/X11R5 \
3500 /usr/lib/X11R4 \
3502 /usr/local/X11/lib \
3503 /usr/local/X11R6/lib \
3504 /usr/local/X11R5/lib \
3505 /usr/local/X11R4/lib \
3507 /usr/local/lib/X11 \
3508 /usr/local/lib/X11R6 \
3509 /usr/local/lib/X11R5 \
3510 /usr/local/lib/X11R4 \
3512 /usr/X386/lib \
3513 /usr/x386/lib \
3514 /usr/XFree86/lib/X11 \
3516 /usr/lib \
3517 /usr/local/lib \
3518 /usr/unsupported/lib \
3519 /usr/athena/lib \
3520 /usr/local/x11r5/lib \
3521 /usr/lpp/Xamples/lib \
3522 /lib/usr/lib/X11 \
3524 /usr/openwin/lib \
3525 /usr/openwin/share/lib \
3528 for ac_extension in a so sl; do
3529 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
3530 ac_x_libraries=$ac_dir
3531 break 2
3533 done
3534 done
3536 rm -f conftest*
3537 fi # $ac_x_libraries = NO
3539 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
3540 # Didn't find X anywhere. Cache the known absence of X.
3541 ac_cv_have_x="have_x=no"
3542 else
3543 # Record where we found X for the cache.
3544 ac_cv_have_x="have_x=yes \
3545 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3549 eval "$ac_cv_have_x"
3550 fi # $with_x != no
3552 if test "$have_x" != yes; then
3553 echo "$ac_t""$have_x" 1>&6
3554 no_x=yes
3555 else
3556 # If each of the values was on the command line, it overrides each guess.
3557 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3558 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3559 # Update the cache value to reflect the command line values.
3560 ac_cv_have_x="have_x=yes \
3561 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3562 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
3565 if test "$no_x" = yes; then
3566 # Not all programs may use this symbol, but it does not hurt to define it.
3567 cat >> confdefs.h <<\EOF
3568 #define X_DISPLAY_MISSING 1
3571 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3572 else
3573 if test -n "$x_includes"; then
3574 X_CFLAGS="$X_CFLAGS -I$x_includes"
3577 # It would also be nice to do this for all -L options, not just this one.
3578 if test -n "$x_libraries"; then
3579 X_LIBS="$X_LIBS -L$x_libraries"
3580 # For Solaris; some versions of Sun CC require a space after -R and
3581 # others require no space. Words are not sufficient . . . .
3582 case "`(uname -sr) 2>/dev/null`" in
3583 "SunOS 5"*)
3584 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
3585 echo "configure:3586: checking whether -R must be followed by a space" >&5
3586 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
3587 cat > conftest.$ac_ext <<EOF
3588 #line 3589 "configure"
3589 #include "confdefs.h"
3591 int main() {
3593 ; return 0; }
3595 if { (eval echo configure:3596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3596 rm -rf conftest*
3597 ac_R_nospace=yes
3598 else
3599 echo "configure: failed program was:" >&5
3600 cat conftest.$ac_ext >&5
3601 rm -rf conftest*
3602 ac_R_nospace=no
3604 rm -f conftest*
3605 if test $ac_R_nospace = yes; then
3606 echo "$ac_t""no" 1>&6
3607 X_LIBS="$X_LIBS -R$x_libraries"
3608 else
3609 LIBS="$ac_xsave_LIBS -R $x_libraries"
3610 cat > conftest.$ac_ext <<EOF
3611 #line 3612 "configure"
3612 #include "confdefs.h"
3614 int main() {
3616 ; return 0; }
3618 if { (eval echo configure:3619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3619 rm -rf conftest*
3620 ac_R_space=yes
3621 else
3622 echo "configure: failed program was:" >&5
3623 cat conftest.$ac_ext >&5
3624 rm -rf conftest*
3625 ac_R_space=no
3627 rm -f conftest*
3628 if test $ac_R_space = yes; then
3629 echo "$ac_t""yes" 1>&6
3630 X_LIBS="$X_LIBS -R $x_libraries"
3631 else
3632 echo "$ac_t""neither works" 1>&6
3635 LIBS="$ac_xsave_LIBS"
3636 esac
3639 # Check for system-dependent libraries X programs must link with.
3640 # Do this before checking for the system-independent R6 libraries
3641 # (-lICE), since we may need -lsocket or whatever for X linking.
3643 if test "$ISC" = yes; then
3644 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3645 else
3646 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
3647 # libraries were built with DECnet support. And karl@cs.umb.edu says
3648 # the Alpha needs dnet_stub (dnet does not exist).
3649 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
3650 echo "configure:3651: checking for dnet_ntoa in -ldnet" >&5
3651 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3652 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3653 echo $ac_n "(cached) $ac_c" 1>&6
3654 else
3655 ac_save_LIBS="$LIBS"
3656 LIBS="-ldnet $LIBS"
3657 cat > conftest.$ac_ext <<EOF
3658 #line 3659 "configure"
3659 #include "confdefs.h"
3660 /* Override any gcc2 internal prototype to avoid an error. */
3661 /* We use char because int might match the return type of a gcc2
3662 builtin and then its argument prototype would still apply. */
3663 char dnet_ntoa();
3665 int main() {
3666 dnet_ntoa()
3667 ; return 0; }
3669 if { (eval echo configure:3670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3670 rm -rf conftest*
3671 eval "ac_cv_lib_$ac_lib_var=yes"
3672 else
3673 echo "configure: failed program was:" >&5
3674 cat conftest.$ac_ext >&5
3675 rm -rf conftest*
3676 eval "ac_cv_lib_$ac_lib_var=no"
3678 rm -f conftest*
3679 LIBS="$ac_save_LIBS"
3682 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3683 echo "$ac_t""yes" 1>&6
3684 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3685 else
3686 echo "$ac_t""no" 1>&6
3689 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3690 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
3691 echo "configure:3692: checking for dnet_ntoa in -ldnet_stub" >&5
3692 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3693 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3694 echo $ac_n "(cached) $ac_c" 1>&6
3695 else
3696 ac_save_LIBS="$LIBS"
3697 LIBS="-ldnet_stub $LIBS"
3698 cat > conftest.$ac_ext <<EOF
3699 #line 3700 "configure"
3700 #include "confdefs.h"
3701 /* Override any gcc2 internal prototype to avoid an error. */
3702 /* We use char because int might match the return type of a gcc2
3703 builtin and then its argument prototype would still apply. */
3704 char dnet_ntoa();
3706 int main() {
3707 dnet_ntoa()
3708 ; return 0; }
3710 if { (eval echo configure:3711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3711 rm -rf conftest*
3712 eval "ac_cv_lib_$ac_lib_var=yes"
3713 else
3714 echo "configure: failed program was:" >&5
3715 cat conftest.$ac_ext >&5
3716 rm -rf conftest*
3717 eval "ac_cv_lib_$ac_lib_var=no"
3719 rm -f conftest*
3720 LIBS="$ac_save_LIBS"
3723 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3724 echo "$ac_t""yes" 1>&6
3725 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3726 else
3727 echo "$ac_t""no" 1>&6
3732 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3733 # to get the SysV transport functions.
3734 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
3735 # needs -lnsl.
3736 # The nsl library prevents programs from opening the X display
3737 # on Irix 5.2, according to dickey@clark.net.
3738 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3739 echo "configure:3740: checking for gethostbyname" >&5
3740 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3741 echo $ac_n "(cached) $ac_c" 1>&6
3742 else
3743 cat > conftest.$ac_ext <<EOF
3744 #line 3745 "configure"
3745 #include "confdefs.h"
3746 /* System header to define __stub macros and hopefully few prototypes,
3747 which can conflict with char gethostbyname(); below. */
3748 #include <assert.h>
3749 /* Override any gcc2 internal prototype to avoid an error. */
3750 /* We use char because int might match the return type of a gcc2
3751 builtin and then its argument prototype would still apply. */
3752 char gethostbyname();
3754 int main() {
3756 /* The GNU C library defines this for functions which it implements
3757 to always fail with ENOSYS. Some functions are actually named
3758 something starting with __ and the normal name is an alias. */
3759 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3760 choke me
3761 #else
3762 gethostbyname();
3763 #endif
3765 ; return 0; }
3767 if { (eval echo configure:3768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3768 rm -rf conftest*
3769 eval "ac_cv_func_gethostbyname=yes"
3770 else
3771 echo "configure: failed program was:" >&5
3772 cat conftest.$ac_ext >&5
3773 rm -rf conftest*
3774 eval "ac_cv_func_gethostbyname=no"
3776 rm -f conftest*
3779 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3780 echo "$ac_t""yes" 1>&6
3782 else
3783 echo "$ac_t""no" 1>&6
3786 if test $ac_cv_func_gethostbyname = no; then
3787 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3788 echo "configure:3789: checking for gethostbyname in -lnsl" >&5
3789 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3790 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3791 echo $ac_n "(cached) $ac_c" 1>&6
3792 else
3793 ac_save_LIBS="$LIBS"
3794 LIBS="-lnsl $LIBS"
3795 cat > conftest.$ac_ext <<EOF
3796 #line 3797 "configure"
3797 #include "confdefs.h"
3798 /* Override any gcc2 internal prototype to avoid an error. */
3799 /* We use char because int might match the return type of a gcc2
3800 builtin and then its argument prototype would still apply. */
3801 char gethostbyname();
3803 int main() {
3804 gethostbyname()
3805 ; return 0; }
3807 if { (eval echo configure:3808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3808 rm -rf conftest*
3809 eval "ac_cv_lib_$ac_lib_var=yes"
3810 else
3811 echo "configure: failed program was:" >&5
3812 cat conftest.$ac_ext >&5
3813 rm -rf conftest*
3814 eval "ac_cv_lib_$ac_lib_var=no"
3816 rm -f conftest*
3817 LIBS="$ac_save_LIBS"
3820 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3821 echo "$ac_t""yes" 1>&6
3822 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3823 else
3824 echo "$ac_t""no" 1>&6
3829 # lieder@skyler.mavd.honeywell.com says without -lsocket,
3830 # socket/setsockopt and other routines are undefined under SCO ODT
3831 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
3832 # on later versions), says simon@lia.di.epfl.ch: it contains
3833 # gethostby* variants that don't use the nameserver (or something).
3834 # -lsocket must be given before -lnsl if both are needed.
3835 # We assume that if connect needs -lnsl, so does gethostbyname.
3836 echo $ac_n "checking for connect""... $ac_c" 1>&6
3837 echo "configure:3838: checking for connect" >&5
3838 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3839 echo $ac_n "(cached) $ac_c" 1>&6
3840 else
3841 cat > conftest.$ac_ext <<EOF
3842 #line 3843 "configure"
3843 #include "confdefs.h"
3844 /* System header to define __stub macros and hopefully few prototypes,
3845 which can conflict with char connect(); below. */
3846 #include <assert.h>
3847 /* Override any gcc2 internal prototype to avoid an error. */
3848 /* We use char because int might match the return type of a gcc2
3849 builtin and then its argument prototype would still apply. */
3850 char connect();
3852 int main() {
3854 /* The GNU C library defines this for functions which it implements
3855 to always fail with ENOSYS. Some functions are actually named
3856 something starting with __ and the normal name is an alias. */
3857 #if defined (__stub_connect) || defined (__stub___connect)
3858 choke me
3859 #else
3860 connect();
3861 #endif
3863 ; return 0; }
3865 if { (eval echo configure:3866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3866 rm -rf conftest*
3867 eval "ac_cv_func_connect=yes"
3868 else
3869 echo "configure: failed program was:" >&5
3870 cat conftest.$ac_ext >&5
3871 rm -rf conftest*
3872 eval "ac_cv_func_connect=no"
3874 rm -f conftest*
3877 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3878 echo "$ac_t""yes" 1>&6
3880 else
3881 echo "$ac_t""no" 1>&6
3884 if test $ac_cv_func_connect = no; then
3885 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3886 echo "configure:3887: checking for connect in -lsocket" >&5
3887 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3888 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3889 echo $ac_n "(cached) $ac_c" 1>&6
3890 else
3891 ac_save_LIBS="$LIBS"
3892 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3893 cat > conftest.$ac_ext <<EOF
3894 #line 3895 "configure"
3895 #include "confdefs.h"
3896 /* Override any gcc2 internal prototype to avoid an error. */
3897 /* We use char because int might match the return type of a gcc2
3898 builtin and then its argument prototype would still apply. */
3899 char connect();
3901 int main() {
3902 connect()
3903 ; return 0; }
3905 if { (eval echo configure:3906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3906 rm -rf conftest*
3907 eval "ac_cv_lib_$ac_lib_var=yes"
3908 else
3909 echo "configure: failed program was:" >&5
3910 cat conftest.$ac_ext >&5
3911 rm -rf conftest*
3912 eval "ac_cv_lib_$ac_lib_var=no"
3914 rm -f conftest*
3915 LIBS="$ac_save_LIBS"
3918 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3919 echo "$ac_t""yes" 1>&6
3920 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3921 else
3922 echo "$ac_t""no" 1>&6
3927 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
3928 echo $ac_n "checking for remove""... $ac_c" 1>&6
3929 echo "configure:3930: checking for remove" >&5
3930 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
3931 echo $ac_n "(cached) $ac_c" 1>&6
3932 else
3933 cat > conftest.$ac_ext <<EOF
3934 #line 3935 "configure"
3935 #include "confdefs.h"
3936 /* System header to define __stub macros and hopefully few prototypes,
3937 which can conflict with char remove(); below. */
3938 #include <assert.h>
3939 /* Override any gcc2 internal prototype to avoid an error. */
3940 /* We use char because int might match the return type of a gcc2
3941 builtin and then its argument prototype would still apply. */
3942 char remove();
3944 int main() {
3946 /* The GNU C library defines this for functions which it implements
3947 to always fail with ENOSYS. Some functions are actually named
3948 something starting with __ and the normal name is an alias. */
3949 #if defined (__stub_remove) || defined (__stub___remove)
3950 choke me
3951 #else
3952 remove();
3953 #endif
3955 ; return 0; }
3957 if { (eval echo configure:3958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3958 rm -rf conftest*
3959 eval "ac_cv_func_remove=yes"
3960 else
3961 echo "configure: failed program was:" >&5
3962 cat conftest.$ac_ext >&5
3963 rm -rf conftest*
3964 eval "ac_cv_func_remove=no"
3966 rm -f conftest*
3969 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
3970 echo "$ac_t""yes" 1>&6
3972 else
3973 echo "$ac_t""no" 1>&6
3976 if test $ac_cv_func_remove = no; then
3977 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
3978 echo "configure:3979: checking for remove in -lposix" >&5
3979 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
3980 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3981 echo $ac_n "(cached) $ac_c" 1>&6
3982 else
3983 ac_save_LIBS="$LIBS"
3984 LIBS="-lposix $LIBS"
3985 cat > conftest.$ac_ext <<EOF
3986 #line 3987 "configure"
3987 #include "confdefs.h"
3988 /* Override any gcc2 internal prototype to avoid an error. */
3989 /* We use char because int might match the return type of a gcc2
3990 builtin and then its argument prototype would still apply. */
3991 char remove();
3993 int main() {
3994 remove()
3995 ; return 0; }
3997 if { (eval echo configure:3998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3998 rm -rf conftest*
3999 eval "ac_cv_lib_$ac_lib_var=yes"
4000 else
4001 echo "configure: failed program was:" >&5
4002 cat conftest.$ac_ext >&5
4003 rm -rf conftest*
4004 eval "ac_cv_lib_$ac_lib_var=no"
4006 rm -f conftest*
4007 LIBS="$ac_save_LIBS"
4010 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4011 echo "$ac_t""yes" 1>&6
4012 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4013 else
4014 echo "$ac_t""no" 1>&6
4019 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4020 echo $ac_n "checking for shmat""... $ac_c" 1>&6
4021 echo "configure:4022: checking for shmat" >&5
4022 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
4023 echo $ac_n "(cached) $ac_c" 1>&6
4024 else
4025 cat > conftest.$ac_ext <<EOF
4026 #line 4027 "configure"
4027 #include "confdefs.h"
4028 /* System header to define __stub macros and hopefully few prototypes,
4029 which can conflict with char shmat(); below. */
4030 #include <assert.h>
4031 /* Override any gcc2 internal prototype to avoid an error. */
4032 /* We use char because int might match the return type of a gcc2
4033 builtin and then its argument prototype would still apply. */
4034 char shmat();
4036 int main() {
4038 /* The GNU C library defines this for functions which it implements
4039 to always fail with ENOSYS. Some functions are actually named
4040 something starting with __ and the normal name is an alias. */
4041 #if defined (__stub_shmat) || defined (__stub___shmat)
4042 choke me
4043 #else
4044 shmat();
4045 #endif
4047 ; return 0; }
4049 if { (eval echo configure:4050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4050 rm -rf conftest*
4051 eval "ac_cv_func_shmat=yes"
4052 else
4053 echo "configure: failed program was:" >&5
4054 cat conftest.$ac_ext >&5
4055 rm -rf conftest*
4056 eval "ac_cv_func_shmat=no"
4058 rm -f conftest*
4061 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
4062 echo "$ac_t""yes" 1>&6
4064 else
4065 echo "$ac_t""no" 1>&6
4068 if test $ac_cv_func_shmat = no; then
4069 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
4070 echo "configure:4071: checking for shmat in -lipc" >&5
4071 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
4072 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4073 echo $ac_n "(cached) $ac_c" 1>&6
4074 else
4075 ac_save_LIBS="$LIBS"
4076 LIBS="-lipc $LIBS"
4077 cat > conftest.$ac_ext <<EOF
4078 #line 4079 "configure"
4079 #include "confdefs.h"
4080 /* Override any gcc2 internal prototype to avoid an error. */
4081 /* We use char because int might match the return type of a gcc2
4082 builtin and then its argument prototype would still apply. */
4083 char shmat();
4085 int main() {
4086 shmat()
4087 ; return 0; }
4089 if { (eval echo configure:4090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4090 rm -rf conftest*
4091 eval "ac_cv_lib_$ac_lib_var=yes"
4092 else
4093 echo "configure: failed program was:" >&5
4094 cat conftest.$ac_ext >&5
4095 rm -rf conftest*
4096 eval "ac_cv_lib_$ac_lib_var=no"
4098 rm -f conftest*
4099 LIBS="$ac_save_LIBS"
4102 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4103 echo "$ac_t""yes" 1>&6
4104 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4105 else
4106 echo "$ac_t""no" 1>&6
4112 # Check for libraries that X11R6 Xt/Xaw programs need.
4113 ac_save_LDFLAGS="$LDFLAGS"
4114 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4115 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4116 # check for ICE first), but we must link in the order -lSM -lICE or
4117 # we get undefined symbols. So assume we have SM if we have ICE.
4118 # These have to be linked with before -lX11, unlike the other
4119 # libraries we check for below, so use a different variable.
4120 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
4121 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
4122 echo "configure:4123: checking for IceConnectionNumber in -lICE" >&5
4123 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
4124 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4125 echo $ac_n "(cached) $ac_c" 1>&6
4126 else
4127 ac_save_LIBS="$LIBS"
4128 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4129 cat > conftest.$ac_ext <<EOF
4130 #line 4131 "configure"
4131 #include "confdefs.h"
4132 /* Override any gcc2 internal prototype to avoid an error. */
4133 /* We use char because int might match the return type of a gcc2
4134 builtin and then its argument prototype would still apply. */
4135 char IceConnectionNumber();
4137 int main() {
4138 IceConnectionNumber()
4139 ; return 0; }
4141 if { (eval echo configure:4142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4142 rm -rf conftest*
4143 eval "ac_cv_lib_$ac_lib_var=yes"
4144 else
4145 echo "configure: failed program was:" >&5
4146 cat conftest.$ac_ext >&5
4147 rm -rf conftest*
4148 eval "ac_cv_lib_$ac_lib_var=no"
4150 rm -f conftest*
4151 LIBS="$ac_save_LIBS"
4154 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4155 echo "$ac_t""yes" 1>&6
4156 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4157 else
4158 echo "$ac_t""no" 1>&6
4161 LDFLAGS="$ac_save_LDFLAGS"
4166 XCFLAGS="$X_CFLAGS"
4168 XLFLAGS="$X_LIBS"
4170 XLIBS="-lX11 $X_EXTRA_LIBS"
4173 lib_search_path="$lib_search_path $XLFLAGS"
4174 inc_search_path="$inc_search_path $XCFLAGS"
4177 use_locale=yes
4178 # Check whether --enable-locale or --disable-locale was given.
4179 if test "${enable_locale+set}" = set; then
4180 enableval="$enable_locale"
4181 use_locale=no
4185 if test "$use_locale" = yes; then
4186 echo $ac_n "checking for _Xsetlocale in -lX11""... $ac_c" 1>&6
4187 echo "configure:4188: checking for _Xsetlocale in -lX11" >&5
4188 ac_lib_var=`echo X11'_'_Xsetlocale | sed 'y%./+-%__p_%'`
4189 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4190 echo $ac_n "(cached) $ac_c" 1>&6
4191 else
4192 ac_save_LIBS="$LIBS"
4193 LIBS="-lX11 $XLFLAGS $XLIBS $LIBS"
4194 cat > conftest.$ac_ext <<EOF
4195 #line 4196 "configure"
4196 #include "confdefs.h"
4197 /* Override any gcc2 internal prototype to avoid an error. */
4198 /* We use char because int might match the return type of a gcc2
4199 builtin and then its argument prototype would still apply. */
4200 char _Xsetlocale();
4202 int main() {
4203 _Xsetlocale()
4204 ; return 0; }
4206 if { (eval echo configure:4207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4207 rm -rf conftest*
4208 eval "ac_cv_lib_$ac_lib_var=yes"
4209 else
4210 echo "configure: failed program was:" >&5
4211 cat conftest.$ac_ext >&5
4212 rm -rf conftest*
4213 eval "ac_cv_lib_$ac_lib_var=no"
4215 rm -f conftest*
4216 LIBS="$ac_save_LIBS"
4219 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4220 echo "$ac_t""yes" 1>&6
4221 cat >> confdefs.h <<\EOF
4222 #define X_LOCALE 1
4225 else
4226 echo "$ac_t""no" 1>&6
4232 # Check whether --enable-modelock or --disable-modelock was given.
4233 if test "${enable_modelock+set}" = set; then
4234 enableval="$enable_modelock"
4235 cat >> confdefs.h <<\EOF
4236 #define XKB_MODELOCK 1
4244 shape=yes
4245 # Check whether --enable-shape or --disable-shape was given.
4246 if test "${enable_shape+set}" = set; then
4247 enableval="$enable_shape"
4248 shape=$enableval
4249 else
4250 shape=yes
4254 added_xext=no
4256 if test "$shape" = yes; then
4257 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
4258 echo "configure:4259: checking for XShapeSelectInput in -lXext" >&5
4259 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
4260 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4261 echo $ac_n "(cached) $ac_c" 1>&6
4262 else
4263 ac_save_LIBS="$LIBS"
4264 LIBS="-lXext $XLFLAGS $XLIBS $LIBS"
4265 cat > conftest.$ac_ext <<EOF
4266 #line 4267 "configure"
4267 #include "confdefs.h"
4268 /* Override any gcc2 internal prototype to avoid an error. */
4269 /* We use char because int might match the return type of a gcc2
4270 builtin and then its argument prototype would still apply. */
4271 char XShapeSelectInput();
4273 int main() {
4274 XShapeSelectInput()
4275 ; return 0; }
4277 if { (eval echo configure:4278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4278 rm -rf conftest*
4279 eval "ac_cv_lib_$ac_lib_var=yes"
4280 else
4281 echo "configure: failed program was:" >&5
4282 cat conftest.$ac_ext >&5
4283 rm -rf conftest*
4284 eval "ac_cv_lib_$ac_lib_var=no"
4286 rm -f conftest*
4287 LIBS="$ac_save_LIBS"
4290 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4291 echo "$ac_t""yes" 1>&6
4292 XLIBS="-lXext $XLIBS"
4293 added_xext=yes
4294 cat >> confdefs.h <<\EOF
4295 #define SHAPE 1
4298 else
4299 echo "$ac_t""no" 1>&6
4300 shape=no
4306 shm=yes
4307 # Check whether --enable-shm or --disable-shm was given.
4308 if test "${enable_shm+set}" = set; then
4309 enableval="$enable_shm"
4310 shm=$enableval
4311 else
4312 shm=yes
4316 if test "$shm" = yes; then
4317 echo $ac_n "checking for XShmAttach in -lXext""... $ac_c" 1>&6
4318 echo "configure:4319: checking for XShmAttach in -lXext" >&5
4319 ac_lib_var=`echo Xext'_'XShmAttach | sed 'y%./+-%__p_%'`
4320 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4321 echo $ac_n "(cached) $ac_c" 1>&6
4322 else
4323 ac_save_LIBS="$LIBS"
4324 LIBS="-lXext $XLFLAGS $XLIBS $LIBS"
4325 cat > conftest.$ac_ext <<EOF
4326 #line 4327 "configure"
4327 #include "confdefs.h"
4328 /* Override any gcc2 internal prototype to avoid an error. */
4329 /* We use char because int might match the return type of a gcc2
4330 builtin and then its argument prototype would still apply. */
4331 char XShmAttach();
4333 int main() {
4334 XShmAttach()
4335 ; return 0; }
4337 if { (eval echo configure:4338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4338 rm -rf conftest*
4339 eval "ac_cv_lib_$ac_lib_var=yes"
4340 else
4341 echo "configure: failed program was:" >&5
4342 cat conftest.$ac_ext >&5
4343 rm -rf conftest*
4344 eval "ac_cv_lib_$ac_lib_var=no"
4346 rm -f conftest*
4347 LIBS="$ac_save_LIBS"
4350 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4351 echo "$ac_t""yes" 1>&6
4352 ok=yes
4353 else
4354 echo "$ac_t""no" 1>&6
4355 ok=no
4359 if test "$ok" = yes; then
4360 echo $ac_n "checking for shmget""... $ac_c" 1>&6
4361 echo "configure:4362: checking for shmget" >&5
4362 if eval "test \"`echo '$''{'ac_cv_func_shmget'+set}'`\" = set"; then
4363 echo $ac_n "(cached) $ac_c" 1>&6
4364 else
4365 cat > conftest.$ac_ext <<EOF
4366 #line 4367 "configure"
4367 #include "confdefs.h"
4368 /* System header to define __stub macros and hopefully few prototypes,
4369 which can conflict with char shmget(); below. */
4370 #include <assert.h>
4371 /* Override any gcc2 internal prototype to avoid an error. */
4372 /* We use char because int might match the return type of a gcc2
4373 builtin and then its argument prototype would still apply. */
4374 char shmget();
4376 int main() {
4378 /* The GNU C library defines this for functions which it implements
4379 to always fail with ENOSYS. Some functions are actually named
4380 something starting with __ and the normal name is an alias. */
4381 #if defined (__stub_shmget) || defined (__stub___shmget)
4382 choke me
4383 #else
4384 shmget();
4385 #endif
4387 ; return 0; }
4389 if { (eval echo configure:4390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4390 rm -rf conftest*
4391 eval "ac_cv_func_shmget=yes"
4392 else
4393 echo "configure: failed program was:" >&5
4394 cat conftest.$ac_ext >&5
4395 rm -rf conftest*
4396 eval "ac_cv_func_shmget=no"
4398 rm -f conftest*
4401 if eval "test \"`echo '$ac_cv_func_'shmget`\" = yes"; then
4402 echo "$ac_t""yes" 1>&6
4403 ok=yes
4404 else
4405 echo "$ac_t""no" 1>&6
4406 ok=no
4411 if test "$ok" = yes; then
4412 if test "$added_xext" = no; then
4413 XLIBS="-lXext $XLIBS"
4415 cat >> confdefs.h <<\EOF
4416 #define XSHM 1
4426 #AC_DEFINE(R6SM)
4427 #AC_SUBST(XSMPLIBS)
4432 LIBPL=""
4435 LDFLAGS_old="$LDFLAGS"
4436 LDFLAGS="$LDFLAGS $lib_search_path"
4437 echo $ac_n "checking for PLGetString in -lPropList""... $ac_c" 1>&6
4438 echo "configure:4439: checking for PLGetString in -lPropList" >&5
4439 ac_lib_var=`echo PropList'_'PLGetString | sed 'y%./+-%__p_%'`
4440 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4441 echo $ac_n "(cached) $ac_c" 1>&6
4442 else
4443 ac_save_LIBS="$LIBS"
4444 LIBS="-lPropList $X_EXTRA_LIBS $LIBS"
4445 cat > conftest.$ac_ext <<EOF
4446 #line 4447 "configure"
4447 #include "confdefs.h"
4448 /* Override any gcc2 internal prototype to avoid an error. */
4449 /* We use char because int might match the return type of a gcc2
4450 builtin and then its argument prototype would still apply. */
4451 char PLGetString();
4453 int main() {
4454 PLGetString()
4455 ; return 0; }
4457 if { (eval echo configure:4458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4458 rm -rf conftest*
4459 eval "ac_cv_lib_$ac_lib_var=yes"
4460 else
4461 echo "configure: failed program was:" >&5
4462 cat conftest.$ac_ext >&5
4463 rm -rf conftest*
4464 eval "ac_cv_lib_$ac_lib_var=no"
4466 rm -f conftest*
4467 LIBS="$ac_save_LIBS"
4470 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4471 echo "$ac_t""yes" 1>&6
4472 yes=yes
4473 else
4474 echo "$ac_t""no" 1>&6
4475 no=no
4478 LDFLAGS="$LDFLAGS_old"
4480 if test "x$ac_cv_lib_PropList_PLGetString" = xyes; then
4482 CPPFLAGS_old="$CPPFLAGS"
4483 CPPFLAGS="$CPPFLAGS $inc_search_path"
4484 ac_safe=`echo "proplist.h" | sed 'y%./+-%__p_%'`
4485 echo $ac_n "checking for proplist.h""... $ac_c" 1>&6
4486 echo "configure:4487: checking for proplist.h" >&5
4487 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4488 echo $ac_n "(cached) $ac_c" 1>&6
4489 else
4490 cat > conftest.$ac_ext <<EOF
4491 #line 4492 "configure"
4492 #include "confdefs.h"
4493 #include <proplist.h>
4495 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4496 { (eval echo configure:4497: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4497 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4498 if test -z "$ac_err"; then
4499 rm -rf conftest*
4500 eval "ac_cv_header_$ac_safe=yes"
4501 else
4502 echo "$ac_err" >&5
4503 echo "configure: failed program was:" >&5
4504 cat conftest.$ac_ext >&5
4505 rm -rf conftest*
4506 eval "ac_cv_header_$ac_safe=no"
4508 rm -f conftest*
4510 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4511 echo "$ac_t""yes" 1>&6
4513 else
4514 echo "$ac_t""no" 1>&6
4517 CPPFLAGS="$CPPFLAGS_old"
4519 if test "x$ac_cv_header_proplist_h" = xyes; then
4520 LIBPL="-lPropList"
4524 if test "x$LIBPL" = "x"; then
4525 echo
4526 echo "ERROR!!! libPropList is not installed, or could not be found."
4527 echo " Window Maker requires libPropList to build."
4528 echo " Please read INSTALL to find where you can find libPropList,"
4529 echo " and install it first."
4530 echo " If you already have it installed, try using the"
4531 if test "x$ac_cv_lib_PropList_PLGetString" != xyes; then
4532 echo " --with-libs-from flag to tell configure where the library"
4533 echo " is installed and"
4535 echo " --with-incs-from flag to tell configure where the header"
4536 echo " files are installed"
4537 exit 1
4549 xpm=yes
4550 # Check whether --enable-xpm or --disable-xpm was given.
4551 if test "${enable_xpm+set}" = set; then
4552 enableval="$enable_xpm"
4553 xpm=$enableval
4554 else
4555 xpm=yes
4559 if test "$xpm" = yes; then
4561 LDFLAGS_old="$LDFLAGS"
4562 LDFLAGS="$LDFLAGS $lib_search_path"
4563 echo $ac_n "checking for XpmCreatePixmapFromData in -lXpm""... $ac_c" 1>&6
4564 echo "configure:4565: checking for XpmCreatePixmapFromData in -lXpm" >&5
4565 ac_lib_var=`echo Xpm'_'XpmCreatePixmapFromData | sed 'y%./+-%__p_%'`
4566 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4567 echo $ac_n "(cached) $ac_c" 1>&6
4568 else
4569 ac_save_LIBS="$LIBS"
4570 LIBS="-lXpm $XLFLAGS $XLIBS $LIBS"
4571 cat > conftest.$ac_ext <<EOF
4572 #line 4573 "configure"
4573 #include "confdefs.h"
4574 /* Override any gcc2 internal prototype to avoid an error. */
4575 /* We use char because int might match the return type of a gcc2
4576 builtin and then its argument prototype would still apply. */
4577 char XpmCreatePixmapFromData();
4579 int main() {
4580 XpmCreatePixmapFromData()
4581 ; return 0; }
4583 if { (eval echo configure:4584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4584 rm -rf conftest*
4585 eval "ac_cv_lib_$ac_lib_var=yes"
4586 else
4587 echo "configure: failed program was:" >&5
4588 cat conftest.$ac_ext >&5
4589 rm -rf conftest*
4590 eval "ac_cv_lib_$ac_lib_var=no"
4592 rm -f conftest*
4593 LIBS="$ac_save_LIBS"
4596 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4597 echo "$ac_t""yes" 1>&6
4598 yes=yes
4599 else
4600 echo "$ac_t""no" 1>&6
4601 no=no
4604 LDFLAGS="$LDFLAGS_old"
4607 if test "x$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = xyes; then
4609 CPPFLAGS_old="$CPPFLAGS"
4610 CPPFLAGS="$CPPFLAGS $inc_search_path"
4611 ac_safe=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'`
4612 echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6
4613 echo "configure:4614: checking for X11/xpm.h" >&5
4614 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4615 echo $ac_n "(cached) $ac_c" 1>&6
4616 else
4617 cat > conftest.$ac_ext <<EOF
4618 #line 4619 "configure"
4619 #include "confdefs.h"
4620 #include <X11/xpm.h>
4622 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4623 { (eval echo configure:4624: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4624 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4625 if test -z "$ac_err"; then
4626 rm -rf conftest*
4627 eval "ac_cv_header_$ac_safe=yes"
4628 else
4629 echo "$ac_err" >&5
4630 echo "configure: failed program was:" >&5
4631 cat conftest.$ac_ext >&5
4632 rm -rf conftest*
4633 eval "ac_cv_header_$ac_safe=no"
4635 rm -f conftest*
4637 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4638 echo "$ac_t""yes" 1>&6
4640 else
4641 echo "$ac_t""no" 1>&6
4644 CPPFLAGS="$CPPFLAGS_old"
4646 if test "x$ac_cv_header_X11_xpm_h" = xyes; then
4647 GFXLIBS="$GFXLIBS -lXpm"
4648 supported_gfx="XPM"
4649 cat >> confdefs.h <<\EOF
4650 #define USE_XPM 1
4653 else
4654 supported_gfx="builtin-XPM"
4659 # for wmlib
4661 # for test
4669 png=yes
4670 # Check whether --enable-png or --disable-png was given.
4671 if test "${enable_png+set}" = set; then
4672 enableval="$enable_png"
4673 png=$enableval
4674 else
4675 png=yes
4680 if test "$png" = yes ; then
4682 LDFLAGS_old="$LDFLAGS"
4683 LDFLAGS="$LDFLAGS $lib_search_path"
4684 echo $ac_n "checking for png_get_valid in -lpng""... $ac_c" 1>&6
4685 echo "configure:4686: checking for png_get_valid in -lpng" >&5
4686 ac_lib_var=`echo png'_'png_get_valid | sed 'y%./+-%__p_%'`
4687 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4688 echo $ac_n "(cached) $ac_c" 1>&6
4689 else
4690 ac_save_LIBS="$LIBS"
4691 LIBS="-lpng -lz -lm $LIBS"
4692 cat > conftest.$ac_ext <<EOF
4693 #line 4694 "configure"
4694 #include "confdefs.h"
4695 /* Override any gcc2 internal prototype to avoid an error. */
4696 /* We use char because int might match the return type of a gcc2
4697 builtin and then its argument prototype would still apply. */
4698 char png_get_valid();
4700 int main() {
4701 png_get_valid()
4702 ; return 0; }
4704 if { (eval echo configure:4705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4705 rm -rf conftest*
4706 eval "ac_cv_lib_$ac_lib_var=yes"
4707 else
4708 echo "configure: failed program was:" >&5
4709 cat conftest.$ac_ext >&5
4710 rm -rf conftest*
4711 eval "ac_cv_lib_$ac_lib_var=no"
4713 rm -f conftest*
4714 LIBS="$ac_save_LIBS"
4717 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4718 echo "$ac_t""yes" 1>&6
4719 yes=yes
4720 else
4721 echo "$ac_t""no" 1>&6
4722 no=no
4725 LDFLAGS="$LDFLAGS_old"
4728 if test "x$ac_cv_lib_png_png_get_valid" = xyes; then
4730 CPPFLAGS_old="$CPPFLAGS"
4731 CPPFLAGS="$CPPFLAGS $inc_search_path"
4732 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
4733 echo $ac_n "checking for png.h""... $ac_c" 1>&6
4734 echo "configure:4735: checking for png.h" >&5
4735 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4736 echo $ac_n "(cached) $ac_c" 1>&6
4737 else
4738 cat > conftest.$ac_ext <<EOF
4739 #line 4740 "configure"
4740 #include "confdefs.h"
4741 #include <png.h>
4743 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4744 { (eval echo configure:4745: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4745 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4746 if test -z "$ac_err"; then
4747 rm -rf conftest*
4748 eval "ac_cv_header_$ac_safe=yes"
4749 else
4750 echo "$ac_err" >&5
4751 echo "configure: failed program was:" >&5
4752 cat conftest.$ac_ext >&5
4753 rm -rf conftest*
4754 eval "ac_cv_header_$ac_safe=no"
4756 rm -f conftest*
4758 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4759 echo "$ac_t""yes" 1>&6
4761 else
4762 echo "$ac_t""no" 1>&6
4765 CPPFLAGS="$CPPFLAGS_old"
4767 if test "x$ac_cv_header_png_h" = xyes; then
4768 GFXLIBS="$GFXLIBS -lpng -lz"
4769 supported_gfx="$supported_gfx PNG"
4770 cat >> confdefs.h <<\EOF
4771 #define USE_PNG 1
4779 jpeg=yes
4780 ljpeg=""
4781 # Check whether --enable-jpeg or --disable-jpeg was given.
4782 if test "${enable_jpeg+set}" = set; then
4783 enableval="$enable_jpeg"
4784 jpeg=$enableval
4785 else
4786 jpeg=yes
4790 if test "$jpeg" = yes; then
4792 LDFLAGS_old="$LDFLAGS"
4793 LDFLAGS="$LDFLAGS $lib_search_path"
4794 echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6
4795 echo "configure:4796: checking for jpeg_destroy_compress in -ljpeg" >&5
4796 ac_lib_var=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'`
4797 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4798 echo $ac_n "(cached) $ac_c" 1>&6
4799 else
4800 ac_save_LIBS="$LIBS"
4801 LIBS="-ljpeg $LIBS"
4802 cat > conftest.$ac_ext <<EOF
4803 #line 4804 "configure"
4804 #include "confdefs.h"
4805 /* Override any gcc2 internal prototype to avoid an error. */
4806 /* We use char because int might match the return type of a gcc2
4807 builtin and then its argument prototype would still apply. */
4808 char jpeg_destroy_compress();
4810 int main() {
4811 jpeg_destroy_compress()
4812 ; return 0; }
4814 if { (eval echo configure:4815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4815 rm -rf conftest*
4816 eval "ac_cv_lib_$ac_lib_var=yes"
4817 else
4818 echo "configure: failed program was:" >&5
4819 cat conftest.$ac_ext >&5
4820 rm -rf conftest*
4821 eval "ac_cv_lib_$ac_lib_var=no"
4823 rm -f conftest*
4824 LIBS="$ac_save_LIBS"
4827 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4828 echo "$ac_t""yes" 1>&6
4829 yes=yes
4830 else
4831 echo "$ac_t""no" 1>&6
4832 no=no
4835 LDFLAGS="$LDFLAGS_old"
4838 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = xyes; then
4840 ljpeg="-ljpeg"
4843 CPPFLAGS_old="$CPPFLAGS"
4844 CPPFLAGS="$CPPFLAGS $inc_search_path"
4845 ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
4846 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
4847 echo "configure:4848: checking for jpeglib.h" >&5
4848 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4849 echo $ac_n "(cached) $ac_c" 1>&6
4850 else
4851 cat > conftest.$ac_ext <<EOF
4852 #line 4853 "configure"
4853 #include "confdefs.h"
4854 #include <jpeglib.h>
4856 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4857 { (eval echo configure:4858: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4858 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4859 if test -z "$ac_err"; then
4860 rm -rf conftest*
4861 eval "ac_cv_header_$ac_safe=yes"
4862 else
4863 echo "$ac_err" >&5
4864 echo "configure: failed program was:" >&5
4865 cat conftest.$ac_ext >&5
4866 rm -rf conftest*
4867 eval "ac_cv_header_$ac_safe=no"
4869 rm -f conftest*
4871 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4872 echo "$ac_t""yes" 1>&6
4874 else
4875 echo "$ac_t""no" 1>&6
4878 CPPFLAGS="$CPPFLAGS_old"
4880 if test "x$ac_cv_header_jpeglib_h" = xyes; then
4881 GFXLIBS="$GFXLIBS -ljpeg"
4882 supported_gfx="$supported_gfx JPEG"
4883 cat >> confdefs.h <<\EOF
4884 #define USE_JPEG 1
4892 gif=yes
4893 # Check whether --enable-gif or --disable-gif was given.
4894 if test "${enable_gif+set}" = set; then
4895 enableval="$enable_gif"
4896 gif=$enableval
4897 else
4898 gif=yes
4902 if test "$gif" = yes; then
4903 my_libname=""
4905 LDFLAGS_old="$LDFLAGS"
4906 LDFLAGS="$LDFLAGS $lib_search_path"
4907 echo $ac_n "checking for DGifOpenFileName in -lungif""... $ac_c" 1>&6
4908 echo "configure:4909: checking for DGifOpenFileName in -lungif" >&5
4909 ac_lib_var=`echo ungif'_'DGifOpenFileName | sed 'y%./+-%__p_%'`
4910 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4911 echo $ac_n "(cached) $ac_c" 1>&6
4912 else
4913 ac_save_LIBS="$LIBS"
4914 LIBS="-lungif $XLFLAGS $XLIBS $LIBS"
4915 cat > conftest.$ac_ext <<EOF
4916 #line 4917 "configure"
4917 #include "confdefs.h"
4918 /* Override any gcc2 internal prototype to avoid an error. */
4919 /* We use char because int might match the return type of a gcc2
4920 builtin and then its argument prototype would still apply. */
4921 char DGifOpenFileName();
4923 int main() {
4924 DGifOpenFileName()
4925 ; return 0; }
4927 if { (eval echo configure:4928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4928 rm -rf conftest*
4929 eval "ac_cv_lib_$ac_lib_var=yes"
4930 else
4931 echo "configure: failed program was:" >&5
4932 cat conftest.$ac_ext >&5
4933 rm -rf conftest*
4934 eval "ac_cv_lib_$ac_lib_var=no"
4936 rm -f conftest*
4937 LIBS="$ac_save_LIBS"
4940 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4941 echo "$ac_t""yes" 1>&6
4942 yes=yes
4943 else
4944 echo "$ac_t""no" 1>&6
4945 no=no
4948 LDFLAGS="$LDFLAGS_old"
4950 if test "x$ac_cv_lib_ungif_DGifOpenFileName" = xyes; then
4951 my_libname=-lungif
4953 if test "x$my_libname" = x; then
4955 LDFLAGS_old="$LDFLAGS"
4956 LDFLAGS="$LDFLAGS $lib_search_path"
4957 echo $ac_n "checking for DGifOpenFileName in -lgif""... $ac_c" 1>&6
4958 echo "configure:4959: checking for DGifOpenFileName in -lgif" >&5
4959 ac_lib_var=`echo gif'_'DGifOpenFileName | sed 'y%./+-%__p_%'`
4960 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4961 echo $ac_n "(cached) $ac_c" 1>&6
4962 else
4963 ac_save_LIBS="$LIBS"
4964 LIBS="-lgif $XLFLAGS $XLIBS $LIBS"
4965 cat > conftest.$ac_ext <<EOF
4966 #line 4967 "configure"
4967 #include "confdefs.h"
4968 /* Override any gcc2 internal prototype to avoid an error. */
4969 /* We use char because int might match the return type of a gcc2
4970 builtin and then its argument prototype would still apply. */
4971 char DGifOpenFileName();
4973 int main() {
4974 DGifOpenFileName()
4975 ; return 0; }
4977 if { (eval echo configure:4978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4978 rm -rf conftest*
4979 eval "ac_cv_lib_$ac_lib_var=yes"
4980 else
4981 echo "configure: failed program was:" >&5
4982 cat conftest.$ac_ext >&5
4983 rm -rf conftest*
4984 eval "ac_cv_lib_$ac_lib_var=no"
4986 rm -f conftest*
4987 LIBS="$ac_save_LIBS"
4990 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4991 echo "$ac_t""yes" 1>&6
4992 yes=yes
4993 else
4994 echo "$ac_t""no" 1>&6
4995 no=no
4998 LDFLAGS="$LDFLAGS_old"
5000 if test "x$ac_cv_lib_gif_DGifOpenFileName" = xyes; then
5001 my_libname=-lgif
5005 if test "$my_libname" != x; then
5007 CPPFLAGS_old="$CPPFLAGS"
5008 CPPFLAGS="$CPPFLAGS $inc_search_path"
5009 ac_safe=`echo "gif_lib.h" | sed 'y%./+-%__p_%'`
5010 echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6
5011 echo "configure:5012: checking for gif_lib.h" >&5
5012 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5013 echo $ac_n "(cached) $ac_c" 1>&6
5014 else
5015 cat > conftest.$ac_ext <<EOF
5016 #line 5017 "configure"
5017 #include "confdefs.h"
5018 #include <gif_lib.h>
5020 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5021 { (eval echo configure:5022: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5022 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5023 if test -z "$ac_err"; then
5024 rm -rf conftest*
5025 eval "ac_cv_header_$ac_safe=yes"
5026 else
5027 echo "$ac_err" >&5
5028 echo "configure: failed program was:" >&5
5029 cat conftest.$ac_ext >&5
5030 rm -rf conftest*
5031 eval "ac_cv_header_$ac_safe=no"
5033 rm -f conftest*
5035 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5036 echo "$ac_t""yes" 1>&6
5038 else
5039 echo "$ac_t""no" 1>&6
5042 CPPFLAGS="$CPPFLAGS_old"
5044 if test "x$ac_cv_header_gif_lib_h" = xyes; then
5045 GFXLIBS="$GFXLIBS $my_libname"
5046 supported_gfx="$supported_gfx GIF"
5047 cat >> confdefs.h <<\EOF
5048 #define USE_GIF 1
5057 # Check whether --enable-tiff or --disable-tiff was given.
5058 if test "${enable_tiff+set}" = set; then
5059 enableval="$enable_tiff"
5060 tif=$enableval
5061 else
5062 tif=yes
5067 # TIFF can optionally have JPEG and/or zlib support. Must find out
5068 # when they are supported so that correct library flags are passed during
5069 # detection and linkage
5072 # By default use xpm icons if tiff is not found.
5073 ICONEXT="xpm"
5076 if test "$tif" = yes; then
5077 my_libname=""
5079 LDFLAGS_old="$LDFLAGS"
5080 LDFLAGS="$LDFLAGS $lib_search_path"
5081 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6
5082 echo "configure:5083: checking for TIFFGetVersion in -ltiff" >&5
5083 ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
5084 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5085 echo $ac_n "(cached) $ac_c" 1>&6
5086 else
5087 ac_save_LIBS="$LIBS"
5088 LIBS="-ltiff -lm $LIBS"
5089 cat > conftest.$ac_ext <<EOF
5090 #line 5091 "configure"
5091 #include "confdefs.h"
5092 /* Override any gcc2 internal prototype to avoid an error. */
5093 /* We use char because int might match the return type of a gcc2
5094 builtin and then its argument prototype would still apply. */
5095 char TIFFGetVersion();
5097 int main() {
5098 TIFFGetVersion()
5099 ; return 0; }
5101 if { (eval echo configure:5102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5102 rm -rf conftest*
5103 eval "ac_cv_lib_$ac_lib_var=yes"
5104 else
5105 echo "configure: failed program was:" >&5
5106 cat conftest.$ac_ext >&5
5107 rm -rf conftest*
5108 eval "ac_cv_lib_$ac_lib_var=no"
5110 rm -f conftest*
5111 LIBS="$ac_save_LIBS"
5114 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5115 echo "$ac_t""yes" 1>&6
5116 yes=yes
5117 else
5118 echo "$ac_t""no" 1>&6
5119 no=no
5122 LDFLAGS="$LDFLAGS_old"
5124 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = xyes; then
5125 my_libname="-ltiff"
5127 unset ac_cv_lib_tiff_TIFFGetVersion
5128 if test "x$my_libname" = x; then
5130 LDFLAGS_old="$LDFLAGS"
5131 LDFLAGS="$LDFLAGS $lib_search_path"
5132 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6
5133 echo "configure:5134: checking for TIFFGetVersion in -ltiff" >&5
5134 ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
5135 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5136 echo $ac_n "(cached) $ac_c" 1>&6
5137 else
5138 ac_save_LIBS="$LIBS"
5139 LIBS="-ltiff $ljpeg -lz -lm $LIBS"
5140 cat > conftest.$ac_ext <<EOF
5141 #line 5142 "configure"
5142 #include "confdefs.h"
5143 /* Override any gcc2 internal prototype to avoid an error. */
5144 /* We use char because int might match the return type of a gcc2
5145 builtin and then its argument prototype would still apply. */
5146 char TIFFGetVersion();
5148 int main() {
5149 TIFFGetVersion()
5150 ; return 0; }
5152 if { (eval echo configure:5153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5153 rm -rf conftest*
5154 eval "ac_cv_lib_$ac_lib_var=yes"
5155 else
5156 echo "configure: failed program was:" >&5
5157 cat conftest.$ac_ext >&5
5158 rm -rf conftest*
5159 eval "ac_cv_lib_$ac_lib_var=no"
5161 rm -f conftest*
5162 LIBS="$ac_save_LIBS"
5165 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5166 echo "$ac_t""yes" 1>&6
5167 yes=yes
5168 else
5169 echo "$ac_t""no" 1>&6
5170 no=no
5173 LDFLAGS="$LDFLAGS_old"
5175 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = xyes; then
5176 my_libname="-ltiff -lz"
5180 if test "x$my_libname" = x; then
5182 LDFLAGS_old="$LDFLAGS"
5183 LDFLAGS="$LDFLAGS $lib_search_path"
5184 echo $ac_n "checking for TIFFGetVersion in -ltiff34""... $ac_c" 1>&6
5185 echo "configure:5186: checking for TIFFGetVersion in -ltiff34" >&5
5186 ac_lib_var=`echo tiff34'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
5187 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5188 echo $ac_n "(cached) $ac_c" 1>&6
5189 else
5190 ac_save_LIBS="$LIBS"
5191 LIBS="-ltiff34 $ljpeg -lm $LIBS"
5192 cat > conftest.$ac_ext <<EOF
5193 #line 5194 "configure"
5194 #include "confdefs.h"
5195 /* Override any gcc2 internal prototype to avoid an error. */
5196 /* We use char because int might match the return type of a gcc2
5197 builtin and then its argument prototype would still apply. */
5198 char TIFFGetVersion();
5200 int main() {
5201 TIFFGetVersion()
5202 ; return 0; }
5204 if { (eval echo configure:5205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5205 rm -rf conftest*
5206 eval "ac_cv_lib_$ac_lib_var=yes"
5207 else
5208 echo "configure: failed program was:" >&5
5209 cat conftest.$ac_ext >&5
5210 rm -rf conftest*
5211 eval "ac_cv_lib_$ac_lib_var=no"
5213 rm -f conftest*
5214 LIBS="$ac_save_LIBS"
5217 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5218 echo "$ac_t""yes" 1>&6
5219 yes=yes
5220 else
5221 echo "$ac_t""no" 1>&6
5222 no=no
5225 LDFLAGS="$LDFLAGS_old"
5227 if test "x$ac_cv_lib_tiff34_TIFFGetVersion" = xyes; then
5228 my_libname="-ltiff34"
5233 if test "x$my_libname" != x; then
5235 CPPFLAGS_old="$CPPFLAGS"
5236 CPPFLAGS="$CPPFLAGS $inc_search_path"
5237 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
5238 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
5239 echo "configure:5240: checking for tiffio.h" >&5
5240 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5241 echo $ac_n "(cached) $ac_c" 1>&6
5242 else
5243 cat > conftest.$ac_ext <<EOF
5244 #line 5245 "configure"
5245 #include "confdefs.h"
5246 #include <tiffio.h>
5248 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5249 { (eval echo configure:5250: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5250 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5251 if test -z "$ac_err"; then
5252 rm -rf conftest*
5253 eval "ac_cv_header_$ac_safe=yes"
5254 else
5255 echo "$ac_err" >&5
5256 echo "configure: failed program was:" >&5
5257 cat conftest.$ac_ext >&5
5258 rm -rf conftest*
5259 eval "ac_cv_header_$ac_safe=no"
5261 rm -f conftest*
5263 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5264 echo "$ac_t""yes" 1>&6
5266 else
5267 echo "$ac_t""no" 1>&6
5270 CPPFLAGS="$CPPFLAGS_old"
5272 if test "x$ac_cv_header_tiffio_h" = xyes; then
5273 GFXLIBS="$my_libname $GFXLIBS"
5274 ICONEXT="tiff"
5275 supported_gfx="$supported_gfx TIFF"
5276 cat >> confdefs.h <<\EOF
5277 #define USE_TIFF 1
5284 LIBRARY_SEARCH_PATH="$lib_search_path"
5285 HEADER_SEARCH_PATH="$inc_search_path"
5297 # Check whether --enable-debug or --disable-debug was given.
5298 if test "${enable_debug+set}" = set; then
5299 enableval="$enable_debug"
5301 else
5302 enable_debug=no
5306 if test "$enable_debug" = yes; then
5307 DFLAGS="-g -DDEBUG"
5308 # Efence makes things too slow. Add it by hand in the Makefiles
5309 # if it is really needed.
5310 # AC_CHECK_LIB(efence, malloc, LIBS="$LIBS -lefence")
5315 sound=yes
5316 # Check whether --enable-sound or --disable-sound was given.
5317 if test "${enable_sound+set}" = set; then
5318 enableval="$enable_sound"
5319 sound=$enableval
5320 else
5321 sound=yes
5324 if test "$sound" = yes; then
5325 cat >> confdefs.h <<\EOF
5326 #define WMSOUND 1
5332 # AC_PREFIX_PROGRAM(wmaker)
5334 # Check whether --with-pixmapdir or --without-pixmapdir was given.
5335 if test "${with_pixmapdir+set}" = set; then
5336 withval="$with_pixmapdir"
5341 if test "x$with_pixmapdir" != "x"; then
5342 pixmapdir=$with_pixmapdir
5343 else
5344 pixmapdir=`eval echo ${datadir}/pixmaps`
5347 cat >> confdefs.h <<EOF
5348 #define PIXMAPDIR "$pixmapdir"
5352 pkgdatadir=`eval echo $datadir`
5353 cat >> confdefs.h <<EOF
5354 #define PKGDATADIR "$pkgdatadir/WindowMaker"
5358 _sysconfdir=`eval echo $sysconfdir`
5359 cat >> confdefs.h <<EOF
5360 #define SYSCONFDIR "$_sysconfdir/WindowMaker"
5366 appspath=""
5368 # Check whether --with-appspath or --without-appspath was given.
5369 if test "${with_appspath+set}" = set; then
5370 withval="$with_appspath"
5371 appspath=$withval
5375 if test "x$appspath" = "x"; then
5376 gnustepdir='$(prefix)/GNUstep'
5378 if test "x$GNUSTEP_LOCAL_ROOT" != "x" ; then
5379 gnustepdir=`echo "$GNUSTEP_LOCAL_ROOT" | sed -e "s|^${prefix}|prefix|"`
5380 gnustepdir=`echo $gnustepdir | sed -e 's|^prefix|${prefix}|'`
5383 with_appspath=$gnustepdir/Apps
5386 wprefsdir=$with_appspath/WPrefs.app
5392 # Check whether --enable-single-icon or --disable-single-icon was given.
5393 if test "${enable_single_icon+set}" = set; then
5394 enableval="$enable_single_icon"
5395 if test "$enableval" = yes; then
5396 cat >> confdefs.h <<\EOF
5397 #define REDUCE_APPICONS 1
5405 # Check whether --enable-usermenu or --disable-usermenu was given.
5406 if test "${enable_usermenu+set}" = set; then
5407 enableval="$enable_usermenu"
5408 if test "$enableval" = yes; then
5409 cat >> confdefs.h <<\EOF
5410 #define USER_MENU 1
5421 trap '' 1 2 15
5422 cat > confcache <<\EOF
5423 # This file is a shell script that caches the results of configure
5424 # tests run on this system so they can be shared between configure
5425 # scripts and configure runs. It is not useful on other systems.
5426 # If it contains results you don't want to keep, you may remove or edit it.
5428 # By default, configure uses ./config.cache as the cache file,
5429 # creating it if it does not exist already. You can give configure
5430 # the --cache-file=FILE option to use a different cache file; that is
5431 # what configure does when it calls configure scripts in
5432 # subdirectories, so they share the cache.
5433 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5434 # config.status only pays attention to the cache file if you give it the
5435 # --recheck option to rerun configure.
5438 # The following way of writing the cache mishandles newlines in values,
5439 # but we know of no workaround that is simple, portable, and efficient.
5440 # So, don't put newlines in cache variables' values.
5441 # Ultrix sh set writes to stderr and can't be redirected directly,
5442 # and sets the high bit in the cache file unless we assign to the vars.
5443 (set) 2>&1 |
5444 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5445 *ac_space=\ *)
5446 # `set' does not quote correctly, so add quotes (double-quote substitution
5447 # turns \\\\ into \\, and sed turns \\ into \).
5448 sed -n \
5449 -e "s/'/'\\\\''/g" \
5450 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5453 # `set' quotes correctly as required by POSIX, so do not add quotes.
5454 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5456 esac >> confcache
5457 if cmp -s $cache_file confcache; then
5459 else
5460 if test -w $cache_file; then
5461 echo "updating cache $cache_file"
5462 cat confcache > $cache_file
5463 else
5464 echo "not updating unwritable cache $cache_file"
5467 rm -f confcache
5469 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5471 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5472 # Let make expand exec_prefix.
5473 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5475 # Any assignment to VPATH causes Sun make to only execute
5476 # the first set of double-colon rules, so remove it if not needed.
5477 # If there is a colon in the path, we need to keep it.
5478 if test "x$srcdir" = x.; then
5479 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
5482 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5484 DEFS=-DHAVE_CONFIG_H
5486 # Without the "./", some shells look in PATH for config.status.
5487 : ${CONFIG_STATUS=./config.status}
5489 echo creating $CONFIG_STATUS
5490 rm -f $CONFIG_STATUS
5491 cat > $CONFIG_STATUS <<EOF
5492 #! /bin/sh
5493 # Generated automatically by configure.
5494 # Run this file to recreate the current configuration.
5495 # This directory was configured as follows,
5496 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5498 # $0 $ac_configure_args
5500 # Compiler output produced by configure, useful for debugging
5501 # configure, is in ./config.log if it exists.
5503 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5504 for ac_option
5506 case "\$ac_option" in
5507 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5508 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5509 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5510 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5511 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5512 exit 0 ;;
5513 -help | --help | --hel | --he | --h)
5514 echo "\$ac_cs_usage"; exit 0 ;;
5515 *) echo "\$ac_cs_usage"; exit 1 ;;
5516 esac
5517 done
5519 ac_given_srcdir=$srcdir
5520 ac_given_INSTALL="$INSTALL"
5522 trap 'rm -fr `echo "Makefile po/Makefile util/Makefile test/Makefile wmlib/Makefile \
5523 WINGs/Makefile WINGs/Resources/Makefile src/Makefile src/wconfig.h \
5524 wrlib/Makefile doc/Makefile WindowMaker/Makefile contrib/Makefile \
5525 WindowMaker/Backgrounds/Makefile WindowMaker/Defaults/Makefile \
5526 WindowMaker/IconSets/Makefile WindowMaker/Icons/Makefile \
5527 WindowMaker/Pixmaps/Makefile WindowMaker/Styles/Makefile \
5528 WindowMaker/Themes/Makefile \
5529 WPrefs.app/Makefile WPrefs.app/tiff/Makefile WPrefs.app/xpm/Makefile \
5530 WPrefs.app/po/Makefile src/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5532 cat >> $CONFIG_STATUS <<EOF
5534 # Protect against being on the right side of a sed subst in config.status.
5535 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5536 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5537 $ac_vpsub
5538 $extrasub
5539 s%@SHELL@%$SHELL%g
5540 s%@CFLAGS@%$CFLAGS%g
5541 s%@CPPFLAGS@%$CPPFLAGS%g
5542 s%@CXXFLAGS@%$CXXFLAGS%g
5543 s%@FFLAGS@%$FFLAGS%g
5544 s%@DEFS@%$DEFS%g
5545 s%@LDFLAGS@%$LDFLAGS%g
5546 s%@LIBS@%$LIBS%g
5547 s%@exec_prefix@%$exec_prefix%g
5548 s%@prefix@%$prefix%g
5549 s%@program_transform_name@%$program_transform_name%g
5550 s%@bindir@%$bindir%g
5551 s%@sbindir@%$sbindir%g
5552 s%@libexecdir@%$libexecdir%g
5553 s%@datadir@%$datadir%g
5554 s%@sysconfdir@%$sysconfdir%g
5555 s%@sharedstatedir@%$sharedstatedir%g
5556 s%@localstatedir@%$localstatedir%g
5557 s%@libdir@%$libdir%g
5558 s%@includedir@%$includedir%g
5559 s%@oldincludedir@%$oldincludedir%g
5560 s%@infodir@%$infodir%g
5561 s%@mandir@%$mandir%g
5562 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5563 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5564 s%@INSTALL_DATA@%$INSTALL_DATA%g
5565 s%@PACKAGE@%$PACKAGE%g
5566 s%@VERSION@%$VERSION%g
5567 s%@ACLOCAL@%$ACLOCAL%g
5568 s%@AUTOCONF@%$AUTOCONF%g
5569 s%@AUTOMAKE@%$AUTOMAKE%g
5570 s%@AUTOHEADER@%$AUTOHEADER%g
5571 s%@MAKEINFO@%$MAKEINFO%g
5572 s%@SET_MAKE@%$SET_MAKE%g
5573 s%@host@%$host%g
5574 s%@host_alias@%$host_alias%g
5575 s%@host_cpu@%$host_cpu%g
5576 s%@host_vendor@%$host_vendor%g
5577 s%@host_os@%$host_os%g
5578 s%@build@%$build%g
5579 s%@build_alias@%$build_alias%g
5580 s%@build_cpu@%$build_cpu%g
5581 s%@build_vendor@%$build_vendor%g
5582 s%@build_os@%$build_os%g
5583 s%@RANLIB@%$RANLIB%g
5584 s%@CC@%$CC%g
5585 s%@LD@%$LD%g
5586 s%@NM@%$NM%g
5587 s%@LN_S@%$LN_S%g
5588 s%@LIBTOOL@%$LIBTOOL%g
5589 s%@CPP@%$CPP%g
5590 s%@ALLOCA@%$ALLOCA%g
5591 s%@CPP_PATH@%$CPP_PATH%g
5592 s%@XGETTEXT@%$XGETTEXT%g
5593 s%@DLLIBS@%$DLLIBS%g
5594 s%@INTLIBS@%$INTLIBS%g
5595 s%@NLSDIR@%$NLSDIR%g
5596 s%@MOFILES@%$MOFILES%g
5597 s%@WPMOFILES@%$WPMOFILES%g
5598 s%@LITE@%$LITE%g
5599 s%@X_CFLAGS@%$X_CFLAGS%g
5600 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
5601 s%@X_LIBS@%$X_LIBS%g
5602 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
5603 s%@LIBPL@%$LIBPL%g
5604 s%@XCFLAGS@%$XCFLAGS%g
5605 s%@XLFLAGS@%$XLFLAGS%g
5606 s%@XLIBS@%$XLIBS%g
5607 s%@LIBRARY_SEARCH_PATH@%$LIBRARY_SEARCH_PATH%g
5608 s%@HEADER_SEARCH_PATH@%$HEADER_SEARCH_PATH%g
5609 s%@GFXLIBS@%$GFXLIBS%g
5610 s%@ICONEXT@%$ICONEXT%g
5611 s%@DFLAGS@%$DFLAGS%g
5612 s%@wprefsdir@%$wprefsdir%g
5614 CEOF
5617 cat >> $CONFIG_STATUS <<\EOF
5619 # Split the substitutions into bite-sized pieces for seds with
5620 # small command number limits, like on Digital OSF/1 and HP-UX.
5621 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5622 ac_file=1 # Number of current file.
5623 ac_beg=1 # First line for current file.
5624 ac_end=$ac_max_sed_cmds # Line after last line for current file.
5625 ac_more_lines=:
5626 ac_sed_cmds=""
5627 while $ac_more_lines; do
5628 if test $ac_beg -gt 1; then
5629 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5630 else
5631 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5633 if test ! -s conftest.s$ac_file; then
5634 ac_more_lines=false
5635 rm -f conftest.s$ac_file
5636 else
5637 if test -z "$ac_sed_cmds"; then
5638 ac_sed_cmds="sed -f conftest.s$ac_file"
5639 else
5640 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5642 ac_file=`expr $ac_file + 1`
5643 ac_beg=$ac_end
5644 ac_end=`expr $ac_end + $ac_max_sed_cmds`
5646 done
5647 if test -z "$ac_sed_cmds"; then
5648 ac_sed_cmds=cat
5652 cat >> $CONFIG_STATUS <<EOF
5654 CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile util/Makefile test/Makefile wmlib/Makefile \
5655 WINGs/Makefile WINGs/Resources/Makefile src/Makefile src/wconfig.h \
5656 wrlib/Makefile doc/Makefile WindowMaker/Makefile contrib/Makefile \
5657 WindowMaker/Backgrounds/Makefile WindowMaker/Defaults/Makefile \
5658 WindowMaker/IconSets/Makefile WindowMaker/Icons/Makefile \
5659 WindowMaker/Pixmaps/Makefile WindowMaker/Styles/Makefile \
5660 WindowMaker/Themes/Makefile \
5661 WPrefs.app/Makefile WPrefs.app/tiff/Makefile WPrefs.app/xpm/Makefile \
5662 WPrefs.app/po/Makefile "}
5664 cat >> $CONFIG_STATUS <<\EOF
5665 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5666 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5667 case "$ac_file" in
5668 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5669 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5670 *) ac_file_in="${ac_file}.in" ;;
5671 esac
5673 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5675 # Remove last slash and all that follows it. Not all systems have dirname.
5676 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5677 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5678 # The file is in a subdirectory.
5679 test ! -d "$ac_dir" && mkdir "$ac_dir"
5680 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5681 # A "../" for each directory in $ac_dir_suffix.
5682 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5683 else
5684 ac_dir_suffix= ac_dots=
5687 case "$ac_given_srcdir" in
5688 .) srcdir=.
5689 if test -z "$ac_dots"; then top_srcdir=.
5690 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5691 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5692 *) # Relative path.
5693 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5694 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5695 esac
5697 case "$ac_given_INSTALL" in
5698 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5699 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5700 esac
5702 echo creating "$ac_file"
5703 rm -f "$ac_file"
5704 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5705 case "$ac_file" in
5706 *Makefile*) ac_comsub="1i\\
5707 # $configure_input" ;;
5708 *) ac_comsub= ;;
5709 esac
5711 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5712 sed -e "$ac_comsub
5713 s%@configure_input@%$configure_input%g
5714 s%@srcdir@%$srcdir%g
5715 s%@top_srcdir@%$top_srcdir%g
5716 s%@INSTALL@%$INSTALL%g
5717 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5718 fi; done
5719 rm -f conftest.s*
5721 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5722 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5724 # ac_d sets the value in "#define NAME VALUE" lines.
5725 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5726 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
5727 ac_dC='\3'
5728 ac_dD='%g'
5729 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5730 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5731 ac_uB='\([ ]\)%\1#\2define\3'
5732 ac_uC=' '
5733 ac_uD='\4%g'
5734 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5735 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5736 ac_eB='$%\1#\2define\3'
5737 ac_eC=' '
5738 ac_eD='%g'
5740 if test "${CONFIG_HEADERS+set}" != set; then
5742 cat >> $CONFIG_STATUS <<EOF
5743 CONFIG_HEADERS="src/config.h"
5745 cat >> $CONFIG_STATUS <<\EOF
5747 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
5748 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5749 case "$ac_file" in
5750 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5751 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5752 *) ac_file_in="${ac_file}.in" ;;
5753 esac
5755 echo creating $ac_file
5757 rm -f conftest.frag conftest.in conftest.out
5758 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5759 cat $ac_file_inputs > conftest.in
5763 # Transform confdefs.h into a sed script conftest.vals that substitutes
5764 # the proper values into config.h.in to produce config.h. And first:
5765 # Protect against being on the right side of a sed subst in config.status.
5766 # Protect against being in an unquoted here document in config.status.
5767 rm -f conftest.vals
5768 cat > conftest.hdr <<\EOF
5769 s/[\\&%]/\\&/g
5770 s%[\\$`]%\\&%g
5771 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5772 s%ac_d%ac_u%gp
5773 s%ac_u%ac_e%gp
5775 sed -n -f conftest.hdr confdefs.h > conftest.vals
5776 rm -f conftest.hdr
5778 # This sed command replaces #undef with comments. This is necessary, for
5779 # example, in the case of _POSIX_SOURCE, which is predefined and required
5780 # on some systems where configure will not decide to define it.
5781 cat >> conftest.vals <<\EOF
5782 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5785 # Break up conftest.vals because some shells have a limit on
5786 # the size of here documents, and old seds have small limits too.
5788 rm -f conftest.tail
5789 while :
5791 ac_lines=`grep -c . conftest.vals`
5792 # grep -c gives empty output for an empty file on some AIX systems.
5793 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5794 # Write a limited-size here document to conftest.frag.
5795 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5796 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5797 echo 'CEOF
5798 sed -f conftest.frag conftest.in > conftest.out
5799 rm -f conftest.in
5800 mv conftest.out conftest.in
5801 ' >> $CONFIG_STATUS
5802 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5803 rm -f conftest.vals
5804 mv conftest.tail conftest.vals
5805 done
5806 rm -f conftest.vals
5808 cat >> $CONFIG_STATUS <<\EOF
5809 rm -f conftest.frag conftest.h
5810 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5811 cat conftest.in >> conftest.h
5812 rm -f conftest.in
5813 if cmp -s $ac_file conftest.h 2>/dev/null; then
5814 echo "$ac_file is unchanged"
5815 rm -f conftest.h
5816 else
5817 # Remove last slash and all that follows it. Not all systems have dirname.
5818 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5819 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5820 # The file is in a subdirectory.
5821 test ! -d "$ac_dir" && mkdir "$ac_dir"
5823 rm -f $ac_file
5824 mv conftest.h $ac_file
5826 fi; done
5829 cat >> $CONFIG_STATUS <<EOF
5833 cat >> $CONFIG_STATUS <<\EOF
5834 test -z "$CONFIG_HEADERS" || echo timestamp > src/stamp-h
5836 exit 0
5838 chmod +x $CONFIG_STATUS
5839 rm -fr confdefs* $ac_clean_files
5840 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
5848 cat <<EOF >get-wraster-flags
5849 #!/bin/sh
5851 prefix="$prefix"
5852 exec_prefix=\$prefix
5854 WCFLAGS="-I\$prefix/include $inc_search_path"
5855 WLFLAGS="-L\$exec_prefix/lib $lib_search_path"
5856 WLIBS="-lwraster $GFXLIBS $XLIBS -lm"
5858 usage="Usage: get-wraster-flags #lp#--cflags#rp# #lp#--ldflags#rp# #lp#--libs#rp#"
5860 if test \$# -eq 0; then
5861 echo "\${usage}" 1>&2
5862 exit 1
5865 while test \$# -gt 0; do
5866 case \$1 in
5867 --cflags)
5868 echo \$WCFLAGS
5870 --ldflags|--lflags)
5871 echo \$WLFLAGS
5873 --libs)
5874 echo \$WLIBS
5877 echo "\${usage}" 1>&2
5878 exit 1
5880 esac
5881 shift
5882 done
5887 sed 's/#lp#/[/g' get-wraster-flags | sed 's/#rp#/]/g' > wrlib/get-wraster-flags
5889 chmod 755 wrlib/get-wraster-flags
5890 rm -f get-wraster-flags
5894 supported_gfx="$supported_gfx builtin-PPM"
5896 if test "x$MOFILES" = "x"; then
5897 mof=none
5898 else
5899 mof=$MOFILES
5903 echo
5904 echo "Window Maker was configured as follows:"
5905 echo
5906 echo "Installation path prefix: $prefix"
5907 echo "Installation path prefix for binaries: $_bindir"
5908 echo "Installation path for WPrefs.app: $wprefsdir" | sed -e 's|\$(prefix)|'"$prefix|"
5909 echo "Graphic format libraries: $supported_gfx"
5910 echo "Sound support: $sound"
5911 echo "Translated message files to install: $mof"
5912 if test "x$MOFILES" != "x"; then
5913 echo "Installation path of translated messages: $NLSDIR" | sed -e 's|\$(prefix)|'"$prefix|"
5917 if test "$rh_is_redhat" = yes; then
5918 if test "$mins_found" = yes -o "$bugs_found" = yes; then
5919 echo
5920 echo "configure: warning: It seems you are using a system packaged by Red Hat.
5921 I have done some checks for Red-Hat-specific bugs, and I found some
5922 problems. Please read the INSTALL file regarding Red Hat, resolve
5923 the problems, and try to run configure again.
5925 Here are the problems I found:
5926 " 1>&2
5927 if test "x$rh_old_wmaker" = xyes; then
5928 echo "Problem: Old version of Window Maker in /usr/X11R6/bin."
5929 echo "Description: You seem to have an old version of Window Maker"
5930 echo " installed in /usr/X11R6/bin. It is recommended"
5931 echo " that you uninstall any previously installed"
5932 echo " packages of WindowMaker before installing a new one."
5933 echo
5935 if test "x$rh_missing_usr_local_bin" = xyes; then
5936 echo "Problem: PATH is missing /usr/local/bin."
5937 echo "Description: Your PATH environment variable does not appear to"
5938 echo " contain the directory /usr/local/bin. Please add it."
5939 echo
5941 if test "x$rh_missing_usr_local_lib" = xyes; then
5942 echo "Problem: /etc/ld.so.conf missing /usr/local/lib"
5943 echo "Description: Your /etc/ld.so.conf file does not appear to contain"
5944 echo " the directory /usr/local/lib. Please add it."
5945 echo
5947 if test "x$rh_missing_usr_x11" = xyes; then
5948 echo "Problem: Missing /usr/X11 symbolic link."
5949 echo "Description: Your system is missing a symbolic link from"
5950 echo " /usr/X11R6 to /usr/X11. Please create one."
5951 echo
5953 if test "x$rh_missing_usr_include_x11" = xyes; then
5954 echo "Problem: Missing /usr/include/X11 symbolic link."
5955 echo "Description: Your system is missing a symbolic link from"
5956 echo " /usr/X11R6/include/X11 to /usr/include/X11."
5957 echo " Please create one."
5958 echo
5960 if test "x$rh_missing_lib_cpp" = xyes; then
5961 echo "Problem: Missing /lib/cpp symbolic link."
5962 echo "Description: Your system is missing a symbolic link from the"
5963 echo " cpp (C preprocessor) program to /lib/cpp."
5964 echo " Please create one."
5965 echo
5967 if test "x$bugs_found" = xyes; then
5968 { echo "configure: error: One or more of the problems above can potentially
5969 cause Window Maker not to install or run properly. Please resolve
5970 the problems and try to run configure again." 1>&2; exit 1; }
5971 exit 1
5972 elif test "x$mins_found" = xyes; then
5973 echo "configure: warning: The problems above may or may not cause Window Maker
5974 not to install or run properly. If you have any problems during
5975 installation or execution, please resolve the problems and try to
5976 install Window Maker again." 1>&2
5977 echo
5979 else
5980 echo
5981 echo "You appear to have a system packaged by Red Hat, but I could"
5982 echo "not find any Red-Hat-specific problems that I know about."
5983 echo
5988 if test "x$ac_cv_header_jpeglib_h" != xyes; then
5989 echo "WARNING WARNING WARNING WARNING WARNING WARNING WARNING"
5990 echo
5991 echo "JPEG support will not be included because the JPEG library is"
5992 echo "not installed correctly or was not found. Background images"
5993 echo "from themes will not display as they usually are JPEG files."
5994 echo
5995 echo "To fix, download and install the jpeg library and/or make sure you"
5996 echo "installed all jpeg related packages, like jpeg-devel."
5997 echo
5998 echo "WARNING WARNING WARNING WARNING WARNING WARNING WARNING"