Initial revision
[wmaker-crm.git] / configure
blob57cfc3f7c02bfea4294303833452b5f5dc83f5bc
1 #! /bin/sh
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --enable-kanji multibyte character support (kanji, Korean etc.)"
16 ac_help="$ac_help
17 --with-nlsdir=PATH specify where the locale stuff should go "
18 ac_help="$ac_help
19 --with-x use the X Window System"
20 ac_help="$ac_help
21 --disable-shape disable shaped window extension support"
22 ac_help="$ac_help
23 --disable-shm disable usage of MIT-SHM extension"
24 ac_help="$ac_help
25 --with-gfx-libs pass compiler flags to look for gfx libraries"
26 ac_help="$ac_help
27 --with-gfx-incs pass compiler flags to look for gfx header files"
28 ac_help="$ac_help
29 --disable-xpm disable use of XPM pixmaps through libXpm"
30 ac_help="$ac_help
31 --disable-png disable PNG support through libpng"
32 ac_help="$ac_help
33 --disable-jpeg disable JPEG support through libjpeg"
34 ac_help="$ac_help
35 --disable-gif disable GIF support through libgif or libungif"
36 ac_help="$ac_help
37 --disable-tiff disable use of TIFF images through libtiff"
38 ac_help="$ac_help
39 --enable-debug enable debugging "
40 ac_help="$ac_help
41 --enable-sound enable sound support "
42 ac_help="$ac_help
43 --with-pixmapdir=PATH specify where pixmaps are located [DATADIR/pixmaps]"
44 ac_help="$ac_help
45 --enable-single-icon use single application icon per WM_INSTANCE+WM_CLASS (unsupported) "
47 # Initialize some variables set by options.
48 # The variables have the same names as the options, with
49 # dashes changed to underlines.
50 build=NONE
51 cache_file=./config.cache
52 exec_prefix=NONE
53 host=NONE
54 no_create=
55 nonopt=NONE
56 no_recursion=
57 prefix=NONE
58 program_prefix=NONE
59 program_suffix=NONE
60 program_transform_name=s,x,x,
61 silent=
62 site=
63 srcdir=
64 target=NONE
65 verbose=
66 x_includes=NONE
67 x_libraries=NONE
68 bindir='${exec_prefix}/bin'
69 sbindir='${exec_prefix}/sbin'
70 libexecdir='${exec_prefix}/libexec'
71 datadir='${prefix}/share'
72 sysconfdir='${prefix}/etc'
73 sharedstatedir='${prefix}/com'
74 localstatedir='${prefix}/var'
75 libdir='${exec_prefix}/lib'
76 includedir='${prefix}/include'
77 oldincludedir='/usr/include'
78 infodir='${prefix}/info'
79 mandir='${prefix}/man'
81 # Initialize some other variables.
82 subdirs=
83 MFLAGS= MAKEFLAGS=
84 # Maximum number of lines to put in a shell here document.
85 ac_max_here_lines=12
87 ac_prev=
88 for ac_option
91 # If the previous option needs an argument, assign it.
92 if test -n "$ac_prev"; then
93 eval "$ac_prev=\$ac_option"
94 ac_prev=
95 continue
98 case "$ac_option" in
99 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
100 *) ac_optarg= ;;
101 esac
103 # Accept the important Cygnus configure options, so we can diagnose typos.
105 case "$ac_option" in
107 -bindir | --bindir | --bindi | --bind | --bin | --bi)
108 ac_prev=bindir ;;
109 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
110 bindir="$ac_optarg" ;;
112 -build | --build | --buil | --bui | --bu)
113 ac_prev=build ;;
114 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
115 build="$ac_optarg" ;;
117 -cache-file | --cache-file | --cache-fil | --cache-fi \
118 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
119 ac_prev=cache_file ;;
120 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
121 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
122 cache_file="$ac_optarg" ;;
124 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
125 ac_prev=datadir ;;
126 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
127 | --da=*)
128 datadir="$ac_optarg" ;;
130 -disable-* | --disable-*)
131 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
132 # Reject names that are not valid shell variable names.
133 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
134 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
136 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
137 eval "enable_${ac_feature}=no" ;;
139 -enable-* | --enable-*)
140 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
141 # Reject names that are not valid shell variable names.
142 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
143 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
145 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
146 case "$ac_option" in
147 *=*) ;;
148 *) ac_optarg=yes ;;
149 esac
150 eval "enable_${ac_feature}='$ac_optarg'" ;;
152 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
153 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
154 | --exec | --exe | --ex)
155 ac_prev=exec_prefix ;;
156 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
157 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
158 | --exec=* | --exe=* | --ex=*)
159 exec_prefix="$ac_optarg" ;;
161 -gas | --gas | --ga | --g)
162 # Obsolete; use --with-gas.
163 with_gas=yes ;;
165 -help | --help | --hel | --he)
166 # Omit some internal or obsolete options to make the list less imposing.
167 # This message is too long to be a string in the A/UX 3.1 sh.
168 cat << EOF
169 Usage: configure [options] [host]
170 Options: [defaults in brackets after descriptions]
171 Configuration:
172 --cache-file=FILE cache test results in FILE
173 --help print this message
174 --no-create do not create output files
175 --quiet, --silent do not print \`checking...' messages
176 --version print the version of autoconf that created configure
177 Directory and file names:
178 --prefix=PREFIX install architecture-independent files in PREFIX
179 [$ac_default_prefix]
180 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
181 [same as prefix]
182 --bindir=DIR user executables in DIR [EPREFIX/bin]
183 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
184 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
185 --datadir=DIR read-only architecture-independent data in DIR
186 [PREFIX/share]
187 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
188 --sharedstatedir=DIR modifiable architecture-independent data in DIR
189 [PREFIX/com]
190 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
191 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
192 --includedir=DIR C header files in DIR [PREFIX/include]
193 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
194 --infodir=DIR info documentation in DIR [PREFIX/info]
195 --mandir=DIR man documentation in DIR [PREFIX/man]
196 --srcdir=DIR find the sources in DIR [configure dir or ..]
197 --program-prefix=PREFIX prepend PREFIX to installed program names
198 --program-suffix=SUFFIX append SUFFIX to installed program names
199 --program-transform-name=PROGRAM
200 run sed PROGRAM on installed program names
202 cat << EOF
203 Host type:
204 --build=BUILD configure for building on BUILD [BUILD=HOST]
205 --host=HOST configure for HOST [guessed]
206 --target=TARGET configure for TARGET [TARGET=HOST]
207 Features and packages:
208 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
209 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
210 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
211 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
212 --x-includes=DIR X include files are in DIR
213 --x-libraries=DIR X library files are in DIR
215 if test -n "$ac_help"; then
216 echo "--enable and --with options recognized:$ac_help"
218 exit 0 ;;
220 -host | --host | --hos | --ho)
221 ac_prev=host ;;
222 -host=* | --host=* | --hos=* | --ho=*)
223 host="$ac_optarg" ;;
225 -includedir | --includedir | --includedi | --included | --include \
226 | --includ | --inclu | --incl | --inc)
227 ac_prev=includedir ;;
228 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
229 | --includ=* | --inclu=* | --incl=* | --inc=*)
230 includedir="$ac_optarg" ;;
232 -infodir | --infodir | --infodi | --infod | --info | --inf)
233 ac_prev=infodir ;;
234 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
235 infodir="$ac_optarg" ;;
237 -libdir | --libdir | --libdi | --libd)
238 ac_prev=libdir ;;
239 -libdir=* | --libdir=* | --libdi=* | --libd=*)
240 libdir="$ac_optarg" ;;
242 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
243 | --libexe | --libex | --libe)
244 ac_prev=libexecdir ;;
245 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
246 | --libexe=* | --libex=* | --libe=*)
247 libexecdir="$ac_optarg" ;;
249 -localstatedir | --localstatedir | --localstatedi | --localstated \
250 | --localstate | --localstat | --localsta | --localst \
251 | --locals | --local | --loca | --loc | --lo)
252 ac_prev=localstatedir ;;
253 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
254 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
255 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
256 localstatedir="$ac_optarg" ;;
258 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
259 ac_prev=mandir ;;
260 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
261 mandir="$ac_optarg" ;;
263 -nfp | --nfp | --nf)
264 # Obsolete; use --without-fp.
265 with_fp=no ;;
267 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
268 | --no-cr | --no-c)
269 no_create=yes ;;
271 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
272 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
273 no_recursion=yes ;;
275 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
276 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
277 | --oldin | --oldi | --old | --ol | --o)
278 ac_prev=oldincludedir ;;
279 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
280 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
281 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
282 oldincludedir="$ac_optarg" ;;
284 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
285 ac_prev=prefix ;;
286 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
287 prefix="$ac_optarg" ;;
289 -program-prefix | --program-prefix | --program-prefi | --program-pref \
290 | --program-pre | --program-pr | --program-p)
291 ac_prev=program_prefix ;;
292 -program-prefix=* | --program-prefix=* | --program-prefi=* \
293 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
294 program_prefix="$ac_optarg" ;;
296 -program-suffix | --program-suffix | --program-suffi | --program-suff \
297 | --program-suf | --program-su | --program-s)
298 ac_prev=program_suffix ;;
299 -program-suffix=* | --program-suffix=* | --program-suffi=* \
300 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
301 program_suffix="$ac_optarg" ;;
303 -program-transform-name | --program-transform-name \
304 | --program-transform-nam | --program-transform-na \
305 | --program-transform-n | --program-transform- \
306 | --program-transform | --program-transfor \
307 | --program-transfo | --program-transf \
308 | --program-trans | --program-tran \
309 | --progr-tra | --program-tr | --program-t)
310 ac_prev=program_transform_name ;;
311 -program-transform-name=* | --program-transform-name=* \
312 | --program-transform-nam=* | --program-transform-na=* \
313 | --program-transform-n=* | --program-transform-=* \
314 | --program-transform=* | --program-transfor=* \
315 | --program-transfo=* | --program-transf=* \
316 | --program-trans=* | --program-tran=* \
317 | --progr-tra=* | --program-tr=* | --program-t=*)
318 program_transform_name="$ac_optarg" ;;
320 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
321 | -silent | --silent | --silen | --sile | --sil)
322 silent=yes ;;
324 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
325 ac_prev=sbindir ;;
326 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
327 | --sbi=* | --sb=*)
328 sbindir="$ac_optarg" ;;
330 -sharedstatedir | --sharedstatedir | --sharedstatedi \
331 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
332 | --sharedst | --shareds | --shared | --share | --shar \
333 | --sha | --sh)
334 ac_prev=sharedstatedir ;;
335 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
336 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
337 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
338 | --sha=* | --sh=*)
339 sharedstatedir="$ac_optarg" ;;
341 -site | --site | --sit)
342 ac_prev=site ;;
343 -site=* | --site=* | --sit=*)
344 site="$ac_optarg" ;;
346 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
347 ac_prev=srcdir ;;
348 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
349 srcdir="$ac_optarg" ;;
351 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
352 | --syscon | --sysco | --sysc | --sys | --sy)
353 ac_prev=sysconfdir ;;
354 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
355 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
356 sysconfdir="$ac_optarg" ;;
358 -target | --target | --targe | --targ | --tar | --ta | --t)
359 ac_prev=target ;;
360 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
361 target="$ac_optarg" ;;
363 -v | -verbose | --verbose | --verbos | --verbo | --verb)
364 verbose=yes ;;
366 -version | --version | --versio | --versi | --vers)
367 echo "configure generated by autoconf version 2.12"
368 exit 0 ;;
370 -with-* | --with-*)
371 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
372 # Reject names that are not valid shell variable names.
373 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
374 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
376 ac_package=`echo $ac_package| sed 's/-/_/g'`
377 case "$ac_option" in
378 *=*) ;;
379 *) ac_optarg=yes ;;
380 esac
381 eval "with_${ac_package}='$ac_optarg'" ;;
383 -without-* | --without-*)
384 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
385 # Reject names that are not valid shell variable names.
386 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
387 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
389 ac_package=`echo $ac_package| sed 's/-/_/g'`
390 eval "with_${ac_package}=no" ;;
392 --x)
393 # Obsolete; use --with-x.
394 with_x=yes ;;
396 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
397 | --x-incl | --x-inc | --x-in | --x-i)
398 ac_prev=x_includes ;;
399 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
400 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
401 x_includes="$ac_optarg" ;;
403 -x-libraries | --x-libraries | --x-librarie | --x-librari \
404 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
405 ac_prev=x_libraries ;;
406 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
407 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
408 x_libraries="$ac_optarg" ;;
410 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
414 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
415 echo "configure: warning: $ac_option: invalid host type" 1>&2
417 if test "x$nonopt" != xNONE; then
418 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
420 nonopt="$ac_option"
423 esac
424 done
426 if test -n "$ac_prev"; then
427 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
430 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
432 # File descriptor usage:
433 # 0 standard input
434 # 1 file creation
435 # 2 errors and warnings
436 # 3 some systems may open it to /dev/tty
437 # 4 used on the Kubota Titan
438 # 6 checking for... messages and results
439 # 5 compiler messages saved in config.log
440 if test "$silent" = yes; then
441 exec 6>/dev/null
442 else
443 exec 6>&1
445 exec 5>./config.log
447 echo "\
448 This file contains any messages produced by compilers while
449 running configure, to aid debugging if configure makes a mistake.
450 " 1>&5
452 # Strip out --no-create and --no-recursion so they do not pile up.
453 # Also quote any args containing shell metacharacters.
454 ac_configure_args=
455 for ac_arg
457 case "$ac_arg" in
458 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
459 | --no-cr | --no-c) ;;
460 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
461 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
462 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
463 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
464 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
465 esac
466 done
468 # NLS nuisances.
469 # Only set these to C if already set. These must not be set unconditionally
470 # because not all systems understand e.g. LANG=C (notably SCO).
471 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
472 # Non-C LC_CTYPE values break the ctype check.
473 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
474 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
475 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
476 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
478 # confdefs.h avoids OS command line length limits that DEFS can exceed.
479 rm -rf conftest* confdefs.h
480 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
481 echo > confdefs.h
483 # A filename unique to this package, relative to the directory that
484 # configure is in, which we can look for to find out if srcdir is correct.
485 ac_unique_file=src/WindowMaker.h
487 # Find the source files, if location was not specified.
488 if test -z "$srcdir"; then
489 ac_srcdir_defaulted=yes
490 # Try the directory containing this script, then its parent.
491 ac_prog=$0
492 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
493 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
494 srcdir=$ac_confdir
495 if test ! -r $srcdir/$ac_unique_file; then
496 srcdir=..
498 else
499 ac_srcdir_defaulted=no
501 if test ! -r $srcdir/$ac_unique_file; then
502 if test "$ac_srcdir_defaulted" = yes; then
503 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
504 else
505 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
508 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
510 # Prefer explicitly selected file to automatically selected ones.
511 if test -z "$CONFIG_SITE"; then
512 if test "x$prefix" != xNONE; then
513 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
514 else
515 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
518 for ac_site_file in $CONFIG_SITE; do
519 if test -r "$ac_site_file"; then
520 echo "loading site script $ac_site_file"
521 . "$ac_site_file"
523 done
525 if test -r "$cache_file"; then
526 echo "loading cache $cache_file"
527 . $cache_file
528 else
529 echo "creating cache $cache_file"
530 > $cache_file
533 ac_ext=c
534 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
535 ac_cpp='$CPP $CPPFLAGS'
536 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
537 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
538 cross_compiling=$ac_cv_prog_cc_cross
540 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
541 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
542 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
543 ac_n= ac_c='
544 ' ac_t=' '
545 else
546 ac_n=-n ac_c= ac_t=
548 else
549 ac_n= ac_c='\c' ac_t=
554 ac_aux_dir=
555 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
556 if test -f $ac_dir/install-sh; then
557 ac_aux_dir=$ac_dir
558 ac_install_sh="$ac_aux_dir/install-sh -c"
559 break
560 elif test -f $ac_dir/install.sh; then
561 ac_aux_dir=$ac_dir
562 ac_install_sh="$ac_aux_dir/install.sh -c"
563 break
565 done
566 if test -z "$ac_aux_dir"; then
567 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
569 ac_config_guess=$ac_aux_dir/config.guess
570 ac_config_sub=$ac_aux_dir/config.sub
571 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
573 # Find a good install program. We prefer a C program (faster),
574 # so one script is as good as another. But avoid the broken or
575 # incompatible versions:
576 # SysV /etc/install, /usr/sbin/install
577 # SunOS /usr/etc/install
578 # IRIX /sbin/install
579 # AIX /bin/install
580 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
581 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
582 # ./install, which can be erroneously created by make from ./install.sh.
583 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
584 echo "configure:585: checking for a BSD compatible install" >&5
585 if test -z "$INSTALL"; then
586 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
587 echo $ac_n "(cached) $ac_c" 1>&6
588 else
589 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
590 for ac_dir in $PATH; do
591 # Account for people who put trailing slashes in PATH elements.
592 case "$ac_dir/" in
593 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
595 # OSF1 and SCO ODT 3.0 have their own names for install.
596 for ac_prog in ginstall installbsd scoinst install; do
597 if test -f $ac_dir/$ac_prog; then
598 if test $ac_prog = install &&
599 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
600 # AIX install. It has an incompatible calling convention.
601 # OSF/1 installbsd also uses dspmsg, but is usable.
603 else
604 ac_cv_path_install="$ac_dir/$ac_prog -c"
605 break 2
608 done
610 esac
611 done
612 IFS="$ac_save_IFS"
615 if test "${ac_cv_path_install+set}" = set; then
616 INSTALL="$ac_cv_path_install"
617 else
618 # As a last resort, use the slow shell script. We don't cache a
619 # path for INSTALL within a source directory, because that will
620 # break other packages using the cache if that directory is
621 # removed, or if the path is relative.
622 INSTALL="$ac_install_sh"
625 echo "$ac_t""$INSTALL" 1>&6
627 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
628 # It thinks the first close brace ends the variable substitution.
629 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
631 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
634 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
636 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
637 echo "configure:638: checking whether build environment is sane" >&5
638 # Just in case
639 sleep 1
640 echo timestamp > conftestfile
641 # Do `set' in a subshell so we don't clobber the current shell's
642 # arguments. Must try -L first in case configure is actually a
643 # symlink; some systems play weird games with the mod time of symlinks
644 # (eg FreeBSD returns the mod time of the symlink's containing
645 # directory).
646 if (
647 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
648 if test "$*" = "X"; then
649 # -L didn't work.
650 set X `ls -t $srcdir/configure conftestfile`
652 if test "$*" != "X $srcdir/configure conftestfile" \
653 && test "$*" != "X conftestfile $srcdir/configure"; then
655 # If neither matched, then we have a broken ls. This can happen
656 # if, for instance, CONFIG_SHELL is bash and it inherits a
657 # broken ls alias from the environment. This has actually
658 # happened. Such a system could not be considered "sane".
659 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
660 alias in your environment" 1>&2; exit 1; }
663 test "$2" = conftestfile
665 then
666 # Ok.
668 else
669 { echo "configure: error: newly created file is older than distributed files!
670 Check your system clock" 1>&2; exit 1; }
672 rm -f conftest*
673 echo "$ac_t""yes" 1>&6
674 if test "$program_transform_name" = s,x,x,; then
675 program_transform_name=
676 else
677 # Double any \ or $. echo might interpret backslashes.
678 cat <<\EOF_SED > conftestsed
679 s,\\,\\\\,g; s,\$,$$,g
680 EOF_SED
681 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
682 rm -f conftestsed
684 test "$program_prefix" != NONE &&
685 program_transform_name="s,^,${program_prefix},; $program_transform_name"
686 # Use a double $ so make ignores it.
687 test "$program_suffix" != NONE &&
688 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
690 # sed with no file args requires a program.
691 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
693 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
694 echo "configure:695: checking whether ${MAKE-make} sets \${MAKE}" >&5
695 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
696 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
697 echo $ac_n "(cached) $ac_c" 1>&6
698 else
699 cat > conftestmake <<\EOF
700 all:
701 @echo 'ac_maketemp="${MAKE}"'
703 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
704 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
705 if test -n "$ac_maketemp"; then
706 eval ac_cv_prog_make_${ac_make}_set=yes
707 else
708 eval ac_cv_prog_make_${ac_make}_set=no
710 rm -f conftestmake
712 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
713 echo "$ac_t""yes" 1>&6
714 SET_MAKE=
715 else
716 echo "$ac_t""no" 1>&6
717 SET_MAKE="MAKE=${MAKE-make}"
721 PACKAGE=WindowMaker
723 VERSION=0.20.1
725 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
726 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
728 cat >> confdefs.h <<EOF
729 #define PACKAGE "$PACKAGE"
732 cat >> confdefs.h <<EOF
733 #define VERSION "$VERSION"
738 missing_dir=`cd $ac_aux_dir && pwd`
739 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
740 echo "configure:741: checking for working aclocal" >&5
741 # Run test in a subshell; some versions of sh will print an error if
742 # an executable is not found, even if stderr is redirected.
743 # Redirect stdin to placate older versions of autoconf. Sigh.
744 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
745 ACLOCAL=aclocal
746 echo "$ac_t""found" 1>&6
747 else
748 ACLOCAL="$missing_dir/missing aclocal"
749 echo "$ac_t""missing" 1>&6
752 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
753 echo "configure:754: checking for working autoconf" >&5
754 # Run test in a subshell; some versions of sh will print an error if
755 # an executable is not found, even if stderr is redirected.
756 # Redirect stdin to placate older versions of autoconf. Sigh.
757 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
758 AUTOCONF=autoconf
759 echo "$ac_t""found" 1>&6
760 else
761 AUTOCONF="$missing_dir/missing autoconf"
762 echo "$ac_t""missing" 1>&6
765 echo $ac_n "checking for working automake""... $ac_c" 1>&6
766 echo "configure:767: checking for working automake" >&5
767 # Run test in a subshell; some versions of sh will print an error if
768 # an executable is not found, even if stderr is redirected.
769 # Redirect stdin to placate older versions of autoconf. Sigh.
770 if (automake --version) < /dev/null > /dev/null 2>&1; then
771 AUTOMAKE=automake
772 echo "$ac_t""found" 1>&6
773 else
774 AUTOMAKE="$missing_dir/missing automake"
775 echo "$ac_t""missing" 1>&6
778 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
779 echo "configure:780: checking for working autoheader" >&5
780 # Run test in a subshell; some versions of sh will print an error if
781 # an executable is not found, even if stderr is redirected.
782 # Redirect stdin to placate older versions of autoconf. Sigh.
783 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
784 AUTOHEADER=autoheader
785 echo "$ac_t""found" 1>&6
786 else
787 AUTOHEADER="$missing_dir/missing autoheader"
788 echo "$ac_t""missing" 1>&6
791 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
792 echo "configure:793: checking for working makeinfo" >&5
793 # Run test in a subshell; some versions of sh will print an error if
794 # an executable is not found, even if stderr is redirected.
795 # Redirect stdin to placate older versions of autoconf. Sigh.
796 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
797 MAKEINFO=makeinfo
798 echo "$ac_t""found" 1>&6
799 else
800 MAKEINFO="$missing_dir/missing makeinfo"
801 echo "$ac_t""missing" 1>&6
815 # Make sure we can run config.sub.
816 if $ac_config_sub sun4 >/dev/null 2>&1; then :
817 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
820 echo $ac_n "checking host system type""... $ac_c" 1>&6
821 echo "configure:822: checking host system type" >&5
823 host_alias=$host
824 case "$host_alias" in
825 NONE)
826 case $nonopt in
827 NONE)
828 if host_alias=`$ac_config_guess`; then :
829 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
830 fi ;;
831 *) host_alias=$nonopt ;;
832 esac ;;
833 esac
835 host=`$ac_config_sub $host_alias`
836 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
837 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
838 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
839 echo "$ac_t""$host" 1>&6
843 # Extract the first word of "gcc", so it can be a program name with args.
844 set dummy gcc; ac_word=$2
845 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
846 echo "configure:847: checking for $ac_word" >&5
847 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
848 echo $ac_n "(cached) $ac_c" 1>&6
849 else
850 if test -n "$CC"; then
851 ac_cv_prog_CC="$CC" # Let the user override the test.
852 else
853 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
854 for ac_dir in $PATH; do
855 test -z "$ac_dir" && ac_dir=.
856 if test -f $ac_dir/$ac_word; then
857 ac_cv_prog_CC="gcc"
858 break
860 done
861 IFS="$ac_save_ifs"
864 CC="$ac_cv_prog_CC"
865 if test -n "$CC"; then
866 echo "$ac_t""$CC" 1>&6
867 else
868 echo "$ac_t""no" 1>&6
871 if test -z "$CC"; then
872 # Extract the first word of "cc", so it can be a program name with args.
873 set dummy cc; ac_word=$2
874 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
875 echo "configure:876: checking for $ac_word" >&5
876 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
877 echo $ac_n "(cached) $ac_c" 1>&6
878 else
879 if test -n "$CC"; then
880 ac_cv_prog_CC="$CC" # Let the user override the test.
881 else
882 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
883 ac_prog_rejected=no
884 for ac_dir in $PATH; do
885 test -z "$ac_dir" && ac_dir=.
886 if test -f $ac_dir/$ac_word; then
887 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
888 ac_prog_rejected=yes
889 continue
891 ac_cv_prog_CC="cc"
892 break
894 done
895 IFS="$ac_save_ifs"
896 if test $ac_prog_rejected = yes; then
897 # We found a bogon in the path, so make sure we never use it.
898 set dummy $ac_cv_prog_CC
899 shift
900 if test $# -gt 0; then
901 # We chose a different compiler from the bogus one.
902 # However, it has the same basename, so the bogon will be chosen
903 # first if we set CC to just the basename; use the full file name.
904 shift
905 set dummy "$ac_dir/$ac_word" "$@"
906 shift
907 ac_cv_prog_CC="$@"
912 CC="$ac_cv_prog_CC"
913 if test -n "$CC"; then
914 echo "$ac_t""$CC" 1>&6
915 else
916 echo "$ac_t""no" 1>&6
919 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
922 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
923 echo "configure:924: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
925 ac_ext=c
926 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
927 ac_cpp='$CPP $CPPFLAGS'
928 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
929 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
930 cross_compiling=$ac_cv_prog_cc_cross
932 cat > conftest.$ac_ext <<EOF
933 #line 934 "configure"
934 #include "confdefs.h"
935 main(){return(0);}
937 if { (eval echo configure:938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
938 ac_cv_prog_cc_works=yes
939 # If we can't run a trivial program, we are probably using a cross compiler.
940 if (./conftest; exit) 2>/dev/null; then
941 ac_cv_prog_cc_cross=no
942 else
943 ac_cv_prog_cc_cross=yes
945 else
946 echo "configure: failed program was:" >&5
947 cat conftest.$ac_ext >&5
948 ac_cv_prog_cc_works=no
950 rm -fr conftest*
952 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
953 if test $ac_cv_prog_cc_works = no; then
954 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
956 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
957 echo "configure:958: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
958 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
959 cross_compiling=$ac_cv_prog_cc_cross
961 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
962 echo "configure:963: checking whether we are using GNU C" >&5
963 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
964 echo $ac_n "(cached) $ac_c" 1>&6
965 else
966 cat > conftest.c <<EOF
967 #ifdef __GNUC__
968 yes;
969 #endif
971 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:972: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
972 ac_cv_prog_gcc=yes
973 else
974 ac_cv_prog_gcc=no
978 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
980 if test $ac_cv_prog_gcc = yes; then
981 GCC=yes
982 ac_test_CFLAGS="${CFLAGS+set}"
983 ac_save_CFLAGS="$CFLAGS"
984 CFLAGS=
985 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
986 echo "configure:987: checking whether ${CC-cc} accepts -g" >&5
987 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
988 echo $ac_n "(cached) $ac_c" 1>&6
989 else
990 echo 'void f(){}' > conftest.c
991 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
992 ac_cv_prog_cc_g=yes
993 else
994 ac_cv_prog_cc_g=no
996 rm -f conftest*
1000 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1001 if test "$ac_test_CFLAGS" = set; then
1002 CFLAGS="$ac_save_CFLAGS"
1003 elif test $ac_cv_prog_cc_g = yes; then
1004 CFLAGS="-g -O2"
1005 else
1006 CFLAGS="-O2"
1008 else
1009 GCC=
1010 test "${CFLAGS+set}" = set || CFLAGS="-g"
1013 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1014 echo "configure:1015: checking for POSIXized ISC" >&5
1015 if test -d /etc/conf/kconfig.d &&
1016 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1017 then
1018 echo "$ac_t""yes" 1>&6
1019 ISC=yes # If later tests want to check for ISC.
1020 cat >> confdefs.h <<\EOF
1021 #define _POSIX_SOURCE 1
1024 if test "$GCC" = yes; then
1025 CC="$CC -posix"
1026 else
1027 CC="$CC -Xp"
1029 else
1030 echo "$ac_t""no" 1>&6
1031 ISC=
1034 # Extract the first word of "gcc", so it can be a program name with args.
1035 set dummy gcc; ac_word=$2
1036 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1037 echo "configure:1038: checking for $ac_word" >&5
1038 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1039 echo $ac_n "(cached) $ac_c" 1>&6
1040 else
1041 if test -n "$CC"; then
1042 ac_cv_prog_CC="$CC" # Let the user override the test.
1043 else
1044 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1045 for ac_dir in $PATH; do
1046 test -z "$ac_dir" && ac_dir=.
1047 if test -f $ac_dir/$ac_word; then
1048 ac_cv_prog_CC="gcc"
1049 break
1051 done
1052 IFS="$ac_save_ifs"
1055 CC="$ac_cv_prog_CC"
1056 if test -n "$CC"; then
1057 echo "$ac_t""$CC" 1>&6
1058 else
1059 echo "$ac_t""no" 1>&6
1062 if test -z "$CC"; then
1063 # Extract the first word of "cc", so it can be a program name with args.
1064 set dummy cc; ac_word=$2
1065 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1066 echo "configure:1067: checking for $ac_word" >&5
1067 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1068 echo $ac_n "(cached) $ac_c" 1>&6
1069 else
1070 if test -n "$CC"; then
1071 ac_cv_prog_CC="$CC" # Let the user override the test.
1072 else
1073 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1074 ac_prog_rejected=no
1075 for ac_dir in $PATH; do
1076 test -z "$ac_dir" && ac_dir=.
1077 if test -f $ac_dir/$ac_word; then
1078 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1079 ac_prog_rejected=yes
1080 continue
1082 ac_cv_prog_CC="cc"
1083 break
1085 done
1086 IFS="$ac_save_ifs"
1087 if test $ac_prog_rejected = yes; then
1088 # We found a bogon in the path, so make sure we never use it.
1089 set dummy $ac_cv_prog_CC
1090 shift
1091 if test $# -gt 0; then
1092 # We chose a different compiler from the bogus one.
1093 # However, it has the same basename, so the bogon will be chosen
1094 # first if we set CC to just the basename; use the full file name.
1095 shift
1096 set dummy "$ac_dir/$ac_word" "$@"
1097 shift
1098 ac_cv_prog_CC="$@"
1103 CC="$ac_cv_prog_CC"
1104 if test -n "$CC"; then
1105 echo "$ac_t""$CC" 1>&6
1106 else
1107 echo "$ac_t""no" 1>&6
1110 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1113 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1114 echo "configure:1115: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1116 ac_ext=c
1117 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1118 ac_cpp='$CPP $CPPFLAGS'
1119 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1120 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1121 cross_compiling=$ac_cv_prog_cc_cross
1123 cat > conftest.$ac_ext <<EOF
1124 #line 1125 "configure"
1125 #include "confdefs.h"
1126 main(){return(0);}
1128 if { (eval echo configure:1129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1129 ac_cv_prog_cc_works=yes
1130 # If we can't run a trivial program, we are probably using a cross compiler.
1131 if (./conftest; exit) 2>/dev/null; then
1132 ac_cv_prog_cc_cross=no
1133 else
1134 ac_cv_prog_cc_cross=yes
1136 else
1137 echo "configure: failed program was:" >&5
1138 cat conftest.$ac_ext >&5
1139 ac_cv_prog_cc_works=no
1141 rm -fr conftest*
1143 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1144 if test $ac_cv_prog_cc_works = no; then
1145 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1147 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1148 echo "configure:1149: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1149 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1150 cross_compiling=$ac_cv_prog_cc_cross
1152 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1153 echo "configure:1154: checking whether we are using GNU C" >&5
1154 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1155 echo $ac_n "(cached) $ac_c" 1>&6
1156 else
1157 cat > conftest.c <<EOF
1158 #ifdef __GNUC__
1159 yes;
1160 #endif
1162 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1163: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1163 ac_cv_prog_gcc=yes
1164 else
1165 ac_cv_prog_gcc=no
1169 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1171 if test $ac_cv_prog_gcc = yes; then
1172 GCC=yes
1173 ac_test_CFLAGS="${CFLAGS+set}"
1174 ac_save_CFLAGS="$CFLAGS"
1175 CFLAGS=
1176 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1177 echo "configure:1178: checking whether ${CC-cc} accepts -g" >&5
1178 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1179 echo $ac_n "(cached) $ac_c" 1>&6
1180 else
1181 echo 'void f(){}' > conftest.c
1182 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1183 ac_cv_prog_cc_g=yes
1184 else
1185 ac_cv_prog_cc_g=no
1187 rm -f conftest*
1191 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1192 if test "$ac_test_CFLAGS" = set; then
1193 CFLAGS="$ac_save_CFLAGS"
1194 elif test $ac_cv_prog_cc_g = yes; then
1195 CFLAGS="-g -O2"
1196 else
1197 CFLAGS="-O2"
1199 else
1200 GCC=
1201 test "${CFLAGS+set}" = set || CFLAGS="-g"
1204 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1205 echo "configure:1206: checking whether ${MAKE-make} sets \${MAKE}" >&5
1206 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1207 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1208 echo $ac_n "(cached) $ac_c" 1>&6
1209 else
1210 cat > conftestmake <<\EOF
1211 all:
1212 @echo 'ac_maketemp="${MAKE}"'
1214 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1215 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1216 if test -n "$ac_maketemp"; then
1217 eval ac_cv_prog_make_${ac_make}_set=yes
1218 else
1219 eval ac_cv_prog_make_${ac_make}_set=no
1221 rm -f conftestmake
1223 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1224 echo "$ac_t""yes" 1>&6
1225 SET_MAKE=
1226 else
1227 echo "$ac_t""no" 1>&6
1228 SET_MAKE="MAKE=${MAKE-make}"
1231 # Extract the first word of "ranlib", so it can be a program name with args.
1232 set dummy ranlib; ac_word=$2
1233 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1234 echo "configure:1235: checking for $ac_word" >&5
1235 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1236 echo $ac_n "(cached) $ac_c" 1>&6
1237 else
1238 if test -n "$RANLIB"; then
1239 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1240 else
1241 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1242 for ac_dir in $PATH; do
1243 test -z "$ac_dir" && ac_dir=.
1244 if test -f $ac_dir/$ac_word; then
1245 ac_cv_prog_RANLIB="ranlib"
1246 break
1248 done
1249 IFS="$ac_save_ifs"
1250 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1253 RANLIB="$ac_cv_prog_RANLIB"
1254 if test -n "$RANLIB"; then
1255 echo "$ac_t""$RANLIB" 1>&6
1256 else
1257 echo "$ac_t""no" 1>&6
1260 # Find a good install program. We prefer a C program (faster),
1261 # so one script is as good as another. But avoid the broken or
1262 # incompatible versions:
1263 # SysV /etc/install, /usr/sbin/install
1264 # SunOS /usr/etc/install
1265 # IRIX /sbin/install
1266 # AIX /bin/install
1267 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1268 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1269 # ./install, which can be erroneously created by make from ./install.sh.
1270 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1271 echo "configure:1272: checking for a BSD compatible install" >&5
1272 if test -z "$INSTALL"; then
1273 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1274 echo $ac_n "(cached) $ac_c" 1>&6
1275 else
1276 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1277 for ac_dir in $PATH; do
1278 # Account for people who put trailing slashes in PATH elements.
1279 case "$ac_dir/" in
1280 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1282 # OSF1 and SCO ODT 3.0 have their own names for install.
1283 for ac_prog in ginstall installbsd scoinst install; do
1284 if test -f $ac_dir/$ac_prog; then
1285 if test $ac_prog = install &&
1286 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1287 # AIX install. It has an incompatible calling convention.
1288 # OSF/1 installbsd also uses dspmsg, but is usable.
1290 else
1291 ac_cv_path_install="$ac_dir/$ac_prog -c"
1292 break 2
1295 done
1297 esac
1298 done
1299 IFS="$ac_save_IFS"
1302 if test "${ac_cv_path_install+set}" = set; then
1303 INSTALL="$ac_cv_path_install"
1304 else
1305 # As a last resort, use the slow shell script. We don't cache a
1306 # path for INSTALL within a source directory, because that will
1307 # break other packages using the cache if that directory is
1308 # removed, or if the path is relative.
1309 INSTALL="$ac_install_sh"
1312 echo "$ac_t""$INSTALL" 1>&6
1314 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1315 # It thinks the first close brace ends the variable substitution.
1316 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1318 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1320 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1321 echo "configure:1322: checking whether ln -s works" >&5
1322 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1323 echo $ac_n "(cached) $ac_c" 1>&6
1324 else
1325 rm -f conftestdata
1326 if ln -s X conftestdata 2>/dev/null
1327 then
1328 rm -f conftestdata
1329 ac_cv_prog_LN_S="ln -s"
1330 else
1331 ac_cv_prog_LN_S=ln
1334 LN_S="$ac_cv_prog_LN_S"
1335 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1336 echo "$ac_t""yes" 1>&6
1337 else
1338 echo "$ac_t""no" 1>&6
1341 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1342 echo "configure:1343: checking how to run the C preprocessor" >&5
1343 # On Suns, sometimes $CPP names a directory.
1344 if test -n "$CPP" && test -d "$CPP"; then
1345 CPP=
1347 if test -z "$CPP"; then
1348 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1349 echo $ac_n "(cached) $ac_c" 1>&6
1350 else
1351 # This must be in double quotes, not single quotes, because CPP may get
1352 # substituted into the Makefile and "${CC-cc}" will confuse make.
1353 CPP="${CC-cc} -E"
1354 # On the NeXT, cc -E runs the code through the compiler's parser,
1355 # not just through cpp.
1356 cat > conftest.$ac_ext <<EOF
1357 #line 1358 "configure"
1358 #include "confdefs.h"
1359 #include <assert.h>
1360 Syntax Error
1362 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1363 { (eval echo configure:1364: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1364 ac_err=`grep -v '^ *+' conftest.out`
1365 if test -z "$ac_err"; then
1367 else
1368 echo "$ac_err" >&5
1369 echo "configure: failed program was:" >&5
1370 cat conftest.$ac_ext >&5
1371 rm -rf conftest*
1372 CPP="${CC-cc} -E -traditional-cpp"
1373 cat > conftest.$ac_ext <<EOF
1374 #line 1375 "configure"
1375 #include "confdefs.h"
1376 #include <assert.h>
1377 Syntax Error
1379 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1380 { (eval echo configure:1381: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1381 ac_err=`grep -v '^ *+' conftest.out`
1382 if test -z "$ac_err"; then
1384 else
1385 echo "$ac_err" >&5
1386 echo "configure: failed program was:" >&5
1387 cat conftest.$ac_ext >&5
1388 rm -rf conftest*
1389 CPP=/lib/cpp
1391 rm -f conftest*
1393 rm -f conftest*
1394 ac_cv_prog_CPP="$CPP"
1396 CPP="$ac_cv_prog_CPP"
1397 else
1398 ac_cv_prog_CPP="$CPP"
1400 echo "$ac_t""$CPP" 1>&6
1402 if test $ac_cv_prog_gcc = yes; then
1403 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1404 echo "configure:1405: checking whether ${CC-cc} needs -traditional" >&5
1405 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1406 echo $ac_n "(cached) $ac_c" 1>&6
1407 else
1408 ac_pattern="Autoconf.*'x'"
1409 cat > conftest.$ac_ext <<EOF
1410 #line 1411 "configure"
1411 #include "confdefs.h"
1412 #include <sgtty.h>
1413 Autoconf TIOCGETP
1415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1416 egrep "$ac_pattern" >/dev/null 2>&1; then
1417 rm -rf conftest*
1418 ac_cv_prog_gcc_traditional=yes
1419 else
1420 rm -rf conftest*
1421 ac_cv_prog_gcc_traditional=no
1423 rm -f conftest*
1426 if test $ac_cv_prog_gcc_traditional = no; then
1427 cat > conftest.$ac_ext <<EOF
1428 #line 1429 "configure"
1429 #include "confdefs.h"
1430 #include <termio.h>
1431 Autoconf TCGETA
1433 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1434 egrep "$ac_pattern" >/dev/null 2>&1; then
1435 rm -rf conftest*
1436 ac_cv_prog_gcc_traditional=yes
1438 rm -f conftest*
1443 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1444 if test $ac_cv_prog_gcc_traditional = yes; then
1445 CC="$CC -traditional"
1451 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1452 echo "configure:1453: checking return type of signal handlers" >&5
1453 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1454 echo $ac_n "(cached) $ac_c" 1>&6
1455 else
1456 cat > conftest.$ac_ext <<EOF
1457 #line 1458 "configure"
1458 #include "confdefs.h"
1459 #include <sys/types.h>
1460 #include <signal.h>
1461 #ifdef signal
1462 #undef signal
1463 #endif
1464 #ifdef __cplusplus
1465 extern "C" void (*signal (int, void (*)(int)))(int);
1466 #else
1467 void (*signal ()) ();
1468 #endif
1470 int main() {
1471 int i;
1472 ; return 0; }
1474 if { (eval echo configure:1475: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1475 rm -rf conftest*
1476 ac_cv_type_signal=void
1477 else
1478 echo "configure: failed program was:" >&5
1479 cat conftest.$ac_ext >&5
1480 rm -rf conftest*
1481 ac_cv_type_signal=int
1483 rm -f conftest*
1486 echo "$ac_t""$ac_cv_type_signal" 1>&6
1487 cat >> confdefs.h <<EOF
1488 #define RETSIGTYPE $ac_cv_type_signal
1492 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
1493 echo "configure:1494: checking for vprintf" >&5
1494 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
1495 echo $ac_n "(cached) $ac_c" 1>&6
1496 else
1497 cat > conftest.$ac_ext <<EOF
1498 #line 1499 "configure"
1499 #include "confdefs.h"
1500 /* System header to define __stub macros and hopefully few prototypes,
1501 which can conflict with char vprintf(); below. */
1502 #include <assert.h>
1503 /* Override any gcc2 internal prototype to avoid an error. */
1504 /* We use char because int might match the return type of a gcc2
1505 builtin and then its argument prototype would still apply. */
1506 char vprintf();
1508 int main() {
1510 /* The GNU C library defines this for functions which it implements
1511 to always fail with ENOSYS. Some functions are actually named
1512 something starting with __ and the normal name is an alias. */
1513 #if defined (__stub_vprintf) || defined (__stub___vprintf)
1514 choke me
1515 #else
1516 vprintf();
1517 #endif
1519 ; return 0; }
1521 if { (eval echo configure:1522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1522 rm -rf conftest*
1523 eval "ac_cv_func_vprintf=yes"
1524 else
1525 echo "configure: failed program was:" >&5
1526 cat conftest.$ac_ext >&5
1527 rm -rf conftest*
1528 eval "ac_cv_func_vprintf=no"
1530 rm -f conftest*
1533 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
1534 echo "$ac_t""yes" 1>&6
1535 cat >> confdefs.h <<\EOF
1536 #define HAVE_VPRINTF 1
1539 else
1540 echo "$ac_t""no" 1>&6
1543 if test "$ac_cv_func_vprintf" != yes; then
1544 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
1545 echo "configure:1546: checking for _doprnt" >&5
1546 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
1547 echo $ac_n "(cached) $ac_c" 1>&6
1548 else
1549 cat > conftest.$ac_ext <<EOF
1550 #line 1551 "configure"
1551 #include "confdefs.h"
1552 /* System header to define __stub macros and hopefully few prototypes,
1553 which can conflict with char _doprnt(); below. */
1554 #include <assert.h>
1555 /* Override any gcc2 internal prototype to avoid an error. */
1556 /* We use char because int might match the return type of a gcc2
1557 builtin and then its argument prototype would still apply. */
1558 char _doprnt();
1560 int main() {
1562 /* The GNU C library defines this for functions which it implements
1563 to always fail with ENOSYS. Some functions are actually named
1564 something starting with __ and the normal name is an alias. */
1565 #if defined (__stub__doprnt) || defined (__stub____doprnt)
1566 choke me
1567 #else
1568 _doprnt();
1569 #endif
1571 ; return 0; }
1573 if { (eval echo configure:1574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1574 rm -rf conftest*
1575 eval "ac_cv_func__doprnt=yes"
1576 else
1577 echo "configure: failed program was:" >&5
1578 cat conftest.$ac_ext >&5
1579 rm -rf conftest*
1580 eval "ac_cv_func__doprnt=no"
1582 rm -f conftest*
1585 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
1586 echo "$ac_t""yes" 1>&6
1587 cat >> confdefs.h <<\EOF
1588 #define HAVE_DOPRNT 1
1591 else
1592 echo "$ac_t""no" 1>&6
1597 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1598 # for constant arguments. Useless!
1599 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1600 echo "configure:1601: checking for working alloca.h" >&5
1601 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1602 echo $ac_n "(cached) $ac_c" 1>&6
1603 else
1604 cat > conftest.$ac_ext <<EOF
1605 #line 1606 "configure"
1606 #include "confdefs.h"
1607 #include <alloca.h>
1608 int main() {
1609 char *p = alloca(2 * sizeof(int));
1610 ; return 0; }
1612 if { (eval echo configure:1613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1613 rm -rf conftest*
1614 ac_cv_header_alloca_h=yes
1615 else
1616 echo "configure: failed program was:" >&5
1617 cat conftest.$ac_ext >&5
1618 rm -rf conftest*
1619 ac_cv_header_alloca_h=no
1621 rm -f conftest*
1624 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1625 if test $ac_cv_header_alloca_h = yes; then
1626 cat >> confdefs.h <<\EOF
1627 #define HAVE_ALLOCA_H 1
1632 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1633 echo "configure:1634: checking for alloca" >&5
1634 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1635 echo $ac_n "(cached) $ac_c" 1>&6
1636 else
1637 cat > conftest.$ac_ext <<EOF
1638 #line 1639 "configure"
1639 #include "confdefs.h"
1641 #ifdef __GNUC__
1642 # define alloca __builtin_alloca
1643 #else
1644 # if HAVE_ALLOCA_H
1645 # include <alloca.h>
1646 # else
1647 # ifdef _AIX
1648 #pragma alloca
1649 # else
1650 # ifndef alloca /* predefined by HP cc +Olibcalls */
1651 char *alloca ();
1652 # endif
1653 # endif
1654 # endif
1655 #endif
1657 int main() {
1658 char *p = (char *) alloca(1);
1659 ; return 0; }
1661 if { (eval echo configure:1662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1662 rm -rf conftest*
1663 ac_cv_func_alloca_works=yes
1664 else
1665 echo "configure: failed program was:" >&5
1666 cat conftest.$ac_ext >&5
1667 rm -rf conftest*
1668 ac_cv_func_alloca_works=no
1670 rm -f conftest*
1673 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1674 if test $ac_cv_func_alloca_works = yes; then
1675 cat >> confdefs.h <<\EOF
1676 #define HAVE_ALLOCA 1
1681 if test $ac_cv_func_alloca_works = no; then
1682 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1683 # that cause trouble. Some versions do not even contain alloca or
1684 # contain a buggy version. If you still want to use their alloca,
1685 # use ar to extract alloca.o from them instead of compiling alloca.c.
1686 ALLOCA=alloca.o
1687 cat >> confdefs.h <<\EOF
1688 #define C_ALLOCA 1
1692 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1693 echo "configure:1694: checking whether alloca needs Cray hooks" >&5
1694 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1695 echo $ac_n "(cached) $ac_c" 1>&6
1696 else
1697 cat > conftest.$ac_ext <<EOF
1698 #line 1699 "configure"
1699 #include "confdefs.h"
1700 #if defined(CRAY) && ! defined(CRAY2)
1701 webecray
1702 #else
1703 wenotbecray
1704 #endif
1707 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1708 egrep "webecray" >/dev/null 2>&1; then
1709 rm -rf conftest*
1710 ac_cv_os_cray=yes
1711 else
1712 rm -rf conftest*
1713 ac_cv_os_cray=no
1715 rm -f conftest*
1719 echo "$ac_t""$ac_cv_os_cray" 1>&6
1720 if test $ac_cv_os_cray = yes; then
1721 for ac_func in _getb67 GETB67 getb67; do
1722 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1723 echo "configure:1724: checking for $ac_func" >&5
1724 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1725 echo $ac_n "(cached) $ac_c" 1>&6
1726 else
1727 cat > conftest.$ac_ext <<EOF
1728 #line 1729 "configure"
1729 #include "confdefs.h"
1730 /* System header to define __stub macros and hopefully few prototypes,
1731 which can conflict with char $ac_func(); below. */
1732 #include <assert.h>
1733 /* Override any gcc2 internal prototype to avoid an error. */
1734 /* We use char because int might match the return type of a gcc2
1735 builtin and then its argument prototype would still apply. */
1736 char $ac_func();
1738 int main() {
1740 /* The GNU C library defines this for functions which it implements
1741 to always fail with ENOSYS. Some functions are actually named
1742 something starting with __ and the normal name is an alias. */
1743 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1744 choke me
1745 #else
1746 $ac_func();
1747 #endif
1749 ; return 0; }
1751 if { (eval echo configure:1752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1752 rm -rf conftest*
1753 eval "ac_cv_func_$ac_func=yes"
1754 else
1755 echo "configure: failed program was:" >&5
1756 cat conftest.$ac_ext >&5
1757 rm -rf conftest*
1758 eval "ac_cv_func_$ac_func=no"
1760 rm -f conftest*
1763 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1764 echo "$ac_t""yes" 1>&6
1765 cat >> confdefs.h <<EOF
1766 #define CRAY_STACKSEG_END $ac_func
1769 break
1770 else
1771 echo "$ac_t""no" 1>&6
1774 done
1777 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1778 echo "configure:1779: checking stack direction for C alloca" >&5
1779 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1780 echo $ac_n "(cached) $ac_c" 1>&6
1781 else
1782 if test "$cross_compiling" = yes; then
1783 ac_cv_c_stack_direction=0
1784 else
1785 cat > conftest.$ac_ext <<EOF
1786 #line 1787 "configure"
1787 #include "confdefs.h"
1788 find_stack_direction ()
1790 static char *addr = 0;
1791 auto char dummy;
1792 if (addr == 0)
1794 addr = &dummy;
1795 return find_stack_direction ();
1797 else
1798 return (&dummy > addr) ? 1 : -1;
1800 main ()
1802 exit (find_stack_direction() < 0);
1805 if { (eval echo configure:1806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1806 then
1807 ac_cv_c_stack_direction=1
1808 else
1809 echo "configure: failed program was:" >&5
1810 cat conftest.$ac_ext >&5
1811 rm -fr conftest*
1812 ac_cv_c_stack_direction=-1
1814 rm -fr conftest*
1819 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1820 cat >> confdefs.h <<EOF
1821 #define STACK_DIRECTION $ac_cv_c_stack_direction
1826 for ac_func in gethostname gettimeofday select poll strerror strncasecmp setpgid
1828 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1829 echo "configure:1830: checking for $ac_func" >&5
1830 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1831 echo $ac_n "(cached) $ac_c" 1>&6
1832 else
1833 cat > conftest.$ac_ext <<EOF
1834 #line 1835 "configure"
1835 #include "confdefs.h"
1836 /* System header to define __stub macros and hopefully few prototypes,
1837 which can conflict with char $ac_func(); below. */
1838 #include <assert.h>
1839 /* Override any gcc2 internal prototype to avoid an error. */
1840 /* We use char because int might match the return type of a gcc2
1841 builtin and then its argument prototype would still apply. */
1842 char $ac_func();
1844 int main() {
1846 /* The GNU C library defines this for functions which it implements
1847 to always fail with ENOSYS. Some functions are actually named
1848 something starting with __ and the normal name is an alias. */
1849 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1850 choke me
1851 #else
1852 $ac_func();
1853 #endif
1855 ; return 0; }
1857 if { (eval echo configure:1858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1858 rm -rf conftest*
1859 eval "ac_cv_func_$ac_func=yes"
1860 else
1861 echo "configure: failed program was:" >&5
1862 cat conftest.$ac_ext >&5
1863 rm -rf conftest*
1864 eval "ac_cv_func_$ac_func=no"
1866 rm -f conftest*
1869 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1870 echo "$ac_t""yes" 1>&6
1871 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1872 cat >> confdefs.h <<EOF
1873 #define $ac_tr_func 1
1876 else
1877 echo "$ac_t""no" 1>&6
1879 done
1883 # Extract the first word of "cpp", so it can be a program name with args.
1884 set dummy cpp; ac_word=$2
1885 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1886 echo "configure:1887: checking for $ac_word" >&5
1887 if eval "test \"`echo '$''{'ac_cv_path_CPP_PATH'+set}'`\" = set"; then
1888 echo $ac_n "(cached) $ac_c" 1>&6
1889 else
1890 case "$CPP_PATH" in
1892 ac_cv_path_CPP_PATH="$CPP_PATH" # Let the user override the test with a path.
1895 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1896 for ac_dir in /lib:/usr/bin:/bin:/usr/lib:/usr/ccs/lib:$PATH$ac_dummy; do
1897 test -z "$ac_dir" && ac_dir=.
1898 if test -f $ac_dir/$ac_word; then
1899 ac_cv_path_CPP_PATH="$ac_dir/$ac_word"
1900 break
1902 done
1903 IFS="$ac_save_ifs"
1904 test -z "$ac_cv_path_CPP_PATH" && ac_cv_path_CPP_PATH="notfound"
1906 esac
1908 CPP_PATH="$ac_cv_path_CPP_PATH"
1909 if test -n "$CPP_PATH"; then
1910 echo "$ac_t""$CPP_PATH" 1>&6
1911 else
1912 echo "$ac_t""no" 1>&6
1916 if test "$CPP_PATH" = "/usr/ccs/lib/cpp" -o "$CPP_PATH" = "notfound" ; then
1917 if test "$GCC" = "yes"; then
1918 CPP_PATH="gcc -E -x c"
1919 else
1920 if test "$CPP_PATH" = "/usr/ccs/lib/cpp"; then
1921 CPP_PATH="$CPP_PATH -B"
1922 else
1923 echo "cpp, the C preprocessor was not found in your system."
1924 echo "Create a symbolic link from it to /lib/cpp and rerun configure"
1925 exit
1929 cat >> confdefs.h <<EOF
1930 #define CPP_PATH "$CPP_PATH"
1939 INTLIBS=""
1942 echo $ac_n "checking for gettext""... $ac_c" 1>&6
1943 echo "configure:1944: checking for gettext" >&5
1944 if eval "test \"`echo '$''{'ac_cv_func_gettext'+set}'`\" = set"; then
1945 echo $ac_n "(cached) $ac_c" 1>&6
1946 else
1947 cat > conftest.$ac_ext <<EOF
1948 #line 1949 "configure"
1949 #include "confdefs.h"
1950 /* System header to define __stub macros and hopefully few prototypes,
1951 which can conflict with char gettext(); below. */
1952 #include <assert.h>
1953 /* Override any gcc2 internal prototype to avoid an error. */
1954 /* We use char because int might match the return type of a gcc2
1955 builtin and then its argument prototype would still apply. */
1956 char gettext();
1958 int main() {
1960 /* The GNU C library defines this for functions which it implements
1961 to always fail with ENOSYS. Some functions are actually named
1962 something starting with __ and the normal name is an alias. */
1963 #if defined (__stub_gettext) || defined (__stub___gettext)
1964 choke me
1965 #else
1966 gettext();
1967 #endif
1969 ; return 0; }
1971 if { (eval echo configure:1972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1972 rm -rf conftest*
1973 eval "ac_cv_func_gettext=yes"
1974 else
1975 echo "configure: failed program was:" >&5
1976 cat conftest.$ac_ext >&5
1977 rm -rf conftest*
1978 eval "ac_cv_func_gettext=no"
1980 rm -f conftest*
1983 if eval "test \"`echo '$ac_cv_func_'gettext`\" = yes"; then
1984 echo "$ac_t""yes" 1>&6
1985 HAVEGETTEXT="yes"
1986 else
1987 echo "$ac_t""no" 1>&6
1988 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
1989 echo "configure:1990: checking for gettext in -lintl" >&5
1990 ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
1991 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1992 echo $ac_n "(cached) $ac_c" 1>&6
1993 else
1994 ac_save_LIBS="$LIBS"
1995 LIBS="-lintl $LIBS"
1996 cat > conftest.$ac_ext <<EOF
1997 #line 1998 "configure"
1998 #include "confdefs.h"
1999 /* Override any gcc2 internal prototype to avoid an error. */
2000 /* We use char because int might match the return type of a gcc2
2001 builtin and then its argument prototype would still apply. */
2002 char gettext();
2004 int main() {
2005 gettext()
2006 ; return 0; }
2008 if { (eval echo configure:2009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2009 rm -rf conftest*
2010 eval "ac_cv_lib_$ac_lib_var=yes"
2011 else
2012 echo "configure: failed program was:" >&5
2013 cat conftest.$ac_ext >&5
2014 rm -rf conftest*
2015 eval "ac_cv_lib_$ac_lib_var=no"
2017 rm -f conftest*
2018 LIBS="$ac_save_LIBS"
2021 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2022 echo "$ac_t""yes" 1>&6
2023 INTLIBS="-lintl" HAVEGETTEXT="yes"
2024 else
2025 echo "$ac_t""no" 1>&6
2026 INTLIBS=""
2032 # Extract the first word of "xgettext", so it can be a program name with args.
2033 set dummy xgettext; ac_word=$2
2034 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2035 echo "configure:2036: checking for $ac_word" >&5
2036 if eval "test \"`echo '$''{'ac_cv_prog_XGETTEXT'+set}'`\" = set"; then
2037 echo $ac_n "(cached) $ac_c" 1>&6
2038 else
2039 if test -n "$XGETTEXT"; then
2040 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
2041 else
2042 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2043 for ac_dir in $PATH; do
2044 test -z "$ac_dir" && ac_dir=.
2045 if test -f $ac_dir/$ac_word; then
2046 ac_cv_prog_XGETTEXT="xgettext"
2047 break
2049 done
2050 IFS="$ac_save_ifs"
2053 XGETTEXT="$ac_cv_prog_XGETTEXT"
2054 if test -n "$XGETTEXT"; then
2055 echo "$ac_t""$XGETTEXT" 1>&6
2056 else
2057 echo "$ac_t""no" 1>&6
2061 if test "$XGETTEXT" != ""; then
2062 if $XGETTEXT --help 2>&1 | grep illegal >/dev/null ; then
2063 echo "xgettext isn't GNU version"
2064 XGETTEXT=""
2068 if test "$LINGUAS" != ""; then
2069 if test "$XGETTEXT" != "" -a "$HAVEGETTEXT" != ""; then
2070 I18N="-DI18N"
2071 PO=""
2072 # if test "$LINGUAS" = ""; then
2073 # ling=` (cd src/po; /bin/ls *.po) `
2074 # for l in $ling; do
2075 # lcode=`basename $l .po`
2076 # LINGUAS="$LINGUAS $lcode"
2077 # done
2078 # fi
2079 echo "xgettext and gettext() exist; will build i18n support for $LINGUAS"
2080 else
2081 I18N=""
2082 LINGUAS=""
2083 PO=""
2084 echo "xgettext and libintl.a don't both exist; will not build i18n support"
2086 else
2087 INTLIBS=""
2088 MOFILES=""
2089 WPMOFILES=""
2090 PO=""
2095 supported_locales="cs de es fr gl it ja ko nl no pt ru se tr fi hr el"
2096 supported_wprefs_locales="pt hr fr ko"
2098 for lang in $LINGUAS; do
2099 ok=0
2100 for l in $supported_locales; do
2101 if test "$l" = "$lang"; then
2102 ok=1
2103 break
2105 done
2106 if test "$ok" = 1; then
2107 MOFILES="$MOFILES $lang.mo"
2108 else
2109 echo "Locale $lang is not supported."
2111 ok=0
2112 for l in $supported_wprefs_locales; do
2113 if test "$l" = "$lang"; then
2114 ok=1
2115 break
2117 done
2118 if test "$ok" = 1; then
2119 WPMOFILES="$WPMOFILES $lang.mo"
2121 done
2124 I18n=no
2125 # Check whether --enable-kanji or --disable-kanji was given.
2126 if test "${enable_kanji+set}" = set; then
2127 enableval="$enable_kanji"
2129 else
2130 enable_kanji=no
2134 if test "$enable_kanji" = yes; then
2135 I18N_MB="#define I18N_MB"
2136 case $host_os in
2137 freebsd*)
2138 echo $ac_n "checking for setlocale in -lxpg4""... $ac_c" 1>&6
2139 echo "configure:2140: checking for setlocale in -lxpg4" >&5
2140 ac_lib_var=`echo xpg4'_'setlocale | sed 'y%./+-%__p_%'`
2141 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2142 echo $ac_n "(cached) $ac_c" 1>&6
2143 else
2144 ac_save_LIBS="$LIBS"
2145 LIBS="-lxpg4 $LIBS"
2146 cat > conftest.$ac_ext <<EOF
2147 #line 2148 "configure"
2148 #include "confdefs.h"
2149 /* Override any gcc2 internal prototype to avoid an error. */
2150 /* We use char because int might match the return type of a gcc2
2151 builtin and then its argument prototype would still apply. */
2152 char setlocale();
2154 int main() {
2155 setlocale()
2156 ; return 0; }
2158 if { (eval echo configure:2159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2159 rm -rf conftest*
2160 eval "ac_cv_lib_$ac_lib_var=yes"
2161 else
2162 echo "configure: failed program was:" >&5
2163 cat conftest.$ac_ext >&5
2164 rm -rf conftest*
2165 eval "ac_cv_lib_$ac_lib_var=no"
2167 rm -f conftest*
2168 LIBS="$ac_save_LIBS"
2171 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2172 echo "$ac_t""yes" 1>&6
2173 LIBS="$LIBS -lxpg4"
2174 else
2175 echo "$ac_t""no" 1>&6
2180 esac
2181 else
2182 I18N_MB="#undef I18N_MB"
2187 # Check whether --with-nlsdir or --without-nlsdir was given.
2188 if test "${with_nlsdir+set}" = set; then
2189 withval="$with_nlsdir"
2194 if test "x$NLSDIR" = "x"; then
2195 if test "x$with_nlsdir" != "x"; then
2196 NLSDIR=$with_nlsdir
2197 else
2198 NLSDIR="/usr/lib/locale"
2211 # If we find X, set shell vars x_includes and x_libraries to the
2212 # paths, otherwise set no_x=yes.
2213 # Uses ac_ vars as temps to allow command line to override cache and checks.
2214 # --without-x overrides everything else, but does not touch the cache.
2215 echo $ac_n "checking for X""... $ac_c" 1>&6
2216 echo "configure:2217: checking for X" >&5
2218 # Check whether --with-x or --without-x was given.
2219 if test "${with_x+set}" = set; then
2220 withval="$with_x"
2224 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
2225 if test "x$with_x" = xno; then
2226 # The user explicitly disabled X.
2227 have_x=disabled
2228 else
2229 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
2230 # Both variables are already set.
2231 have_x=yes
2232 else
2233 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
2234 echo $ac_n "(cached) $ac_c" 1>&6
2235 else
2236 # One or both of the vars are not set, and there is no cached value.
2237 ac_x_includes=NO ac_x_libraries=NO
2238 rm -fr conftestdir
2239 if mkdir conftestdir; then
2240 cd conftestdir
2241 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
2242 cat > Imakefile <<'EOF'
2243 acfindx:
2244 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
2246 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
2247 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2248 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
2249 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2250 for ac_extension in a so sl; do
2251 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
2252 test -f $ac_im_libdir/libX11.$ac_extension; then
2253 ac_im_usrlibdir=$ac_im_libdir; break
2255 done
2256 # Screen out bogus values from the imake configuration. They are
2257 # bogus both because they are the default anyway, and because
2258 # using them would break gcc on systems where it needs fixed includes.
2259 case "$ac_im_incroot" in
2260 /usr/include) ;;
2261 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
2262 esac
2263 case "$ac_im_usrlibdir" in
2264 /usr/lib | /lib) ;;
2265 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
2266 esac
2268 cd ..
2269 rm -fr conftestdir
2272 if test "$ac_x_includes" = NO; then
2273 # Guess where to find include files, by looking for this one X11 .h file.
2274 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
2276 # First, try using that file with no special directory specified.
2277 cat > conftest.$ac_ext <<EOF
2278 #line 2279 "configure"
2279 #include "confdefs.h"
2280 #include <$x_direct_test_include>
2282 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2283 { (eval echo configure:2284: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2284 ac_err=`grep -v '^ *+' conftest.out`
2285 if test -z "$ac_err"; then
2286 rm -rf conftest*
2287 # We can compile using X headers with no special include directory.
2288 ac_x_includes=
2289 else
2290 echo "$ac_err" >&5
2291 echo "configure: failed program was:" >&5
2292 cat conftest.$ac_ext >&5
2293 rm -rf conftest*
2294 # Look for the header file in a standard set of common directories.
2295 # Check X11 before X11Rn because it is often a symlink to the current release.
2296 for ac_dir in \
2297 /usr/X11/include \
2298 /usr/X11R6/include \
2299 /usr/X11R5/include \
2300 /usr/X11R4/include \
2302 /usr/include/X11 \
2303 /usr/include/X11R6 \
2304 /usr/include/X11R5 \
2305 /usr/include/X11R4 \
2307 /usr/local/X11/include \
2308 /usr/local/X11R6/include \
2309 /usr/local/X11R5/include \
2310 /usr/local/X11R4/include \
2312 /usr/local/include/X11 \
2313 /usr/local/include/X11R6 \
2314 /usr/local/include/X11R5 \
2315 /usr/local/include/X11R4 \
2317 /usr/X386/include \
2318 /usr/x386/include \
2319 /usr/XFree86/include/X11 \
2321 /usr/include \
2322 /usr/local/include \
2323 /usr/unsupported/include \
2324 /usr/athena/include \
2325 /usr/local/x11r5/include \
2326 /usr/lpp/Xamples/include \
2328 /usr/openwin/include \
2329 /usr/openwin/share/include \
2332 if test -r "$ac_dir/$x_direct_test_include"; then
2333 ac_x_includes=$ac_dir
2334 break
2336 done
2338 rm -f conftest*
2339 fi # $ac_x_includes = NO
2341 if test "$ac_x_libraries" = NO; then
2342 # Check for the libraries.
2344 test -z "$x_direct_test_library" && x_direct_test_library=Xt
2345 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
2347 # See if we find them without any special options.
2348 # Don't add to $LIBS permanently.
2349 ac_save_LIBS="$LIBS"
2350 LIBS="-l$x_direct_test_library $LIBS"
2351 cat > conftest.$ac_ext <<EOF
2352 #line 2353 "configure"
2353 #include "confdefs.h"
2355 int main() {
2356 ${x_direct_test_function}()
2357 ; return 0; }
2359 if { (eval echo configure:2360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2360 rm -rf conftest*
2361 LIBS="$ac_save_LIBS"
2362 # We can link X programs with no special library path.
2363 ac_x_libraries=
2364 else
2365 echo "configure: failed program was:" >&5
2366 cat conftest.$ac_ext >&5
2367 rm -rf conftest*
2368 LIBS="$ac_save_LIBS"
2369 # First see if replacing the include by lib works.
2370 # Check X11 before X11Rn because it is often a symlink to the current release.
2371 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
2372 /usr/X11/lib \
2373 /usr/X11R6/lib \
2374 /usr/X11R5/lib \
2375 /usr/X11R4/lib \
2377 /usr/lib/X11 \
2378 /usr/lib/X11R6 \
2379 /usr/lib/X11R5 \
2380 /usr/lib/X11R4 \
2382 /usr/local/X11/lib \
2383 /usr/local/X11R6/lib \
2384 /usr/local/X11R5/lib \
2385 /usr/local/X11R4/lib \
2387 /usr/local/lib/X11 \
2388 /usr/local/lib/X11R6 \
2389 /usr/local/lib/X11R5 \
2390 /usr/local/lib/X11R4 \
2392 /usr/X386/lib \
2393 /usr/x386/lib \
2394 /usr/XFree86/lib/X11 \
2396 /usr/lib \
2397 /usr/local/lib \
2398 /usr/unsupported/lib \
2399 /usr/athena/lib \
2400 /usr/local/x11r5/lib \
2401 /usr/lpp/Xamples/lib \
2402 /lib/usr/lib/X11 \
2404 /usr/openwin/lib \
2405 /usr/openwin/share/lib \
2408 for ac_extension in a so sl; do
2409 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
2410 ac_x_libraries=$ac_dir
2411 break 2
2413 done
2414 done
2416 rm -f conftest*
2417 fi # $ac_x_libraries = NO
2419 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
2420 # Didn't find X anywhere. Cache the known absence of X.
2421 ac_cv_have_x="have_x=no"
2422 else
2423 # Record where we found X for the cache.
2424 ac_cv_have_x="have_x=yes \
2425 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
2429 eval "$ac_cv_have_x"
2430 fi # $with_x != no
2432 if test "$have_x" != yes; then
2433 echo "$ac_t""$have_x" 1>&6
2434 no_x=yes
2435 else
2436 # If each of the values was on the command line, it overrides each guess.
2437 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
2438 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
2439 # Update the cache value to reflect the command line values.
2440 ac_cv_have_x="have_x=yes \
2441 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
2442 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
2445 if test "$no_x" = yes; then
2446 # Not all programs may use this symbol, but it does not hurt to define it.
2447 cat >> confdefs.h <<\EOF
2448 #define X_DISPLAY_MISSING 1
2451 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
2452 else
2453 if test -n "$x_includes"; then
2454 X_CFLAGS="$X_CFLAGS -I$x_includes"
2457 # It would also be nice to do this for all -L options, not just this one.
2458 if test -n "$x_libraries"; then
2459 X_LIBS="$X_LIBS -L$x_libraries"
2460 # For Solaris; some versions of Sun CC require a space after -R and
2461 # others require no space. Words are not sufficient . . . .
2462 case "`(uname -sr) 2>/dev/null`" in
2463 "SunOS 5"*)
2464 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
2465 echo "configure:2466: checking whether -R must be followed by a space" >&5
2466 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
2467 cat > conftest.$ac_ext <<EOF
2468 #line 2469 "configure"
2469 #include "confdefs.h"
2471 int main() {
2473 ; return 0; }
2475 if { (eval echo configure:2476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2476 rm -rf conftest*
2477 ac_R_nospace=yes
2478 else
2479 echo "configure: failed program was:" >&5
2480 cat conftest.$ac_ext >&5
2481 rm -rf conftest*
2482 ac_R_nospace=no
2484 rm -f conftest*
2485 if test $ac_R_nospace = yes; then
2486 echo "$ac_t""no" 1>&6
2487 X_LIBS="$X_LIBS -R$x_libraries"
2488 else
2489 LIBS="$ac_xsave_LIBS -R $x_libraries"
2490 cat > conftest.$ac_ext <<EOF
2491 #line 2492 "configure"
2492 #include "confdefs.h"
2494 int main() {
2496 ; return 0; }
2498 if { (eval echo configure:2499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2499 rm -rf conftest*
2500 ac_R_space=yes
2501 else
2502 echo "configure: failed program was:" >&5
2503 cat conftest.$ac_ext >&5
2504 rm -rf conftest*
2505 ac_R_space=no
2507 rm -f conftest*
2508 if test $ac_R_space = yes; then
2509 echo "$ac_t""yes" 1>&6
2510 X_LIBS="$X_LIBS -R $x_libraries"
2511 else
2512 echo "$ac_t""neither works" 1>&6
2515 LIBS="$ac_xsave_LIBS"
2516 esac
2519 # Check for system-dependent libraries X programs must link with.
2520 # Do this before checking for the system-independent R6 libraries
2521 # (-lICE), since we may need -lsocket or whatever for X linking.
2523 if test "$ISC" = yes; then
2524 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
2525 else
2526 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
2527 # libraries were built with DECnet support. And karl@cs.umb.edu says
2528 # the Alpha needs dnet_stub (dnet does not exist).
2529 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
2530 echo "configure:2531: checking for dnet_ntoa in -ldnet" >&5
2531 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
2532 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2533 echo $ac_n "(cached) $ac_c" 1>&6
2534 else
2535 ac_save_LIBS="$LIBS"
2536 LIBS="-ldnet $LIBS"
2537 cat > conftest.$ac_ext <<EOF
2538 #line 2539 "configure"
2539 #include "confdefs.h"
2540 /* Override any gcc2 internal prototype to avoid an error. */
2541 /* We use char because int might match the return type of a gcc2
2542 builtin and then its argument prototype would still apply. */
2543 char dnet_ntoa();
2545 int main() {
2546 dnet_ntoa()
2547 ; return 0; }
2549 if { (eval echo configure:2550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2550 rm -rf conftest*
2551 eval "ac_cv_lib_$ac_lib_var=yes"
2552 else
2553 echo "configure: failed program was:" >&5
2554 cat conftest.$ac_ext >&5
2555 rm -rf conftest*
2556 eval "ac_cv_lib_$ac_lib_var=no"
2558 rm -f conftest*
2559 LIBS="$ac_save_LIBS"
2562 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2563 echo "$ac_t""yes" 1>&6
2564 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
2565 else
2566 echo "$ac_t""no" 1>&6
2569 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
2570 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
2571 echo "configure:2572: checking for dnet_ntoa in -ldnet_stub" >&5
2572 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
2573 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2574 echo $ac_n "(cached) $ac_c" 1>&6
2575 else
2576 ac_save_LIBS="$LIBS"
2577 LIBS="-ldnet_stub $LIBS"
2578 cat > conftest.$ac_ext <<EOF
2579 #line 2580 "configure"
2580 #include "confdefs.h"
2581 /* Override any gcc2 internal prototype to avoid an error. */
2582 /* We use char because int might match the return type of a gcc2
2583 builtin and then its argument prototype would still apply. */
2584 char dnet_ntoa();
2586 int main() {
2587 dnet_ntoa()
2588 ; return 0; }
2590 if { (eval echo configure:2591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2591 rm -rf conftest*
2592 eval "ac_cv_lib_$ac_lib_var=yes"
2593 else
2594 echo "configure: failed program was:" >&5
2595 cat conftest.$ac_ext >&5
2596 rm -rf conftest*
2597 eval "ac_cv_lib_$ac_lib_var=no"
2599 rm -f conftest*
2600 LIBS="$ac_save_LIBS"
2603 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2604 echo "$ac_t""yes" 1>&6
2605 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
2606 else
2607 echo "$ac_t""no" 1>&6
2612 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
2613 # to get the SysV transport functions.
2614 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
2615 # needs -lnsl.
2616 # The nsl library prevents programs from opening the X display
2617 # on Irix 5.2, according to dickey@clark.net.
2618 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
2619 echo "configure:2620: checking for gethostbyname" >&5
2620 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
2621 echo $ac_n "(cached) $ac_c" 1>&6
2622 else
2623 cat > conftest.$ac_ext <<EOF
2624 #line 2625 "configure"
2625 #include "confdefs.h"
2626 /* System header to define __stub macros and hopefully few prototypes,
2627 which can conflict with char gethostbyname(); below. */
2628 #include <assert.h>
2629 /* Override any gcc2 internal prototype to avoid an error. */
2630 /* We use char because int might match the return type of a gcc2
2631 builtin and then its argument prototype would still apply. */
2632 char gethostbyname();
2634 int main() {
2636 /* The GNU C library defines this for functions which it implements
2637 to always fail with ENOSYS. Some functions are actually named
2638 something starting with __ and the normal name is an alias. */
2639 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2640 choke me
2641 #else
2642 gethostbyname();
2643 #endif
2645 ; return 0; }
2647 if { (eval echo configure:2648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2648 rm -rf conftest*
2649 eval "ac_cv_func_gethostbyname=yes"
2650 else
2651 echo "configure: failed program was:" >&5
2652 cat conftest.$ac_ext >&5
2653 rm -rf conftest*
2654 eval "ac_cv_func_gethostbyname=no"
2656 rm -f conftest*
2659 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
2660 echo "$ac_t""yes" 1>&6
2662 else
2663 echo "$ac_t""no" 1>&6
2666 if test $ac_cv_func_gethostbyname = no; then
2667 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2668 echo "configure:2669: checking for gethostbyname in -lnsl" >&5
2669 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2670 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2671 echo $ac_n "(cached) $ac_c" 1>&6
2672 else
2673 ac_save_LIBS="$LIBS"
2674 LIBS="-lnsl $LIBS"
2675 cat > conftest.$ac_ext <<EOF
2676 #line 2677 "configure"
2677 #include "confdefs.h"
2678 /* Override any gcc2 internal prototype to avoid an error. */
2679 /* We use char because int might match the return type of a gcc2
2680 builtin and then its argument prototype would still apply. */
2681 char gethostbyname();
2683 int main() {
2684 gethostbyname()
2685 ; return 0; }
2687 if { (eval echo configure:2688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2688 rm -rf conftest*
2689 eval "ac_cv_lib_$ac_lib_var=yes"
2690 else
2691 echo "configure: failed program was:" >&5
2692 cat conftest.$ac_ext >&5
2693 rm -rf conftest*
2694 eval "ac_cv_lib_$ac_lib_var=no"
2696 rm -f conftest*
2697 LIBS="$ac_save_LIBS"
2700 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2701 echo "$ac_t""yes" 1>&6
2702 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
2703 else
2704 echo "$ac_t""no" 1>&6
2709 # lieder@skyler.mavd.honeywell.com says without -lsocket,
2710 # socket/setsockopt and other routines are undefined under SCO ODT
2711 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
2712 # on later versions), says simon@lia.di.epfl.ch: it contains
2713 # gethostby* variants that don't use the nameserver (or something).
2714 # -lsocket must be given before -lnsl if both are needed.
2715 # We assume that if connect needs -lnsl, so does gethostbyname.
2716 echo $ac_n "checking for connect""... $ac_c" 1>&6
2717 echo "configure:2718: checking for connect" >&5
2718 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
2719 echo $ac_n "(cached) $ac_c" 1>&6
2720 else
2721 cat > conftest.$ac_ext <<EOF
2722 #line 2723 "configure"
2723 #include "confdefs.h"
2724 /* System header to define __stub macros and hopefully few prototypes,
2725 which can conflict with char connect(); below. */
2726 #include <assert.h>
2727 /* Override any gcc2 internal prototype to avoid an error. */
2728 /* We use char because int might match the return type of a gcc2
2729 builtin and then its argument prototype would still apply. */
2730 char connect();
2732 int main() {
2734 /* The GNU C library defines this for functions which it implements
2735 to always fail with ENOSYS. Some functions are actually named
2736 something starting with __ and the normal name is an alias. */
2737 #if defined (__stub_connect) || defined (__stub___connect)
2738 choke me
2739 #else
2740 connect();
2741 #endif
2743 ; return 0; }
2745 if { (eval echo configure:2746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2746 rm -rf conftest*
2747 eval "ac_cv_func_connect=yes"
2748 else
2749 echo "configure: failed program was:" >&5
2750 cat conftest.$ac_ext >&5
2751 rm -rf conftest*
2752 eval "ac_cv_func_connect=no"
2754 rm -f conftest*
2757 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
2758 echo "$ac_t""yes" 1>&6
2760 else
2761 echo "$ac_t""no" 1>&6
2764 if test $ac_cv_func_connect = no; then
2765 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2766 echo "configure:2767: checking for connect in -lsocket" >&5
2767 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2768 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2769 echo $ac_n "(cached) $ac_c" 1>&6
2770 else
2771 ac_save_LIBS="$LIBS"
2772 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
2773 cat > conftest.$ac_ext <<EOF
2774 #line 2775 "configure"
2775 #include "confdefs.h"
2776 /* Override any gcc2 internal prototype to avoid an error. */
2777 /* We use char because int might match the return type of a gcc2
2778 builtin and then its argument prototype would still apply. */
2779 char connect();
2781 int main() {
2782 connect()
2783 ; return 0; }
2785 if { (eval echo configure:2786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2786 rm -rf conftest*
2787 eval "ac_cv_lib_$ac_lib_var=yes"
2788 else
2789 echo "configure: failed program was:" >&5
2790 cat conftest.$ac_ext >&5
2791 rm -rf conftest*
2792 eval "ac_cv_lib_$ac_lib_var=no"
2794 rm -f conftest*
2795 LIBS="$ac_save_LIBS"
2798 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2799 echo "$ac_t""yes" 1>&6
2800 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
2801 else
2802 echo "$ac_t""no" 1>&6
2807 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
2808 echo $ac_n "checking for remove""... $ac_c" 1>&6
2809 echo "configure:2810: checking for remove" >&5
2810 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
2811 echo $ac_n "(cached) $ac_c" 1>&6
2812 else
2813 cat > conftest.$ac_ext <<EOF
2814 #line 2815 "configure"
2815 #include "confdefs.h"
2816 /* System header to define __stub macros and hopefully few prototypes,
2817 which can conflict with char remove(); below. */
2818 #include <assert.h>
2819 /* Override any gcc2 internal prototype to avoid an error. */
2820 /* We use char because int might match the return type of a gcc2
2821 builtin and then its argument prototype would still apply. */
2822 char remove();
2824 int main() {
2826 /* The GNU C library defines this for functions which it implements
2827 to always fail with ENOSYS. Some functions are actually named
2828 something starting with __ and the normal name is an alias. */
2829 #if defined (__stub_remove) || defined (__stub___remove)
2830 choke me
2831 #else
2832 remove();
2833 #endif
2835 ; return 0; }
2837 if { (eval echo configure:2838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2838 rm -rf conftest*
2839 eval "ac_cv_func_remove=yes"
2840 else
2841 echo "configure: failed program was:" >&5
2842 cat conftest.$ac_ext >&5
2843 rm -rf conftest*
2844 eval "ac_cv_func_remove=no"
2846 rm -f conftest*
2849 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
2850 echo "$ac_t""yes" 1>&6
2852 else
2853 echo "$ac_t""no" 1>&6
2856 if test $ac_cv_func_remove = no; then
2857 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
2858 echo "configure:2859: checking for remove in -lposix" >&5
2859 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
2860 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2861 echo $ac_n "(cached) $ac_c" 1>&6
2862 else
2863 ac_save_LIBS="$LIBS"
2864 LIBS="-lposix $LIBS"
2865 cat > conftest.$ac_ext <<EOF
2866 #line 2867 "configure"
2867 #include "confdefs.h"
2868 /* Override any gcc2 internal prototype to avoid an error. */
2869 /* We use char because int might match the return type of a gcc2
2870 builtin and then its argument prototype would still apply. */
2871 char remove();
2873 int main() {
2874 remove()
2875 ; return 0; }
2877 if { (eval echo configure:2878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2878 rm -rf conftest*
2879 eval "ac_cv_lib_$ac_lib_var=yes"
2880 else
2881 echo "configure: failed program was:" >&5
2882 cat conftest.$ac_ext >&5
2883 rm -rf conftest*
2884 eval "ac_cv_lib_$ac_lib_var=no"
2886 rm -f conftest*
2887 LIBS="$ac_save_LIBS"
2890 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2891 echo "$ac_t""yes" 1>&6
2892 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
2893 else
2894 echo "$ac_t""no" 1>&6
2899 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
2900 echo $ac_n "checking for shmat""... $ac_c" 1>&6
2901 echo "configure:2902: checking for shmat" >&5
2902 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
2903 echo $ac_n "(cached) $ac_c" 1>&6
2904 else
2905 cat > conftest.$ac_ext <<EOF
2906 #line 2907 "configure"
2907 #include "confdefs.h"
2908 /* System header to define __stub macros and hopefully few prototypes,
2909 which can conflict with char shmat(); below. */
2910 #include <assert.h>
2911 /* Override any gcc2 internal prototype to avoid an error. */
2912 /* We use char because int might match the return type of a gcc2
2913 builtin and then its argument prototype would still apply. */
2914 char shmat();
2916 int main() {
2918 /* The GNU C library defines this for functions which it implements
2919 to always fail with ENOSYS. Some functions are actually named
2920 something starting with __ and the normal name is an alias. */
2921 #if defined (__stub_shmat) || defined (__stub___shmat)
2922 choke me
2923 #else
2924 shmat();
2925 #endif
2927 ; return 0; }
2929 if { (eval echo configure:2930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2930 rm -rf conftest*
2931 eval "ac_cv_func_shmat=yes"
2932 else
2933 echo "configure: failed program was:" >&5
2934 cat conftest.$ac_ext >&5
2935 rm -rf conftest*
2936 eval "ac_cv_func_shmat=no"
2938 rm -f conftest*
2941 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
2942 echo "$ac_t""yes" 1>&6
2944 else
2945 echo "$ac_t""no" 1>&6
2948 if test $ac_cv_func_shmat = no; then
2949 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
2950 echo "configure:2951: checking for shmat in -lipc" >&5
2951 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
2952 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2953 echo $ac_n "(cached) $ac_c" 1>&6
2954 else
2955 ac_save_LIBS="$LIBS"
2956 LIBS="-lipc $LIBS"
2957 cat > conftest.$ac_ext <<EOF
2958 #line 2959 "configure"
2959 #include "confdefs.h"
2960 /* Override any gcc2 internal prototype to avoid an error. */
2961 /* We use char because int might match the return type of a gcc2
2962 builtin and then its argument prototype would still apply. */
2963 char shmat();
2965 int main() {
2966 shmat()
2967 ; return 0; }
2969 if { (eval echo configure:2970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2970 rm -rf conftest*
2971 eval "ac_cv_lib_$ac_lib_var=yes"
2972 else
2973 echo "configure: failed program was:" >&5
2974 cat conftest.$ac_ext >&5
2975 rm -rf conftest*
2976 eval "ac_cv_lib_$ac_lib_var=no"
2978 rm -f conftest*
2979 LIBS="$ac_save_LIBS"
2982 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2983 echo "$ac_t""yes" 1>&6
2984 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
2985 else
2986 echo "$ac_t""no" 1>&6
2992 # Check for libraries that X11R6 Xt/Xaw programs need.
2993 ac_save_LDFLAGS="$LDFLAGS"
2994 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
2995 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
2996 # check for ICE first), but we must link in the order -lSM -lICE or
2997 # we get undefined symbols. So assume we have SM if we have ICE.
2998 # These have to be linked with before -lX11, unlike the other
2999 # libraries we check for below, so use a different variable.
3000 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
3001 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
3002 echo "configure:3003: checking for IceConnectionNumber in -lICE" >&5
3003 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
3004 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3005 echo $ac_n "(cached) $ac_c" 1>&6
3006 else
3007 ac_save_LIBS="$LIBS"
3008 LIBS="-lICE $LIBS"
3009 cat > conftest.$ac_ext <<EOF
3010 #line 3011 "configure"
3011 #include "confdefs.h"
3012 /* Override any gcc2 internal prototype to avoid an error. */
3013 /* We use char because int might match the return type of a gcc2
3014 builtin and then its argument prototype would still apply. */
3015 char IceConnectionNumber();
3017 int main() {
3018 IceConnectionNumber()
3019 ; return 0; }
3021 if { (eval echo configure:3022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3022 rm -rf conftest*
3023 eval "ac_cv_lib_$ac_lib_var=yes"
3024 else
3025 echo "configure: failed program was:" >&5
3026 cat conftest.$ac_ext >&5
3027 rm -rf conftest*
3028 eval "ac_cv_lib_$ac_lib_var=no"
3030 rm -f conftest*
3031 LIBS="$ac_save_LIBS"
3034 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3035 echo "$ac_t""yes" 1>&6
3036 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
3037 else
3038 echo "$ac_t""no" 1>&6
3041 LDFLAGS="$ac_save_LDFLAGS"
3046 XCFLAGS="$X_CFLAGS"
3048 XLFLAGS="$X_LIBS"
3050 XLIBS="$X_EXTRA_LIBS -lX11"
3052 echo $ac_n "checking for _Xsetlocale in -lX11""... $ac_c" 1>&6
3053 echo "configure:3054: checking for _Xsetlocale in -lX11" >&5
3054 ac_lib_var=`echo X11'_'_Xsetlocale | sed 'y%./+-%__p_%'`
3055 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3056 echo $ac_n "(cached) $ac_c" 1>&6
3057 else
3058 ac_save_LIBS="$LIBS"
3059 LIBS="-lX11 $XLFLAGS $XLIBS $LIBS"
3060 cat > conftest.$ac_ext <<EOF
3061 #line 3062 "configure"
3062 #include "confdefs.h"
3063 /* Override any gcc2 internal prototype to avoid an error. */
3064 /* We use char because int might match the return type of a gcc2
3065 builtin and then its argument prototype would still apply. */
3066 char _Xsetlocale();
3068 int main() {
3069 _Xsetlocale()
3070 ; return 0; }
3072 if { (eval echo configure:3073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3073 rm -rf conftest*
3074 eval "ac_cv_lib_$ac_lib_var=yes"
3075 else
3076 echo "configure: failed program was:" >&5
3077 cat conftest.$ac_ext >&5
3078 rm -rf conftest*
3079 eval "ac_cv_lib_$ac_lib_var=no"
3081 rm -f conftest*
3082 LIBS="$ac_save_LIBS"
3085 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3086 echo "$ac_t""yes" 1>&6
3087 X_LOCALE="-DX_LOCALE"
3088 else
3089 echo "$ac_t""no" 1>&6
3095 shape=yes
3096 # Check whether --enable-shape or --disable-shape was given.
3097 if test "${enable_shape+set}" = set; then
3098 enableval="$enable_shape"
3099 shape=$enableval
3100 else
3101 shape=yes
3105 added_xext=no
3107 if test "$shape" = yes; then
3108 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
3109 echo "configure:3110: checking for XShapeSelectInput in -lXext" >&5
3110 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
3111 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3112 echo $ac_n "(cached) $ac_c" 1>&6
3113 else
3114 ac_save_LIBS="$LIBS"
3115 LIBS="-lXext $XLFLAGS $XLIBS $LIBS"
3116 cat > conftest.$ac_ext <<EOF
3117 #line 3118 "configure"
3118 #include "confdefs.h"
3119 /* Override any gcc2 internal prototype to avoid an error. */
3120 /* We use char because int might match the return type of a gcc2
3121 builtin and then its argument prototype would still apply. */
3122 char XShapeSelectInput();
3124 int main() {
3125 XShapeSelectInput()
3126 ; return 0; }
3128 if { (eval echo configure:3129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3129 rm -rf conftest*
3130 eval "ac_cv_lib_$ac_lib_var=yes"
3131 else
3132 echo "configure: failed program was:" >&5
3133 cat conftest.$ac_ext >&5
3134 rm -rf conftest*
3135 eval "ac_cv_lib_$ac_lib_var=no"
3137 rm -f conftest*
3138 LIBS="$ac_save_LIBS"
3141 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3142 echo "$ac_t""yes" 1>&6
3143 XLIBS="-lXext $XLIBS"
3144 added_xext=yes SHAPE=-DSHAPE
3145 else
3146 echo "$ac_t""no" 1>&6
3147 shape=no
3155 shm=yes
3156 # Check whether --enable-shm or --disable-shm was given.
3157 if test "${enable_shm+set}" = set; then
3158 enableval="$enable_shm"
3159 shm=$enableval
3160 else
3161 shm=yes
3165 if test "$shm" = yes; then
3166 echo $ac_n "checking for XShmAttach in -lXext""... $ac_c" 1>&6
3167 echo "configure:3168: checking for XShmAttach in -lXext" >&5
3168 ac_lib_var=`echo Xext'_'XShmAttach | sed 'y%./+-%__p_%'`
3169 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3170 echo $ac_n "(cached) $ac_c" 1>&6
3171 else
3172 ac_save_LIBS="$LIBS"
3173 LIBS="-lXext $XLFLAGS $XLIBS $LIBS"
3174 cat > conftest.$ac_ext <<EOF
3175 #line 3176 "configure"
3176 #include "confdefs.h"
3177 /* Override any gcc2 internal prototype to avoid an error. */
3178 /* We use char because int might match the return type of a gcc2
3179 builtin and then its argument prototype would still apply. */
3180 char XShmAttach();
3182 int main() {
3183 XShmAttach()
3184 ; return 0; }
3186 if { (eval echo configure:3187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3187 rm -rf conftest*
3188 eval "ac_cv_lib_$ac_lib_var=yes"
3189 else
3190 echo "configure: failed program was:" >&5
3191 cat conftest.$ac_ext >&5
3192 rm -rf conftest*
3193 eval "ac_cv_lib_$ac_lib_var=no"
3195 rm -f conftest*
3196 LIBS="$ac_save_LIBS"
3199 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3200 echo "$ac_t""yes" 1>&6
3201 ok=yes
3202 else
3203 echo "$ac_t""no" 1>&6
3204 ok=no
3208 if test "$ok" = yes; then
3209 echo $ac_n "checking for shmget""... $ac_c" 1>&6
3210 echo "configure:3211: checking for shmget" >&5
3211 if eval "test \"`echo '$''{'ac_cv_func_shmget'+set}'`\" = set"; then
3212 echo $ac_n "(cached) $ac_c" 1>&6
3213 else
3214 cat > conftest.$ac_ext <<EOF
3215 #line 3216 "configure"
3216 #include "confdefs.h"
3217 /* System header to define __stub macros and hopefully few prototypes,
3218 which can conflict with char shmget(); below. */
3219 #include <assert.h>
3220 /* Override any gcc2 internal prototype to avoid an error. */
3221 /* We use char because int might match the return type of a gcc2
3222 builtin and then its argument prototype would still apply. */
3223 char shmget();
3225 int main() {
3227 /* The GNU C library defines this for functions which it implements
3228 to always fail with ENOSYS. Some functions are actually named
3229 something starting with __ and the normal name is an alias. */
3230 #if defined (__stub_shmget) || defined (__stub___shmget)
3231 choke me
3232 #else
3233 shmget();
3234 #endif
3236 ; return 0; }
3238 if { (eval echo configure:3239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3239 rm -rf conftest*
3240 eval "ac_cv_func_shmget=yes"
3241 else
3242 echo "configure: failed program was:" >&5
3243 cat conftest.$ac_ext >&5
3244 rm -rf conftest*
3245 eval "ac_cv_func_shmget=no"
3247 rm -f conftest*
3250 if eval "test \"`echo '$ac_cv_func_'shmget`\" = yes"; then
3251 echo "$ac_t""yes" 1>&6
3252 ok=yes
3253 else
3254 echo "$ac_t""no" 1>&6
3255 ok=no
3260 if test "$ok" = yes; then
3261 if test "$added_xext" = no; then
3262 XLIBS="-lXext $XLIBS"
3264 XSHM=-DXSHM
3271 # Check whether --with-gfx-libs or --without-gfx-libs was given.
3272 if test "${with_gfx_libs+set}" = set; then
3273 withval="$with_gfx_libs"
3274 GFXLIBS="$withval" GFX_LIB_PATH=$withval
3275 else
3276 GFXLIBS="" GFX_LIB_PATH=""
3280 # Check whether --with-gfx-incs or --without-gfx-incs was given.
3281 if test "${with_gfx_incs+set}" = set; then
3282 withval="$with_gfx_incs"
3283 GFXFLAGS="$withval" GFX_INC_PATH=$withval
3284 else
3285 GFXFLAGS="" GFX_INC_PATH=""
3292 xpm=yes
3293 # Check whether --enable-xpm or --disable-xpm was given.
3294 if test "${enable_xpm+set}" = set; then
3295 enableval="$enable_xpm"
3296 xpm=$enableval
3297 else
3298 xpm=yes
3302 if test "$xpm" = yes; then
3303 echo $ac_n "checking for XpmCreatePixmapFromData in -lXpm""... $ac_c" 1>&6
3304 echo "configure:3305: checking for XpmCreatePixmapFromData in -lXpm" >&5
3305 ac_lib_var=`echo Xpm'_'XpmCreatePixmapFromData | sed 'y%./+-%__p_%'`
3306 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3307 echo $ac_n "(cached) $ac_c" 1>&6
3308 else
3309 ac_save_LIBS="$LIBS"
3310 LIBS="-lXpm $GFX_INC_PATH $GFX_LIB_PATH $XLFLAGS $XLIBS $LIBS"
3311 cat > conftest.$ac_ext <<EOF
3312 #line 3313 "configure"
3313 #include "confdefs.h"
3314 /* Override any gcc2 internal prototype to avoid an error. */
3315 /* We use char because int might match the return type of a gcc2
3316 builtin and then its argument prototype would still apply. */
3317 char XpmCreatePixmapFromData();
3319 int main() {
3320 XpmCreatePixmapFromData()
3321 ; return 0; }
3323 if { (eval echo configure:3324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3324 rm -rf conftest*
3325 eval "ac_cv_lib_$ac_lib_var=yes"
3326 else
3327 echo "configure: failed program was:" >&5
3328 cat conftest.$ac_ext >&5
3329 rm -rf conftest*
3330 eval "ac_cv_lib_$ac_lib_var=no"
3332 rm -f conftest*
3333 LIBS="$ac_save_LIBS"
3336 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3337 echo "$ac_t""yes" 1>&6
3338 GFXFLAGS="$GFXFLAGS -DUSE_XPM" GFXLIBS="$GFXLIBS -lXpm"
3339 else
3340 echo "$ac_t""no" 1>&6
3355 echo $ac_n "checking for gzread in -lz""... $ac_c" 1>&6
3356 echo "configure:3357: checking for gzread in -lz" >&5
3357 ac_lib_var=`echo z'_'gzread | sed 'y%./+-%__p_%'`
3358 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3359 echo $ac_n "(cached) $ac_c" 1>&6
3360 else
3361 ac_save_LIBS="$LIBS"
3362 LIBS="-lz $GFX_INC_PATH $GFX_LIB_PATH $XLFLAGS $LIBS"
3363 cat > conftest.$ac_ext <<EOF
3364 #line 3365 "configure"
3365 #include "confdefs.h"
3366 /* Override any gcc2 internal prototype to avoid an error. */
3367 /* We use char because int might match the return type of a gcc2
3368 builtin and then its argument prototype would still apply. */
3369 char gzread();
3371 int main() {
3372 gzread()
3373 ; return 0; }
3375 if { (eval echo configure:3376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3376 rm -rf conftest*
3377 eval "ac_cv_lib_$ac_lib_var=yes"
3378 else
3379 echo "configure: failed program was:" >&5
3380 cat conftest.$ac_ext >&5
3381 rm -rf conftest*
3382 eval "ac_cv_lib_$ac_lib_var=no"
3384 rm -f conftest*
3385 LIBS="$ac_save_LIBS"
3388 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3389 echo "$ac_t""yes" 1>&6
3390 zlib=yes
3391 else
3392 echo "$ac_t""no" 1>&6
3393 zlib=no
3398 png=yes
3399 # Check whether --enable-png or --disable-png was given.
3400 if test "${enable_png+set}" = set; then
3401 enableval="$enable_png"
3402 png=$enableval
3403 else
3404 png=yes
3409 if test "$png" = yes; then
3410 if test "$zlib" = yes; then
3411 echo $ac_n "checking for png_get_valid in -lpng""... $ac_c" 1>&6
3412 echo "configure:3413: checking for png_get_valid in -lpng" >&5
3413 ac_lib_var=`echo png'_'png_get_valid | sed 'y%./+-%__p_%'`
3414 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3415 echo $ac_n "(cached) $ac_c" 1>&6
3416 else
3417 ac_save_LIBS="$LIBS"
3418 LIBS="-lpng $GFX_INC_PATH $GFX_LIB_PATH $XLFLAGS -lz -lm $LIBS"
3419 cat > conftest.$ac_ext <<EOF
3420 #line 3421 "configure"
3421 #include "confdefs.h"
3422 /* Override any gcc2 internal prototype to avoid an error. */
3423 /* We use char because int might match the return type of a gcc2
3424 builtin and then its argument prototype would still apply. */
3425 char png_get_valid();
3427 int main() {
3428 png_get_valid()
3429 ; return 0; }
3431 if { (eval echo configure:3432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3432 rm -rf conftest*
3433 eval "ac_cv_lib_$ac_lib_var=yes"
3434 else
3435 echo "configure: failed program was:" >&5
3436 cat conftest.$ac_ext >&5
3437 rm -rf conftest*
3438 eval "ac_cv_lib_$ac_lib_var=no"
3440 rm -f conftest*
3441 LIBS="$ac_save_LIBS"
3444 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3445 echo "$ac_t""yes" 1>&6
3446 GFXLIBS="$GFXLIBS -lpng -lz" GFXFLAGS="$GFXFLAGS -DUSE_PNG"
3447 supported_gfx="$supported_gfx PNG"
3448 else
3449 echo "$ac_t""no" 1>&6
3456 jpeg=yes
3457 # Check whether --enable-jpeg or --disable-jpeg was given.
3458 if test "${enable_jpeg+set}" = set; then
3459 enableval="$enable_jpeg"
3460 jpeg=$enableval
3461 else
3462 jpeg=yes
3466 if test "$jpeg" = yes; then
3467 echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6
3468 echo "configure:3469: checking for jpeg_destroy_compress in -ljpeg" >&5
3469 ac_lib_var=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'`
3470 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3471 echo $ac_n "(cached) $ac_c" 1>&6
3472 else
3473 ac_save_LIBS="$LIBS"
3474 LIBS="-ljpeg $GFX_INC_PATH $GFX_LIB_PATH $XLFLAGS $LIBS"
3475 cat > conftest.$ac_ext <<EOF
3476 #line 3477 "configure"
3477 #include "confdefs.h"
3478 /* Override any gcc2 internal prototype to avoid an error. */
3479 /* We use char because int might match the return type of a gcc2
3480 builtin and then its argument prototype would still apply. */
3481 char jpeg_destroy_compress();
3483 int main() {
3484 jpeg_destroy_compress()
3485 ; return 0; }
3487 if { (eval echo configure:3488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3488 rm -rf conftest*
3489 eval "ac_cv_lib_$ac_lib_var=yes"
3490 else
3491 echo "configure: failed program was:" >&5
3492 cat conftest.$ac_ext >&5
3493 rm -rf conftest*
3494 eval "ac_cv_lib_$ac_lib_var=no"
3496 rm -f conftest*
3497 LIBS="$ac_save_LIBS"
3500 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3501 echo "$ac_t""yes" 1>&6
3502 GFXLIBS="$GFXLIBS -ljpeg" GFXFLAGS="$GFXFLAGS -DUSE_JPEG"
3503 supported_gfx="$supported_gfx JPEG"
3504 else
3505 echo "$ac_t""no" 1>&6
3511 jpeg=yes
3512 # Check whether --enable-gif or --disable-gif was given.
3513 if test "${enable_gif+set}" = set; then
3514 enableval="$enable_gif"
3515 gif=$enableval
3516 else
3517 gif=yes
3521 if test "$gif" = yes; then
3522 retry=no
3523 echo $ac_n "checking for DGifOpenFileName in -lungif""... $ac_c" 1>&6
3524 echo "configure:3525: checking for DGifOpenFileName in -lungif" >&5
3525 ac_lib_var=`echo ungif'_'DGifOpenFileName | sed 'y%./+-%__p_%'`
3526 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3527 echo $ac_n "(cached) $ac_c" 1>&6
3528 else
3529 ac_save_LIBS="$LIBS"
3530 LIBS="-lungif $GFX_INC_PATH $GFX_LIB_PATH $XLFLAGS $LIBS"
3531 cat > conftest.$ac_ext <<EOF
3532 #line 3533 "configure"
3533 #include "confdefs.h"
3534 /* Override any gcc2 internal prototype to avoid an error. */
3535 /* We use char because int might match the return type of a gcc2
3536 builtin and then its argument prototype would still apply. */
3537 char DGifOpenFileName();
3539 int main() {
3540 DGifOpenFileName()
3541 ; return 0; }
3543 if { (eval echo configure:3544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3544 rm -rf conftest*
3545 eval "ac_cv_lib_$ac_lib_var=yes"
3546 else
3547 echo "configure: failed program was:" >&5
3548 cat conftest.$ac_ext >&5
3549 rm -rf conftest*
3550 eval "ac_cv_lib_$ac_lib_var=no"
3552 rm -f conftest*
3553 LIBS="$ac_save_LIBS"
3556 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3557 echo "$ac_t""yes" 1>&6
3558 GFXLIBS="$GFXLIBS -lungif" GFXFLAGS="$GFXFLAGS -DUSE_GIF"
3559 supported_gfx="$supported_gfx GIF"
3560 else
3561 echo "$ac_t""no" 1>&6
3562 retry=yes
3565 if test "$retry" = yes; then
3566 echo $ac_n "checking for DGifOpenFileName in -lgif""... $ac_c" 1>&6
3567 echo "configure:3568: checking for DGifOpenFileName in -lgif" >&5
3568 ac_lib_var=`echo gif'_'DGifOpenFileName | sed 'y%./+-%__p_%'`
3569 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3570 echo $ac_n "(cached) $ac_c" 1>&6
3571 else
3572 ac_save_LIBS="$LIBS"
3573 LIBS="-lgif $GFX_INC_PATH $GFX_LIB_PATH $XLFLAGS $LIBS"
3574 cat > conftest.$ac_ext <<EOF
3575 #line 3576 "configure"
3576 #include "confdefs.h"
3577 /* Override any gcc2 internal prototype to avoid an error. */
3578 /* We use char because int might match the return type of a gcc2
3579 builtin and then its argument prototype would still apply. */
3580 char DGifOpenFileName();
3582 int main() {
3583 DGifOpenFileName()
3584 ; return 0; }
3586 if { (eval echo configure:3587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3587 rm -rf conftest*
3588 eval "ac_cv_lib_$ac_lib_var=yes"
3589 else
3590 echo "configure: failed program was:" >&5
3591 cat conftest.$ac_ext >&5
3592 rm -rf conftest*
3593 eval "ac_cv_lib_$ac_lib_var=no"
3595 rm -f conftest*
3596 LIBS="$ac_save_LIBS"
3599 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3600 echo "$ac_t""yes" 1>&6
3601 GFXLIBS="$GFXLIBS -lgif" GFXFLAGS="$GFXFLAGS -DUSE_GIF"
3602 supported_gfx="$supported_gfx GIF"
3603 else
3604 echo "$ac_t""no" 1>&6
3612 # Check whether --enable-tiff or --disable-tiff was given.
3613 if test "${enable_tiff+set}" = set; then
3614 enableval="$enable_tiff"
3615 tif=$enableval
3616 else
3617 tif=yes
3622 # TIFF can optionally have JPEG and/or zlib support. Must find out
3623 # when they are supported so that correct library flags are passed during
3624 # detection and linkage
3627 # By default use xpm icons if tiff is not found.
3628 ICONEXT="xpm"
3631 if test "$tif" = yes; then
3632 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6
3633 echo "configure:3634: checking for TIFFGetVersion in -ltiff" >&5
3634 ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
3635 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3636 echo $ac_n "(cached) $ac_c" 1>&6
3637 else
3638 ac_save_LIBS="$LIBS"
3639 LIBS="-ltiff $GFX_INC_PATH $GFX_LIB_PATH $XLFLAGS $XLIBS $GFXLIBS -lm $LIBS"
3640 cat > conftest.$ac_ext <<EOF
3641 #line 3642 "configure"
3642 #include "confdefs.h"
3643 /* Override any gcc2 internal prototype to avoid an error. */
3644 /* We use char because int might match the return type of a gcc2
3645 builtin and then its argument prototype would still apply. */
3646 char TIFFGetVersion();
3648 int main() {
3649 TIFFGetVersion()
3650 ; return 0; }
3652 if { (eval echo configure:3653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3653 rm -rf conftest*
3654 eval "ac_cv_lib_$ac_lib_var=yes"
3655 else
3656 echo "configure: failed program was:" >&5
3657 cat conftest.$ac_ext >&5
3658 rm -rf conftest*
3659 eval "ac_cv_lib_$ac_lib_var=no"
3661 rm -f conftest*
3662 LIBS="$ac_save_LIBS"
3665 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3666 echo "$ac_t""yes" 1>&6
3667 GFXFLAGS="$GFXFLAGS -DUSE_TIFF" GFXLIBS="-ltiff $GFXLIBS"
3668 ICONEXT="tiff"
3669 else
3670 echo "$ac_t""no" 1>&6
3673 if test ! "$ICONEXT" = "tiff"; then
3674 if test "$zlib" = "yes"; then
3675 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6
3676 echo "configure:3677: checking for TIFFGetVersion in -ltiff" >&5
3677 ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
3678 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3679 echo $ac_n "(cached) $ac_c" 1>&6
3680 else
3681 ac_save_LIBS="$LIBS"
3682 LIBS="-ltiff $GFX_INC_PATH $GFX_LIB_PATH $XLFLAGS $XLIBS $GFXLIBS -lz -lm $LIBS"
3683 cat > conftest.$ac_ext <<EOF
3684 #line 3685 "configure"
3685 #include "confdefs.h"
3686 /* Override any gcc2 internal prototype to avoid an error. */
3687 /* We use char because int might match the return type of a gcc2
3688 builtin and then its argument prototype would still apply. */
3689 char TIFFGetVersion();
3691 int main() {
3692 TIFFGetVersion()
3693 ; return 0; }
3695 if { (eval echo configure:3696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3696 rm -rf conftest*
3697 eval "ac_cv_lib_$ac_lib_var=yes"
3698 else
3699 echo "configure: failed program was:" >&5
3700 cat conftest.$ac_ext >&5
3701 rm -rf conftest*
3702 eval "ac_cv_lib_$ac_lib_var=no"
3704 rm -f conftest*
3705 LIBS="$ac_save_LIBS"
3708 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3709 echo "$ac_t""yes" 1>&6
3710 GFXFLAGS="$GFXFLAGS -DUSE_TIFF" GFXLIBS="-ltiff -lz $GFXLIBS"
3711 ICONEXT="tiff"
3712 else
3713 echo "$ac_t""no" 1>&6
3719 if test ! "$ICONEXT" = "tiff"; then
3720 echo $ac_n "checking for TIFFGetVersion in -ltiff34""... $ac_c" 1>&6
3721 echo "configure:3722: checking for TIFFGetVersion in -ltiff34" >&5
3722 ac_lib_var=`echo tiff34'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
3723 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3724 echo $ac_n "(cached) $ac_c" 1>&6
3725 else
3726 ac_save_LIBS="$LIBS"
3727 LIBS="-ltiff34 $GFX_INC_PATH $GFX_LIB_PATH $XLFLAGS $XLIBS $GFXLIBS -lm $LIBS"
3728 cat > conftest.$ac_ext <<EOF
3729 #line 3730 "configure"
3730 #include "confdefs.h"
3731 /* Override any gcc2 internal prototype to avoid an error. */
3732 /* We use char because int might match the return type of a gcc2
3733 builtin and then its argument prototype would still apply. */
3734 char TIFFGetVersion();
3736 int main() {
3737 TIFFGetVersion()
3738 ; return 0; }
3740 if { (eval echo configure:3741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3741 rm -rf conftest*
3742 eval "ac_cv_lib_$ac_lib_var=yes"
3743 else
3744 echo "configure: failed program was:" >&5
3745 cat conftest.$ac_ext >&5
3746 rm -rf conftest*
3747 eval "ac_cv_lib_$ac_lib_var=no"
3749 rm -f conftest*
3750 LIBS="$ac_save_LIBS"
3753 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3754 echo "$ac_t""yes" 1>&6
3755 GFXFLAGS="$GFXFLAGS -DUSE_TIFF" GFXLIBS="-ltiff34 $GFXLIBS"
3756 ICONEXT="tiff"
3757 else
3758 echo "$ac_t""no" 1>&6
3773 PLPATH=`pwd`/libPropList
3776 if test -f $PLPATH/libPropList.a; then
3777 echo Using compiled libPropList
3778 needtobuild=no
3779 LIBPL_LIBS="-L$PLPATH -lPropList"
3780 LIBPL_INC_PATH="-I$PLPATH"
3781 else
3782 echo $ac_n "checking for PLGetString in -lPropList""... $ac_c" 1>&6
3783 echo "configure:3784: checking for PLGetString in -lPropList" >&5
3784 ac_lib_var=`echo PropList'_'PLGetString | sed 'y%./+-%__p_%'`
3785 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3786 echo $ac_n "(cached) $ac_c" 1>&6
3787 else
3788 ac_save_LIBS="$LIBS"
3789 LIBS="-lPropList $LIBS"
3790 cat > conftest.$ac_ext <<EOF
3791 #line 3792 "configure"
3792 #include "confdefs.h"
3793 /* Override any gcc2 internal prototype to avoid an error. */
3794 /* We use char because int might match the return type of a gcc2
3795 builtin and then its argument prototype would still apply. */
3796 char PLGetString();
3798 int main() {
3799 PLGetString()
3800 ; return 0; }
3802 if { (eval echo configure:3803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3803 rm -rf conftest*
3804 eval "ac_cv_lib_$ac_lib_var=yes"
3805 else
3806 echo "configure: failed program was:" >&5
3807 cat conftest.$ac_ext >&5
3808 rm -rf conftest*
3809 eval "ac_cv_lib_$ac_lib_var=no"
3811 rm -f conftest*
3812 LIBS="$ac_save_LIBS"
3815 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3816 echo "$ac_t""yes" 1>&6
3817 LIBPL_LIBS=-lPropList LIBPL_INC_PATH="" needtobuild=no
3818 else
3819 echo "$ac_t""no" 1>&6
3820 LIBPL_LIBS="-L$PLPATH -lPropList"
3821 LIBPL_INC_PATH="-I$PLPATH"
3822 needtobuild=yes
3828 if test "$needtobuild" = yes; then
3829 if test -f libPropList/libPropList.a; then
3830 echo "using included libPropList"
3831 else
3832 echo "********** WARNING *************"
3833 echo "libPropList is not installed in your system."
3834 echo "You need to build it before building WindowMaker (if you already"
3835 echo "did that, remove config.cache and rerun configure)."
3836 echo "Please read the INSTALL file for detailed instructions."
3837 echo "Press <Return> to continue configuring WindowMaker or"
3838 echo "type b and <Return> to build it now."
3839 read foo
3840 if test "$foo" = b; then
3841 echo
3842 echo "Building libPropList..."
3843 echo
3844 if test ! -d libPropList; then
3845 gzip -d -c libPropList.tar.gz | tar xf -
3847 ok=no
3848 if (cd libPropList; ./configure); then
3849 if (cd libPropList; make); then
3850 ok=yes
3853 if test "$ok" = no; then
3854 echo "********** WARNING **********"
3855 echo "An error occurred while building libPropList"
3856 echo "Please build it manually."
3857 echo "Press <Return> to continue."
3858 read foo
3860 echo
3861 echo "resuming WindowMaker configuration..."
3862 echo
3871 # Check whether --enable-debug or --disable-debug was given.
3872 if test "${enable_debug+set}" = set; then
3873 enableval="$enable_debug"
3875 else
3876 enable_debug=no
3880 if test "$enable_debug" = yes; then
3881 DFLAGS="-g -DDEBUG"
3882 # Efence makes things too slow. Add it by hand in the Makefiles
3883 # if it is really needed.
3884 # AC_CHECK_LIB(efence, malloc, LIBS="$LIBS -lefence")
3889 # Check whether --enable-sound or --disable-sound was given.
3890 if test "${enable_sound+set}" = set; then
3891 enableval="$enable_sound"
3893 else
3894 enable_sound=no
3897 if test "$enable_sound" = yes; then
3898 SOUND="#define WMSOUND"
3899 else
3900 SOUND="#undef WMSOUND"
3905 # AC_PREFIX_PROGRAM(wmaker)
3907 if test "${prefix}" = "NONE"; then
3908 prefix="/usr/local"
3910 if test "${exec_prefix}" = "NONE"; then
3911 exec_prefix="${prefix}"
3914 # Check whether --with-pixmapdir or --without-pixmapdir was given.
3915 if test "${with_pixmapdir+set}" = set; then
3916 withval="$with_pixmapdir"
3921 if test "x$with_pixmapdir" != "x"; then
3922 pixmapdir=$with_pixmapdir
3923 else
3924 pixmapdir="${datadir}/pixmaps"
3931 gnustepdir="${prefix}/GNUstep"
3933 if test "x$GNUSTEP_LOCAL_ROOT" != "x" ; then
3934 gnustepdir=`echo "$GNUSTEP_LOCAL_ROOT" | sed -e "s%${prefix}%\${prefix}%"`
3937 appsdir=$gnustepdir/Apps
3939 wprefsdir=$appsdir/WPrefs.app
3944 # Check whether --enable-single-icon or --disable-single-icon was given.
3945 if test "${enable_single_icon+set}" = set; then
3946 enableval="$enable_single_icon"
3947 if test "$enableval" = yes; then
3948 REDUCE_APPICONS="#define REDUCE_APPICONS"
3949 else
3950 REDUCE_APPICONS="#undef REDUCE_APPICONS"
3952 else
3953 REDUCE_APPICONS="#undef REDUCE_APPICONS"
3959 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
3960 echo "configure:3961: checking for sys/wait.h that is POSIX.1 compatible" >&5
3961 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
3962 echo $ac_n "(cached) $ac_c" 1>&6
3963 else
3964 cat > conftest.$ac_ext <<EOF
3965 #line 3966 "configure"
3966 #include "confdefs.h"
3967 #include <sys/types.h>
3968 #include <sys/wait.h>
3969 #ifndef WEXITSTATUS
3970 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3971 #endif
3972 #ifndef WIFEXITED
3973 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3974 #endif
3975 int main() {
3976 int s;
3977 wait (&s);
3978 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3979 ; return 0; }
3981 if { (eval echo configure:3982: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3982 rm -rf conftest*
3983 ac_cv_header_sys_wait_h=yes
3984 else
3985 echo "configure: failed program was:" >&5
3986 cat conftest.$ac_ext >&5
3987 rm -rf conftest*
3988 ac_cv_header_sys_wait_h=no
3990 rm -f conftest*
3993 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
3994 if test $ac_cv_header_sys_wait_h = yes; then
3995 cat >> confdefs.h <<\EOF
3996 #define HAVE_SYS_WAIT_H 1
4001 for ac_hdr in fcntl.h limits.h sys/ioctl.h sys/time.h sys/types.h libintl.h sys/select.h
4003 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4004 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4005 echo "configure:4006: checking for $ac_hdr" >&5
4006 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4007 echo $ac_n "(cached) $ac_c" 1>&6
4008 else
4009 cat > conftest.$ac_ext <<EOF
4010 #line 4011 "configure"
4011 #include "confdefs.h"
4012 #include <$ac_hdr>
4014 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4015 { (eval echo configure:4016: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4016 ac_err=`grep -v '^ *+' conftest.out`
4017 if test -z "$ac_err"; then
4018 rm -rf conftest*
4019 eval "ac_cv_header_$ac_safe=yes"
4020 else
4021 echo "$ac_err" >&5
4022 echo "configure: failed program was:" >&5
4023 cat conftest.$ac_ext >&5
4024 rm -rf conftest*
4025 eval "ac_cv_header_$ac_safe=no"
4027 rm -f conftest*
4029 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4030 echo "$ac_t""yes" 1>&6
4031 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4032 cat >> confdefs.h <<EOF
4033 #define $ac_tr_hdr 1
4036 else
4037 echo "$ac_t""no" 1>&6
4039 done
4044 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
4045 echo "configure:4046: checking for sys_siglist declaration in signal.h or unistd.h" >&5
4046 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
4047 echo $ac_n "(cached) $ac_c" 1>&6
4048 else
4049 cat > conftest.$ac_ext <<EOF
4050 #line 4051 "configure"
4051 #include "confdefs.h"
4052 #include <sys/types.h>
4053 #include <signal.h>
4054 /* NetBSD declares sys_siglist in unistd.h. */
4055 #ifdef HAVE_UNISTD_H
4056 #include <unistd.h>
4057 #endif
4058 int main() {
4059 char *msg = *(sys_siglist + 1);
4060 ; return 0; }
4062 if { (eval echo configure:4063: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4063 rm -rf conftest*
4064 ac_cv_decl_sys_siglist=yes
4065 else
4066 echo "configure: failed program was:" >&5
4067 cat conftest.$ac_ext >&5
4068 rm -rf conftest*
4069 ac_cv_decl_sys_siglist=no
4071 rm -f conftest*
4074 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
4075 if test $ac_cv_decl_sys_siglist = yes; then
4076 cat >> confdefs.h <<\EOF
4077 #define SYS_SIGLIST_DECLARED 1
4082 echo $ac_n "checking for working const""... $ac_c" 1>&6
4083 echo "configure:4084: checking for working const" >&5
4084 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
4085 echo $ac_n "(cached) $ac_c" 1>&6
4086 else
4087 cat > conftest.$ac_ext <<EOF
4088 #line 4089 "configure"
4089 #include "confdefs.h"
4091 int main() {
4093 /* Ultrix mips cc rejects this. */
4094 typedef int charset[2]; const charset x;
4095 /* SunOS 4.1.1 cc rejects this. */
4096 char const *const *ccp;
4097 char **p;
4098 /* NEC SVR4.0.2 mips cc rejects this. */
4099 struct point {int x, y;};
4100 static struct point const zero = {0,0};
4101 /* AIX XL C 1.02.0.0 rejects this.
4102 It does not let you subtract one const X* pointer from another in an arm
4103 of an if-expression whose if-part is not a constant expression */
4104 const char *g = "string";
4105 ccp = &g + (g ? g-g : 0);
4106 /* HPUX 7.0 cc rejects these. */
4107 ++ccp;
4108 p = (char**) ccp;
4109 ccp = (char const *const *) p;
4110 { /* SCO 3.2v4 cc rejects this. */
4111 char *t;
4112 char const *s = 0 ? (char *) 0 : (char const *) 0;
4114 *t++ = 0;
4116 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4117 int x[] = {25, 17};
4118 const int *foo = &x[0];
4119 ++foo;
4121 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4122 typedef const int *iptr;
4123 iptr p = 0;
4124 ++p;
4126 { /* AIX XL C 1.02.0.0 rejects this saying
4127 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4128 struct s { int j; const int *ap[3]; };
4129 struct s *b; b->j = 5;
4131 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4132 const int foo = 10;
4135 ; return 0; }
4137 if { (eval echo configure:4138: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4138 rm -rf conftest*
4139 ac_cv_c_const=yes
4140 else
4141 echo "configure: failed program was:" >&5
4142 cat conftest.$ac_ext >&5
4143 rm -rf conftest*
4144 ac_cv_c_const=no
4146 rm -f conftest*
4149 echo "$ac_t""$ac_cv_c_const" 1>&6
4150 if test $ac_cv_c_const = no; then
4151 cat >> confdefs.h <<\EOF
4152 #define const
4157 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4158 echo "configure:4159: checking for ANSI C header files" >&5
4159 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
4160 echo $ac_n "(cached) $ac_c" 1>&6
4161 else
4162 cat > conftest.$ac_ext <<EOF
4163 #line 4164 "configure"
4164 #include "confdefs.h"
4165 #include <stdlib.h>
4166 #include <stdarg.h>
4167 #include <string.h>
4168 #include <float.h>
4170 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4171 { (eval echo configure:4172: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4172 ac_err=`grep -v '^ *+' conftest.out`
4173 if test -z "$ac_err"; then
4174 rm -rf conftest*
4175 ac_cv_header_stdc=yes
4176 else
4177 echo "$ac_err" >&5
4178 echo "configure: failed program was:" >&5
4179 cat conftest.$ac_ext >&5
4180 rm -rf conftest*
4181 ac_cv_header_stdc=no
4183 rm -f conftest*
4185 if test $ac_cv_header_stdc = yes; then
4186 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4187 cat > conftest.$ac_ext <<EOF
4188 #line 4189 "configure"
4189 #include "confdefs.h"
4190 #include <string.h>
4192 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4193 egrep "memchr" >/dev/null 2>&1; then
4195 else
4196 rm -rf conftest*
4197 ac_cv_header_stdc=no
4199 rm -f conftest*
4203 if test $ac_cv_header_stdc = yes; then
4204 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4205 cat > conftest.$ac_ext <<EOF
4206 #line 4207 "configure"
4207 #include "confdefs.h"
4208 #include <stdlib.h>
4210 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4211 egrep "free" >/dev/null 2>&1; then
4213 else
4214 rm -rf conftest*
4215 ac_cv_header_stdc=no
4217 rm -f conftest*
4221 if test $ac_cv_header_stdc = yes; then
4222 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4223 if test "$cross_compiling" = yes; then
4225 else
4226 cat > conftest.$ac_ext <<EOF
4227 #line 4228 "configure"
4228 #include "confdefs.h"
4229 #include <ctype.h>
4230 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4231 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4232 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4233 int main () { int i; for (i = 0; i < 256; i++)
4234 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4235 exit (0); }
4238 if { (eval echo configure:4239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4239 then
4241 else
4242 echo "configure: failed program was:" >&5
4243 cat conftest.$ac_ext >&5
4244 rm -fr conftest*
4245 ac_cv_header_stdc=no
4247 rm -fr conftest*
4253 echo "$ac_t""$ac_cv_header_stdc" 1>&6
4254 if test $ac_cv_header_stdc = yes; then
4255 cat >> confdefs.h <<\EOF
4256 #define STDC_HEADERS 1
4261 echo $ac_n "checking for size_t""... $ac_c" 1>&6
4262 echo "configure:4263: checking for size_t" >&5
4263 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
4264 echo $ac_n "(cached) $ac_c" 1>&6
4265 else
4266 cat > conftest.$ac_ext <<EOF
4267 #line 4268 "configure"
4268 #include "confdefs.h"
4269 #include <sys/types.h>
4270 #if STDC_HEADERS
4271 #include <stdlib.h>
4272 #include <stddef.h>
4273 #endif
4275 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4276 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4277 rm -rf conftest*
4278 ac_cv_type_size_t=yes
4279 else
4280 rm -rf conftest*
4281 ac_cv_type_size_t=no
4283 rm -f conftest*
4286 echo "$ac_t""$ac_cv_type_size_t" 1>&6
4287 if test $ac_cv_type_size_t = no; then
4288 cat >> confdefs.h <<\EOF
4289 #define size_t unsigned
4294 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
4295 echo "configure:4296: checking for pid_t" >&5
4296 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
4297 echo $ac_n "(cached) $ac_c" 1>&6
4298 else
4299 cat > conftest.$ac_ext <<EOF
4300 #line 4301 "configure"
4301 #include "confdefs.h"
4302 #include <sys/types.h>
4303 #if STDC_HEADERS
4304 #include <stdlib.h>
4305 #include <stddef.h>
4306 #endif
4308 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4309 egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4310 rm -rf conftest*
4311 ac_cv_type_pid_t=yes
4312 else
4313 rm -rf conftest*
4314 ac_cv_type_pid_t=no
4316 rm -f conftest*
4319 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
4320 if test $ac_cv_type_pid_t = no; then
4321 cat >> confdefs.h <<\EOF
4322 #define pid_t int
4327 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4328 echo "configure:4329: checking whether time.h and sys/time.h may both be included" >&5
4329 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
4330 echo $ac_n "(cached) $ac_c" 1>&6
4331 else
4332 cat > conftest.$ac_ext <<EOF
4333 #line 4334 "configure"
4334 #include "confdefs.h"
4335 #include <sys/types.h>
4336 #include <sys/time.h>
4337 #include <time.h>
4338 int main() {
4339 struct tm *tp;
4340 ; return 0; }
4342 if { (eval echo configure:4343: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4343 rm -rf conftest*
4344 ac_cv_header_time=yes
4345 else
4346 echo "configure: failed program was:" >&5
4347 cat conftest.$ac_ext >&5
4348 rm -rf conftest*
4349 ac_cv_header_time=no
4351 rm -f conftest*
4354 echo "$ac_t""$ac_cv_header_time" 1>&6
4355 if test $ac_cv_header_time = yes; then
4356 cat >> confdefs.h <<\EOF
4357 #define TIME_WITH_SYS_TIME 1
4364 if test "$GCC" = "yes"; then
4365 # ceflagues=""
4366 # for i in $CFLAGS; do
4367 # if test "$i" != "-g" ; then
4368 # ceflagues="$ceflagues $i"
4369 # fi
4370 # fi
4371 # CFLAGS="$ceflagues -Wall -Wno-implicit-int -finline-functions"
4372 CFLAGS="$CFLAGS -Wall -Wno-implicit-int -Wcast-align"
4378 trap '' 1 2 15
4379 cat > confcache <<\EOF
4380 # This file is a shell script that caches the results of configure
4381 # tests run on this system so they can be shared between configure
4382 # scripts and configure runs. It is not useful on other systems.
4383 # If it contains results you don't want to keep, you may remove or edit it.
4385 # By default, configure uses ./config.cache as the cache file,
4386 # creating it if it does not exist already. You can give configure
4387 # the --cache-file=FILE option to use a different cache file; that is
4388 # what configure does when it calls configure scripts in
4389 # subdirectories, so they share the cache.
4390 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4391 # config.status only pays attention to the cache file if you give it the
4392 # --recheck option to rerun configure.
4395 # The following way of writing the cache mishandles newlines in values,
4396 # but we know of no workaround that is simple, portable, and efficient.
4397 # So, don't put newlines in cache variables' values.
4398 # Ultrix sh set writes to stderr and can't be redirected directly,
4399 # and sets the high bit in the cache file unless we assign to the vars.
4400 (set) 2>&1 |
4401 case `(ac_space=' '; set) 2>&1` in
4402 *ac_space=\ *)
4403 # `set' does not quote correctly, so add quotes (double-quote substitution
4404 # turns \\\\ into \\, and sed turns \\ into \).
4405 sed -n \
4406 -e "s/'/'\\\\''/g" \
4407 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4410 # `set' quotes correctly as required by POSIX, so do not add quotes.
4411 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4413 esac >> confcache
4414 if cmp -s $cache_file confcache; then
4416 else
4417 if test -w $cache_file; then
4418 echo "updating cache $cache_file"
4419 cat confcache > $cache_file
4420 else
4421 echo "not updating unwritable cache $cache_file"
4424 rm -f confcache
4426 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4428 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4429 # Let make expand exec_prefix.
4430 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4432 # Any assignment to VPATH causes Sun make to only execute
4433 # the first set of double-colon rules, so remove it if not needed.
4434 # If there is a colon in the path, we need to keep it.
4435 if test "x$srcdir" = x.; then
4436 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4439 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4441 DEFS=-DHAVE_CONFIG_H
4443 # Without the "./", some shells look in PATH for config.status.
4444 : ${CONFIG_STATUS=./config.status}
4446 echo creating $CONFIG_STATUS
4447 rm -f $CONFIG_STATUS
4448 cat > $CONFIG_STATUS <<EOF
4449 #! /bin/sh
4450 # Generated automatically by configure.
4451 # Run this file to recreate the current configuration.
4452 # This directory was configured as follows,
4453 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4455 # $0 $ac_configure_args
4457 # Compiler output produced by configure, useful for debugging
4458 # configure, is in ./config.log if it exists.
4460 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4461 for ac_option
4463 case "\$ac_option" in
4464 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4465 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4466 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4467 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4468 echo "$CONFIG_STATUS generated by autoconf version 2.12"
4469 exit 0 ;;
4470 -help | --help | --hel | --he | --h)
4471 echo "\$ac_cs_usage"; exit 0 ;;
4472 *) echo "\$ac_cs_usage"; exit 1 ;;
4473 esac
4474 done
4476 ac_given_srcdir=$srcdir
4477 ac_given_INSTALL="$INSTALL"
4479 trap 'rm -fr `echo "Makefile po/Makefile util/Makefile test/Makefile wmlib/Makefile \
4480 WINGs/Makefile WINGs/Resources/Makefile src/Makefile src/wconfig.h \
4481 wrlib/Makefile doc/Makefile WindowMaker/Makefile \
4482 WindowMaker/Defaults/Makefile WindowMaker/Styles/Makefile \
4483 WindowMaker/Themes/Makefile WindowMaker/Backgrounds/Makefile \
4484 WindowMaker/Pixmaps/Makefile WindowMaker/Icons/Makefile \
4485 WindowMaker/IconSets/Makefile \
4486 WindowMaker/Sounds/Makefile \
4487 WPrefs.app/Makefile WPrefs.app/tiff/Makefile WPrefs.app/xpm/Makefile \
4488 WPrefs.app/po/Makefile src/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4490 cat >> $CONFIG_STATUS <<EOF
4492 # Protect against being on the right side of a sed subst in config.status.
4493 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4494 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4495 $ac_vpsub
4496 $extrasub
4497 s%@CFLAGS@%$CFLAGS%g
4498 s%@CPPFLAGS@%$CPPFLAGS%g
4499 s%@CXXFLAGS@%$CXXFLAGS%g
4500 s%@DEFS@%$DEFS%g
4501 s%@LDFLAGS@%$LDFLAGS%g
4502 s%@LIBS@%$LIBS%g
4503 s%@exec_prefix@%$exec_prefix%g
4504 s%@prefix@%$prefix%g
4505 s%@program_transform_name@%$program_transform_name%g
4506 s%@bindir@%$bindir%g
4507 s%@sbindir@%$sbindir%g
4508 s%@libexecdir@%$libexecdir%g
4509 s%@datadir@%$datadir%g
4510 s%@sysconfdir@%$sysconfdir%g
4511 s%@sharedstatedir@%$sharedstatedir%g
4512 s%@localstatedir@%$localstatedir%g
4513 s%@libdir@%$libdir%g
4514 s%@includedir@%$includedir%g
4515 s%@oldincludedir@%$oldincludedir%g
4516 s%@infodir@%$infodir%g
4517 s%@mandir@%$mandir%g
4518 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4519 s%@INSTALL_DATA@%$INSTALL_DATA%g
4520 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4521 s%@PACKAGE@%$PACKAGE%g
4522 s%@VERSION@%$VERSION%g
4523 s%@ACLOCAL@%$ACLOCAL%g
4524 s%@AUTOCONF@%$AUTOCONF%g
4525 s%@AUTOMAKE@%$AUTOMAKE%g
4526 s%@AUTOHEADER@%$AUTOHEADER%g
4527 s%@MAKEINFO@%$MAKEINFO%g
4528 s%@SET_MAKE@%$SET_MAKE%g
4529 s%@host@%$host%g
4530 s%@host_alias@%$host_alias%g
4531 s%@host_cpu@%$host_cpu%g
4532 s%@host_vendor@%$host_vendor%g
4533 s%@host_os@%$host_os%g
4534 s%@CC@%$CC%g
4535 s%@RANLIB@%$RANLIB%g
4536 s%@LN_S@%$LN_S%g
4537 s%@CPP@%$CPP%g
4538 s%@ALLOCA@%$ALLOCA%g
4539 s%@CPP_PATH@%$CPP_PATH%g
4540 s%@XGETTEXT@%$XGETTEXT%g
4541 s%@I18N_MB@%$I18N_MB%g
4542 s%@I18N@%$I18N%g
4543 s%@INTLIBS@%$INTLIBS%g
4544 s%@NLSDIR@%$NLSDIR%g
4545 s%@MOFILES@%$MOFILES%g
4546 s%@WPMOFILES@%$WPMOFILES%g
4547 s%@X_CFLAGS@%$X_CFLAGS%g
4548 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
4549 s%@X_LIBS@%$X_LIBS%g
4550 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
4551 s%@X_LOCALE@%$X_LOCALE%g
4552 s%@SHAPE@%$SHAPE%g
4553 s%@XSHM@%$XSHM%g
4554 s%@XLIBS@%$XLIBS%g
4555 s%@XCFLAGS@%$XCFLAGS%g
4556 s%@XLFLAGS@%$XLFLAGS%g
4557 s%@GFXFLAGS@%$GFXFLAGS%g
4558 s%@GFXLIBS@%$GFXLIBS%g
4559 s%@ICONEXT@%$ICONEXT%g
4560 s%@LIBPL_LIBS@%$LIBPL_LIBS%g
4561 s%@LIBPL_INC_PATH@%$LIBPL_INC_PATH%g
4562 s%@DFLAGS@%$DFLAGS%g
4563 s%@SOUND@%$SOUND%g
4564 s%@pixmapdir@%$pixmapdir%g
4565 s%@wprefsdir@%$wprefsdir%g
4566 s%@REDUCE_APPICONS@%$REDUCE_APPICONS%g
4568 CEOF
4571 cat >> $CONFIG_STATUS <<\EOF
4573 # Split the substitutions into bite-sized pieces for seds with
4574 # small command number limits, like on Digital OSF/1 and HP-UX.
4575 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4576 ac_file=1 # Number of current file.
4577 ac_beg=1 # First line for current file.
4578 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4579 ac_more_lines=:
4580 ac_sed_cmds=""
4581 while $ac_more_lines; do
4582 if test $ac_beg -gt 1; then
4583 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4584 else
4585 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4587 if test ! -s conftest.s$ac_file; then
4588 ac_more_lines=false
4589 rm -f conftest.s$ac_file
4590 else
4591 if test -z "$ac_sed_cmds"; then
4592 ac_sed_cmds="sed -f conftest.s$ac_file"
4593 else
4594 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4596 ac_file=`expr $ac_file + 1`
4597 ac_beg=$ac_end
4598 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4600 done
4601 if test -z "$ac_sed_cmds"; then
4602 ac_sed_cmds=cat
4606 cat >> $CONFIG_STATUS <<EOF
4608 CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile util/Makefile test/Makefile wmlib/Makefile \
4609 WINGs/Makefile WINGs/Resources/Makefile src/Makefile src/wconfig.h \
4610 wrlib/Makefile doc/Makefile WindowMaker/Makefile \
4611 WindowMaker/Defaults/Makefile WindowMaker/Styles/Makefile \
4612 WindowMaker/Themes/Makefile WindowMaker/Backgrounds/Makefile \
4613 WindowMaker/Pixmaps/Makefile WindowMaker/Icons/Makefile \
4614 WindowMaker/IconSets/Makefile \
4615 WindowMaker/Sounds/Makefile \
4616 WPrefs.app/Makefile WPrefs.app/tiff/Makefile WPrefs.app/xpm/Makefile \
4617 WPrefs.app/po/Makefile "}
4619 cat >> $CONFIG_STATUS <<\EOF
4620 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4621 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4622 case "$ac_file" in
4623 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4624 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4625 *) ac_file_in="${ac_file}.in" ;;
4626 esac
4628 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4630 # Remove last slash and all that follows it. Not all systems have dirname.
4631 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4632 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4633 # The file is in a subdirectory.
4634 test ! -d "$ac_dir" && mkdir "$ac_dir"
4635 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4636 # A "../" for each directory in $ac_dir_suffix.
4637 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4638 else
4639 ac_dir_suffix= ac_dots=
4642 case "$ac_given_srcdir" in
4643 .) srcdir=.
4644 if test -z "$ac_dots"; then top_srcdir=.
4645 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4646 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4647 *) # Relative path.
4648 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4649 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4650 esac
4652 case "$ac_given_INSTALL" in
4653 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4654 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4655 esac
4657 echo creating "$ac_file"
4658 rm -f "$ac_file"
4659 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4660 case "$ac_file" in
4661 *Makefile*) ac_comsub="1i\\
4662 # $configure_input" ;;
4663 *) ac_comsub= ;;
4664 esac
4666 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4667 sed -e "$ac_comsub
4668 s%@configure_input@%$configure_input%g
4669 s%@srcdir@%$srcdir%g
4670 s%@top_srcdir@%$top_srcdir%g
4671 s%@INSTALL@%$INSTALL%g
4672 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4673 fi; done
4674 rm -f conftest.s*
4676 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4677 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4679 # ac_d sets the value in "#define NAME VALUE" lines.
4680 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4681 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4682 ac_dC='\3'
4683 ac_dD='%g'
4684 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4685 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4686 ac_uB='\([ ]\)%\1#\2define\3'
4687 ac_uC=' '
4688 ac_uD='\4%g'
4689 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4690 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4691 ac_eB='$%\1#\2define\3'
4692 ac_eC=' '
4693 ac_eD='%g'
4695 if test "${CONFIG_HEADERS+set}" != set; then
4697 cat >> $CONFIG_STATUS <<EOF
4698 CONFIG_HEADERS="src/config.h"
4700 cat >> $CONFIG_STATUS <<\EOF
4702 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4703 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4704 case "$ac_file" in
4705 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4706 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4707 *) ac_file_in="${ac_file}.in" ;;
4708 esac
4710 echo creating $ac_file
4712 rm -f conftest.frag conftest.in conftest.out
4713 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4714 cat $ac_file_inputs > conftest.in
4718 # Transform confdefs.h into a sed script conftest.vals that substitutes
4719 # the proper values into config.h.in to produce config.h. And first:
4720 # Protect against being on the right side of a sed subst in config.status.
4721 # Protect against being in an unquoted here document in config.status.
4722 rm -f conftest.vals
4723 cat > conftest.hdr <<\EOF
4724 s/[\\&%]/\\&/g
4725 s%[\\$`]%\\&%g
4726 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4727 s%ac_d%ac_u%gp
4728 s%ac_u%ac_e%gp
4730 sed -n -f conftest.hdr confdefs.h > conftest.vals
4731 rm -f conftest.hdr
4733 # This sed command replaces #undef with comments. This is necessary, for
4734 # example, in the case of _POSIX_SOURCE, which is predefined and required
4735 # on some systems where configure will not decide to define it.
4736 cat >> conftest.vals <<\EOF
4737 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4740 # Break up conftest.vals because some shells have a limit on
4741 # the size of here documents, and old seds have small limits too.
4743 rm -f conftest.tail
4744 while :
4746 ac_lines=`grep -c . conftest.vals`
4747 # grep -c gives empty output for an empty file on some AIX systems.
4748 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4749 # Write a limited-size here document to conftest.frag.
4750 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4751 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4752 echo 'CEOF
4753 sed -f conftest.frag conftest.in > conftest.out
4754 rm -f conftest.in
4755 mv conftest.out conftest.in
4756 ' >> $CONFIG_STATUS
4757 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4758 rm -f conftest.vals
4759 mv conftest.tail conftest.vals
4760 done
4761 rm -f conftest.vals
4763 cat >> $CONFIG_STATUS <<\EOF
4764 rm -f conftest.frag conftest.h
4765 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4766 cat conftest.in >> conftest.h
4767 rm -f conftest.in
4768 if cmp -s $ac_file conftest.h 2>/dev/null; then
4769 echo "$ac_file is unchanged"
4770 rm -f conftest.h
4771 else
4772 # Remove last slash and all that follows it. Not all systems have dirname.
4773 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4774 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4775 # The file is in a subdirectory.
4776 test ! -d "$ac_dir" && mkdir "$ac_dir"
4778 rm -f $ac_file
4779 mv conftest.h $ac_file
4781 fi; done
4784 cat >> $CONFIG_STATUS <<EOF
4788 cat >> $CONFIG_STATUS <<\EOF
4789 test -z "$CONFIG_HEADERS" || echo timestamp > src/stamp-h
4791 exit 0
4793 chmod +x $CONFIG_STATUS
4794 rm -fr confdefs* $ac_clean_files
4795 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4801 echo "WFLAGS=\"$LIBPL_INC_PATH -I$prefix/include\"" > WINGs-flags
4802 echo "WLIBS=\"-L$exec_prefix/lib -lWINGs -lwraster $LIBPL_LIBS $GFXLIBS -lm\""\
4803 >> WINGs-flags
4807 formats="XPM PPM"
4809 for i in $GFXFLAGS; do
4810 case "$i" in
4811 -DUSE_GIF)
4812 formats="$formats GIF"
4814 -DUSE_TIFF)
4815 formats="$formats TIFF"
4817 -DUSE_PNG)
4818 formats="$formats PNG"
4820 -DUSE_JPEG)
4821 formats="$formats JPEG"
4823 esac
4824 done
4826 echo
4827 echo "WindowMaker was configured as follows:"
4828 echo
4829 echo "Installation path prefix: $prefix"
4830 echo "Installation path prefix for binaries: $exec_prefix"
4831 echo "Installation path for WPrefs.app: $wprefsdir"
4832 echo "Graphic format libraries: $formats"
4833 if test "x$MOFILES" = "x"; then
4834 mof=none
4835 else
4836 mof=$MOFILES
4838 echo "Translated message files to install: $mof"
4839 if test "x$MOFILES" != "x"; then
4840 echo "Installation path of translated messages: $NLSDIR"
4843 echo "What!? WPrefs.app won't be installed where you want it?"
4844 echo "May I point to you to the INSTALL file?"