fixed bug with icons of different sizes
[wmaker-crm.git] / configure
blob69bb0827f9f8bfd5cf929d586c57ec95fb4876eb
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 --with-nlsdir=PATH specify where the locale stuff should go "
30 ac_help="$ac_help
31 --enable-gnome enable stuff needed for GNOME "
32 ac_help="$ac_help
33 --enable-kde enable support for KDE window manager (kwm) hints "
34 ac_help="$ac_help
35 --enable-openlook enable support for OPEN LOOK(tm) (olwm) hints "
36 ac_help="$ac_help
37 --enable-lite disable some stuff (dont use it) "
38 ac_help="$ac_help
39 --with-x use the X Window System"
40 ac_help="$ac_help
41 --disable-locale disable use of X locale support"
42 ac_help="$ac_help
43 --enable-modelock XKB keyboard language status support"
44 ac_help="$ac_help
45 --disable-shape disable shaped window extension support"
46 ac_help="$ac_help
47 --disable-xinerama disable XInerama 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}"
756 PACKAGE=WindowMaker
758 VERSION=0.62.0
760 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
761 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
763 cat >> confdefs.h <<EOF
764 #define PACKAGE "$PACKAGE"
767 cat >> confdefs.h <<EOF
768 #define VERSION "$VERSION"
773 missing_dir=`cd $ac_aux_dir && pwd`
774 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
775 echo "configure:776: checking for working aclocal" >&5
776 # Run test in a subshell; some versions of sh will print an error if
777 # an executable is not found, even if stderr is redirected.
778 # Redirect stdin to placate older versions of autoconf. Sigh.
779 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
780 ACLOCAL=aclocal
781 echo "$ac_t""found" 1>&6
782 else
783 ACLOCAL="$missing_dir/missing aclocal"
784 echo "$ac_t""missing" 1>&6
787 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
788 echo "configure:789: checking for working autoconf" >&5
789 # Run test in a subshell; some versions of sh will print an error if
790 # an executable is not found, even if stderr is redirected.
791 # Redirect stdin to placate older versions of autoconf. Sigh.
792 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
793 AUTOCONF=autoconf
794 echo "$ac_t""found" 1>&6
795 else
796 AUTOCONF="$missing_dir/missing autoconf"
797 echo "$ac_t""missing" 1>&6
800 echo $ac_n "checking for working automake""... $ac_c" 1>&6
801 echo "configure:802: checking for working automake" >&5
802 # Run test in a subshell; some versions of sh will print an error if
803 # an executable is not found, even if stderr is redirected.
804 # Redirect stdin to placate older versions of autoconf. Sigh.
805 if (automake --version) < /dev/null > /dev/null 2>&1; then
806 AUTOMAKE=automake
807 echo "$ac_t""found" 1>&6
808 else
809 AUTOMAKE="$missing_dir/missing automake"
810 echo "$ac_t""missing" 1>&6
813 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
814 echo "configure:815: checking for working autoheader" >&5
815 # Run test in a subshell; some versions of sh will print an error if
816 # an executable is not found, even if stderr is redirected.
817 # Redirect stdin to placate older versions of autoconf. Sigh.
818 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
819 AUTOHEADER=autoheader
820 echo "$ac_t""found" 1>&6
821 else
822 AUTOHEADER="$missing_dir/missing autoheader"
823 echo "$ac_t""missing" 1>&6
826 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
827 echo "configure:828: checking for working makeinfo" >&5
828 # Run test in a subshell; some versions of sh will print an error if
829 # an executable is not found, even if stderr is redirected.
830 # Redirect stdin to placate older versions of autoconf. Sigh.
831 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
832 MAKEINFO=makeinfo
833 echo "$ac_t""found" 1>&6
834 else
835 MAKEINFO="$missing_dir/missing makeinfo"
836 echo "$ac_t""missing" 1>&6
841 # Check whether --enable-shared or --disable-shared was given.
842 if test "${enable_shared+set}" = set; then
843 enableval="$enable_shared"
844 p=${PACKAGE-default}
845 case "$enableval" in
846 yes) enable_shared=yes ;;
847 no) enable_shared=no ;;
849 enable_shared=no
850 # Look at the argument we got. We use all the common list separators.
851 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
852 for pkg in $enableval; do
853 if test "X$pkg" = "X$p"; then
854 enable_shared=yes
856 done
857 IFS="$ac_save_ifs"
859 esac
860 else
861 enable_shared=yes
864 # Check whether --enable-static or --disable-static was given.
865 if test "${enable_static+set}" = set; then
866 enableval="$enable_static"
867 p=${PACKAGE-default}
868 case "$enableval" in
869 yes) enable_static=yes ;;
870 no) enable_static=no ;;
872 enable_static=no
873 # Look at the argument we got. We use all the common list separators.
874 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
875 for pkg in $enableval; do
876 if test "X$pkg" = "X$p"; then
877 enable_static=yes
879 done
880 IFS="$ac_save_ifs"
882 esac
883 else
884 enable_static=yes
887 # Check whether --enable-fast-install or --disable-fast-install was given.
888 if test "${enable_fast_install+set}" = set; then
889 enableval="$enable_fast_install"
890 p=${PACKAGE-default}
891 case "$enableval" in
892 yes) enable_fast_install=yes ;;
893 no) enable_fast_install=no ;;
895 enable_fast_install=no
896 # Look at the argument we got. We use all the common list separators.
897 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
898 for pkg in $enableval; do
899 if test "X$pkg" = "X$p"; then
900 enable_fast_install=yes
902 done
903 IFS="$ac_save_ifs"
905 esac
906 else
907 enable_fast_install=yes
911 # Make sure we can run config.sub.
912 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
913 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
916 echo $ac_n "checking host system type""... $ac_c" 1>&6
917 echo "configure:918: checking host system type" >&5
919 host_alias=$host
920 case "$host_alias" in
921 NONE)
922 case $nonopt in
923 NONE)
924 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
925 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
926 fi ;;
927 *) host_alias=$nonopt ;;
928 esac ;;
929 esac
931 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
932 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
933 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
934 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
935 echo "$ac_t""$host" 1>&6
937 echo $ac_n "checking build system type""... $ac_c" 1>&6
938 echo "configure:939: checking build system type" >&5
940 build_alias=$build
941 case "$build_alias" in
942 NONE)
943 case $nonopt in
944 NONE) build_alias=$host_alias ;;
945 *) build_alias=$nonopt ;;
946 esac ;;
947 esac
949 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
950 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
951 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
952 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
953 echo "$ac_t""$build" 1>&6
955 # Extract the first word of "ranlib", so it can be a program name with args.
956 set dummy ranlib; ac_word=$2
957 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
958 echo "configure:959: checking for $ac_word" >&5
959 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
960 echo $ac_n "(cached) $ac_c" 1>&6
961 else
962 if test -n "$RANLIB"; then
963 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
964 else
965 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
966 ac_dummy="$PATH"
967 for ac_dir in $ac_dummy; do
968 test -z "$ac_dir" && ac_dir=.
969 if test -f $ac_dir/$ac_word; then
970 ac_cv_prog_RANLIB="ranlib"
971 break
973 done
974 IFS="$ac_save_ifs"
975 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
978 RANLIB="$ac_cv_prog_RANLIB"
979 if test -n "$RANLIB"; then
980 echo "$ac_t""$RANLIB" 1>&6
981 else
982 echo "$ac_t""no" 1>&6
985 # Extract the first word of "gcc", so it can be a program name with args.
986 set dummy gcc; ac_word=$2
987 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
988 echo "configure:989: checking for $ac_word" >&5
989 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
990 echo $ac_n "(cached) $ac_c" 1>&6
991 else
992 if test -n "$CC"; then
993 ac_cv_prog_CC="$CC" # Let the user override the test.
994 else
995 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
996 ac_dummy="$PATH"
997 for ac_dir in $ac_dummy; do
998 test -z "$ac_dir" && ac_dir=.
999 if test -f $ac_dir/$ac_word; then
1000 ac_cv_prog_CC="gcc"
1001 break
1003 done
1004 IFS="$ac_save_ifs"
1007 CC="$ac_cv_prog_CC"
1008 if test -n "$CC"; then
1009 echo "$ac_t""$CC" 1>&6
1010 else
1011 echo "$ac_t""no" 1>&6
1014 if test -z "$CC"; then
1015 # Extract the first word of "cc", so it can be a program name with args.
1016 set dummy cc; ac_word=$2
1017 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1018 echo "configure:1019: checking for $ac_word" >&5
1019 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1020 echo $ac_n "(cached) $ac_c" 1>&6
1021 else
1022 if test -n "$CC"; then
1023 ac_cv_prog_CC="$CC" # Let the user override the test.
1024 else
1025 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1026 ac_prog_rejected=no
1027 ac_dummy="$PATH"
1028 for ac_dir in $ac_dummy; do
1029 test -z "$ac_dir" && ac_dir=.
1030 if test -f $ac_dir/$ac_word; then
1031 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1032 ac_prog_rejected=yes
1033 continue
1035 ac_cv_prog_CC="cc"
1036 break
1038 done
1039 IFS="$ac_save_ifs"
1040 if test $ac_prog_rejected = yes; then
1041 # We found a bogon in the path, so make sure we never use it.
1042 set dummy $ac_cv_prog_CC
1043 shift
1044 if test $# -gt 0; then
1045 # We chose a different compiler from the bogus one.
1046 # However, it has the same basename, so the bogon will be chosen
1047 # first if we set CC to just the basename; use the full file name.
1048 shift
1049 set dummy "$ac_dir/$ac_word" "$@"
1050 shift
1051 ac_cv_prog_CC="$@"
1056 CC="$ac_cv_prog_CC"
1057 if test -n "$CC"; then
1058 echo "$ac_t""$CC" 1>&6
1059 else
1060 echo "$ac_t""no" 1>&6
1063 if test -z "$CC"; then
1064 case "`uname -s`" in
1065 *win32* | *WIN32*)
1066 # Extract the first word of "cl", so it can be a program name with args.
1067 set dummy cl; ac_word=$2
1068 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1069 echo "configure:1070: checking for $ac_word" >&5
1070 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1071 echo $ac_n "(cached) $ac_c" 1>&6
1072 else
1073 if test -n "$CC"; then
1074 ac_cv_prog_CC="$CC" # Let the user override the test.
1075 else
1076 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1077 ac_dummy="$PATH"
1078 for ac_dir in $ac_dummy; do
1079 test -z "$ac_dir" && ac_dir=.
1080 if test -f $ac_dir/$ac_word; then
1081 ac_cv_prog_CC="cl"
1082 break
1084 done
1085 IFS="$ac_save_ifs"
1088 CC="$ac_cv_prog_CC"
1089 if test -n "$CC"; then
1090 echo "$ac_t""$CC" 1>&6
1091 else
1092 echo "$ac_t""no" 1>&6
1095 esac
1097 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1100 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1101 echo "configure:1102: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1103 ac_ext=c
1104 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1105 ac_cpp='$CPP $CPPFLAGS'
1106 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1107 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1108 cross_compiling=$ac_cv_prog_cc_cross
1110 cat > conftest.$ac_ext << EOF
1112 #line 1113 "configure"
1113 #include "confdefs.h"
1115 main(){return(0);}
1117 if { (eval echo configure:1118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1118 ac_cv_prog_cc_works=yes
1119 # If we can't run a trivial program, we are probably using a cross compiler.
1120 if (./conftest; exit) 2>/dev/null; then
1121 ac_cv_prog_cc_cross=no
1122 else
1123 ac_cv_prog_cc_cross=yes
1125 else
1126 echo "configure: failed program was:" >&5
1127 cat conftest.$ac_ext >&5
1128 ac_cv_prog_cc_works=no
1130 rm -fr conftest*
1131 ac_ext=c
1132 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1133 ac_cpp='$CPP $CPPFLAGS'
1134 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1135 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1136 cross_compiling=$ac_cv_prog_cc_cross
1138 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1139 if test $ac_cv_prog_cc_works = no; then
1140 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1142 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1143 echo "configure:1144: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1144 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1145 cross_compiling=$ac_cv_prog_cc_cross
1147 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1148 echo "configure:1149: checking whether we are using GNU C" >&5
1149 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1150 echo $ac_n "(cached) $ac_c" 1>&6
1151 else
1152 cat > conftest.c <<EOF
1153 #ifdef __GNUC__
1154 yes;
1155 #endif
1157 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1158: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1158 ac_cv_prog_gcc=yes
1159 else
1160 ac_cv_prog_gcc=no
1164 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1166 if test $ac_cv_prog_gcc = yes; then
1167 GCC=yes
1168 else
1169 GCC=
1172 ac_test_CFLAGS="${CFLAGS+set}"
1173 ac_save_CFLAGS="$CFLAGS"
1174 CFLAGS=
1175 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1176 echo "configure:1177: checking whether ${CC-cc} accepts -g" >&5
1177 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1178 echo $ac_n "(cached) $ac_c" 1>&6
1179 else
1180 echo 'void f(){}' > conftest.c
1181 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1182 ac_cv_prog_cc_g=yes
1183 else
1184 ac_cv_prog_cc_g=no
1186 rm -f conftest*
1190 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1191 if test "$ac_test_CFLAGS" = set; then
1192 CFLAGS="$ac_save_CFLAGS"
1193 elif test $ac_cv_prog_cc_g = yes; then
1194 if test "$GCC" = yes; then
1195 CFLAGS="-g -O2"
1196 else
1197 CFLAGS="-g"
1199 else
1200 if test "$GCC" = yes; then
1201 CFLAGS="-O2"
1202 else
1203 CFLAGS=
1207 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1208 if test "${with_gnu_ld+set}" = set; then
1209 withval="$with_gnu_ld"
1210 test "$withval" = no || with_gnu_ld=yes
1211 else
1212 with_gnu_ld=no
1215 ac_prog=ld
1216 if test "$ac_cv_prog_gcc" = yes; then
1217 # Check if gcc -print-prog-name=ld gives a path.
1218 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1219 echo "configure:1220: checking for ld used by GCC" >&5
1220 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1221 case "$ac_prog" in
1222 # Accept absolute paths.
1223 [\\/]* | [A-Za-z]:[\\/]*)
1224 re_direlt='/[^/][^/]*/\.\./'
1225 # Canonicalize the path of ld
1226 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1227 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1228 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1229 done
1230 test -z "$LD" && LD="$ac_prog"
1233 # If it fails, then pretend we aren't using GCC.
1234 ac_prog=ld
1237 # If it is relative, then search for the first ld in PATH.
1238 with_gnu_ld=unknown
1240 esac
1241 elif test "$with_gnu_ld" = yes; then
1242 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1243 echo "configure:1244: checking for GNU ld" >&5
1244 else
1245 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1246 echo "configure:1247: checking for non-GNU ld" >&5
1248 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1249 echo $ac_n "(cached) $ac_c" 1>&6
1250 else
1251 if test -z "$LD"; then
1252 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1253 for ac_dir in $PATH; do
1254 test -z "$ac_dir" && ac_dir=.
1255 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1256 ac_cv_path_LD="$ac_dir/$ac_prog"
1257 # Check to see if the program is GNU ld. I'd rather use --version,
1258 # but apparently some GNU ld's only accept -v.
1259 # Break only if it was the GNU/non-GNU ld that we prefer.
1260 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1261 test "$with_gnu_ld" != no && break
1262 else
1263 test "$with_gnu_ld" != yes && break
1266 done
1267 IFS="$ac_save_ifs"
1268 else
1269 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1273 LD="$ac_cv_path_LD"
1274 if test -n "$LD"; then
1275 echo "$ac_t""$LD" 1>&6
1276 else
1277 echo "$ac_t""no" 1>&6
1279 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1281 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1282 echo "configure:1283: checking if the linker ($LD) is GNU ld" >&5
1283 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1284 echo $ac_n "(cached) $ac_c" 1>&6
1285 else
1286 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1287 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1288 ac_cv_prog_gnu_ld=yes
1289 else
1290 ac_cv_prog_gnu_ld=no
1294 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1297 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1298 echo "configure:1299: checking for BSD-compatible nm" >&5
1299 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1300 echo $ac_n "(cached) $ac_c" 1>&6
1301 else
1302 if test -n "$NM"; then
1303 # Let the user override the test.
1304 ac_cv_path_NM="$NM"
1305 else
1306 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1307 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1308 test -z "$ac_dir" && ac_dir=.
1309 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
1310 # Check to see if the nm accepts a BSD-compat flag.
1311 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1312 # nm: unknown option "B" ignored
1313 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1314 ac_cv_path_NM="$ac_dir/nm -B"
1315 break
1316 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1317 ac_cv_path_NM="$ac_dir/nm -p"
1318 break
1319 else
1320 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1321 continue # so that we can try to find one that supports BSD flags
1324 done
1325 IFS="$ac_save_ifs"
1326 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1330 NM="$ac_cv_path_NM"
1331 echo "$ac_t""$NM" 1>&6
1334 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1335 echo "configure:1336: checking whether ln -s works" >&5
1336 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1337 echo $ac_n "(cached) $ac_c" 1>&6
1338 else
1339 rm -f conftestdata
1340 if ln -s X conftestdata 2>/dev/null
1341 then
1342 rm -f conftestdata
1343 ac_cv_prog_LN_S="ln -s"
1344 else
1345 ac_cv_prog_LN_S=ln
1348 LN_S="$ac_cv_prog_LN_S"
1349 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1350 echo "$ac_t""yes" 1>&6
1351 else
1352 echo "$ac_t""no" 1>&6
1356 # Check for any special flags to pass to ltconfig.
1358 # the following will cause an existing older ltconfig to fail, so
1359 # we ignore this at the expense of the cache file... Checking this
1360 # will just take longer ... bummer!
1361 #libtool_flags="--cache-file=$cache_file"
1363 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1364 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1365 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1366 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1367 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1370 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1371 if test "${enable_libtool_lock+set}" = set; then
1372 enableval="$enable_libtool_lock"
1376 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1377 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1379 # Some flags need to be propagated to the compiler or linker for good
1380 # libtool support.
1381 case "$host" in
1382 *-*-irix6*)
1383 # Find out which ABI we are using.
1384 echo '#line 1385 "configure"' > conftest.$ac_ext
1385 if { (eval echo configure:1386: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1386 case "`/usr/bin/file conftest.o`" in
1387 *32-bit*)
1388 LD="${LD-ld} -32"
1390 *N32*)
1391 LD="${LD-ld} -n32"
1393 *64-bit*)
1394 LD="${LD-ld} -64"
1396 esac
1398 rm -rf conftest*
1401 *-*-sco3.2v5*)
1402 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1403 SAVE_CFLAGS="$CFLAGS"
1404 CFLAGS="$CFLAGS -belf"
1405 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1406 echo "configure:1407: checking whether the C compiler needs -belf" >&5
1407 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1408 echo $ac_n "(cached) $ac_c" 1>&6
1409 else
1410 cat > conftest.$ac_ext <<EOF
1411 #line 1412 "configure"
1412 #include "confdefs.h"
1414 int main() {
1416 ; return 0; }
1418 if { (eval echo configure:1419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1419 rm -rf conftest*
1420 lt_cv_cc_needs_belf=yes
1421 else
1422 echo "configure: failed program was:" >&5
1423 cat conftest.$ac_ext >&5
1424 rm -rf conftest*
1425 lt_cv_cc_needs_belf=no
1427 rm -f conftest*
1430 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1431 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1432 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1433 CFLAGS="$SAVE_CFLAGS"
1438 esac
1441 # Save cache, so that ltconfig can load it
1442 cat > confcache <<\EOF
1443 # This file is a shell script that caches the results of configure
1444 # tests run on this system so they can be shared between configure
1445 # scripts and configure runs. It is not useful on other systems.
1446 # If it contains results you don't want to keep, you may remove or edit it.
1448 # By default, configure uses ./config.cache as the cache file,
1449 # creating it if it does not exist already. You can give configure
1450 # the --cache-file=FILE option to use a different cache file; that is
1451 # what configure does when it calls configure scripts in
1452 # subdirectories, so they share the cache.
1453 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1454 # config.status only pays attention to the cache file if you give it the
1455 # --recheck option to rerun configure.
1458 # The following way of writing the cache mishandles newlines in values,
1459 # but we know of no workaround that is simple, portable, and efficient.
1460 # So, don't put newlines in cache variables' values.
1461 # Ultrix sh set writes to stderr and can't be redirected directly,
1462 # and sets the high bit in the cache file unless we assign to the vars.
1463 (set) 2>&1 |
1464 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1465 *ac_space=\ *)
1466 # `set' does not quote correctly, so add quotes (double-quote substitution
1467 # turns \\\\ into \\, and sed turns \\ into \).
1468 sed -n \
1469 -e "s/'/'\\\\''/g" \
1470 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1473 # `set' quotes correctly as required by POSIX, so do not add quotes.
1474 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1476 esac >> confcache
1477 if cmp -s $cache_file confcache; then
1479 else
1480 if test -w $cache_file; then
1481 echo "updating cache $cache_file"
1482 cat confcache > $cache_file
1483 else
1484 echo "not updating unwritable cache $cache_file"
1487 rm -f confcache
1490 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1491 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1492 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1493 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
1494 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
1495 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1496 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
1497 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1499 # Reload cache, that may have been modified by ltconfig
1500 if test -r "$cache_file"; then
1501 echo "loading cache $cache_file"
1502 . $cache_file
1503 else
1504 echo "creating cache $cache_file"
1505 > $cache_file
1509 # This can be used to rebuild libtool when needed
1510 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1512 # Always use our own libtool.
1513 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1515 # Redirect the config.log output again, so that the ltconfig log is not
1516 # clobbered by the next message.
1517 exec 5>>./config.log
1520 # by Marcelo Magallon <mmagallo@efis.ucr.ac.cr>
1521 # Turn around -rpath problem with libtool 1.0c
1522 # This define should be improbable enough to not conflict with anything
1523 case ${host} in
1524 *-pc-linux-gnu)
1525 echo "$ac_t""Fixing libtool for -rpath problems." 1>&6
1526 sed < libtool > libtool-2 \
1527 's/^hardcode_libdir_flag_spec.*$/hardcode_libdir_flag_spec=" -D__LIBTOOL_IS_A_FOOL__ "/'
1528 mv libtool-2 libtool
1529 chmod 755 libtool
1531 esac
1540 # Make sure we can run config.sub.
1541 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1542 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1545 echo $ac_n "checking host system type""... $ac_c" 1>&6
1546 echo "configure:1547: checking host system type" >&5
1548 host_alias=$host
1549 case "$host_alias" in
1550 NONE)
1551 case $nonopt in
1552 NONE)
1553 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1554 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1555 fi ;;
1556 *) host_alias=$nonopt ;;
1557 esac ;;
1558 esac
1560 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1561 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1562 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1563 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1564 echo "$ac_t""$host" 1>&6
1568 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1569 echo "configure:1570: checking for POSIXized ISC" >&5
1570 if test -d /etc/conf/kconfig.d &&
1571 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1572 then
1573 echo "$ac_t""yes" 1>&6
1574 ISC=yes # If later tests want to check for ISC.
1575 cat >> confdefs.h <<\EOF
1576 #define _POSIX_SOURCE 1
1579 if test "$GCC" = yes; then
1580 CC="$CC -posix"
1581 else
1582 CC="$CC -Xp"
1584 else
1585 echo "$ac_t""no" 1>&6
1586 ISC=
1589 # Extract the first word of "gcc", so it can be a program name with args.
1590 set dummy gcc; ac_word=$2
1591 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1592 echo "configure:1593: checking for $ac_word" >&5
1593 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1594 echo $ac_n "(cached) $ac_c" 1>&6
1595 else
1596 if test -n "$CC"; then
1597 ac_cv_prog_CC="$CC" # Let the user override the test.
1598 else
1599 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1600 ac_dummy="$PATH"
1601 for ac_dir in $ac_dummy; do
1602 test -z "$ac_dir" && ac_dir=.
1603 if test -f $ac_dir/$ac_word; then
1604 ac_cv_prog_CC="gcc"
1605 break
1607 done
1608 IFS="$ac_save_ifs"
1611 CC="$ac_cv_prog_CC"
1612 if test -n "$CC"; then
1613 echo "$ac_t""$CC" 1>&6
1614 else
1615 echo "$ac_t""no" 1>&6
1618 if test -z "$CC"; then
1619 # Extract the first word of "cc", so it can be a program name with args.
1620 set dummy cc; ac_word=$2
1621 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1622 echo "configure:1623: checking for $ac_word" >&5
1623 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1624 echo $ac_n "(cached) $ac_c" 1>&6
1625 else
1626 if test -n "$CC"; then
1627 ac_cv_prog_CC="$CC" # Let the user override the test.
1628 else
1629 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1630 ac_prog_rejected=no
1631 ac_dummy="$PATH"
1632 for ac_dir in $ac_dummy; do
1633 test -z "$ac_dir" && ac_dir=.
1634 if test -f $ac_dir/$ac_word; then
1635 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1636 ac_prog_rejected=yes
1637 continue
1639 ac_cv_prog_CC="cc"
1640 break
1642 done
1643 IFS="$ac_save_ifs"
1644 if test $ac_prog_rejected = yes; then
1645 # We found a bogon in the path, so make sure we never use it.
1646 set dummy $ac_cv_prog_CC
1647 shift
1648 if test $# -gt 0; then
1649 # We chose a different compiler from the bogus one.
1650 # However, it has the same basename, so the bogon will be chosen
1651 # first if we set CC to just the basename; use the full file name.
1652 shift
1653 set dummy "$ac_dir/$ac_word" "$@"
1654 shift
1655 ac_cv_prog_CC="$@"
1660 CC="$ac_cv_prog_CC"
1661 if test -n "$CC"; then
1662 echo "$ac_t""$CC" 1>&6
1663 else
1664 echo "$ac_t""no" 1>&6
1667 if test -z "$CC"; then
1668 case "`uname -s`" in
1669 *win32* | *WIN32*)
1670 # Extract the first word of "cl", so it can be a program name with args.
1671 set dummy cl; ac_word=$2
1672 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1673 echo "configure:1674: checking for $ac_word" >&5
1674 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1675 echo $ac_n "(cached) $ac_c" 1>&6
1676 else
1677 if test -n "$CC"; then
1678 ac_cv_prog_CC="$CC" # Let the user override the test.
1679 else
1680 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1681 ac_dummy="$PATH"
1682 for ac_dir in $ac_dummy; do
1683 test -z "$ac_dir" && ac_dir=.
1684 if test -f $ac_dir/$ac_word; then
1685 ac_cv_prog_CC="cl"
1686 break
1688 done
1689 IFS="$ac_save_ifs"
1692 CC="$ac_cv_prog_CC"
1693 if test -n "$CC"; then
1694 echo "$ac_t""$CC" 1>&6
1695 else
1696 echo "$ac_t""no" 1>&6
1699 esac
1701 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1704 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1705 echo "configure:1706: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1707 ac_ext=c
1708 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1709 ac_cpp='$CPP $CPPFLAGS'
1710 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1711 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1712 cross_compiling=$ac_cv_prog_cc_cross
1714 cat > conftest.$ac_ext << EOF
1716 #line 1717 "configure"
1717 #include "confdefs.h"
1719 main(){return(0);}
1721 if { (eval echo configure:1722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1722 ac_cv_prog_cc_works=yes
1723 # If we can't run a trivial program, we are probably using a cross compiler.
1724 if (./conftest; exit) 2>/dev/null; then
1725 ac_cv_prog_cc_cross=no
1726 else
1727 ac_cv_prog_cc_cross=yes
1729 else
1730 echo "configure: failed program was:" >&5
1731 cat conftest.$ac_ext >&5
1732 ac_cv_prog_cc_works=no
1734 rm -fr conftest*
1735 ac_ext=c
1736 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1737 ac_cpp='$CPP $CPPFLAGS'
1738 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1739 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1740 cross_compiling=$ac_cv_prog_cc_cross
1742 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1743 if test $ac_cv_prog_cc_works = no; then
1744 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1746 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1747 echo "configure:1748: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1748 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1749 cross_compiling=$ac_cv_prog_cc_cross
1751 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1752 echo "configure:1753: checking whether we are using GNU C" >&5
1753 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1754 echo $ac_n "(cached) $ac_c" 1>&6
1755 else
1756 cat > conftest.c <<EOF
1757 #ifdef __GNUC__
1758 yes;
1759 #endif
1761 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1762: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1762 ac_cv_prog_gcc=yes
1763 else
1764 ac_cv_prog_gcc=no
1768 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1770 if test $ac_cv_prog_gcc = yes; then
1771 GCC=yes
1772 else
1773 GCC=
1776 ac_test_CFLAGS="${CFLAGS+set}"
1777 ac_save_CFLAGS="$CFLAGS"
1778 CFLAGS=
1779 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1780 echo "configure:1781: checking whether ${CC-cc} accepts -g" >&5
1781 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1782 echo $ac_n "(cached) $ac_c" 1>&6
1783 else
1784 echo 'void f(){}' > conftest.c
1785 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1786 ac_cv_prog_cc_g=yes
1787 else
1788 ac_cv_prog_cc_g=no
1790 rm -f conftest*
1794 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1795 if test "$ac_test_CFLAGS" = set; then
1796 CFLAGS="$ac_save_CFLAGS"
1797 elif test $ac_cv_prog_cc_g = yes; then
1798 if test "$GCC" = yes; then
1799 CFLAGS="-g -O2"
1800 else
1801 CFLAGS="-g"
1803 else
1804 if test "$GCC" = yes; then
1805 CFLAGS="-O2"
1806 else
1807 CFLAGS=
1811 #AC_PROG_RANLIB
1812 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1813 echo "configure:1814: checking whether ln -s works" >&5
1814 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1815 echo $ac_n "(cached) $ac_c" 1>&6
1816 else
1817 rm -f conftestdata
1818 if ln -s X conftestdata 2>/dev/null
1819 then
1820 rm -f conftestdata
1821 ac_cv_prog_LN_S="ln -s"
1822 else
1823 ac_cv_prog_LN_S=ln
1826 LN_S="$ac_cv_prog_LN_S"
1827 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1828 echo "$ac_t""yes" 1>&6
1829 else
1830 echo "$ac_t""no" 1>&6
1833 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1834 echo "configure:1835: checking how to run the C preprocessor" >&5
1835 # On Suns, sometimes $CPP names a directory.
1836 if test -n "$CPP" && test -d "$CPP"; then
1837 CPP=
1839 if test -z "$CPP"; then
1840 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1841 echo $ac_n "(cached) $ac_c" 1>&6
1842 else
1843 # This must be in double quotes, not single quotes, because CPP may get
1844 # substituted into the Makefile and "${CC-cc}" will confuse make.
1845 CPP="${CC-cc} -E"
1846 # On the NeXT, cc -E runs the code through the compiler's parser,
1847 # not just through cpp.
1848 cat > conftest.$ac_ext <<EOF
1849 #line 1850 "configure"
1850 #include "confdefs.h"
1851 #include <assert.h>
1852 Syntax Error
1854 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1855 { (eval echo configure:1856: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1856 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1857 if test -z "$ac_err"; then
1859 else
1860 echo "$ac_err" >&5
1861 echo "configure: failed program was:" >&5
1862 cat conftest.$ac_ext >&5
1863 rm -rf conftest*
1864 CPP="${CC-cc} -E -traditional-cpp"
1865 cat > conftest.$ac_ext <<EOF
1866 #line 1867 "configure"
1867 #include "confdefs.h"
1868 #include <assert.h>
1869 Syntax Error
1871 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1872 { (eval echo configure:1873: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1873 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1874 if test -z "$ac_err"; then
1876 else
1877 echo "$ac_err" >&5
1878 echo "configure: failed program was:" >&5
1879 cat conftest.$ac_ext >&5
1880 rm -rf conftest*
1881 CPP="${CC-cc} -nologo -E"
1882 cat > conftest.$ac_ext <<EOF
1883 #line 1884 "configure"
1884 #include "confdefs.h"
1885 #include <assert.h>
1886 Syntax Error
1888 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1889 { (eval echo configure:1890: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1890 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1891 if test -z "$ac_err"; then
1893 else
1894 echo "$ac_err" >&5
1895 echo "configure: failed program was:" >&5
1896 cat conftest.$ac_ext >&5
1897 rm -rf conftest*
1898 CPP=/lib/cpp
1900 rm -f conftest*
1902 rm -f conftest*
1904 rm -f conftest*
1905 ac_cv_prog_CPP="$CPP"
1907 CPP="$ac_cv_prog_CPP"
1908 else
1909 ac_cv_prog_CPP="$CPP"
1911 echo "$ac_t""$CPP" 1>&6
1913 if test $ac_cv_prog_gcc = yes; then
1914 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1915 echo "configure:1916: checking whether ${CC-cc} needs -traditional" >&5
1916 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1917 echo $ac_n "(cached) $ac_c" 1>&6
1918 else
1919 ac_pattern="Autoconf.*'x'"
1920 cat > conftest.$ac_ext <<EOF
1921 #line 1922 "configure"
1922 #include "confdefs.h"
1923 #include <sgtty.h>
1924 Autoconf TIOCGETP
1926 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1927 egrep "$ac_pattern" >/dev/null 2>&1; then
1928 rm -rf conftest*
1929 ac_cv_prog_gcc_traditional=yes
1930 else
1931 rm -rf conftest*
1932 ac_cv_prog_gcc_traditional=no
1934 rm -f conftest*
1937 if test $ac_cv_prog_gcc_traditional = no; then
1938 cat > conftest.$ac_ext <<EOF
1939 #line 1940 "configure"
1940 #include "confdefs.h"
1941 #include <termio.h>
1942 Autoconf TCGETA
1944 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1945 egrep "$ac_pattern" >/dev/null 2>&1; then
1946 rm -rf conftest*
1947 ac_cv_prog_gcc_traditional=yes
1949 rm -f conftest*
1954 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1955 if test $ac_cv_prog_gcc_traditional = yes; then
1956 CC="$CC -traditional"
1963 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1964 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1967 _bindir=`eval echo $bindir`
1968 _bindir=`eval echo $_bindir`
1970 _libdir=`eval echo $libdir`
1971 _libdir=`eval echo $_libdir`
1972 lib_search_path="-L$_libdir"
1974 inc_search_path=`eval echo $includedir`
1975 inc_search_path="-I`eval echo $inc_search_path`"
1981 # Check whether --with-libs-from or --without-libs-from was given.
1982 if test "${with_libs_from+set}" = set; then
1983 withval="$with_libs_from"
1984 lib_search_path="$withval $lib_search_path"
1988 # Check whether --with-incs-from or --without-incs-from was given.
1989 if test "${with_incs_from+set}" = set; then
1990 withval="$with_incs_from"
1991 inc_search_path="$withval $inc_search_path"
1997 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
1998 echo "configure:1999: checking for vprintf" >&5
1999 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2000 echo $ac_n "(cached) $ac_c" 1>&6
2001 else
2002 cat > conftest.$ac_ext <<EOF
2003 #line 2004 "configure"
2004 #include "confdefs.h"
2005 /* System header to define __stub macros and hopefully few prototypes,
2006 which can conflict with char vprintf(); below. */
2007 #include <assert.h>
2008 /* Override any gcc2 internal prototype to avoid an error. */
2009 /* We use char because int might match the return type of a gcc2
2010 builtin and then its argument prototype would still apply. */
2011 char vprintf();
2013 int main() {
2015 /* The GNU C library defines this for functions which it implements
2016 to always fail with ENOSYS. Some functions are actually named
2017 something starting with __ and the normal name is an alias. */
2018 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2019 choke me
2020 #else
2021 vprintf();
2022 #endif
2024 ; return 0; }
2026 if { (eval echo configure:2027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2027 rm -rf conftest*
2028 eval "ac_cv_func_vprintf=yes"
2029 else
2030 echo "configure: failed program was:" >&5
2031 cat conftest.$ac_ext >&5
2032 rm -rf conftest*
2033 eval "ac_cv_func_vprintf=no"
2035 rm -f conftest*
2038 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2039 echo "$ac_t""yes" 1>&6
2040 cat >> confdefs.h <<\EOF
2041 #define HAVE_VPRINTF 1
2044 else
2045 echo "$ac_t""no" 1>&6
2048 if test "$ac_cv_func_vprintf" != yes; then
2049 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2050 echo "configure:2051: checking for _doprnt" >&5
2051 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2052 echo $ac_n "(cached) $ac_c" 1>&6
2053 else
2054 cat > conftest.$ac_ext <<EOF
2055 #line 2056 "configure"
2056 #include "confdefs.h"
2057 /* System header to define __stub macros and hopefully few prototypes,
2058 which can conflict with char _doprnt(); below. */
2059 #include <assert.h>
2060 /* Override any gcc2 internal prototype to avoid an error. */
2061 /* We use char because int might match the return type of a gcc2
2062 builtin and then its argument prototype would still apply. */
2063 char _doprnt();
2065 int main() {
2067 /* The GNU C library defines this for functions which it implements
2068 to always fail with ENOSYS. Some functions are actually named
2069 something starting with __ and the normal name is an alias. */
2070 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2071 choke me
2072 #else
2073 _doprnt();
2074 #endif
2076 ; return 0; }
2078 if { (eval echo configure:2079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2079 rm -rf conftest*
2080 eval "ac_cv_func__doprnt=yes"
2081 else
2082 echo "configure: failed program was:" >&5
2083 cat conftest.$ac_ext >&5
2084 rm -rf conftest*
2085 eval "ac_cv_func__doprnt=no"
2087 rm -f conftest*
2090 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2091 echo "$ac_t""yes" 1>&6
2092 cat >> confdefs.h <<\EOF
2093 #define HAVE_DOPRNT 1
2096 else
2097 echo "$ac_t""no" 1>&6
2102 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2103 # for constant arguments. Useless!
2104 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2105 echo "configure:2106: checking for working alloca.h" >&5
2106 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2107 echo $ac_n "(cached) $ac_c" 1>&6
2108 else
2109 cat > conftest.$ac_ext <<EOF
2110 #line 2111 "configure"
2111 #include "confdefs.h"
2112 #include <alloca.h>
2113 int main() {
2114 char *p = alloca(2 * sizeof(int));
2115 ; return 0; }
2117 if { (eval echo configure:2118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2118 rm -rf conftest*
2119 ac_cv_header_alloca_h=yes
2120 else
2121 echo "configure: failed program was:" >&5
2122 cat conftest.$ac_ext >&5
2123 rm -rf conftest*
2124 ac_cv_header_alloca_h=no
2126 rm -f conftest*
2129 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2130 if test $ac_cv_header_alloca_h = yes; then
2131 cat >> confdefs.h <<\EOF
2132 #define HAVE_ALLOCA_H 1
2137 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2138 echo "configure:2139: checking for alloca" >&5
2139 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2140 echo $ac_n "(cached) $ac_c" 1>&6
2141 else
2142 cat > conftest.$ac_ext <<EOF
2143 #line 2144 "configure"
2144 #include "confdefs.h"
2146 #ifdef __GNUC__
2147 # define alloca __builtin_alloca
2148 #else
2149 # ifdef _MSC_VER
2150 # include <malloc.h>
2151 # define alloca _alloca
2152 # else
2153 # if HAVE_ALLOCA_H
2154 # include <alloca.h>
2155 # else
2156 # ifdef _AIX
2157 #pragma alloca
2158 # else
2159 # ifndef alloca /* predefined by HP cc +Olibcalls */
2160 char *alloca ();
2161 # endif
2162 # endif
2163 # endif
2164 # endif
2165 #endif
2167 int main() {
2168 char *p = (char *) alloca(1);
2169 ; return 0; }
2171 if { (eval echo configure:2172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2172 rm -rf conftest*
2173 ac_cv_func_alloca_works=yes
2174 else
2175 echo "configure: failed program was:" >&5
2176 cat conftest.$ac_ext >&5
2177 rm -rf conftest*
2178 ac_cv_func_alloca_works=no
2180 rm -f conftest*
2183 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2184 if test $ac_cv_func_alloca_works = yes; then
2185 cat >> confdefs.h <<\EOF
2186 #define HAVE_ALLOCA 1
2191 if test $ac_cv_func_alloca_works = no; then
2192 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2193 # that cause trouble. Some versions do not even contain alloca or
2194 # contain a buggy version. If you still want to use their alloca,
2195 # use ar to extract alloca.o from them instead of compiling alloca.c.
2196 ALLOCA=alloca.${ac_objext}
2197 cat >> confdefs.h <<\EOF
2198 #define C_ALLOCA 1
2202 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2203 echo "configure:2204: checking whether alloca needs Cray hooks" >&5
2204 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2205 echo $ac_n "(cached) $ac_c" 1>&6
2206 else
2207 cat > conftest.$ac_ext <<EOF
2208 #line 2209 "configure"
2209 #include "confdefs.h"
2210 #if defined(CRAY) && ! defined(CRAY2)
2211 webecray
2212 #else
2213 wenotbecray
2214 #endif
2217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2218 egrep "webecray" >/dev/null 2>&1; then
2219 rm -rf conftest*
2220 ac_cv_os_cray=yes
2221 else
2222 rm -rf conftest*
2223 ac_cv_os_cray=no
2225 rm -f conftest*
2229 echo "$ac_t""$ac_cv_os_cray" 1>&6
2230 if test $ac_cv_os_cray = yes; then
2231 for ac_func in _getb67 GETB67 getb67; do
2232 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2233 echo "configure:2234: checking for $ac_func" >&5
2234 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2235 echo $ac_n "(cached) $ac_c" 1>&6
2236 else
2237 cat > conftest.$ac_ext <<EOF
2238 #line 2239 "configure"
2239 #include "confdefs.h"
2240 /* System header to define __stub macros and hopefully few prototypes,
2241 which can conflict with char $ac_func(); below. */
2242 #include <assert.h>
2243 /* Override any gcc2 internal prototype to avoid an error. */
2244 /* We use char because int might match the return type of a gcc2
2245 builtin and then its argument prototype would still apply. */
2246 char $ac_func();
2248 int main() {
2250 /* The GNU C library defines this for functions which it implements
2251 to always fail with ENOSYS. Some functions are actually named
2252 something starting with __ and the normal name is an alias. */
2253 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2254 choke me
2255 #else
2256 $ac_func();
2257 #endif
2259 ; return 0; }
2261 if { (eval echo configure:2262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2262 rm -rf conftest*
2263 eval "ac_cv_func_$ac_func=yes"
2264 else
2265 echo "configure: failed program was:" >&5
2266 cat conftest.$ac_ext >&5
2267 rm -rf conftest*
2268 eval "ac_cv_func_$ac_func=no"
2270 rm -f conftest*
2273 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2274 echo "$ac_t""yes" 1>&6
2275 cat >> confdefs.h <<EOF
2276 #define CRAY_STACKSEG_END $ac_func
2279 break
2280 else
2281 echo "$ac_t""no" 1>&6
2284 done
2287 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2288 echo "configure:2289: checking stack direction for C alloca" >&5
2289 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2290 echo $ac_n "(cached) $ac_c" 1>&6
2291 else
2292 if test "$cross_compiling" = yes; then
2293 ac_cv_c_stack_direction=0
2294 else
2295 cat > conftest.$ac_ext <<EOF
2296 #line 2297 "configure"
2297 #include "confdefs.h"
2298 find_stack_direction ()
2300 static char *addr = 0;
2301 auto char dummy;
2302 if (addr == 0)
2304 addr = &dummy;
2305 return find_stack_direction ();
2307 else
2308 return (&dummy > addr) ? 1 : -1;
2310 main ()
2312 exit (find_stack_direction() < 0);
2315 if { (eval echo configure:2316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2316 then
2317 ac_cv_c_stack_direction=1
2318 else
2319 echo "configure: failed program was:" >&5
2320 cat conftest.$ac_ext >&5
2321 rm -fr conftest*
2322 ac_cv_c_stack_direction=-1
2324 rm -fr conftest*
2329 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2330 cat >> confdefs.h <<EOF
2331 #define STACK_DIRECTION $ac_cv_c_stack_direction
2336 for ac_func in gethostname select poll strerror strncasecmp setpgid atexit
2338 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2339 echo "configure:2340: checking for $ac_func" >&5
2340 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2341 echo $ac_n "(cached) $ac_c" 1>&6
2342 else
2343 cat > conftest.$ac_ext <<EOF
2344 #line 2345 "configure"
2345 #include "confdefs.h"
2346 /* System header to define __stub macros and hopefully few prototypes,
2347 which can conflict with char $ac_func(); below. */
2348 #include <assert.h>
2349 /* Override any gcc2 internal prototype to avoid an error. */
2350 /* We use char because int might match the return type of a gcc2
2351 builtin and then its argument prototype would still apply. */
2352 char $ac_func();
2354 int main() {
2356 /* The GNU C library defines this for functions which it implements
2357 to always fail with ENOSYS. Some functions are actually named
2358 something starting with __ and the normal name is an alias. */
2359 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2360 choke me
2361 #else
2362 $ac_func();
2363 #endif
2365 ; return 0; }
2367 if { (eval echo configure:2368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2368 rm -rf conftest*
2369 eval "ac_cv_func_$ac_func=yes"
2370 else
2371 echo "configure: failed program was:" >&5
2372 cat conftest.$ac_ext >&5
2373 rm -rf conftest*
2374 eval "ac_cv_func_$ac_func=no"
2376 rm -f conftest*
2379 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2380 echo "$ac_t""yes" 1>&6
2381 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2382 cat >> confdefs.h <<EOF
2383 #define $ac_tr_func 1
2386 else
2387 echo "$ac_t""no" 1>&6
2389 done
2394 DLLIBS=""
2396 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
2397 echo "configure:2398: checking for dlopen" >&5
2398 if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
2399 echo $ac_n "(cached) $ac_c" 1>&6
2400 else
2401 cat > conftest.$ac_ext <<EOF
2402 #line 2403 "configure"
2403 #include "confdefs.h"
2404 /* System header to define __stub macros and hopefully few prototypes,
2405 which can conflict with char dlopen(); below. */
2406 #include <assert.h>
2407 /* Override any gcc2 internal prototype to avoid an error. */
2408 /* We use char because int might match the return type of a gcc2
2409 builtin and then its argument prototype would still apply. */
2410 char dlopen();
2412 int main() {
2414 /* The GNU C library defines this for functions which it implements
2415 to always fail with ENOSYS. Some functions are actually named
2416 something starting with __ and the normal name is an alias. */
2417 #if defined (__stub_dlopen) || defined (__stub___dlopen)
2418 choke me
2419 #else
2420 dlopen();
2421 #endif
2423 ; return 0; }
2425 if { (eval echo configure:2426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2426 rm -rf conftest*
2427 eval "ac_cv_func_dlopen=yes"
2428 else
2429 echo "configure: failed program was:" >&5
2430 cat conftest.$ac_ext >&5
2431 rm -rf conftest*
2432 eval "ac_cv_func_dlopen=no"
2434 rm -f conftest*
2437 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
2438 echo "$ac_t""yes" 1>&6
2439 HAVEDL="yes"
2440 else
2441 echo "$ac_t""no" 1>&6
2442 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2443 echo "configure:2444: checking for dlopen in -ldl" >&5
2444 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2445 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2446 echo $ac_n "(cached) $ac_c" 1>&6
2447 else
2448 ac_save_LIBS="$LIBS"
2449 LIBS="-ldl $LIBS"
2450 cat > conftest.$ac_ext <<EOF
2451 #line 2452 "configure"
2452 #include "confdefs.h"
2453 /* Override any gcc2 internal prototype to avoid an error. */
2454 /* We use char because int might match the return type of a gcc2
2455 builtin and then its argument prototype would still apply. */
2456 char dlopen();
2458 int main() {
2459 dlopen()
2460 ; return 0; }
2462 if { (eval echo configure:2463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2463 rm -rf conftest*
2464 eval "ac_cv_lib_$ac_lib_var=yes"
2465 else
2466 echo "configure: failed program was:" >&5
2467 cat conftest.$ac_ext >&5
2468 rm -rf conftest*
2469 eval "ac_cv_lib_$ac_lib_var=no"
2471 rm -f conftest*
2472 LIBS="$ac_save_LIBS"
2475 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2476 echo "$ac_t""yes" 1>&6
2477 DLLIBS="-ldl" HAVEDL="yes"
2478 else
2479 echo "$ac_t""no" 1>&6
2480 DLLIBS=""
2486 if test "x$HAVEDL" = xyes; then
2487 for ac_hdr in dlfcn.h
2489 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2490 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2491 echo "configure:2492: checking for $ac_hdr" >&5
2492 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2493 echo $ac_n "(cached) $ac_c" 1>&6
2494 else
2495 cat > conftest.$ac_ext <<EOF
2496 #line 2497 "configure"
2497 #include "confdefs.h"
2498 #include <$ac_hdr>
2500 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2501 { (eval echo configure:2502: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2502 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2503 if test -z "$ac_err"; then
2504 rm -rf conftest*
2505 eval "ac_cv_header_$ac_safe=yes"
2506 else
2507 echo "$ac_err" >&5
2508 echo "configure: failed program was:" >&5
2509 cat conftest.$ac_ext >&5
2510 rm -rf conftest*
2511 eval "ac_cv_header_$ac_safe=no"
2513 rm -f conftest*
2515 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2516 echo "$ac_t""yes" 1>&6
2517 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2518 cat >> confdefs.h <<EOF
2519 #define $ac_tr_hdr 1
2522 else
2523 echo "$ac_t""no" 1>&6
2525 done
2531 if test "x$CPP_PATH" = x; then
2532 # Extract the first word of "cpp", so it can be a program name with args.
2533 set dummy cpp; ac_word=$2
2534 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2535 echo "configure:2536: checking for $ac_word" >&5
2536 if eval "test \"`echo '$''{'ac_cv_path_CPP_PATH'+set}'`\" = set"; then
2537 echo $ac_n "(cached) $ac_c" 1>&6
2538 else
2539 case "$CPP_PATH" in
2541 ac_cv_path_CPP_PATH="$CPP_PATH" # Let the user override the test with a path.
2543 ?:/*)
2544 ac_cv_path_CPP_PATH="$CPP_PATH" # Let the user override the test with a dos path.
2547 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2548 ac_dummy="$PATH:/lib:/usr/bin:/bin:/usr/lib:/usr/ccs/lib"
2549 for ac_dir in $ac_dummy; do
2550 test -z "$ac_dir" && ac_dir=.
2551 if test -f $ac_dir/$ac_word; then
2552 ac_cv_path_CPP_PATH="$ac_dir/$ac_word"
2553 break
2555 done
2556 IFS="$ac_save_ifs"
2557 test -z "$ac_cv_path_CPP_PATH" && ac_cv_path_CPP_PATH="notfound"
2559 esac
2561 CPP_PATH="$ac_cv_path_CPP_PATH"
2562 if test -n "$CPP_PATH"; then
2563 echo "$ac_t""$CPP_PATH" 1>&6
2564 else
2565 echo "$ac_t""no" 1>&6
2570 if test "$CPP_PATH" = "/usr/ccs/lib/cpp" -o "$CPP_PATH" = "notfound" ; then
2571 if test "$GCC" = "yes"; then
2572 CPP_PATH="gcc -E -x c"
2573 else
2574 if test "$CPP_PATH" = "/usr/ccs/lib/cpp"; then
2575 CPP_PATH="$CPP_PATH -B"
2576 else
2577 echo "cpp, the C preprocessor was not found in your system."
2578 echo "Create a symbolic link from it to /lib/cpp and rerun configure"
2579 exit
2583 cat >> confdefs.h <<EOF
2584 #define CPP_PATH "$CPP_PATH"
2590 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2591 echo "configure:2592: checking for sys/wait.h that is POSIX.1 compatible" >&5
2592 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2593 echo $ac_n "(cached) $ac_c" 1>&6
2594 else
2595 cat > conftest.$ac_ext <<EOF
2596 #line 2597 "configure"
2597 #include "confdefs.h"
2598 #include <sys/types.h>
2599 #include <sys/wait.h>
2600 #ifndef WEXITSTATUS
2601 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2602 #endif
2603 #ifndef WIFEXITED
2604 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2605 #endif
2606 int main() {
2607 int s;
2608 wait (&s);
2609 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2610 ; return 0; }
2612 if { (eval echo configure:2613: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2613 rm -rf conftest*
2614 ac_cv_header_sys_wait_h=yes
2615 else
2616 echo "configure: failed program was:" >&5
2617 cat conftest.$ac_ext >&5
2618 rm -rf conftest*
2619 ac_cv_header_sys_wait_h=no
2621 rm -f conftest*
2624 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2625 if test $ac_cv_header_sys_wait_h = yes; then
2626 cat >> confdefs.h <<\EOF
2627 #define HAVE_SYS_WAIT_H 1
2632 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2633 echo "configure:2634: checking whether time.h and sys/time.h may both be included" >&5
2634 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2635 echo $ac_n "(cached) $ac_c" 1>&6
2636 else
2637 cat > conftest.$ac_ext <<EOF
2638 #line 2639 "configure"
2639 #include "confdefs.h"
2640 #include <sys/types.h>
2641 #include <sys/time.h>
2642 #include <time.h>
2643 int main() {
2644 struct tm *tp;
2645 ; return 0; }
2647 if { (eval echo configure:2648: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2648 rm -rf conftest*
2649 ac_cv_header_time=yes
2650 else
2651 echo "configure: failed program was:" >&5
2652 cat conftest.$ac_ext >&5
2653 rm -rf conftest*
2654 ac_cv_header_time=no
2656 rm -f conftest*
2659 echo "$ac_t""$ac_cv_header_time" 1>&6
2660 if test $ac_cv_header_time = yes; then
2661 cat >> confdefs.h <<\EOF
2662 #define TIME_WITH_SYS_TIME 1
2667 for ac_hdr in fcntl.h limits.h sys/ioctl.h sys/time.h sys/types.h\
2668 libintl.h sys/select.h poll.h
2670 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2671 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2672 echo "configure:2673: checking for $ac_hdr" >&5
2673 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2674 echo $ac_n "(cached) $ac_c" 1>&6
2675 else
2676 cat > conftest.$ac_ext <<EOF
2677 #line 2678 "configure"
2678 #include "confdefs.h"
2679 #include <$ac_hdr>
2681 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2682 { (eval echo configure:2683: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2683 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2684 if test -z "$ac_err"; then
2685 rm -rf conftest*
2686 eval "ac_cv_header_$ac_safe=yes"
2687 else
2688 echo "$ac_err" >&5
2689 echo "configure: failed program was:" >&5
2690 cat conftest.$ac_ext >&5
2691 rm -rf conftest*
2692 eval "ac_cv_header_$ac_safe=no"
2694 rm -f conftest*
2696 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2697 echo "$ac_t""yes" 1>&6
2698 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2699 cat >> confdefs.h <<EOF
2700 #define $ac_tr_hdr 1
2703 else
2704 echo "$ac_t""no" 1>&6
2706 done
2711 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2712 echo "configure:2713: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2713 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
2714 echo $ac_n "(cached) $ac_c" 1>&6
2715 else
2716 cat > conftest.$ac_ext <<EOF
2717 #line 2718 "configure"
2718 #include "confdefs.h"
2719 #include <sys/types.h>
2720 #include <signal.h>
2721 /* NetBSD declares sys_siglist in unistd.h. */
2722 #ifdef HAVE_UNISTD_H
2723 #include <unistd.h>
2724 #endif
2725 int main() {
2726 char *msg = *(sys_siglist + 1);
2727 ; return 0; }
2729 if { (eval echo configure:2730: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2730 rm -rf conftest*
2731 ac_cv_decl_sys_siglist=yes
2732 else
2733 echo "configure: failed program was:" >&5
2734 cat conftest.$ac_ext >&5
2735 rm -rf conftest*
2736 ac_cv_decl_sys_siglist=no
2738 rm -f conftest*
2741 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
2742 if test $ac_cv_decl_sys_siglist = yes; then
2743 cat >> confdefs.h <<\EOF
2744 #define SYS_SIGLIST_DECLARED 1
2749 echo $ac_n "checking for working const""... $ac_c" 1>&6
2750 echo "configure:2751: checking for working const" >&5
2751 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2752 echo $ac_n "(cached) $ac_c" 1>&6
2753 else
2754 cat > conftest.$ac_ext <<EOF
2755 #line 2756 "configure"
2756 #include "confdefs.h"
2758 int main() {
2760 /* Ultrix mips cc rejects this. */
2761 typedef int charset[2]; const charset x;
2762 /* SunOS 4.1.1 cc rejects this. */
2763 char const *const *ccp;
2764 char **p;
2765 /* NEC SVR4.0.2 mips cc rejects this. */
2766 struct point {int x, y;};
2767 static struct point const zero = {0,0};
2768 /* AIX XL C 1.02.0.0 rejects this.
2769 It does not let you subtract one const X* pointer from another in an arm
2770 of an if-expression whose if-part is not a constant expression */
2771 const char *g = "string";
2772 ccp = &g + (g ? g-g : 0);
2773 /* HPUX 7.0 cc rejects these. */
2774 ++ccp;
2775 p = (char**) ccp;
2776 ccp = (char const *const *) p;
2777 { /* SCO 3.2v4 cc rejects this. */
2778 char *t;
2779 char const *s = 0 ? (char *) 0 : (char const *) 0;
2781 *t++ = 0;
2783 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2784 int x[] = {25, 17};
2785 const int *foo = &x[0];
2786 ++foo;
2788 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2789 typedef const int *iptr;
2790 iptr p = 0;
2791 ++p;
2793 { /* AIX XL C 1.02.0.0 rejects this saying
2794 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2795 struct s { int j; const int *ap[3]; };
2796 struct s *b; b->j = 5;
2798 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2799 const int foo = 10;
2802 ; return 0; }
2804 if { (eval echo configure:2805: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2805 rm -rf conftest*
2806 ac_cv_c_const=yes
2807 else
2808 echo "configure: failed program was:" >&5
2809 cat conftest.$ac_ext >&5
2810 rm -rf conftest*
2811 ac_cv_c_const=no
2813 rm -f conftest*
2816 echo "$ac_t""$ac_cv_c_const" 1>&6
2817 if test $ac_cv_c_const = no; then
2818 cat >> confdefs.h <<\EOF
2819 #define const
2824 #AC_TYPE_SIZE_T
2825 #AC_TYPE_PID_T
2826 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2827 echo "configure:2828: checking return type of signal handlers" >&5
2828 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2829 echo $ac_n "(cached) $ac_c" 1>&6
2830 else
2831 cat > conftest.$ac_ext <<EOF
2832 #line 2833 "configure"
2833 #include "confdefs.h"
2834 #include <sys/types.h>
2835 #include <signal.h>
2836 #ifdef signal
2837 #undef signal
2838 #endif
2839 #ifdef __cplusplus
2840 extern "C" void (*signal (int, void (*)(int)))(int);
2841 #else
2842 void (*signal ()) ();
2843 #endif
2845 int main() {
2846 int i;
2847 ; return 0; }
2849 if { (eval echo configure:2850: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2850 rm -rf conftest*
2851 ac_cv_type_signal=void
2852 else
2853 echo "configure: failed program was:" >&5
2854 cat conftest.$ac_ext >&5
2855 rm -rf conftest*
2856 ac_cv_type_signal=int
2858 rm -f conftest*
2861 echo "$ac_t""$ac_cv_type_signal" 1>&6
2862 cat >> confdefs.h <<EOF
2863 #define RETSIGTYPE $ac_cv_type_signal
2873 if test "$ac_cv_prog_gcc" = yes; then
2874 x86=0
2875 case "$host_cpu" in
2876 i[3456]86) x86=1
2878 esac
2880 if test $x86 = 1; then
2881 cat >> confdefs.h <<\EOF
2882 #define ASM_X86 1
2886 echo $ac_n "checking whether gcc supports MMX(tm) inline asm""... $ac_c" 1>&6
2887 echo "configure:2888: checking whether gcc supports MMX(tm) inline asm" >&5
2888 if eval "test \"`echo '$''{'ac_cv_c_inline_mmx'+set}'`\" = set"; then
2889 echo $ac_n "(cached) $ac_c" 1>&6
2890 else
2891 cat > conftest.$ac_ext <<EOF
2892 #line 2893 "configure"
2893 #include "confdefs.h"
2895 int main() {
2896 asm ("movq %mm0, %mm1");
2897 ; return 0; }
2899 if { (eval echo configure:2900: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2900 rm -rf conftest*
2901 ac_cv_c_inline_mmx=yes
2902 else
2903 echo "configure: failed program was:" >&5
2904 cat conftest.$ac_ext >&5
2905 rm -rf conftest*
2906 ac_cv_c_inline_mmx=no
2908 rm -f conftest*
2911 echo "$ac_t""$ac_cv_c_inline_mmx" 1>&6
2913 if test "x$ac_cv_c_inline_mmx" = xyes; then
2914 cat >> confdefs.h <<\EOF
2915 #define ASM_X86_MMX 1
2929 INTLIBS=""
2931 echo $ac_n "checking for gettext""... $ac_c" 1>&6
2932 echo "configure:2933: checking for gettext" >&5
2933 if eval "test \"`echo '$''{'ac_cv_func_gettext'+set}'`\" = set"; then
2934 echo $ac_n "(cached) $ac_c" 1>&6
2935 else
2936 cat > conftest.$ac_ext <<EOF
2937 #line 2938 "configure"
2938 #include "confdefs.h"
2939 /* System header to define __stub macros and hopefully few prototypes,
2940 which can conflict with char gettext(); below. */
2941 #include <assert.h>
2942 /* Override any gcc2 internal prototype to avoid an error. */
2943 /* We use char because int might match the return type of a gcc2
2944 builtin and then its argument prototype would still apply. */
2945 char gettext();
2947 int main() {
2949 /* The GNU C library defines this for functions which it implements
2950 to always fail with ENOSYS. Some functions are actually named
2951 something starting with __ and the normal name is an alias. */
2952 #if defined (__stub_gettext) || defined (__stub___gettext)
2953 choke me
2954 #else
2955 gettext();
2956 #endif
2958 ; return 0; }
2960 if { (eval echo configure:2961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2961 rm -rf conftest*
2962 eval "ac_cv_func_gettext=yes"
2963 else
2964 echo "configure: failed program was:" >&5
2965 cat conftest.$ac_ext >&5
2966 rm -rf conftest*
2967 eval "ac_cv_func_gettext=no"
2969 rm -f conftest*
2972 if eval "test \"`echo '$ac_cv_func_'gettext`\" = yes"; then
2973 echo "$ac_t""yes" 1>&6
2974 HAVEGETTEXT="yes"
2975 else
2976 echo "$ac_t""no" 1>&6
2977 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
2978 echo "configure:2979: checking for gettext in -lintl" >&5
2979 ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
2980 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2981 echo $ac_n "(cached) $ac_c" 1>&6
2982 else
2983 ac_save_LIBS="$LIBS"
2984 LIBS="-lintl $LIBS"
2985 cat > conftest.$ac_ext <<EOF
2986 #line 2987 "configure"
2987 #include "confdefs.h"
2988 /* Override any gcc2 internal prototype to avoid an error. */
2989 /* We use char because int might match the return type of a gcc2
2990 builtin and then its argument prototype would still apply. */
2991 char gettext();
2993 int main() {
2994 gettext()
2995 ; return 0; }
2997 if { (eval echo configure:2998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2998 rm -rf conftest*
2999 eval "ac_cv_lib_$ac_lib_var=yes"
3000 else
3001 echo "configure: failed program was:" >&5
3002 cat conftest.$ac_ext >&5
3003 rm -rf conftest*
3004 eval "ac_cv_lib_$ac_lib_var=no"
3006 rm -f conftest*
3007 LIBS="$ac_save_LIBS"
3010 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3011 echo "$ac_t""yes" 1>&6
3012 INTLIBS="-lintl" HAVEGETTEXT="yes"
3013 else
3014 echo "$ac_t""no" 1>&6
3015 INTLIBS=""
3021 # Extract the first word of "xgettext", so it can be a program name with args.
3022 set dummy xgettext; ac_word=$2
3023 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3024 echo "configure:3025: checking for $ac_word" >&5
3025 if eval "test \"`echo '$''{'ac_cv_prog_XGETTEXT'+set}'`\" = set"; then
3026 echo $ac_n "(cached) $ac_c" 1>&6
3027 else
3028 if test -n "$XGETTEXT"; then
3029 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
3030 else
3031 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3032 ac_dummy="$PATH"
3033 for ac_dir in $ac_dummy; do
3034 test -z "$ac_dir" && ac_dir=.
3035 if test -f $ac_dir/$ac_word; then
3036 ac_cv_prog_XGETTEXT="xgettext"
3037 break
3039 done
3040 IFS="$ac_save_ifs"
3043 XGETTEXT="$ac_cv_prog_XGETTEXT"
3044 if test -n "$XGETTEXT"; then
3045 echo "$ac_t""$XGETTEXT" 1>&6
3046 else
3047 echo "$ac_t""no" 1>&6
3051 if test "$XGETTEXT" != ""; then
3052 if $XGETTEXT --help 2>&1 | grep illegal >/dev/null ; then
3053 echo "xgettext isn't GNU version"
3054 XGETTEXT=""
3058 if test "$LINGUAS" != ""; then
3059 if test "$XGETTEXT" != "" -a "$HAVEGETTEXT" != ""; then
3060 cat >> confdefs.h <<\EOF
3061 #define I18N 1
3064 PO=""
3065 # if test "$LINGUAS" = ""; then
3066 # ling=` (cd src/po; /bin/ls *.po) `
3067 # for l in $ling; do
3068 # lcode=`basename $l .po`
3069 # LINGUAS="$LINGUAS $lcode"
3070 # done
3071 # fi
3072 echo "xgettext and gettext() exist; will build i18n support for $LINGUAS"
3073 else
3074 LINGUAS=""
3075 PO=""
3076 echo "xgettext and libintl.a don't both exist; will not build i18n support"
3078 else
3079 INTLIBS=""
3080 MOFILES=""
3081 WPMOFILES=""
3082 PO=""
3087 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"
3088 supported_wprefs_locales="pt hr fr ko ja cs zh_TW.Big5 es zh_CN fi it ru de"
3090 for lang in $LINGUAS; do
3091 ok=0
3092 for l in $supported_locales; do
3093 if test "$l" = "$lang"; then
3094 ok=1
3095 break
3097 done
3098 if test "$ok" = 1; then
3099 MOFILES="$MOFILES $lang.mo"
3100 else
3101 echo "Locale $lang is not supported."
3103 ok=0
3104 for l in $supported_wprefs_locales; do
3105 if test "$l" = "$lang"; then
3106 ok=1
3107 break
3109 done
3110 if test "$ok" = 1; then
3111 WPMOFILES="$WPMOFILES $lang.mo"
3113 done
3117 case $host_os in
3118 freebsd*)
3119 echo $ac_n "checking for setlocale in -lxpg4""... $ac_c" 1>&6
3120 echo "configure:3121: checking for setlocale in -lxpg4" >&5
3121 ac_lib_var=`echo xpg4'_'setlocale | sed 'y%./+-%__p_%'`
3122 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3123 echo $ac_n "(cached) $ac_c" 1>&6
3124 else
3125 ac_save_LIBS="$LIBS"
3126 LIBS="-lxpg4 $LIBS"
3127 cat > conftest.$ac_ext <<EOF
3128 #line 3129 "configure"
3129 #include "confdefs.h"
3130 /* Override any gcc2 internal prototype to avoid an error. */
3131 /* We use char because int might match the return type of a gcc2
3132 builtin and then its argument prototype would still apply. */
3133 char setlocale();
3135 int main() {
3136 setlocale()
3137 ; return 0; }
3139 if { (eval echo configure:3140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3140 rm -rf conftest*
3141 eval "ac_cv_lib_$ac_lib_var=yes"
3142 else
3143 echo "configure: failed program was:" >&5
3144 cat conftest.$ac_ext >&5
3145 rm -rf conftest*
3146 eval "ac_cv_lib_$ac_lib_var=no"
3148 rm -f conftest*
3149 LIBS="$ac_save_LIBS"
3152 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3153 echo "$ac_t""yes" 1>&6
3154 LIBS="$LIBS -lxpg4"
3155 else
3156 echo "$ac_t""no" 1>&6
3161 esac
3165 # Check whether --with-nlsdir or --without-nlsdir was given.
3166 if test "${with_nlsdir+set}" = set; then
3167 withval="$with_nlsdir"
3173 if test "x$NLSDIR" = "x"; then
3174 if test "x$with_nlsdir" != "x"; then
3175 NLSDIR=$with_nlsdir
3176 else
3177 NLSDIR='$(prefix)/lib/locale'
3193 # Check whether --enable-gnome or --disable-gnome was given.
3194 if test "${enable_gnome+set}" = set; then
3195 enableval="$enable_gnome"
3196 if test x$enableval = xyes; then
3197 cat >> confdefs.h <<\EOF
3198 #define GNOME_STUFF 1
3201 gnome_on=yes
3207 # Check whether --enable-kde or --disable-kde was given.
3208 if test "${enable_kde+set}" = set; then
3209 enableval="$enable_kde"
3210 if test x$enableval = xyes; then
3211 cat >> confdefs.h <<\EOF
3212 #define KWM_HINTS 1
3215 kde_on=yes
3221 # Check whether --enable-openlook or --disable-openlook was given.
3222 if test "${enable_openlook+set}" = set; then
3223 enableval="$enable_openlook"
3224 if test x$enableval = xyes; then
3225 cat >> confdefs.h <<\EOF
3226 #define OLWM_HINTS 1
3229 openlook_on=yes
3235 # Check whether --enable-lite or --disable-lite was given.
3236 if test "${enable_lite+set}" = set; then
3237 enableval="$enable_lite"
3238 if test x$enableval = xyes; then
3239 LITE=yes
3240 cat >> confdefs.h <<\EOF
3241 #define LITE 1
3252 NETLIBS=""
3254 echo $ac_n "checking for connect""... $ac_c" 1>&6
3255 echo "configure:3256: checking for connect" >&5
3256 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3257 echo $ac_n "(cached) $ac_c" 1>&6
3258 else
3259 cat > conftest.$ac_ext <<EOF
3260 #line 3261 "configure"
3261 #include "confdefs.h"
3262 /* System header to define __stub macros and hopefully few prototypes,
3263 which can conflict with char connect(); below. */
3264 #include <assert.h>
3265 /* Override any gcc2 internal prototype to avoid an error. */
3266 /* We use char because int might match the return type of a gcc2
3267 builtin and then its argument prototype would still apply. */
3268 char connect();
3270 int main() {
3272 /* The GNU C library defines this for functions which it implements
3273 to always fail with ENOSYS. Some functions are actually named
3274 something starting with __ and the normal name is an alias. */
3275 #if defined (__stub_connect) || defined (__stub___connect)
3276 choke me
3277 #else
3278 connect();
3279 #endif
3281 ; return 0; }
3283 if { (eval echo configure:3284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3284 rm -rf conftest*
3285 eval "ac_cv_func_connect=yes"
3286 else
3287 echo "configure: failed program was:" >&5
3288 cat conftest.$ac_ext >&5
3289 rm -rf conftest*
3290 eval "ac_cv_func_connect=no"
3292 rm -f conftest*
3295 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3296 echo "$ac_t""yes" 1>&6
3298 else
3299 echo "$ac_t""no" 1>&6
3300 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3301 echo "configure:3302: checking for connect in -lsocket" >&5
3302 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3303 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3304 echo $ac_n "(cached) $ac_c" 1>&6
3305 else
3306 ac_save_LIBS="$LIBS"
3307 LIBS="-lsocket $LIBS"
3308 cat > conftest.$ac_ext <<EOF
3309 #line 3310 "configure"
3310 #include "confdefs.h"
3311 /* Override any gcc2 internal prototype to avoid an error. */
3312 /* We use char because int might match the return type of a gcc2
3313 builtin and then its argument prototype would still apply. */
3314 char connect();
3316 int main() {
3317 connect()
3318 ; return 0; }
3320 if { (eval echo configure:3321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3321 rm -rf conftest*
3322 eval "ac_cv_lib_$ac_lib_var=yes"
3323 else
3324 echo "configure: failed program was:" >&5
3325 cat conftest.$ac_ext >&5
3326 rm -rf conftest*
3327 eval "ac_cv_lib_$ac_lib_var=no"
3329 rm -f conftest*
3330 LIBS="$ac_save_LIBS"
3333 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3334 echo "$ac_t""yes" 1>&6
3335 NETLIBS="$NETLIBS -lsocket"
3336 else
3337 echo "$ac_t""no" 1>&6
3343 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3344 echo "configure:3345: checking for gethostbyname" >&5
3345 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3346 echo $ac_n "(cached) $ac_c" 1>&6
3347 else
3348 cat > conftest.$ac_ext <<EOF
3349 #line 3350 "configure"
3350 #include "confdefs.h"
3351 /* System header to define __stub macros and hopefully few prototypes,
3352 which can conflict with char gethostbyname(); below. */
3353 #include <assert.h>
3354 /* Override any gcc2 internal prototype to avoid an error. */
3355 /* We use char because int might match the return type of a gcc2
3356 builtin and then its argument prototype would still apply. */
3357 char gethostbyname();
3359 int main() {
3361 /* The GNU C library defines this for functions which it implements
3362 to always fail with ENOSYS. Some functions are actually named
3363 something starting with __ and the normal name is an alias. */
3364 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3365 choke me
3366 #else
3367 gethostbyname();
3368 #endif
3370 ; return 0; }
3372 if { (eval echo configure:3373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3373 rm -rf conftest*
3374 eval "ac_cv_func_gethostbyname=yes"
3375 else
3376 echo "configure: failed program was:" >&5
3377 cat conftest.$ac_ext >&5
3378 rm -rf conftest*
3379 eval "ac_cv_func_gethostbyname=no"
3381 rm -f conftest*
3384 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3385 echo "$ac_t""yes" 1>&6
3387 else
3388 echo "$ac_t""no" 1>&6
3389 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3390 echo "configure:3391: checking for gethostbyname in -lnsl" >&5
3391 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3392 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3393 echo $ac_n "(cached) $ac_c" 1>&6
3394 else
3395 ac_save_LIBS="$LIBS"
3396 LIBS="-lnsl $LIBS"
3397 cat > conftest.$ac_ext <<EOF
3398 #line 3399 "configure"
3399 #include "confdefs.h"
3400 /* Override any gcc2 internal prototype to avoid an error. */
3401 /* We use char because int might match the return type of a gcc2
3402 builtin and then its argument prototype would still apply. */
3403 char gethostbyname();
3405 int main() {
3406 gethostbyname()
3407 ; return 0; }
3409 if { (eval echo configure:3410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3410 rm -rf conftest*
3411 eval "ac_cv_lib_$ac_lib_var=yes"
3412 else
3413 echo "configure: failed program was:" >&5
3414 cat conftest.$ac_ext >&5
3415 rm -rf conftest*
3416 eval "ac_cv_lib_$ac_lib_var=no"
3418 rm -f conftest*
3419 LIBS="$ac_save_LIBS"
3422 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3423 echo "$ac_t""yes" 1>&6
3424 NETLIBS="$NETLIBS -lnsl"
3425 else
3426 echo "$ac_t""no" 1>&6
3432 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
3433 echo "configure:3434: checking for inet_aton" >&5
3434 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
3435 echo $ac_n "(cached) $ac_c" 1>&6
3436 else
3437 cat > conftest.$ac_ext <<EOF
3438 #line 3439 "configure"
3439 #include "confdefs.h"
3440 /* System header to define __stub macros and hopefully few prototypes,
3441 which can conflict with char inet_aton(); below. */
3442 #include <assert.h>
3443 /* Override any gcc2 internal prototype to avoid an error. */
3444 /* We use char because int might match the return type of a gcc2
3445 builtin and then its argument prototype would still apply. */
3446 char inet_aton();
3448 int main() {
3450 /* The GNU C library defines this for functions which it implements
3451 to always fail with ENOSYS. Some functions are actually named
3452 something starting with __ and the normal name is an alias. */
3453 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
3454 choke me
3455 #else
3456 inet_aton();
3457 #endif
3459 ; return 0; }
3461 if { (eval echo configure:3462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3462 rm -rf conftest*
3463 eval "ac_cv_func_inet_aton=yes"
3464 else
3465 echo "configure: failed program was:" >&5
3466 cat conftest.$ac_ext >&5
3467 rm -rf conftest*
3468 eval "ac_cv_func_inet_aton=no"
3470 rm -f conftest*
3473 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
3474 echo "$ac_t""yes" 1>&6
3475 cat >> confdefs.h <<\EOF
3476 #define HAVE_INET_ATON 1
3479 else
3480 echo "$ac_t""no" 1>&6
3481 for lib in resolv socket inet bsd; do
3482 echo $ac_n "checking for inet_aton in -l$lib""... $ac_c" 1>&6
3483 echo "configure:3484: checking for inet_aton in -l$lib" >&5
3484 ac_lib_var=`echo $lib'_'inet_aton | sed 'y%./+-%__p_%'`
3485 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3486 echo $ac_n "(cached) $ac_c" 1>&6
3487 else
3488 ac_save_LIBS="$LIBS"
3489 LIBS="-l$lib $NETLIBS $LIBS"
3490 cat > conftest.$ac_ext <<EOF
3491 #line 3492 "configure"
3492 #include "confdefs.h"
3493 /* Override any gcc2 internal prototype to avoid an error. */
3494 /* We use char because int might match the return type of a gcc2
3495 builtin and then its argument prototype would still apply. */
3496 char inet_aton();
3498 int main() {
3499 inet_aton()
3500 ; return 0; }
3502 if { (eval echo configure:3503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3503 rm -rf conftest*
3504 eval "ac_cv_lib_$ac_lib_var=yes"
3505 else
3506 echo "configure: failed program was:" >&5
3507 cat conftest.$ac_ext >&5
3508 rm -rf conftest*
3509 eval "ac_cv_lib_$ac_lib_var=no"
3511 rm -f conftest*
3512 LIBS="$ac_save_LIBS"
3515 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3516 echo "$ac_t""yes" 1>&6
3517 cat >> confdefs.h <<\EOF
3518 #define HAVE_INET_ATON 1
3521 NETLIBS="$NETLIBS -l$lib"; break
3522 else
3523 echo "$ac_t""no" 1>&6
3526 done
3534 # If we find X, set shell vars x_includes and x_libraries to the
3535 # paths, otherwise set no_x=yes.
3536 # Uses ac_ vars as temps to allow command line to override cache and checks.
3537 # --without-x overrides everything else, but does not touch the cache.
3538 echo $ac_n "checking for X""... $ac_c" 1>&6
3539 echo "configure:3540: checking for X" >&5
3541 # Check whether --with-x or --without-x was given.
3542 if test "${with_x+set}" = set; then
3543 withval="$with_x"
3547 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3548 if test "x$with_x" = xno; then
3549 # The user explicitly disabled X.
3550 have_x=disabled
3551 else
3552 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
3553 # Both variables are already set.
3554 have_x=yes
3555 else
3556 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
3557 echo $ac_n "(cached) $ac_c" 1>&6
3558 else
3559 # One or both of the vars are not set, and there is no cached value.
3560 ac_x_includes=NO ac_x_libraries=NO
3561 rm -fr conftestdir
3562 if mkdir conftestdir; then
3563 cd conftestdir
3564 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3565 cat > Imakefile <<'EOF'
3566 acfindx:
3567 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3569 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
3570 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3571 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3572 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3573 for ac_extension in a so sl; do
3574 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
3575 test -f $ac_im_libdir/libX11.$ac_extension; then
3576 ac_im_usrlibdir=$ac_im_libdir; break
3578 done
3579 # Screen out bogus values from the imake configuration. They are
3580 # bogus both because they are the default anyway, and because
3581 # using them would break gcc on systems where it needs fixed includes.
3582 case "$ac_im_incroot" in
3583 /usr/include) ;;
3584 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
3585 esac
3586 case "$ac_im_usrlibdir" in
3587 /usr/lib | /lib) ;;
3588 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
3589 esac
3591 cd ..
3592 rm -fr conftestdir
3595 if test "$ac_x_includes" = NO; then
3596 # Guess where to find include files, by looking for this one X11 .h file.
3597 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
3599 # First, try using that file with no special directory specified.
3600 cat > conftest.$ac_ext <<EOF
3601 #line 3602 "configure"
3602 #include "confdefs.h"
3603 #include <$x_direct_test_include>
3605 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3606 { (eval echo configure:3607: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3607 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3608 if test -z "$ac_err"; then
3609 rm -rf conftest*
3610 # We can compile using X headers with no special include directory.
3611 ac_x_includes=
3612 else
3613 echo "$ac_err" >&5
3614 echo "configure: failed program was:" >&5
3615 cat conftest.$ac_ext >&5
3616 rm -rf conftest*
3617 # Look for the header file in a standard set of common directories.
3618 # Check X11 before X11Rn because it is often a symlink to the current release.
3619 for ac_dir in \
3620 /usr/X11/include \
3621 /usr/X11R6/include \
3622 /usr/X11R5/include \
3623 /usr/X11R4/include \
3625 /usr/include/X11 \
3626 /usr/include/X11R6 \
3627 /usr/include/X11R5 \
3628 /usr/include/X11R4 \
3630 /usr/local/X11/include \
3631 /usr/local/X11R6/include \
3632 /usr/local/X11R5/include \
3633 /usr/local/X11R4/include \
3635 /usr/local/include/X11 \
3636 /usr/local/include/X11R6 \
3637 /usr/local/include/X11R5 \
3638 /usr/local/include/X11R4 \
3640 /usr/X386/include \
3641 /usr/x386/include \
3642 /usr/XFree86/include/X11 \
3644 /usr/include \
3645 /usr/local/include \
3646 /usr/unsupported/include \
3647 /usr/athena/include \
3648 /usr/local/x11r5/include \
3649 /usr/lpp/Xamples/include \
3651 /usr/openwin/include \
3652 /usr/openwin/share/include \
3655 if test -r "$ac_dir/$x_direct_test_include"; then
3656 ac_x_includes=$ac_dir
3657 break
3659 done
3661 rm -f conftest*
3662 fi # $ac_x_includes = NO
3664 if test "$ac_x_libraries" = NO; then
3665 # Check for the libraries.
3667 test -z "$x_direct_test_library" && x_direct_test_library=Xt
3668 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
3670 # See if we find them without any special options.
3671 # Don't add to $LIBS permanently.
3672 ac_save_LIBS="$LIBS"
3673 LIBS="-l$x_direct_test_library $LIBS"
3674 cat > conftest.$ac_ext <<EOF
3675 #line 3676 "configure"
3676 #include "confdefs.h"
3678 int main() {
3679 ${x_direct_test_function}()
3680 ; return 0; }
3682 if { (eval echo configure:3683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3683 rm -rf conftest*
3684 LIBS="$ac_save_LIBS"
3685 # We can link X programs with no special library path.
3686 ac_x_libraries=
3687 else
3688 echo "configure: failed program was:" >&5
3689 cat conftest.$ac_ext >&5
3690 rm -rf conftest*
3691 LIBS="$ac_save_LIBS"
3692 # First see if replacing the include by lib works.
3693 # Check X11 before X11Rn because it is often a symlink to the current release.
3694 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
3695 /usr/X11/lib \
3696 /usr/X11R6/lib \
3697 /usr/X11R5/lib \
3698 /usr/X11R4/lib \
3700 /usr/lib/X11 \
3701 /usr/lib/X11R6 \
3702 /usr/lib/X11R5 \
3703 /usr/lib/X11R4 \
3705 /usr/local/X11/lib \
3706 /usr/local/X11R6/lib \
3707 /usr/local/X11R5/lib \
3708 /usr/local/X11R4/lib \
3710 /usr/local/lib/X11 \
3711 /usr/local/lib/X11R6 \
3712 /usr/local/lib/X11R5 \
3713 /usr/local/lib/X11R4 \
3715 /usr/X386/lib \
3716 /usr/x386/lib \
3717 /usr/XFree86/lib/X11 \
3719 /usr/lib \
3720 /usr/local/lib \
3721 /usr/unsupported/lib \
3722 /usr/athena/lib \
3723 /usr/local/x11r5/lib \
3724 /usr/lpp/Xamples/lib \
3725 /lib/usr/lib/X11 \
3727 /usr/openwin/lib \
3728 /usr/openwin/share/lib \
3731 for ac_extension in a so sl; do
3732 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
3733 ac_x_libraries=$ac_dir
3734 break 2
3736 done
3737 done
3739 rm -f conftest*
3740 fi # $ac_x_libraries = NO
3742 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
3743 # Didn't find X anywhere. Cache the known absence of X.
3744 ac_cv_have_x="have_x=no"
3745 else
3746 # Record where we found X for the cache.
3747 ac_cv_have_x="have_x=yes \
3748 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3752 eval "$ac_cv_have_x"
3753 fi # $with_x != no
3755 if test "$have_x" != yes; then
3756 echo "$ac_t""$have_x" 1>&6
3757 no_x=yes
3758 else
3759 # If each of the values was on the command line, it overrides each guess.
3760 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3761 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3762 # Update the cache value to reflect the command line values.
3763 ac_cv_have_x="have_x=yes \
3764 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3765 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
3768 if test "$no_x" = yes; then
3769 # Not all programs may use this symbol, but it does not hurt to define it.
3770 cat >> confdefs.h <<\EOF
3771 #define X_DISPLAY_MISSING 1
3774 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3775 else
3776 if test -n "$x_includes"; then
3777 X_CFLAGS="$X_CFLAGS -I$x_includes"
3780 # It would also be nice to do this for all -L options, not just this one.
3781 if test -n "$x_libraries"; then
3782 X_LIBS="$X_LIBS -L$x_libraries"
3783 # For Solaris; some versions of Sun CC require a space after -R and
3784 # others require no space. Words are not sufficient . . . .
3785 case "`(uname -sr) 2>/dev/null`" in
3786 "SunOS 5"*)
3787 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
3788 echo "configure:3789: checking whether -R must be followed by a space" >&5
3789 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
3790 cat > conftest.$ac_ext <<EOF
3791 #line 3792 "configure"
3792 #include "confdefs.h"
3794 int main() {
3796 ; return 0; }
3798 if { (eval echo configure:3799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3799 rm -rf conftest*
3800 ac_R_nospace=yes
3801 else
3802 echo "configure: failed program was:" >&5
3803 cat conftest.$ac_ext >&5
3804 rm -rf conftest*
3805 ac_R_nospace=no
3807 rm -f conftest*
3808 if test $ac_R_nospace = yes; then
3809 echo "$ac_t""no" 1>&6
3810 X_LIBS="$X_LIBS -R$x_libraries"
3811 else
3812 LIBS="$ac_xsave_LIBS -R $x_libraries"
3813 cat > conftest.$ac_ext <<EOF
3814 #line 3815 "configure"
3815 #include "confdefs.h"
3817 int main() {
3819 ; return 0; }
3821 if { (eval echo configure:3822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3822 rm -rf conftest*
3823 ac_R_space=yes
3824 else
3825 echo "configure: failed program was:" >&5
3826 cat conftest.$ac_ext >&5
3827 rm -rf conftest*
3828 ac_R_space=no
3830 rm -f conftest*
3831 if test $ac_R_space = yes; then
3832 echo "$ac_t""yes" 1>&6
3833 X_LIBS="$X_LIBS -R $x_libraries"
3834 else
3835 echo "$ac_t""neither works" 1>&6
3838 LIBS="$ac_xsave_LIBS"
3839 esac
3842 # Check for system-dependent libraries X programs must link with.
3843 # Do this before checking for the system-independent R6 libraries
3844 # (-lICE), since we may need -lsocket or whatever for X linking.
3846 if test "$ISC" = yes; then
3847 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3848 else
3849 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
3850 # libraries were built with DECnet support. And karl@cs.umb.edu says
3851 # the Alpha needs dnet_stub (dnet does not exist).
3852 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
3853 echo "configure:3854: checking for dnet_ntoa in -ldnet" >&5
3854 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3855 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3856 echo $ac_n "(cached) $ac_c" 1>&6
3857 else
3858 ac_save_LIBS="$LIBS"
3859 LIBS="-ldnet $LIBS"
3860 cat > conftest.$ac_ext <<EOF
3861 #line 3862 "configure"
3862 #include "confdefs.h"
3863 /* Override any gcc2 internal prototype to avoid an error. */
3864 /* We use char because int might match the return type of a gcc2
3865 builtin and then its argument prototype would still apply. */
3866 char dnet_ntoa();
3868 int main() {
3869 dnet_ntoa()
3870 ; return 0; }
3872 if { (eval echo configure:3873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3873 rm -rf conftest*
3874 eval "ac_cv_lib_$ac_lib_var=yes"
3875 else
3876 echo "configure: failed program was:" >&5
3877 cat conftest.$ac_ext >&5
3878 rm -rf conftest*
3879 eval "ac_cv_lib_$ac_lib_var=no"
3881 rm -f conftest*
3882 LIBS="$ac_save_LIBS"
3885 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3886 echo "$ac_t""yes" 1>&6
3887 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3888 else
3889 echo "$ac_t""no" 1>&6
3892 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3893 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
3894 echo "configure:3895: checking for dnet_ntoa in -ldnet_stub" >&5
3895 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3896 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3897 echo $ac_n "(cached) $ac_c" 1>&6
3898 else
3899 ac_save_LIBS="$LIBS"
3900 LIBS="-ldnet_stub $LIBS"
3901 cat > conftest.$ac_ext <<EOF
3902 #line 3903 "configure"
3903 #include "confdefs.h"
3904 /* Override any gcc2 internal prototype to avoid an error. */
3905 /* We use char because int might match the return type of a gcc2
3906 builtin and then its argument prototype would still apply. */
3907 char dnet_ntoa();
3909 int main() {
3910 dnet_ntoa()
3911 ; return 0; }
3913 if { (eval echo configure:3914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3914 rm -rf conftest*
3915 eval "ac_cv_lib_$ac_lib_var=yes"
3916 else
3917 echo "configure: failed program was:" >&5
3918 cat conftest.$ac_ext >&5
3919 rm -rf conftest*
3920 eval "ac_cv_lib_$ac_lib_var=no"
3922 rm -f conftest*
3923 LIBS="$ac_save_LIBS"
3926 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3927 echo "$ac_t""yes" 1>&6
3928 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3929 else
3930 echo "$ac_t""no" 1>&6
3935 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3936 # to get the SysV transport functions.
3937 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
3938 # needs -lnsl.
3939 # The nsl library prevents programs from opening the X display
3940 # on Irix 5.2, according to dickey@clark.net.
3941 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3942 echo "configure:3943: checking for gethostbyname" >&5
3943 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3944 echo $ac_n "(cached) $ac_c" 1>&6
3945 else
3946 cat > conftest.$ac_ext <<EOF
3947 #line 3948 "configure"
3948 #include "confdefs.h"
3949 /* System header to define __stub macros and hopefully few prototypes,
3950 which can conflict with char gethostbyname(); below. */
3951 #include <assert.h>
3952 /* Override any gcc2 internal prototype to avoid an error. */
3953 /* We use char because int might match the return type of a gcc2
3954 builtin and then its argument prototype would still apply. */
3955 char gethostbyname();
3957 int main() {
3959 /* The GNU C library defines this for functions which it implements
3960 to always fail with ENOSYS. Some functions are actually named
3961 something starting with __ and the normal name is an alias. */
3962 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3963 choke me
3964 #else
3965 gethostbyname();
3966 #endif
3968 ; return 0; }
3970 if { (eval echo configure:3971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3971 rm -rf conftest*
3972 eval "ac_cv_func_gethostbyname=yes"
3973 else
3974 echo "configure: failed program was:" >&5
3975 cat conftest.$ac_ext >&5
3976 rm -rf conftest*
3977 eval "ac_cv_func_gethostbyname=no"
3979 rm -f conftest*
3982 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3983 echo "$ac_t""yes" 1>&6
3985 else
3986 echo "$ac_t""no" 1>&6
3989 if test $ac_cv_func_gethostbyname = no; then
3990 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3991 echo "configure:3992: checking for gethostbyname in -lnsl" >&5
3992 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3993 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3994 echo $ac_n "(cached) $ac_c" 1>&6
3995 else
3996 ac_save_LIBS="$LIBS"
3997 LIBS="-lnsl $LIBS"
3998 cat > conftest.$ac_ext <<EOF
3999 #line 4000 "configure"
4000 #include "confdefs.h"
4001 /* Override any gcc2 internal prototype to avoid an error. */
4002 /* We use char because int might match the return type of a gcc2
4003 builtin and then its argument prototype would still apply. */
4004 char gethostbyname();
4006 int main() {
4007 gethostbyname()
4008 ; return 0; }
4010 if { (eval echo configure:4011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4011 rm -rf conftest*
4012 eval "ac_cv_lib_$ac_lib_var=yes"
4013 else
4014 echo "configure: failed program was:" >&5
4015 cat conftest.$ac_ext >&5
4016 rm -rf conftest*
4017 eval "ac_cv_lib_$ac_lib_var=no"
4019 rm -f conftest*
4020 LIBS="$ac_save_LIBS"
4023 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4024 echo "$ac_t""yes" 1>&6
4025 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4026 else
4027 echo "$ac_t""no" 1>&6
4032 # lieder@skyler.mavd.honeywell.com says without -lsocket,
4033 # socket/setsockopt and other routines are undefined under SCO ODT
4034 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4035 # on later versions), says simon@lia.di.epfl.ch: it contains
4036 # gethostby* variants that don't use the nameserver (or something).
4037 # -lsocket must be given before -lnsl if both are needed.
4038 # We assume that if connect needs -lnsl, so does gethostbyname.
4039 echo $ac_n "checking for connect""... $ac_c" 1>&6
4040 echo "configure:4041: checking for connect" >&5
4041 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
4042 echo $ac_n "(cached) $ac_c" 1>&6
4043 else
4044 cat > conftest.$ac_ext <<EOF
4045 #line 4046 "configure"
4046 #include "confdefs.h"
4047 /* System header to define __stub macros and hopefully few prototypes,
4048 which can conflict with char connect(); below. */
4049 #include <assert.h>
4050 /* Override any gcc2 internal prototype to avoid an error. */
4051 /* We use char because int might match the return type of a gcc2
4052 builtin and then its argument prototype would still apply. */
4053 char connect();
4055 int main() {
4057 /* The GNU C library defines this for functions which it implements
4058 to always fail with ENOSYS. Some functions are actually named
4059 something starting with __ and the normal name is an alias. */
4060 #if defined (__stub_connect) || defined (__stub___connect)
4061 choke me
4062 #else
4063 connect();
4064 #endif
4066 ; return 0; }
4068 if { (eval echo configure:4069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4069 rm -rf conftest*
4070 eval "ac_cv_func_connect=yes"
4071 else
4072 echo "configure: failed program was:" >&5
4073 cat conftest.$ac_ext >&5
4074 rm -rf conftest*
4075 eval "ac_cv_func_connect=no"
4077 rm -f conftest*
4080 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
4081 echo "$ac_t""yes" 1>&6
4083 else
4084 echo "$ac_t""no" 1>&6
4087 if test $ac_cv_func_connect = no; then
4088 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
4089 echo "configure:4090: checking for connect in -lsocket" >&5
4090 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4091 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4092 echo $ac_n "(cached) $ac_c" 1>&6
4093 else
4094 ac_save_LIBS="$LIBS"
4095 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4096 cat > conftest.$ac_ext <<EOF
4097 #line 4098 "configure"
4098 #include "confdefs.h"
4099 /* Override any gcc2 internal prototype to avoid an error. */
4100 /* We use char because int might match the return type of a gcc2
4101 builtin and then its argument prototype would still apply. */
4102 char connect();
4104 int main() {
4105 connect()
4106 ; return 0; }
4108 if { (eval echo configure:4109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4109 rm -rf conftest*
4110 eval "ac_cv_lib_$ac_lib_var=yes"
4111 else
4112 echo "configure: failed program was:" >&5
4113 cat conftest.$ac_ext >&5
4114 rm -rf conftest*
4115 eval "ac_cv_lib_$ac_lib_var=no"
4117 rm -f conftest*
4118 LIBS="$ac_save_LIBS"
4121 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4122 echo "$ac_t""yes" 1>&6
4123 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4124 else
4125 echo "$ac_t""no" 1>&6
4130 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
4131 echo $ac_n "checking for remove""... $ac_c" 1>&6
4132 echo "configure:4133: checking for remove" >&5
4133 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
4134 echo $ac_n "(cached) $ac_c" 1>&6
4135 else
4136 cat > conftest.$ac_ext <<EOF
4137 #line 4138 "configure"
4138 #include "confdefs.h"
4139 /* System header to define __stub macros and hopefully few prototypes,
4140 which can conflict with char remove(); below. */
4141 #include <assert.h>
4142 /* Override any gcc2 internal prototype to avoid an error. */
4143 /* We use char because int might match the return type of a gcc2
4144 builtin and then its argument prototype would still apply. */
4145 char remove();
4147 int main() {
4149 /* The GNU C library defines this for functions which it implements
4150 to always fail with ENOSYS. Some functions are actually named
4151 something starting with __ and the normal name is an alias. */
4152 #if defined (__stub_remove) || defined (__stub___remove)
4153 choke me
4154 #else
4155 remove();
4156 #endif
4158 ; return 0; }
4160 if { (eval echo configure:4161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4161 rm -rf conftest*
4162 eval "ac_cv_func_remove=yes"
4163 else
4164 echo "configure: failed program was:" >&5
4165 cat conftest.$ac_ext >&5
4166 rm -rf conftest*
4167 eval "ac_cv_func_remove=no"
4169 rm -f conftest*
4172 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
4173 echo "$ac_t""yes" 1>&6
4175 else
4176 echo "$ac_t""no" 1>&6
4179 if test $ac_cv_func_remove = no; then
4180 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
4181 echo "configure:4182: checking for remove in -lposix" >&5
4182 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
4183 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4184 echo $ac_n "(cached) $ac_c" 1>&6
4185 else
4186 ac_save_LIBS="$LIBS"
4187 LIBS="-lposix $LIBS"
4188 cat > conftest.$ac_ext <<EOF
4189 #line 4190 "configure"
4190 #include "confdefs.h"
4191 /* Override any gcc2 internal prototype to avoid an error. */
4192 /* We use char because int might match the return type of a gcc2
4193 builtin and then its argument prototype would still apply. */
4194 char remove();
4196 int main() {
4197 remove()
4198 ; return 0; }
4200 if { (eval echo configure:4201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4201 rm -rf conftest*
4202 eval "ac_cv_lib_$ac_lib_var=yes"
4203 else
4204 echo "configure: failed program was:" >&5
4205 cat conftest.$ac_ext >&5
4206 rm -rf conftest*
4207 eval "ac_cv_lib_$ac_lib_var=no"
4209 rm -f conftest*
4210 LIBS="$ac_save_LIBS"
4213 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4214 echo "$ac_t""yes" 1>&6
4215 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4216 else
4217 echo "$ac_t""no" 1>&6
4222 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4223 echo $ac_n "checking for shmat""... $ac_c" 1>&6
4224 echo "configure:4225: checking for shmat" >&5
4225 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
4226 echo $ac_n "(cached) $ac_c" 1>&6
4227 else
4228 cat > conftest.$ac_ext <<EOF
4229 #line 4230 "configure"
4230 #include "confdefs.h"
4231 /* System header to define __stub macros and hopefully few prototypes,
4232 which can conflict with char shmat(); below. */
4233 #include <assert.h>
4234 /* Override any gcc2 internal prototype to avoid an error. */
4235 /* We use char because int might match the return type of a gcc2
4236 builtin and then its argument prototype would still apply. */
4237 char shmat();
4239 int main() {
4241 /* The GNU C library defines this for functions which it implements
4242 to always fail with ENOSYS. Some functions are actually named
4243 something starting with __ and the normal name is an alias. */
4244 #if defined (__stub_shmat) || defined (__stub___shmat)
4245 choke me
4246 #else
4247 shmat();
4248 #endif
4250 ; return 0; }
4252 if { (eval echo configure:4253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4253 rm -rf conftest*
4254 eval "ac_cv_func_shmat=yes"
4255 else
4256 echo "configure: failed program was:" >&5
4257 cat conftest.$ac_ext >&5
4258 rm -rf conftest*
4259 eval "ac_cv_func_shmat=no"
4261 rm -f conftest*
4264 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
4265 echo "$ac_t""yes" 1>&6
4267 else
4268 echo "$ac_t""no" 1>&6
4271 if test $ac_cv_func_shmat = no; then
4272 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
4273 echo "configure:4274: checking for shmat in -lipc" >&5
4274 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
4275 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4276 echo $ac_n "(cached) $ac_c" 1>&6
4277 else
4278 ac_save_LIBS="$LIBS"
4279 LIBS="-lipc $LIBS"
4280 cat > conftest.$ac_ext <<EOF
4281 #line 4282 "configure"
4282 #include "confdefs.h"
4283 /* Override any gcc2 internal prototype to avoid an error. */
4284 /* We use char because int might match the return type of a gcc2
4285 builtin and then its argument prototype would still apply. */
4286 char shmat();
4288 int main() {
4289 shmat()
4290 ; return 0; }
4292 if { (eval echo configure:4293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4293 rm -rf conftest*
4294 eval "ac_cv_lib_$ac_lib_var=yes"
4295 else
4296 echo "configure: failed program was:" >&5
4297 cat conftest.$ac_ext >&5
4298 rm -rf conftest*
4299 eval "ac_cv_lib_$ac_lib_var=no"
4301 rm -f conftest*
4302 LIBS="$ac_save_LIBS"
4305 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4306 echo "$ac_t""yes" 1>&6
4307 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4308 else
4309 echo "$ac_t""no" 1>&6
4315 # Check for libraries that X11R6 Xt/Xaw programs need.
4316 ac_save_LDFLAGS="$LDFLAGS"
4317 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4318 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4319 # check for ICE first), but we must link in the order -lSM -lICE or
4320 # we get undefined symbols. So assume we have SM if we have ICE.
4321 # These have to be linked with before -lX11, unlike the other
4322 # libraries we check for below, so use a different variable.
4323 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
4324 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
4325 echo "configure:4326: checking for IceConnectionNumber in -lICE" >&5
4326 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
4327 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4328 echo $ac_n "(cached) $ac_c" 1>&6
4329 else
4330 ac_save_LIBS="$LIBS"
4331 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4332 cat > conftest.$ac_ext <<EOF
4333 #line 4334 "configure"
4334 #include "confdefs.h"
4335 /* Override any gcc2 internal prototype to avoid an error. */
4336 /* We use char because int might match the return type of a gcc2
4337 builtin and then its argument prototype would still apply. */
4338 char IceConnectionNumber();
4340 int main() {
4341 IceConnectionNumber()
4342 ; return 0; }
4344 if { (eval echo configure:4345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4345 rm -rf conftest*
4346 eval "ac_cv_lib_$ac_lib_var=yes"
4347 else
4348 echo "configure: failed program was:" >&5
4349 cat conftest.$ac_ext >&5
4350 rm -rf conftest*
4351 eval "ac_cv_lib_$ac_lib_var=no"
4353 rm -f conftest*
4354 LIBS="$ac_save_LIBS"
4357 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4358 echo "$ac_t""yes" 1>&6
4359 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4360 else
4361 echo "$ac_t""no" 1>&6
4364 LDFLAGS="$ac_save_LDFLAGS"
4369 if test $no_x; then
4370 { echo "configure: error: The path for the X11 files not found!
4371 Make sure you have X and it's headers and libraries (the -devel packages
4372 in Linux) installed." 1>&2; exit 1; }
4375 X_LIBRARY_PATH=$x_libraries
4377 XCFLAGS="$X_CFLAGS"
4379 XLFLAGS="$X_LIBS"
4381 XLIBS="-lX11 $X_EXTRA_LIBS"
4384 lib_search_path="$lib_search_path $XLFLAGS"
4385 inc_search_path="$inc_search_path $XCFLAGS"
4392 use_locale=yes
4393 # Check whether --enable-locale or --disable-locale was given.
4394 if test "${enable_locale+set}" = set; then
4395 enableval="$enable_locale"
4396 use_locale=no
4400 if test "$use_locale" = yes; then
4401 echo $ac_n "checking for _Xsetlocale in -lX11""... $ac_c" 1>&6
4402 echo "configure:4403: checking for _Xsetlocale in -lX11" >&5
4403 ac_lib_var=`echo X11'_'_Xsetlocale | sed 'y%./+-%__p_%'`
4404 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4405 echo $ac_n "(cached) $ac_c" 1>&6
4406 else
4407 ac_save_LIBS="$LIBS"
4408 LIBS="-lX11 $XLFLAGS $XLIBS $LIBS"
4409 cat > conftest.$ac_ext <<EOF
4410 #line 4411 "configure"
4411 #include "confdefs.h"
4412 /* Override any gcc2 internal prototype to avoid an error. */
4413 /* We use char because int might match the return type of a gcc2
4414 builtin and then its argument prototype would still apply. */
4415 char _Xsetlocale();
4417 int main() {
4418 _Xsetlocale()
4419 ; return 0; }
4421 if { (eval echo configure:4422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4422 rm -rf conftest*
4423 eval "ac_cv_lib_$ac_lib_var=yes"
4424 else
4425 echo "configure: failed program was:" >&5
4426 cat conftest.$ac_ext >&5
4427 rm -rf conftest*
4428 eval "ac_cv_lib_$ac_lib_var=no"
4430 rm -f conftest*
4431 LIBS="$ac_save_LIBS"
4434 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4435 echo "$ac_t""yes" 1>&6
4436 cat >> confdefs.h <<\EOF
4437 #define X_LOCALE 1
4440 else
4441 echo "$ac_t""no" 1>&6
4447 # Check whether --enable-modelock or --disable-modelock was given.
4448 if test "${enable_modelock+set}" = set; then
4449 enableval="$enable_modelock"
4450 cat >> confdefs.h <<\EOF
4451 #define XKB_MODELOCK 1
4459 shape=yes
4460 # Check whether --enable-shape or --disable-shape was given.
4461 if test "${enable_shape+set}" = set; then
4462 enableval="$enable_shape"
4463 shape=$enableval
4464 else
4465 shape=yes
4469 added_xext=no
4471 if test "$shape" = yes; then
4472 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
4473 echo "configure:4474: checking for XShapeSelectInput in -lXext" >&5
4474 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
4475 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4476 echo $ac_n "(cached) $ac_c" 1>&6
4477 else
4478 ac_save_LIBS="$LIBS"
4479 LIBS="-lXext $XLFLAGS $XLIBS $LIBS"
4480 cat > conftest.$ac_ext <<EOF
4481 #line 4482 "configure"
4482 #include "confdefs.h"
4483 /* Override any gcc2 internal prototype to avoid an error. */
4484 /* We use char because int might match the return type of a gcc2
4485 builtin and then its argument prototype would still apply. */
4486 char XShapeSelectInput();
4488 int main() {
4489 XShapeSelectInput()
4490 ; return 0; }
4492 if { (eval echo configure:4493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4493 rm -rf conftest*
4494 eval "ac_cv_lib_$ac_lib_var=yes"
4495 else
4496 echo "configure: failed program was:" >&5
4497 cat conftest.$ac_ext >&5
4498 rm -rf conftest*
4499 eval "ac_cv_lib_$ac_lib_var=no"
4501 rm -f conftest*
4502 LIBS="$ac_save_LIBS"
4505 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4506 echo "$ac_t""yes" 1>&6
4507 XLIBS="-lXext $XLIBS"
4508 added_xext=yes
4509 cat >> confdefs.h <<\EOF
4510 #define SHAPE 1
4513 else
4514 echo "$ac_t""no" 1>&6
4515 shape=no
4522 xinerama=yes
4523 # Check whether --enable-xinerama or --disable-xinerama was given.
4524 if test "${enable_xinerama+set}" = set; then
4525 enableval="$enable_xinerama"
4526 xinerama=$enableval
4527 else
4528 xinerama=yes
4532 if test "$xinerama" = yes; then
4533 echo $ac_n "checking for X in -lXext""... $ac_c" 1>&6
4534 echo "configure:4535: checking for X in -lXext" >&5
4535 ac_lib_var=`echo Xext'_'X | sed 'y%./+-%__p_%'`
4536 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4537 echo $ac_n "(cached) $ac_c" 1>&6
4538 else
4539 ac_save_LIBS="$LIBS"
4540 LIBS="-lXext $XLFLAGS $XLIBS $LIBS"
4541 cat > conftest.$ac_ext <<EOF
4542 #line 4543 "configure"
4543 #include "confdefs.h"
4544 /* Override any gcc2 internal prototype to avoid an error. */
4545 /* We use char because int might match the return type of a gcc2
4546 builtin and then its argument prototype would still apply. */
4547 char X();
4549 int main() {
4551 ; return 0; }
4553 if { (eval echo configure:4554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4554 rm -rf conftest*
4555 eval "ac_cv_lib_$ac_lib_var=yes"
4556 else
4557 echo "configure: failed program was:" >&5
4558 cat conftest.$ac_ext >&5
4559 rm -rf conftest*
4560 eval "ac_cv_lib_$ac_lib_var=no"
4562 rm -f conftest*
4563 LIBS="$ac_save_LIBS"
4566 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4567 echo "$ac_t""yes" 1>&6
4568 XLIBS="-lXext $XLIBS"
4569 added_xext=yes
4570 cat >> confdefs.h <<\EOF
4571 #define XINERAMA 1
4574 else
4575 echo "$ac_t""no" 1>&6
4576 xinerama=no
4583 shm=yes
4584 # Check whether --enable-shm or --disable-shm was given.
4585 if test "${enable_shm+set}" = set; then
4586 enableval="$enable_shm"
4587 shm=$enableval
4588 else
4589 shm=yes
4593 if test "$shm" = yes; then
4594 echo $ac_n "checking for XShmAttach in -lXext""... $ac_c" 1>&6
4595 echo "configure:4596: checking for XShmAttach in -lXext" >&5
4596 ac_lib_var=`echo Xext'_'XShmAttach | sed 'y%./+-%__p_%'`
4597 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4598 echo $ac_n "(cached) $ac_c" 1>&6
4599 else
4600 ac_save_LIBS="$LIBS"
4601 LIBS="-lXext $XLFLAGS $XLIBS $LIBS"
4602 cat > conftest.$ac_ext <<EOF
4603 #line 4604 "configure"
4604 #include "confdefs.h"
4605 /* Override any gcc2 internal prototype to avoid an error. */
4606 /* We use char because int might match the return type of a gcc2
4607 builtin and then its argument prototype would still apply. */
4608 char XShmAttach();
4610 int main() {
4611 XShmAttach()
4612 ; return 0; }
4614 if { (eval echo configure:4615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4615 rm -rf conftest*
4616 eval "ac_cv_lib_$ac_lib_var=yes"
4617 else
4618 echo "configure: failed program was:" >&5
4619 cat conftest.$ac_ext >&5
4620 rm -rf conftest*
4621 eval "ac_cv_lib_$ac_lib_var=no"
4623 rm -f conftest*
4624 LIBS="$ac_save_LIBS"
4627 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4628 echo "$ac_t""yes" 1>&6
4629 ok=yes
4630 else
4631 echo "$ac_t""no" 1>&6
4632 ok=no
4636 if test "$ok" = yes; then
4637 echo $ac_n "checking for shmget""... $ac_c" 1>&6
4638 echo "configure:4639: checking for shmget" >&5
4639 if eval "test \"`echo '$''{'ac_cv_func_shmget'+set}'`\" = set"; then
4640 echo $ac_n "(cached) $ac_c" 1>&6
4641 else
4642 cat > conftest.$ac_ext <<EOF
4643 #line 4644 "configure"
4644 #include "confdefs.h"
4645 /* System header to define __stub macros and hopefully few prototypes,
4646 which can conflict with char shmget(); below. */
4647 #include <assert.h>
4648 /* Override any gcc2 internal prototype to avoid an error. */
4649 /* We use char because int might match the return type of a gcc2
4650 builtin and then its argument prototype would still apply. */
4651 char shmget();
4653 int main() {
4655 /* The GNU C library defines this for functions which it implements
4656 to always fail with ENOSYS. Some functions are actually named
4657 something starting with __ and the normal name is an alias. */
4658 #if defined (__stub_shmget) || defined (__stub___shmget)
4659 choke me
4660 #else
4661 shmget();
4662 #endif
4664 ; return 0; }
4666 if { (eval echo configure:4667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4667 rm -rf conftest*
4668 eval "ac_cv_func_shmget=yes"
4669 else
4670 echo "configure: failed program was:" >&5
4671 cat conftest.$ac_ext >&5
4672 rm -rf conftest*
4673 eval "ac_cv_func_shmget=no"
4675 rm -f conftest*
4678 if eval "test \"`echo '$ac_cv_func_'shmget`\" = yes"; then
4679 echo "$ac_t""yes" 1>&6
4680 ok=yes
4681 else
4682 echo "$ac_t""no" 1>&6
4683 ok=no
4688 if test "$ok" = yes; then
4689 if test "$added_xext" = no; then
4690 XLIBS="-lXext $XLIBS"
4692 cat >> confdefs.h <<\EOF
4693 #define XSHM 1
4703 #AC_DEFINE(R6SM)
4704 #AC_SUBST(XSMPLIBS)
4709 LIBPL=""
4712 LDFLAGS_old="$LDFLAGS"
4713 LDFLAGS="$LDFLAGS $lib_search_path"
4714 echo $ac_n "checking for PLGetString in -lPropList""... $ac_c" 1>&6
4715 echo "configure:4716: checking for PLGetString in -lPropList" >&5
4716 ac_lib_var=`echo PropList'_'PLGetString | sed 'y%./+-%__p_%'`
4717 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4718 echo $ac_n "(cached) $ac_c" 1>&6
4719 else
4720 ac_save_LIBS="$LIBS"
4721 LIBS="-lPropList $X_EXTRA_LIBS $LIBS"
4722 cat > conftest.$ac_ext <<EOF
4723 #line 4724 "configure"
4724 #include "confdefs.h"
4725 /* Override any gcc2 internal prototype to avoid an error. */
4726 /* We use char because int might match the return type of a gcc2
4727 builtin and then its argument prototype would still apply. */
4728 char PLGetString();
4730 int main() {
4731 PLGetString()
4732 ; return 0; }
4734 if { (eval echo configure:4735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4735 rm -rf conftest*
4736 eval "ac_cv_lib_$ac_lib_var=yes"
4737 else
4738 echo "configure: failed program was:" >&5
4739 cat conftest.$ac_ext >&5
4740 rm -rf conftest*
4741 eval "ac_cv_lib_$ac_lib_var=no"
4743 rm -f conftest*
4744 LIBS="$ac_save_LIBS"
4747 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4748 echo "$ac_t""yes" 1>&6
4749 yes=yes
4750 else
4751 echo "$ac_t""no" 1>&6
4752 no=no
4755 LDFLAGS="$LDFLAGS_old"
4757 if test "x$ac_cv_lib_PropList_PLGetString" = xyes; then
4759 CPPFLAGS_old="$CPPFLAGS"
4760 CPPFLAGS="$CPPFLAGS $inc_search_path"
4761 ac_safe=`echo "proplist.h" | sed 'y%./+-%__p_%'`
4762 echo $ac_n "checking for proplist.h""... $ac_c" 1>&6
4763 echo "configure:4764: checking for proplist.h" >&5
4764 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4765 echo $ac_n "(cached) $ac_c" 1>&6
4766 else
4767 cat > conftest.$ac_ext <<EOF
4768 #line 4769 "configure"
4769 #include "confdefs.h"
4770 #include <proplist.h>
4772 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4773 { (eval echo configure:4774: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4774 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4775 if test -z "$ac_err"; then
4776 rm -rf conftest*
4777 eval "ac_cv_header_$ac_safe=yes"
4778 else
4779 echo "$ac_err" >&5
4780 echo "configure: failed program was:" >&5
4781 cat conftest.$ac_ext >&5
4782 rm -rf conftest*
4783 eval "ac_cv_header_$ac_safe=no"
4785 rm -f conftest*
4787 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4788 echo "$ac_t""yes" 1>&6
4790 else
4791 echo "$ac_t""no" 1>&6
4794 CPPFLAGS="$CPPFLAGS_old"
4796 if test "x$ac_cv_header_proplist_h" = xyes; then
4797 LIBPL="-lPropList"
4801 if test "x$LIBPL" = "x"; then
4802 echo
4803 echo "ERROR!!! libPropList is not installed, or could not be found."
4804 echo " Window Maker requires libPropList to build."
4805 echo " Please read INSTALL to find where you can find libPropList,"
4806 echo " and install it first."
4807 if test x$host_os = xlinux; then
4808 echo " If you're using some prepackaged version of libPropList,"
4809 echo " make sure you install it's \"development\" package as well."
4811 echo " If you already have it installed, try using the"
4812 if test "x$ac_cv_lib_PropList_PLGetString" != xyes; then
4813 echo " --with-libs-from flag to tell configure where the library"
4814 echo " is installed and"
4816 echo " --with-incs-from flag to tell configure where the header"
4817 echo " files are installed"
4818 exit 1
4822 CPPFLAGS_old="$CPPFLAGS"
4823 CPPFLAGS="$CPPFLAGS $inc_search_path"
4824 lPL_major_version=`echo 0.9.5 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
4825 lPL_minor_version=`echo 0.9.5 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
4826 lPL_micro_version=`echo 0.9.5 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
4827 echo $ac_n "checking whether libPropList is newer than 0.9.5""... $ac_c" 1>&6
4828 echo "configure:4829: checking whether libPropList is newer than 0.9.5" >&5
4829 if eval "test \"`echo '$''{'ac_cv_lib_proplist_version_ok'+set}'`\" = set"; then
4830 echo $ac_n "(cached) $ac_c" 1>&6
4831 else
4832 cat > conftest.$ac_ext <<EOF
4833 #line 4834 "configure"
4834 #include "confdefs.h"
4835 /* Test version of libPropList we have */
4836 #include <proplist.h>
4838 #if !defined(PROPLIST_VERSION) || PROPLIST_VERSION < $lPL_major_version*10000 + $lPL_minor_version*100 + $lPL_micro_version
4839 #error libPropList on this system is too old. Consider upgrading to at least 0.9.5
4840 #endif
4842 int main() {
4844 ; return 0; }
4846 if { (eval echo configure:4847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4847 rm -rf conftest*
4848 eval "ac_cv_lib_proplist_version_ok=yes"
4849 else
4850 echo "configure: failed program was:" >&5
4851 cat conftest.$ac_ext >&5
4852 rm -rf conftest*
4853 eval "ac_cv_lib_proplist_version_ok=no"
4855 rm -f conftest*
4858 if eval "test \"`echo '$ac_cv_lib_proplist_version_ok'`\" = yes"; then
4859 echo "$ac_t""yes" 1>&6
4860 goodlPL=yes
4861 else
4862 echo "$ac_t""no" 1>&6
4863 goodlPL=no
4865 CPPFLAGS="$CPPFLAGS_old"
4868 if test "$goodlPL" = no; then
4869 echo
4870 echo "ERROR!!! libPropList is an old version. Please consider upgrading"
4871 echo " to at least version 0.9.5. Older versions have bugs that"
4872 echo " may cause Window Maker to crash randomly."
4873 echo " If your libPropList is older than 0.9.2 it will also prevent"
4874 echo " Window Maker from compiling because new functions were"
4875 echo " introduced since that version."
4876 echo " Please read INSTALL to find where you can find libPropList,"
4877 echo " and upgrade it before you proceed."
4878 exit 1
4889 xpm=yes
4890 # Check whether --enable-xpm or --disable-xpm was given.
4891 if test "${enable_xpm+set}" = set; then
4892 enableval="$enable_xpm"
4893 xpm=$enableval
4894 else
4895 xpm=yes
4899 if test "$xpm" = yes; then
4901 LDFLAGS_old="$LDFLAGS"
4902 LDFLAGS="$LDFLAGS $lib_search_path"
4903 echo $ac_n "checking for XpmCreatePixmapFromData in -lXpm""... $ac_c" 1>&6
4904 echo "configure:4905: checking for XpmCreatePixmapFromData in -lXpm" >&5
4905 ac_lib_var=`echo Xpm'_'XpmCreatePixmapFromData | sed 'y%./+-%__p_%'`
4906 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4907 echo $ac_n "(cached) $ac_c" 1>&6
4908 else
4909 ac_save_LIBS="$LIBS"
4910 LIBS="-lXpm $XLFLAGS $XLIBS $LIBS"
4911 cat > conftest.$ac_ext <<EOF
4912 #line 4913 "configure"
4913 #include "confdefs.h"
4914 /* Override any gcc2 internal prototype to avoid an error. */
4915 /* We use char because int might match the return type of a gcc2
4916 builtin and then its argument prototype would still apply. */
4917 char XpmCreatePixmapFromData();
4919 int main() {
4920 XpmCreatePixmapFromData()
4921 ; return 0; }
4923 if { (eval echo configure:4924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4924 rm -rf conftest*
4925 eval "ac_cv_lib_$ac_lib_var=yes"
4926 else
4927 echo "configure: failed program was:" >&5
4928 cat conftest.$ac_ext >&5
4929 rm -rf conftest*
4930 eval "ac_cv_lib_$ac_lib_var=no"
4932 rm -f conftest*
4933 LIBS="$ac_save_LIBS"
4936 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4937 echo "$ac_t""yes" 1>&6
4938 yes=yes
4939 else
4940 echo "$ac_t""no" 1>&6
4941 no=no
4944 LDFLAGS="$LDFLAGS_old"
4947 if test "x$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = xyes; then
4949 CPPFLAGS_old="$CPPFLAGS"
4950 CPPFLAGS="$CPPFLAGS $inc_search_path"
4951 ac_safe=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'`
4952 echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6
4953 echo "configure:4954: checking for X11/xpm.h" >&5
4954 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4955 echo $ac_n "(cached) $ac_c" 1>&6
4956 else
4957 cat > conftest.$ac_ext <<EOF
4958 #line 4959 "configure"
4959 #include "confdefs.h"
4960 #include <X11/xpm.h>
4962 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4963 { (eval echo configure:4964: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4964 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4965 if test -z "$ac_err"; then
4966 rm -rf conftest*
4967 eval "ac_cv_header_$ac_safe=yes"
4968 else
4969 echo "$ac_err" >&5
4970 echo "configure: failed program was:" >&5
4971 cat conftest.$ac_ext >&5
4972 rm -rf conftest*
4973 eval "ac_cv_header_$ac_safe=no"
4975 rm -f conftest*
4977 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4978 echo "$ac_t""yes" 1>&6
4980 else
4981 echo "$ac_t""no" 1>&6
4984 CPPFLAGS="$CPPFLAGS_old"
4986 if test "x$ac_cv_header_X11_xpm_h" = xyes; then
4987 GFXLIBS="$GFXLIBS -lXpm"
4988 supported_gfx="XPM"
4989 cat >> confdefs.h <<\EOF
4990 #define USE_XPM 1
4993 else
4994 supported_gfx="builtin-XPM"
4999 # for wmlib
5001 # for test
5009 png=yes
5010 # Check whether --enable-png or --disable-png was given.
5011 if test "${enable_png+set}" = set; then
5012 enableval="$enable_png"
5013 png=$enableval
5014 else
5015 png=yes
5020 if test "$png" = yes ; then
5022 LDFLAGS_old="$LDFLAGS"
5023 LDFLAGS="$LDFLAGS $lib_search_path"
5024 echo $ac_n "checking for png_get_valid in -lpng""... $ac_c" 1>&6
5025 echo "configure:5026: checking for png_get_valid in -lpng" >&5
5026 ac_lib_var=`echo png'_'png_get_valid | sed 'y%./+-%__p_%'`
5027 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5028 echo $ac_n "(cached) $ac_c" 1>&6
5029 else
5030 ac_save_LIBS="$LIBS"
5031 LIBS="-lpng -lz -lm $LIBS"
5032 cat > conftest.$ac_ext <<EOF
5033 #line 5034 "configure"
5034 #include "confdefs.h"
5035 /* Override any gcc2 internal prototype to avoid an error. */
5036 /* We use char because int might match the return type of a gcc2
5037 builtin and then its argument prototype would still apply. */
5038 char png_get_valid();
5040 int main() {
5041 png_get_valid()
5042 ; return 0; }
5044 if { (eval echo configure:5045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5045 rm -rf conftest*
5046 eval "ac_cv_lib_$ac_lib_var=yes"
5047 else
5048 echo "configure: failed program was:" >&5
5049 cat conftest.$ac_ext >&5
5050 rm -rf conftest*
5051 eval "ac_cv_lib_$ac_lib_var=no"
5053 rm -f conftest*
5054 LIBS="$ac_save_LIBS"
5057 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5058 echo "$ac_t""yes" 1>&6
5059 yes=yes
5060 else
5061 echo "$ac_t""no" 1>&6
5062 no=no
5065 LDFLAGS="$LDFLAGS_old"
5068 if test "x$ac_cv_lib_png_png_get_valid" = xyes; then
5070 CPPFLAGS_old="$CPPFLAGS"
5071 CPPFLAGS="$CPPFLAGS $inc_search_path"
5072 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
5073 echo $ac_n "checking for png.h""... $ac_c" 1>&6
5074 echo "configure:5075: checking for png.h" >&5
5075 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5076 echo $ac_n "(cached) $ac_c" 1>&6
5077 else
5078 cat > conftest.$ac_ext <<EOF
5079 #line 5080 "configure"
5080 #include "confdefs.h"
5081 #include <png.h>
5083 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5084 { (eval echo configure:5085: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5085 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5086 if test -z "$ac_err"; then
5087 rm -rf conftest*
5088 eval "ac_cv_header_$ac_safe=yes"
5089 else
5090 echo "$ac_err" >&5
5091 echo "configure: failed program was:" >&5
5092 cat conftest.$ac_ext >&5
5093 rm -rf conftest*
5094 eval "ac_cv_header_$ac_safe=no"
5096 rm -f conftest*
5098 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5099 echo "$ac_t""yes" 1>&6
5101 else
5102 echo "$ac_t""no" 1>&6
5105 CPPFLAGS="$CPPFLAGS_old"
5107 if test "x$ac_cv_header_png_h" = xyes; then
5108 GFXLIBS="$GFXLIBS -lpng -lz"
5109 supported_gfx="$supported_gfx PNG"
5110 cat >> confdefs.h <<\EOF
5111 #define USE_PNG 1
5119 jpeg=yes
5120 ljpeg=""
5121 # Check whether --enable-jpeg or --disable-jpeg was given.
5122 if test "${enable_jpeg+set}" = set; then
5123 enableval="$enable_jpeg"
5124 jpeg=$enableval
5125 else
5126 jpeg=yes
5130 if test "$jpeg" = yes; then
5132 LDFLAGS_old="$LDFLAGS"
5133 LDFLAGS="$LDFLAGS $lib_search_path"
5134 echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6
5135 echo "configure:5136: checking for jpeg_destroy_compress in -ljpeg" >&5
5136 ac_lib_var=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'`
5137 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5138 echo $ac_n "(cached) $ac_c" 1>&6
5139 else
5140 ac_save_LIBS="$LIBS"
5141 LIBS="-ljpeg $LIBS"
5142 cat > conftest.$ac_ext <<EOF
5143 #line 5144 "configure"
5144 #include "confdefs.h"
5145 /* Override any gcc2 internal prototype to avoid an error. */
5146 /* We use char because int might match the return type of a gcc2
5147 builtin and then its argument prototype would still apply. */
5148 char jpeg_destroy_compress();
5150 int main() {
5151 jpeg_destroy_compress()
5152 ; return 0; }
5154 if { (eval echo configure:5155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5155 rm -rf conftest*
5156 eval "ac_cv_lib_$ac_lib_var=yes"
5157 else
5158 echo "configure: failed program was:" >&5
5159 cat conftest.$ac_ext >&5
5160 rm -rf conftest*
5161 eval "ac_cv_lib_$ac_lib_var=no"
5163 rm -f conftest*
5164 LIBS="$ac_save_LIBS"
5167 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5168 echo "$ac_t""yes" 1>&6
5169 yes=yes
5170 else
5171 echo "$ac_t""no" 1>&6
5172 no=no
5175 LDFLAGS="$LDFLAGS_old"
5178 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = xyes; then
5180 ljpeg="-ljpeg"
5183 CPPFLAGS_old="$CPPFLAGS"
5184 CPPFLAGS="$CPPFLAGS $inc_search_path"
5185 ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
5186 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
5187 echo "configure:5188: checking for jpeglib.h" >&5
5188 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5189 echo $ac_n "(cached) $ac_c" 1>&6
5190 else
5191 cat > conftest.$ac_ext <<EOF
5192 #line 5193 "configure"
5193 #include "confdefs.h"
5194 #include <jpeglib.h>
5196 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5197 { (eval echo configure:5198: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5198 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5199 if test -z "$ac_err"; then
5200 rm -rf conftest*
5201 eval "ac_cv_header_$ac_safe=yes"
5202 else
5203 echo "$ac_err" >&5
5204 echo "configure: failed program was:" >&5
5205 cat conftest.$ac_ext >&5
5206 rm -rf conftest*
5207 eval "ac_cv_header_$ac_safe=no"
5209 rm -f conftest*
5211 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5212 echo "$ac_t""yes" 1>&6
5214 else
5215 echo "$ac_t""no" 1>&6
5218 CPPFLAGS="$CPPFLAGS_old"
5220 if test "x$ac_cv_header_jpeglib_h" = xyes; then
5221 GFXLIBS="$GFXLIBS -ljpeg"
5222 supported_gfx="$supported_gfx JPEG"
5223 cat >> confdefs.h <<\EOF
5224 #define USE_JPEG 1
5232 gif=yes
5233 # Check whether --enable-gif or --disable-gif was given.
5234 if test "${enable_gif+set}" = set; then
5235 enableval="$enable_gif"
5236 gif=$enableval
5237 else
5238 gif=yes
5242 if test "$gif" = yes; then
5243 my_libname=""
5245 LDFLAGS_old="$LDFLAGS"
5246 LDFLAGS="$LDFLAGS $lib_search_path"
5247 echo $ac_n "checking for DGifOpenFileName in -lungif""... $ac_c" 1>&6
5248 echo "configure:5249: checking for DGifOpenFileName in -lungif" >&5
5249 ac_lib_var=`echo ungif'_'DGifOpenFileName | sed 'y%./+-%__p_%'`
5250 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5251 echo $ac_n "(cached) $ac_c" 1>&6
5252 else
5253 ac_save_LIBS="$LIBS"
5254 LIBS="-lungif $XLFLAGS $XLIBS $LIBS"
5255 cat > conftest.$ac_ext <<EOF
5256 #line 5257 "configure"
5257 #include "confdefs.h"
5258 /* Override any gcc2 internal prototype to avoid an error. */
5259 /* We use char because int might match the return type of a gcc2
5260 builtin and then its argument prototype would still apply. */
5261 char DGifOpenFileName();
5263 int main() {
5264 DGifOpenFileName()
5265 ; return 0; }
5267 if { (eval echo configure:5268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5268 rm -rf conftest*
5269 eval "ac_cv_lib_$ac_lib_var=yes"
5270 else
5271 echo "configure: failed program was:" >&5
5272 cat conftest.$ac_ext >&5
5273 rm -rf conftest*
5274 eval "ac_cv_lib_$ac_lib_var=no"
5276 rm -f conftest*
5277 LIBS="$ac_save_LIBS"
5280 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5281 echo "$ac_t""yes" 1>&6
5282 yes=yes
5283 else
5284 echo "$ac_t""no" 1>&6
5285 no=no
5288 LDFLAGS="$LDFLAGS_old"
5290 if test "x$ac_cv_lib_ungif_DGifOpenFileName" = xyes; then
5291 my_libname=-lungif
5293 if test "x$my_libname" = x; then
5295 LDFLAGS_old="$LDFLAGS"
5296 LDFLAGS="$LDFLAGS $lib_search_path"
5297 echo $ac_n "checking for DGifOpenFileName in -lgif""... $ac_c" 1>&6
5298 echo "configure:5299: checking for DGifOpenFileName in -lgif" >&5
5299 ac_lib_var=`echo gif'_'DGifOpenFileName | sed 'y%./+-%__p_%'`
5300 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5301 echo $ac_n "(cached) $ac_c" 1>&6
5302 else
5303 ac_save_LIBS="$LIBS"
5304 LIBS="-lgif $XLFLAGS $XLIBS $LIBS"
5305 cat > conftest.$ac_ext <<EOF
5306 #line 5307 "configure"
5307 #include "confdefs.h"
5308 /* Override any gcc2 internal prototype to avoid an error. */
5309 /* We use char because int might match the return type of a gcc2
5310 builtin and then its argument prototype would still apply. */
5311 char DGifOpenFileName();
5313 int main() {
5314 DGifOpenFileName()
5315 ; return 0; }
5317 if { (eval echo configure:5318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5318 rm -rf conftest*
5319 eval "ac_cv_lib_$ac_lib_var=yes"
5320 else
5321 echo "configure: failed program was:" >&5
5322 cat conftest.$ac_ext >&5
5323 rm -rf conftest*
5324 eval "ac_cv_lib_$ac_lib_var=no"
5326 rm -f conftest*
5327 LIBS="$ac_save_LIBS"
5330 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5331 echo "$ac_t""yes" 1>&6
5332 yes=yes
5333 else
5334 echo "$ac_t""no" 1>&6
5335 no=no
5338 LDFLAGS="$LDFLAGS_old"
5340 if test "x$ac_cv_lib_gif_DGifOpenFileName" = xyes; then
5341 my_libname=-lgif
5345 if test "$my_libname" != x; then
5347 CPPFLAGS_old="$CPPFLAGS"
5348 CPPFLAGS="$CPPFLAGS $inc_search_path"
5349 ac_safe=`echo "gif_lib.h" | sed 'y%./+-%__p_%'`
5350 echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6
5351 echo "configure:5352: checking for gif_lib.h" >&5
5352 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5353 echo $ac_n "(cached) $ac_c" 1>&6
5354 else
5355 cat > conftest.$ac_ext <<EOF
5356 #line 5357 "configure"
5357 #include "confdefs.h"
5358 #include <gif_lib.h>
5360 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5361 { (eval echo configure:5362: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5362 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5363 if test -z "$ac_err"; then
5364 rm -rf conftest*
5365 eval "ac_cv_header_$ac_safe=yes"
5366 else
5367 echo "$ac_err" >&5
5368 echo "configure: failed program was:" >&5
5369 cat conftest.$ac_ext >&5
5370 rm -rf conftest*
5371 eval "ac_cv_header_$ac_safe=no"
5373 rm -f conftest*
5375 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5376 echo "$ac_t""yes" 1>&6
5378 else
5379 echo "$ac_t""no" 1>&6
5382 CPPFLAGS="$CPPFLAGS_old"
5384 if test "x$ac_cv_header_gif_lib_h" = xyes; then
5385 GFXLIBS="$GFXLIBS $my_libname"
5386 supported_gfx="$supported_gfx GIF"
5387 cat >> confdefs.h <<\EOF
5388 #define USE_GIF 1
5397 # Check whether --enable-tiff or --disable-tiff was given.
5398 if test "${enable_tiff+set}" = set; then
5399 enableval="$enable_tiff"
5400 tif=$enableval
5401 else
5402 tif=yes
5407 # TIFF can optionally have JPEG and/or zlib support. Must find out
5408 # when they are supported so that correct library flags are passed during
5409 # detection and linkage
5412 # By default use xpm icons if tiff is not found.
5413 ICONEXT="xpm"
5416 if test "$tif" = yes; then
5417 my_libname=""
5419 LDFLAGS_old="$LDFLAGS"
5420 LDFLAGS="$LDFLAGS $lib_search_path"
5421 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6
5422 echo "configure:5423: checking for TIFFGetVersion in -ltiff" >&5
5423 ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
5424 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5425 echo $ac_n "(cached) $ac_c" 1>&6
5426 else
5427 ac_save_LIBS="$LIBS"
5428 LIBS="-ltiff -lm $LIBS"
5429 cat > conftest.$ac_ext <<EOF
5430 #line 5431 "configure"
5431 #include "confdefs.h"
5432 /* Override any gcc2 internal prototype to avoid an error. */
5433 /* We use char because int might match the return type of a gcc2
5434 builtin and then its argument prototype would still apply. */
5435 char TIFFGetVersion();
5437 int main() {
5438 TIFFGetVersion()
5439 ; return 0; }
5441 if { (eval echo configure:5442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5442 rm -rf conftest*
5443 eval "ac_cv_lib_$ac_lib_var=yes"
5444 else
5445 echo "configure: failed program was:" >&5
5446 cat conftest.$ac_ext >&5
5447 rm -rf conftest*
5448 eval "ac_cv_lib_$ac_lib_var=no"
5450 rm -f conftest*
5451 LIBS="$ac_save_LIBS"
5454 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5455 echo "$ac_t""yes" 1>&6
5456 yes=yes
5457 else
5458 echo "$ac_t""no" 1>&6
5459 no=no
5462 LDFLAGS="$LDFLAGS_old"
5464 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = xyes; then
5465 my_libname="-ltiff"
5467 unset ac_cv_lib_tiff_TIFFGetVersion
5468 if test "x$my_libname" = x; then
5470 LDFLAGS_old="$LDFLAGS"
5471 LDFLAGS="$LDFLAGS $lib_search_path"
5472 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6
5473 echo "configure:5474: checking for TIFFGetVersion in -ltiff" >&5
5474 ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
5475 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5476 echo $ac_n "(cached) $ac_c" 1>&6
5477 else
5478 ac_save_LIBS="$LIBS"
5479 LIBS="-ltiff $ljpeg -lz -lm $LIBS"
5480 cat > conftest.$ac_ext <<EOF
5481 #line 5482 "configure"
5482 #include "confdefs.h"
5483 /* Override any gcc2 internal prototype to avoid an error. */
5484 /* We use char because int might match the return type of a gcc2
5485 builtin and then its argument prototype would still apply. */
5486 char TIFFGetVersion();
5488 int main() {
5489 TIFFGetVersion()
5490 ; return 0; }
5492 if { (eval echo configure:5493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5493 rm -rf conftest*
5494 eval "ac_cv_lib_$ac_lib_var=yes"
5495 else
5496 echo "configure: failed program was:" >&5
5497 cat conftest.$ac_ext >&5
5498 rm -rf conftest*
5499 eval "ac_cv_lib_$ac_lib_var=no"
5501 rm -f conftest*
5502 LIBS="$ac_save_LIBS"
5505 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5506 echo "$ac_t""yes" 1>&6
5507 yes=yes
5508 else
5509 echo "$ac_t""no" 1>&6
5510 no=no
5513 LDFLAGS="$LDFLAGS_old"
5515 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = xyes; then
5516 my_libname="-ltiff -lz"
5520 if test "x$my_libname" = x; then
5522 LDFLAGS_old="$LDFLAGS"
5523 LDFLAGS="$LDFLAGS $lib_search_path"
5524 echo $ac_n "checking for TIFFGetVersion in -ltiff34""... $ac_c" 1>&6
5525 echo "configure:5526: checking for TIFFGetVersion in -ltiff34" >&5
5526 ac_lib_var=`echo tiff34'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
5527 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5528 echo $ac_n "(cached) $ac_c" 1>&6
5529 else
5530 ac_save_LIBS="$LIBS"
5531 LIBS="-ltiff34 $ljpeg -lm $LIBS"
5532 cat > conftest.$ac_ext <<EOF
5533 #line 5534 "configure"
5534 #include "confdefs.h"
5535 /* Override any gcc2 internal prototype to avoid an error. */
5536 /* We use char because int might match the return type of a gcc2
5537 builtin and then its argument prototype would still apply. */
5538 char TIFFGetVersion();
5540 int main() {
5541 TIFFGetVersion()
5542 ; return 0; }
5544 if { (eval echo configure:5545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5545 rm -rf conftest*
5546 eval "ac_cv_lib_$ac_lib_var=yes"
5547 else
5548 echo "configure: failed program was:" >&5
5549 cat conftest.$ac_ext >&5
5550 rm -rf conftest*
5551 eval "ac_cv_lib_$ac_lib_var=no"
5553 rm -f conftest*
5554 LIBS="$ac_save_LIBS"
5557 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5558 echo "$ac_t""yes" 1>&6
5559 yes=yes
5560 else
5561 echo "$ac_t""no" 1>&6
5562 no=no
5565 LDFLAGS="$LDFLAGS_old"
5567 if test "x$ac_cv_lib_tiff34_TIFFGetVersion" = xyes; then
5568 my_libname="-ltiff34"
5573 if test "x$my_libname" != x; then
5575 CPPFLAGS_old="$CPPFLAGS"
5576 CPPFLAGS="$CPPFLAGS $inc_search_path"
5577 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
5578 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
5579 echo "configure:5580: checking for tiffio.h" >&5
5580 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5581 echo $ac_n "(cached) $ac_c" 1>&6
5582 else
5583 cat > conftest.$ac_ext <<EOF
5584 #line 5585 "configure"
5585 #include "confdefs.h"
5586 #include <tiffio.h>
5588 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5589 { (eval echo configure:5590: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5590 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5591 if test -z "$ac_err"; then
5592 rm -rf conftest*
5593 eval "ac_cv_header_$ac_safe=yes"
5594 else
5595 echo "$ac_err" >&5
5596 echo "configure: failed program was:" >&5
5597 cat conftest.$ac_ext >&5
5598 rm -rf conftest*
5599 eval "ac_cv_header_$ac_safe=no"
5601 rm -f conftest*
5603 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5604 echo "$ac_t""yes" 1>&6
5606 else
5607 echo "$ac_t""no" 1>&6
5610 CPPFLAGS="$CPPFLAGS_old"
5612 if test "x$ac_cv_header_tiffio_h" = xyes; then
5613 GFXLIBS="$my_libname $GFXLIBS"
5614 ICONEXT="tiff"
5615 supported_gfx="$supported_gfx TIFF"
5616 cat >> confdefs.h <<\EOF
5617 #define USE_TIFF 1
5624 LIBRARY_SEARCH_PATH="$lib_search_path"
5625 HEADER_SEARCH_PATH="$inc_search_path"
5637 # Check whether --enable-debug or --disable-debug was given.
5638 if test "${enable_debug+set}" = set; then
5639 enableval="$enable_debug"
5641 else
5642 enable_debug=no
5646 if test "$enable_debug" = yes; then
5647 DFLAGS="-g -DDEBUG"
5648 # Efence makes things too slow. Add it by hand in the Makefiles
5649 # if it is really needed.
5650 # AC_CHECK_LIB(efence, malloc, LIBS="$LIBS -lefence")
5651 else
5652 DFLAGS="-DWITHOUT_NANA"
5657 sound=yes
5658 # Check whether --enable-sound or --disable-sound was given.
5659 if test "${enable_sound+set}" = set; then
5660 enableval="$enable_sound"
5661 sound=$enableval
5662 else
5663 sound=yes
5666 if test "$sound" = yes; then
5667 cat >> confdefs.h <<\EOF
5668 #define WMSOUND 1
5674 # AC_PREFIX_PROGRAM(wmaker)
5676 # Check whether --with-pixmapdir or --without-pixmapdir was given.
5677 if test "${with_pixmapdir+set}" = set; then
5678 withval="$with_pixmapdir"
5683 if test "x$with_pixmapdir" != "x"; then
5684 pixmapdir=$with_pixmapdir
5685 else
5686 pixmapdir=`eval echo ${datadir}/pixmaps`
5689 cat >> confdefs.h <<EOF
5690 #define PIXMAPDIR "$pixmapdir"
5694 pkgdatadir=`eval echo $datadir`
5695 cat >> confdefs.h <<EOF
5696 #define PKGDATADIR "$pkgdatadir/WindowMaker"
5700 _sysconfdir=`eval echo $sysconfdir`
5701 cat >> confdefs.h <<EOF
5702 #define SYSCONFDIR "$_sysconfdir"
5708 appspath=""
5710 # Check whether --with-appspath or --without-appspath was given.
5711 if test "${with_appspath+set}" = set; then
5712 withval="$with_appspath"
5713 appspath=$withval
5717 if test "x$appspath" = "x"; then
5718 gnustepdir='$(prefix)/GNUstep'
5720 if test "x$GNUSTEP_LOCAL_ROOT" != "x" ; then
5721 gnustepdir=`echo "$GNUSTEP_LOCAL_ROOT" | sed -e "s|^${prefix}|prefix|"`
5722 gnustepdir=`echo $gnustepdir | sed -e 's|^prefix|${prefix}|'`
5725 with_appspath=$gnustepdir/Apps
5728 wprefsdir=$with_appspath/WPrefs.app
5734 # Check whether --enable-single-icon or --disable-single-icon was given.
5735 if test "${enable_single_icon+set}" = set; then
5736 enableval="$enable_single_icon"
5737 if test "$enableval" = yes; then
5738 cat >> confdefs.h <<\EOF
5739 #define REDUCE_APPICONS 1
5747 # Check whether --enable-usermenu or --disable-usermenu was given.
5748 if test "${enable_usermenu+set}" = set; then
5749 enableval="$enable_usermenu"
5750 if test "$enableval" = yes; then
5751 cat >> confdefs.h <<\EOF
5752 #define USER_MENU 1
5763 trap '' 1 2 15
5764 cat > confcache <<\EOF
5765 # This file is a shell script that caches the results of configure
5766 # tests run on this system so they can be shared between configure
5767 # scripts and configure runs. It is not useful on other systems.
5768 # If it contains results you don't want to keep, you may remove or edit it.
5770 # By default, configure uses ./config.cache as the cache file,
5771 # creating it if it does not exist already. You can give configure
5772 # the --cache-file=FILE option to use a different cache file; that is
5773 # what configure does when it calls configure scripts in
5774 # subdirectories, so they share the cache.
5775 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5776 # config.status only pays attention to the cache file if you give it the
5777 # --recheck option to rerun configure.
5780 # The following way of writing the cache mishandles newlines in values,
5781 # but we know of no workaround that is simple, portable, and efficient.
5782 # So, don't put newlines in cache variables' values.
5783 # Ultrix sh set writes to stderr and can't be redirected directly,
5784 # and sets the high bit in the cache file unless we assign to the vars.
5785 (set) 2>&1 |
5786 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5787 *ac_space=\ *)
5788 # `set' does not quote correctly, so add quotes (double-quote substitution
5789 # turns \\\\ into \\, and sed turns \\ into \).
5790 sed -n \
5791 -e "s/'/'\\\\''/g" \
5792 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5795 # `set' quotes correctly as required by POSIX, so do not add quotes.
5796 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5798 esac >> confcache
5799 if cmp -s $cache_file confcache; then
5801 else
5802 if test -w $cache_file; then
5803 echo "updating cache $cache_file"
5804 cat confcache > $cache_file
5805 else
5806 echo "not updating unwritable cache $cache_file"
5809 rm -f confcache
5811 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5813 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5814 # Let make expand exec_prefix.
5815 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5817 # Any assignment to VPATH causes Sun make to only execute
5818 # the first set of double-colon rules, so remove it if not needed.
5819 # If there is a colon in the path, we need to keep it.
5820 if test "x$srcdir" = x.; then
5821 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
5824 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5826 DEFS=-DHAVE_CONFIG_H
5828 # Without the "./", some shells look in PATH for config.status.
5829 : ${CONFIG_STATUS=./config.status}
5831 echo creating $CONFIG_STATUS
5832 rm -f $CONFIG_STATUS
5833 cat > $CONFIG_STATUS <<EOF
5834 #! /bin/sh
5835 # Generated automatically by configure.
5836 # Run this file to recreate the current configuration.
5837 # This directory was configured as follows,
5838 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5840 # $0 $ac_configure_args
5842 # Compiler output produced by configure, useful for debugging
5843 # configure, is in ./config.log if it exists.
5845 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5846 for ac_option
5848 case "\$ac_option" in
5849 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5850 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5851 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5852 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5853 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5854 exit 0 ;;
5855 -help | --help | --hel | --he | --h)
5856 echo "\$ac_cs_usage"; exit 0 ;;
5857 *) echo "\$ac_cs_usage"; exit 1 ;;
5858 esac
5859 done
5861 ac_given_srcdir=$srcdir
5862 ac_given_INSTALL="$INSTALL"
5864 trap 'rm -fr `echo "Makefile po/Makefile util/Makefile test/Makefile wmlib/Makefile \
5865 WINGs/Makefile WINGs/Resources/Makefile src/Makefile src/wconfig.h \
5866 wrlib/Makefile doc/Makefile WindowMaker/Makefile contrib/Makefile \
5867 WindowMaker/Backgrounds/Makefile WindowMaker/Defaults/Makefile \
5868 WindowMaker/IconSets/Makefile WindowMaker/Icons/Makefile \
5869 WindowMaker/Pixmaps/Makefile WindowMaker/Styles/Makefile \
5870 WindowMaker/Themes/Makefile \
5871 WPrefs.app/Makefile WPrefs.app/tiff/Makefile WPrefs.app/xpm/Makefile \
5872 WPrefs.app/po/Makefile src/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5874 cat >> $CONFIG_STATUS <<EOF
5876 # Protect against being on the right side of a sed subst in config.status.
5877 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5878 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5879 $ac_vpsub
5880 $extrasub
5881 s%@SHELL@%$SHELL%g
5882 s%@CFLAGS@%$CFLAGS%g
5883 s%@CPPFLAGS@%$CPPFLAGS%g
5884 s%@CXXFLAGS@%$CXXFLAGS%g
5885 s%@FFLAGS@%$FFLAGS%g
5886 s%@DEFS@%$DEFS%g
5887 s%@LDFLAGS@%$LDFLAGS%g
5888 s%@LIBS@%$LIBS%g
5889 s%@exec_prefix@%$exec_prefix%g
5890 s%@prefix@%$prefix%g
5891 s%@program_transform_name@%$program_transform_name%g
5892 s%@bindir@%$bindir%g
5893 s%@sbindir@%$sbindir%g
5894 s%@libexecdir@%$libexecdir%g
5895 s%@datadir@%$datadir%g
5896 s%@sysconfdir@%$sysconfdir%g
5897 s%@sharedstatedir@%$sharedstatedir%g
5898 s%@localstatedir@%$localstatedir%g
5899 s%@libdir@%$libdir%g
5900 s%@includedir@%$includedir%g
5901 s%@oldincludedir@%$oldincludedir%g
5902 s%@infodir@%$infodir%g
5903 s%@mandir@%$mandir%g
5904 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5905 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5906 s%@INSTALL_DATA@%$INSTALL_DATA%g
5907 s%@PACKAGE@%$PACKAGE%g
5908 s%@VERSION@%$VERSION%g
5909 s%@ACLOCAL@%$ACLOCAL%g
5910 s%@AUTOCONF@%$AUTOCONF%g
5911 s%@AUTOMAKE@%$AUTOMAKE%g
5912 s%@AUTOHEADER@%$AUTOHEADER%g
5913 s%@MAKEINFO@%$MAKEINFO%g
5914 s%@SET_MAKE@%$SET_MAKE%g
5915 s%@host@%$host%g
5916 s%@host_alias@%$host_alias%g
5917 s%@host_cpu@%$host_cpu%g
5918 s%@host_vendor@%$host_vendor%g
5919 s%@host_os@%$host_os%g
5920 s%@build@%$build%g
5921 s%@build_alias@%$build_alias%g
5922 s%@build_cpu@%$build_cpu%g
5923 s%@build_vendor@%$build_vendor%g
5924 s%@build_os@%$build_os%g
5925 s%@RANLIB@%$RANLIB%g
5926 s%@CC@%$CC%g
5927 s%@LD@%$LD%g
5928 s%@NM@%$NM%g
5929 s%@LN_S@%$LN_S%g
5930 s%@LIBTOOL@%$LIBTOOL%g
5931 s%@CPP@%$CPP%g
5932 s%@ALLOCA@%$ALLOCA%g
5933 s%@CPP_PATH@%$CPP_PATH%g
5934 s%@XGETTEXT@%$XGETTEXT%g
5935 s%@DLLIBS@%$DLLIBS%g
5936 s%@INTLIBS@%$INTLIBS%g
5937 s%@NLSDIR@%$NLSDIR%g
5938 s%@MOFILES@%$MOFILES%g
5939 s%@WPMOFILES@%$WPMOFILES%g
5940 s%@LITE@%$LITE%g
5941 s%@NETLIBS@%$NETLIBS%g
5942 s%@X_CFLAGS@%$X_CFLAGS%g
5943 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
5944 s%@X_LIBS@%$X_LIBS%g
5945 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
5946 s%@X_LIBRARY_PATH@%$X_LIBRARY_PATH%g
5947 s%@LIBPL@%$LIBPL%g
5948 s%@XCFLAGS@%$XCFLAGS%g
5949 s%@XLFLAGS@%$XLFLAGS%g
5950 s%@XLIBS@%$XLIBS%g
5951 s%@LIBRARY_SEARCH_PATH@%$LIBRARY_SEARCH_PATH%g
5952 s%@HEADER_SEARCH_PATH@%$HEADER_SEARCH_PATH%g
5953 s%@GFXLIBS@%$GFXLIBS%g
5954 s%@ICONEXT@%$ICONEXT%g
5955 s%@DFLAGS@%$DFLAGS%g
5956 s%@wprefsdir@%$wprefsdir%g
5958 CEOF
5961 cat >> $CONFIG_STATUS <<\EOF
5963 # Split the substitutions into bite-sized pieces for seds with
5964 # small command number limits, like on Digital OSF/1 and HP-UX.
5965 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5966 ac_file=1 # Number of current file.
5967 ac_beg=1 # First line for current file.
5968 ac_end=$ac_max_sed_cmds # Line after last line for current file.
5969 ac_more_lines=:
5970 ac_sed_cmds=""
5971 while $ac_more_lines; do
5972 if test $ac_beg -gt 1; then
5973 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5974 else
5975 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5977 if test ! -s conftest.s$ac_file; then
5978 ac_more_lines=false
5979 rm -f conftest.s$ac_file
5980 else
5981 if test -z "$ac_sed_cmds"; then
5982 ac_sed_cmds="sed -f conftest.s$ac_file"
5983 else
5984 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5986 ac_file=`expr $ac_file + 1`
5987 ac_beg=$ac_end
5988 ac_end=`expr $ac_end + $ac_max_sed_cmds`
5990 done
5991 if test -z "$ac_sed_cmds"; then
5992 ac_sed_cmds=cat
5996 cat >> $CONFIG_STATUS <<EOF
5998 CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile util/Makefile test/Makefile wmlib/Makefile \
5999 WINGs/Makefile WINGs/Resources/Makefile src/Makefile src/wconfig.h \
6000 wrlib/Makefile doc/Makefile WindowMaker/Makefile contrib/Makefile \
6001 WindowMaker/Backgrounds/Makefile WindowMaker/Defaults/Makefile \
6002 WindowMaker/IconSets/Makefile WindowMaker/Icons/Makefile \
6003 WindowMaker/Pixmaps/Makefile WindowMaker/Styles/Makefile \
6004 WindowMaker/Themes/Makefile \
6005 WPrefs.app/Makefile WPrefs.app/tiff/Makefile WPrefs.app/xpm/Makefile \
6006 WPrefs.app/po/Makefile "}
6008 cat >> $CONFIG_STATUS <<\EOF
6009 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
6010 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6011 case "$ac_file" in
6012 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6013 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6014 *) ac_file_in="${ac_file}.in" ;;
6015 esac
6017 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6019 # Remove last slash and all that follows it. Not all systems have dirname.
6020 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6021 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6022 # The file is in a subdirectory.
6023 test ! -d "$ac_dir" && mkdir "$ac_dir"
6024 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
6025 # A "../" for each directory in $ac_dir_suffix.
6026 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6027 else
6028 ac_dir_suffix= ac_dots=
6031 case "$ac_given_srcdir" in
6032 .) srcdir=.
6033 if test -z "$ac_dots"; then top_srcdir=.
6034 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6035 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
6036 *) # Relative path.
6037 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6038 top_srcdir="$ac_dots$ac_given_srcdir" ;;
6039 esac
6041 case "$ac_given_INSTALL" in
6042 [/$]*) INSTALL="$ac_given_INSTALL" ;;
6043 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6044 esac
6046 echo creating "$ac_file"
6047 rm -f "$ac_file"
6048 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6049 case "$ac_file" in
6050 *Makefile*) ac_comsub="1i\\
6051 # $configure_input" ;;
6052 *) ac_comsub= ;;
6053 esac
6055 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6056 sed -e "$ac_comsub
6057 s%@configure_input@%$configure_input%g
6058 s%@srcdir@%$srcdir%g
6059 s%@top_srcdir@%$top_srcdir%g
6060 s%@INSTALL@%$INSTALL%g
6061 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
6062 fi; done
6063 rm -f conftest.s*
6065 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6066 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6068 # ac_d sets the value in "#define NAME VALUE" lines.
6069 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6070 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
6071 ac_dC='\3'
6072 ac_dD='%g'
6073 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6074 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6075 ac_uB='\([ ]\)%\1#\2define\3'
6076 ac_uC=' '
6077 ac_uD='\4%g'
6078 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6079 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6080 ac_eB='$%\1#\2define\3'
6081 ac_eC=' '
6082 ac_eD='%g'
6084 if test "${CONFIG_HEADERS+set}" != set; then
6086 cat >> $CONFIG_STATUS <<EOF
6087 CONFIG_HEADERS="src/config.h"
6089 cat >> $CONFIG_STATUS <<\EOF
6091 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
6092 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6093 case "$ac_file" in
6094 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6095 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6096 *) ac_file_in="${ac_file}.in" ;;
6097 esac
6099 echo creating $ac_file
6101 rm -f conftest.frag conftest.in conftest.out
6102 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6103 cat $ac_file_inputs > conftest.in
6107 # Transform confdefs.h into a sed script conftest.vals that substitutes
6108 # the proper values into config.h.in to produce config.h. And first:
6109 # Protect against being on the right side of a sed subst in config.status.
6110 # Protect against being in an unquoted here document in config.status.
6111 rm -f conftest.vals
6112 cat > conftest.hdr <<\EOF
6113 s/[\\&%]/\\&/g
6114 s%[\\$`]%\\&%g
6115 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6116 s%ac_d%ac_u%gp
6117 s%ac_u%ac_e%gp
6119 sed -n -f conftest.hdr confdefs.h > conftest.vals
6120 rm -f conftest.hdr
6122 # This sed command replaces #undef with comments. This is necessary, for
6123 # example, in the case of _POSIX_SOURCE, which is predefined and required
6124 # on some systems where configure will not decide to define it.
6125 cat >> conftest.vals <<\EOF
6126 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6129 # Break up conftest.vals because some shells have a limit on
6130 # the size of here documents, and old seds have small limits too.
6132 rm -f conftest.tail
6133 while :
6135 ac_lines=`grep -c . conftest.vals`
6136 # grep -c gives empty output for an empty file on some AIX systems.
6137 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6138 # Write a limited-size here document to conftest.frag.
6139 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6140 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6141 echo 'CEOF
6142 sed -f conftest.frag conftest.in > conftest.out
6143 rm -f conftest.in
6144 mv conftest.out conftest.in
6145 ' >> $CONFIG_STATUS
6146 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6147 rm -f conftest.vals
6148 mv conftest.tail conftest.vals
6149 done
6150 rm -f conftest.vals
6152 cat >> $CONFIG_STATUS <<\EOF
6153 rm -f conftest.frag conftest.h
6154 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6155 cat conftest.in >> conftest.h
6156 rm -f conftest.in
6157 if cmp -s $ac_file conftest.h 2>/dev/null; then
6158 echo "$ac_file is unchanged"
6159 rm -f conftest.h
6160 else
6161 # Remove last slash and all that follows it. Not all systems have dirname.
6162 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6163 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6164 # The file is in a subdirectory.
6165 test ! -d "$ac_dir" && mkdir "$ac_dir"
6167 rm -f $ac_file
6168 mv conftest.h $ac_file
6170 fi; done
6173 cat >> $CONFIG_STATUS <<EOF
6177 cat >> $CONFIG_STATUS <<\EOF
6178 test -z "$CONFIG_HEADERS" || echo timestamp > src/stamp-h
6180 exit 0
6182 chmod +x $CONFIG_STATUS
6183 rm -fr confdefs* $ac_clean_files
6184 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
6192 cat <<EOF >get-wraster-flags
6193 #!/bin/sh
6195 prefix="$prefix"
6196 exec_prefix=\$prefix
6198 WCFLAGS="-I\$prefix/include $inc_search_path"
6199 WLFLAGS="-L\$exec_prefix/lib $lib_search_path"
6200 WLIBS="-lwraster $GFXLIBS $XLIBS -lm"
6202 usage="Usage: get-wraster-flags #lp#--cflags#rp# #lp#--ldflags#rp# #lp#--libs#rp#"
6204 if test \$# -eq 0; then
6205 echo "\${usage}" 1>&2
6206 exit 1
6209 while test \$# -gt 0; do
6210 case \$1 in
6211 --cflags)
6212 echo \$WCFLAGS
6214 --ldflags|--lflags)
6215 echo \$WLFLAGS
6217 --libs)
6218 echo \$WLIBS
6221 echo "\${usage}" 1>&2
6222 exit 1
6224 esac
6225 shift
6226 done
6231 cat <<EOF >get-wings-flags
6232 #!/bin/sh
6234 prefix="$prefix"
6235 exec_prefix=\$prefix
6237 WCFLAGS="-I\$prefix/include $inc_search_path"
6238 WLFLAGS="-L\$exec_prefix/lib $lib_search_path"
6239 WLIBS="-lWINGs -lwraster $GFXLIBS $XLIBS -lm $NETLIBS -lPropList"
6241 usage="Usage: get-wings-flags #lp#--cflags#rp# #lp#--ldflags#rp# #lp#--libs#rp#"
6243 if test \$# -eq 0; then
6244 echo "\${usage}" 1>&2
6245 exit 1
6248 while test \$# -gt 0; do
6249 case \$1 in
6250 --cflags)
6251 echo \$WCFLAGS
6253 --ldflags|--lflags)
6254 echo \$WLFLAGS
6256 --libs)
6257 echo \$WLIBS
6260 echo "\${usage}" 1>&2
6261 exit 1
6263 esac
6264 shift
6265 done
6270 cat <<EOF >get-wutil-flags
6271 #!/bin/sh
6273 prefix="$prefix"
6274 exec_prefix=\$prefix
6276 WCFLAGS="-I\$prefix/include $inc_search_path"
6277 WLFLAGS="-L\$exec_prefix/lib $lib_search_path"
6278 WLIBS="-lWUtil $NETLIBS -lPropList"
6280 usage="Usage: get-wutil-flags #lp#--cflags#rp# #lp#--ldflags#rp# #lp#--libs#rp#"
6282 if test \$# -eq 0; then
6283 echo "\${usage}" 1>&2
6284 exit 1
6287 while test \$# -gt 0; do
6288 case \$1 in
6289 --cflags)
6290 echo \$WCFLAGS
6292 --ldflags|--lflags)
6293 echo \$WLFLAGS
6295 --libs)
6296 echo \$WLIBS
6299 echo "\${usage}" 1>&2
6300 exit 1
6302 esac
6303 shift
6304 done
6309 sed 's/#lp#/[/g' get-wraster-flags | sed 's/#rp#/]/g' > wrlib/get-wraster-flags
6310 sed 's/#lp#/[/g' get-wings-flags | sed 's/#rp#/]/g' > WINGs/get-wings-flags
6311 sed 's/#lp#/[/g' get-wutil-flags | sed 's/#rp#/]/g' > WINGs/get-wutil-flags
6313 chmod 755 wrlib/get-wraster-flags WINGs/get-wings-flags WINGs/get-wutil-flags
6315 rm -f get-wraster-flags get-wings-flags get-wutil-flags
6319 supported_gfx="$supported_gfx builtin-PPM"
6321 if test "x$MOFILES" = "x"; then
6322 mof=none
6323 else
6324 mof=$MOFILES
6328 echo
6329 echo "Window Maker was configured as follows:"
6330 echo
6331 echo "Installation path prefix: $prefix"
6332 echo "Installation path prefix for binaries: $_bindir"
6333 echo "Installation path for WPrefs.app: $wprefsdir" | sed -e 's|\$(prefix)|'"$prefix|"
6334 echo "Graphic format libraries: $supported_gfx"
6335 echo "Sound support: $sound"
6336 echo "Translated message files to install: $mof"
6337 if test "x$MOFILES" != "x"; then
6338 echo "Installation path of translated messages: $NLSDIR" | sed -e 's|\$(prefix)|'"$prefix|"
6342 if test "x$ac_cv_header_jpeglib_h" != xyes; then
6343 echo "WARNING WARNING WARNING WARNING WARNING WARNING WARNING"
6344 echo
6345 echo "JPEG support will not be included because the JPEG library is"
6346 echo "not installed correctly or was not found. Background images"
6347 echo "from themes will not display as they usually are JPEG files."
6348 echo
6349 echo "To fix, download and install the jpeg library and/or make sure you"
6350 echo "installed all jpeg related packages, SPECIALLY the development packages"
6351 echo "like jpeg-devel (if you use some prepackaged version of libjpeg)."
6352 echo
6353 echo "WARNING WARNING WARNING WARNING WARNING WARNING WARNING"